/* Category cards share the shop palette and wrap without horizontal scrolling. */
.shop-category-panel {
  container: shop-categories / inline-size;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e0ebe1;
  border-radius: 19px;
  background: linear-gradient(145deg, #f3f8f1, #fafcf9);
}

.shop-category-panel .shop-category-title {
  margin: 0 0 10px;
  color: #1e3e2c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

html body.v190-shop-page .v190-center #groupFilters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible !important;
  padding: 0;
  margin: 0;
}

html body.v190-shop-page .v190-center #groupFilters .group-btn {
  --category-accent: #306447;
  --category-tint: #eaf4ec;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "icon count" "copy copy";
  justify-content: stretch;
  align-content: center;
  align-items: center;
  gap: 5px 6px;
  width: 100%;
  min-width: 0;
  min-height: 72px !important;
  padding: 8px 9px;
  border: 1px solid #dce8df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(23, 65, 39, .035);
  text-align: left;
  white-space: normal;
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}

html body.v190-shop-page .v190-center #groupFilters [data-group="watering"] {
  --category-accent: #156184;
  --category-tint: #e6f4fb;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="pots"] {
  --category-accent: #8b4b34;
  --category-tint: #f9eee8;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="agrofibre"] {
  --category-accent: #654881;
  --category-tint: #f2edf9;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="agrofabric"] {
  --category-accent: #72541e;
  --category-tint: #f8f0de;
}

html body.v190-shop-page .v190-center #groupFilters .shop-category-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--category-tint);
  color: var(--category-accent);
}
#groupFilters .shop-category-icon svg {
  width: 18px;
  height: 18px;
}

html body.v190-shop-page .v190-center #groupFilters .shop-category-copy {
  grid-area: copy;
  display: grid;
  gap: 3px;
  min-width: 0;
}
html body.v190-shop-page .v190-center #groupFilters .shop-category-copy b {
  color: #234232;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#groupFilters .shop-category-copy small {
  display: none;
  color: #52675b;
  font-size: 11px;
  line-height: 1.35;
}

html body.v190-shop-page .v190-center #groupFilters .shop-category-count {
  grid-area: count;
  display: grid;
  place-items: center;
  justify-self: end;
  min-width: 23px;
  min-height: 22px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #f1f5f1;
  color: #3d614a;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  html body.v190-shop-page .v190-center #groupFilters .group-btn:not(.active):hover {
    border-color: #a6c5af;
    background: #fbfefb;
    box-shadow: 0 4px 10px rgba(23, 65, 39, .08);
  }
}
html body.v190-shop-page .v190-center #groupFilters .group-btn.active {
  background: linear-gradient(135deg, #0b6137, #127b45);
  border-color: #0b6137;
  box-shadow: 0 4px 10px rgba(18, 113, 64, .18);
}
html body.v190-shop-page .v190-center #groupFilters .group-btn.active .shop-category-copy b {
  color: #fff;
}
#groupFilters .group-btn.active .shop-category-copy small {
  color: #e0f3e7;
}
html body.v190-shop-page .v190-center #groupFilters .group-btn.active :is(.shop-category-icon, .shop-category-count) {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
html body.v190-shop-page .v190-center #groupFilters .group-btn:focus-visible {
  outline: 2px solid #9b651d;
  outline-offset: 2px;
}

@container shop-categories (min-width: 570px) {
  html body.v190-shop-page .v190-center #groupFilters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  html body.v190-shop-page .v190-center #groupFilters .group-btn {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon copy count";
    min-height: 70px !important;
    padding: 10px;
    gap: 9px;
  }
  html body.v190-shop-page .v190-center #groupFilters .shop-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  #groupFilters .shop-category-icon svg {
    width: 21px;
    height: 21px;
  }
  html body.v190-shop-page .v190-center #groupFilters .shop-category-copy b {
    font-size: 14px;
  }
}
@container shop-categories (min-width: 660px) {
  #groupFilters .shop-category-copy small {
    display: block;
  }
}

html body.v190-shop-page .v190-center #chipsWrap {
  position: static;
  margin-top: 15px;
  padding: 12px;
  background: #f0f6ed;
  border: 1px solid #e0ebdc;
  border-radius: 17px;
  backdrop-filter: none;
}
html body.v190-shop-page .v190-center #chips {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 7px;
  padding: 9px 0 0;
}
html body.v190-shop-page .v190-center #chips .chip {
  white-space: normal;
  min-width: 0;
  min-height: 42px;
  line-height: 1.35;
}
@media (max-width: 760px) {
  html body.v190-shop-page .v190-center #chips .chip {
    flex: 1 1 110px;
    padding: 9px 8px;
    font-size: 12px;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body.v190-shop-page .v190-center #groupFilters .group-btn {
    transition: none;
    transform: none;
  }
}

/* V314: category feedback, scoped to shop filters. No continuous animation. */
html body.v190-shop-page .v190-center #groupFilters .group-btn {
  --category-accent:#285b40;
  --category-deep:#214e37;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="plants"] {
  --category-accent:#16703f;--category-deep:#10552f;--category-tint:#eaf5e9;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="watering"] {
  --category-accent:#156184;--category-deep:#124c69;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="pots"] {
  --category-accent:#86482f;--category-deep:#693723;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="agrofibre"] {
  --category-accent:#654881;--category-deep:#4e3668;
}
html body.v190-shop-page .v190-center #groupFilters [data-group="agrofabric"] {
  --category-accent:#72541e;--category-deep:#5a4117;
}
html body.v190-shop-page .v190-center #groupFilters .group-btn::before {
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.28) 48%,transparent 75%);
  transform:translateX(-140%);
}
html body.v190-shop-page .v190-center #groupFilters .group-btn > *{position:relative;z-index:1}
html body.v190-shop-page .v190-center #groupFilters .shop-category-icon {
  transition:transform .24s ease,box-shadow .24s ease;
}
html body.v190-shop-page .v190-center #groupFilters .group-btn.active {
  background:linear-gradient(125deg,var(--category-deep),var(--category-accent));
  border-color:var(--category-deep);
  box-shadow:0 4px 12px rgba(25,55,35,.18),inset 0 1px 0 rgba(255,255,255,.16);
}
html body.v190-shop-page .v190-center #groupFilters .group-btn.active .shop-category-copy small{color:#fff;opacity:.9}
@media(hover:hover) and (pointer:fine){
  html body.v190-shop-page .v190-center #groupFilters .group-btn:hover {
    transform:translateY(-3px);
    border-color:var(--category-accent);
    box-shadow:0 8px 18px rgba(25,55,35,.14);
  }
  html body.v190-shop-page .v190-center #groupFilters .group-btn:not(.active):hover{background:var(--category-tint)}
  html body.v190-shop-page .v190-center #groupFilters .group-btn:hover::before{animation:category-sheen-v314 .65s ease-out both}
  html body.v190-shop-page .v190-center #groupFilters .group-btn:hover .shop-category-icon{transform:translateY(-2px) rotate(-7deg)}
  html body.v190-shop-page .v190-center #groupFilters [data-group="watering"]:hover .shop-category-icon{transform:translateY(-3px) rotate(6deg)}
  html body.v190-shop-page .v190-center #groupFilters [data-group="pots"]:hover .shop-category-icon{transform:scale(1.09) rotate(5deg)}
  html body.v190-shop-page .v190-center #groupFilters [data-group="agrofibre"]:hover .shop-category-icon{transform:translateY(-3px) rotate(-4deg)}
  html body.v190-shop-page .v190-center #groupFilters [data-group="agrofabric"]:hover .shop-category-icon{transform:rotate(8deg)}
}
html body.v190-shop-page .v190-center #groupFilters .group-btn:active {
  transform:translateY(1px) scale(.98);
  box-shadow:inset 0 2px 5px rgba(18,45,30,.15);
  transition-duration:.08s;
}
html body.v190-shop-page .v190-center #groupFilters .group-btn:focus-visible {
  outline:3px solid var(--category-accent);outline-offset:3px;
}
@keyframes category-sheen-v314{from{transform:translateX(-140%)}to{transform:translateX(140%)}}
@media(prefers-reduced-motion:reduce){
  html body.v190-shop-page .v190-center #groupFilters .group-btn,
  html body.v190-shop-page .v190-center #groupFilters .shop-category-icon{transition:none!important;transform:none!important}
  html body.v190-shop-page .v190-center #groupFilters .group-btn::before{animation:none!important;display:none}
}

html body.v190-shop-page .v190-center #groupFilters [data-group="fertilizers"] {
  --category-accent: #8a5c18;
  --category-deep: #67420f;
  --category-tint: #fbf2df;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html body.v190-shop-page .v190-center #groupFilters [data-group="fertilizers"]:hover .shop-category-icon svg {
    animation: fertilizer-sway-v323 .7s ease-in-out both;
    transform-origin: center bottom;
  }
}
@keyframes fertilizer-sway-v323 {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  65% { transform: rotate(9deg); }
}
