/* ==========================================================================
   Para Kenz — Catalogue styles
   Product listing, filters, product cards and product detail pages.
   ========================================================================== */

/* ---------- Products page ---------- */
#productsCatalog{scroll-margin-top:88px;}
.products-layout{display:grid;grid-template-columns:260px 1fr;gap:40px;align-items:flex-start;}
@media (max-width:900px){
  .products-layout{grid-template-columns:1fr;}
  .cat-sidebar{position:static;}
  .cat-list{max-height:none;overflow:visible;}
}
.cat-sidebar{background:var(--mist);border-radius:var(--radius-md);padding:22px;position:sticky;top:96px;}
.cat-list{overflow:hidden;max-height:700px;opacity:1;margin-top:14px;transition:max-height .3s ease,opacity .25s ease,margin-top .25s ease;}
.cat-list li{margin-bottom:2px;}
.cat-list > li > a{display:flex;justify-content:space-between;padding:9px 10px;border-radius:8px;font-weight:600;font-size:.9rem;color:var(--ink);}
.cat-list > li > a:hover,.cat-list > li > a.active{background:var(--emerald-100);color:var(--emerald-800);}
.cat-list .sub-list{padding-left:14px;margin:2px 0 8px;border-left:2px solid var(--line);}
.cat-list .sub-list a{display:block;padding:6px 10px;font-size:.82rem;color:var(--ink-soft);border-radius:6px;}
.cat-list .sub-list a:hover,.cat-list .sub-list a.active{color:var(--emerald-700);background:var(--emerald-50);}
.products-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:14px;}
.results-count{font-size:.88rem;color:var(--ink-soft);}
.active-filter-chips{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;}
.chip{border:1px solid var(--line);border-radius:999px;padding:7px 14px;font-size:.8rem;font-weight:600;color:var(--emerald-800);background:#fff;}
.chip.active{background:var(--emerald-700);color:#fff;border-color:var(--emerald-700);}
.empty-state{text-align:center;padding:60px 20px;color:var(--ink-soft);}

@media (min-width:901px){
  #productsCatalog{padding-block:32px 48px;}
  #productsCatalog .products-layout{
    height:clamp(580px,calc(100dvh - 145px),850px);
    min-height:0;
    overflow:hidden;
  }
  #productsCatalog .cat-sidebar{
    position:static;
    top:auto;
    display:flex;
    height:100%;
    min-height:0;
    flex-direction:column;
    overflow:hidden;
  }
  #productsCatalog .cat-list{
    flex:1;
    min-height:0;
    max-height:none;
    padding-right:10px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(11,92,76,.42) transparent;
  }
  #productsCatalog .products-results-pane{
    height:100%;
    min-width:0;
    min-height:0;
    padding-right:12px;
    padding-bottom:48px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(11,92,76,.42) transparent;
  }
  #productsCatalog .products-toolbar{
    position:sticky;
    top:0;
    z-index:5;
    padding:6px 0 16px;
    margin-bottom:8px;
    background:linear-gradient(180deg,var(--paper) 82%,rgba(251,250,246,0));
  }
  #productsCatalog .cat-list::-webkit-scrollbar,
  #productsCatalog .products-results-pane::-webkit-scrollbar{width:7px;}
  #productsCatalog .cat-list::-webkit-scrollbar-thumb,
  #productsCatalog .products-results-pane::-webkit-scrollbar-thumb{
    border:2px solid transparent;
    border-radius:999px;
    background:rgba(11,92,76,.42);
    background-clip:padding-box;
  }
}

/* ---------- Product detail ---------- */
.pd-hero{position:relative;isolation:isolate;border-radius:var(--radius-lg);overflow:hidden;background:var(--emerald-900);min-height:clamp(360px,34vw,470px);display:flex;align-items:center;box-shadow:0 24px 60px rgba(4,47,36,.14);}
.pd-hero .hero-fallback{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;}
.pd-hero .hero-fallback{
  background:
    radial-gradient(ellipse at 20% 20%, rgba(21,167,111,.55), transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(201,154,59,.35), transparent 50%),
    linear-gradient(160deg,#052e24,#0b6e4f 65%,#0d8a63);
}

@media (max-width:480px){
  .nav-search-suggestions{border-radius:15px;padding:6px;}
  .nav-search-suggestion{grid-template-columns:52px minmax(0,1fr) 18px;gap:10px;min-height:68px;padding:7px;}
  .nav-search-suggestion-media{width:52px;height:52px;}
  .nav-search-suggestion-copy strong{font-size:.84rem;}
}

@media (prefers-reduced-motion:reduce){
  .nav-search,.nav-search-suggestion,.nav-search-suggestion-arrow{transition:none;}
}
.pd-hero-poster,.pd-hero-video{position:absolute;z-index:1;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;}
.pd-hero-poster{filter:saturate(.8) contrast(1.02);transform:scale(1.015);}
.pd-hero-video{opacity:0;transition:opacity .65s ease;}
.pd-hero.is-video-ready .pd-hero-video{opacity:1;}
.pd-hero-scrim{position:absolute;z-index:2;inset:0;background:linear-gradient(90deg,rgba(2,35,27,.9) 0%,rgba(4,56,42,.72) 43%,rgba(4,56,42,.28) 72%,rgba(4,56,42,.12) 100%);}
.pd-hero-inner{position:relative;z-index:3;width:100%;max-width:900px;padding:clamp(34px,5vw,72px);color:#fff;}
.pd-hero-inner *{text-shadow:0 2px 16px rgba(0,0,0,.36);}
.pd-hero-section{padding-bottom:0;}
.breadcrumb-light{margin-bottom:clamp(34px,5vw,64px);color:rgba(255,255,255,.78);font-size:.86rem;}
.breadcrumb-light a{color:inherit;}
.pd-hero-category{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#f0cf7f;font-family:var(--font-mono);font-size:.74rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;}
.pd-hero-category::before{content:"";width:30px;height:1px;background:currentColor;}
.pd-hero-title{max-width:19ch;margin:0;color:#fff;font-size:clamp(2.25rem,4.5vw,4.5rem);line-height:1.01;letter-spacing:-.035em;text-wrap:balance;}
@media (max-width:700px){
  .pd-hero{min-height:390px;border-radius:22px;}
  .pd-hero-poster,.pd-hero-video{object-position:center center;}
  .pd-hero-scrim{background:linear-gradient(90deg,rgba(2,35,27,.88),rgba(4,56,42,.48)),linear-gradient(0deg,rgba(2,35,27,.62),transparent 62%);}
  .pd-hero-inner{padding:30px 24px;}
  .breadcrumb-light{margin-bottom:54px;font-size:.78rem;}
  .pd-hero-title{font-size:clamp(2.05rem,10vw,3.25rem);}
}
@media (prefers-reduced-motion:reduce){
  .pd-hero-video{display:none;transition:none;}
}

/* ---------- Catalogue formats ---------- */
.products-page .product-image{transition:transform .7s var(--ease),filter .5s ease;}
.product-variants{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 14px;
}
.product-variant{
  min-height:32px;
  padding:5px 11px;
  border:1px solid rgba(11,92,76,.22);
  border-radius:999px;
  background:#fff;
  color:var(--emerald-800);
  font-family:var(--products-font,var(--font-body));
  font-size:.62rem;
  font-weight:650;
  line-height:1.15;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s var(--ease);
}
.product-variant:hover{transform:translateY(-1px);border-color:var(--emerald-600);}
.product-variant.is-selected{
  border-color:var(--emerald-700);
  background:var(--emerald-700);
  color:#fff;
  box-shadow:0 8px 18px rgba(6,78,61,.16);
}
.price-confirm{color:#916b20!important;font-size:.76rem!important;line-height:1.25;}
.pd-variant-picker{margin:22px 0 8px;padding:16px;border:1px solid rgba(11,92,76,.14);border-radius:16px;background:var(--mist);}
.pd-variant-picker[hidden]{display:none;}
.pd-variant-label{display:block;margin-bottom:10px;color:var(--emerald-900);font-family:var(--font-mono);font-size:.6rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;}
.product-variants-detail{margin:0;}
.product-variants-detail .product-variant{min-height:40px;padding:8px 15px;font-size:.72rem;}
.cart-line-variant{display:inline-flex;margin-top:7px;padding:4px 9px;border-radius:999px;background:var(--emerald-100);color:var(--emerald-800);font-family:var(--font-mono);font-size:.56rem;letter-spacing:.05em;}
.cart-line-stock{display:block;margin-top:5px;color:var(--ink-soft);font-size:.68rem;}

@media (max-width:480px){
  .product-variants{gap:6px;}
  .product-variant{min-height:34px;padding-inline:10px;}
  .products-page .product-foot{align-items:flex-end;gap:10px;}
  .products-page .price-confirm{max-width:120px;}
}

@media (prefers-reduced-motion:reduce){
  .product-variant{transition:none;}
}
.pd-price{font-size:1.5rem;margin-bottom:18px;}
.pd-price small{font-size:.8rem;font-weight:400;}
.pd-description-card{margin-top:28px;clip-path:none;}
.pd-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;margin-top:44px;}
@media (max-width:900px){.pd-layout{grid-template-columns:1fr;}}
.pd-gallery-main{aspect-ratio:1/1;background:var(--emerald-50);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;}
.pd-gallery-main svg{width:44%;height:44%;color:var(--emerald-600);}
.pd-product-image{width:100%;height:100%;object-fit:contain;padding:28px;}
.pd-product-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;}
.pd-product-placeholder svg{width:44%;height:44%;}
.pd-thumbs{display:flex;gap:10px;margin-top:12px;}
.pd-thumbs div{width:64px;height:64px;border-radius:8px;background:var(--emerald-50);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;}
.pd-thumbs svg{width:60%;color:var(--emerald-600);}
.pd-thumbs img{width:100%;height:100%;object-fit:contain;padding:5px;}
.qty-row{display:flex;align-items:center;gap:14px;margin:22px 0;}
.qty-stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;}
.qty-stepper button{background:var(--mist);border:none;width:38px;height:38px;font-size:1.1rem;font-weight:700;color:var(--emerald-800);}
.qty-stepper span{width:40px;text-align:center;font-weight:700;font-family:var(--font-mono);}

/* ---------- Brands ---------- */

/* ---------- Products catalogue redesign ---------- */
.products-page{
  --products-font:var(--font-body);
  overflow-x:hidden;
}
.products-hero{
  min-height:480px;
  padding:0;
  display:flex;
  align-items:center;
  isolation:isolate;
  background:var(--emerald-900);
}
.products-hero video{
  filter:saturate(.56) contrast(1.16) brightness(.78);
  transform:scale(1.035);
}
.products-hero-scrim{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(circle at 78% 45%,rgba(199,162,82,.18),transparent 32%),
    linear-gradient(90deg,rgba(3,25,20,.9) 0%,rgba(3,25,20,.7) 48%,rgba(3,25,20,.36) 72%,rgba(3,25,20,.68) 100%);
}
.products-hero .products-hero-content{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  align-items:center;
  gap:64px;
  width:100%;
  max-width:1180px;
  padding-top:58px;
  padding-bottom:132px;
}
.products-hero-copy{position:relative;z-index:2;max-width:760px;}
.products-hero .products-hero-kicker{
  margin-bottom:18px;
  color:var(--gold-soft);
  font-size:.68rem;
  letter-spacing:.2em;
}
.products-hero .products-hero-kicker::before{background:var(--gold);}
.products-hero h1{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  max-width:1180px;
  margin:0;
  color:#fff;
  font-size:clamp(2.8rem,5vw,4.8rem);
  line-height:1;
  letter-spacing:-.04em;
  text-shadow:0 8px 30px rgba(0,0,0,.42);
}
.products-inline-media{
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  width:138px;
  height:54px;
  padding:5px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.4);
  border-radius:999px;
  background:rgba(251,250,246,.94);
  box-shadow:0 16px 38px rgba(0,0,0,.24);
}
.products-inline-media img{width:100%;height:100%;padding:3px;object-fit:contain;}
.products-inline-media img + img{border-left:1px solid var(--line);}
.products-hero-copy > p{
  max-width:620px;
  margin:22px 0 0;
  color:rgba(255,255,255,.86);
  font-family:var(--products-font);
  font-size:clamp(.98rem,1.35vw,1.12rem);
  line-height:1.7;
  text-shadow:0 3px 16px rgba(0,0,0,.5);
}
.products-hero-copy > p span{will-change:opacity;}
.products-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px;}
.products-hero-actions .btn{min-width:176px;padding:12px 22px;font-family:var(--products-font);}
.products-hero-gallery{
  position:relative;
  z-index:1;
  width:360px;
  height:286px;
  justify-self:end;
}
.products-hero-product{
  position:absolute;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(255,255,255,.94);
  box-shadow:0 28px 70px rgba(0,0,0,.3);
}
.products-hero-product img{width:100%;height:100%;padding:14px;object-fit:contain;}
.products-hero-product-main{inset:0 50px 0 46px;border-radius:28px;transform:rotate(-2deg);}
.products-hero-product-top{top:-8px;right:0;width:116px;height:138px;border-radius:20px;transform:rotate(8deg);}
.products-hero-product-bottom{right:2px;bottom:-10px;width:132px;height:130px;border-radius:20px;transform:rotate(-7deg);}
.products-category-marquee{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  z-index:3;
  height:78px;
  overflow:hidden;
  border-top:1px solid rgba(231,206,148,.3);
  background:rgba(4,31,25,.94);
}
.products-category-marquee::before,.products-category-marquee::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  z-index:2;
  width:min(10vw,140px);
  pointer-events:none;
}
.products-category-marquee::before{left:0;background:linear-gradient(90deg,var(--emerald-900),transparent);}
.products-category-marquee::after{right:0;background:linear-gradient(-90deg,var(--emerald-900),transparent);}
.products-category-track{
  display:flex;
  width:max-content;
  height:100%;
  animation:productsCategoryMarquee 44s linear infinite;
  will-change:transform;
}
.products-category-group{display:flex;align-items:center;gap:12px;padding-right:12px;}
.products-category-item{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:999px;
  color:#f3f7f5;
  font-family:var(--products-font);
  font-size:.78rem;
  white-space:nowrap;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
.products-category-item:hover{border-color:var(--gold-soft);background:rgba(231,206,148,.12);color:var(--gold-soft);}
.products-category-item small{
  display:inline-flex;
  min-width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:var(--gold-soft);
  font-family:var(--font-mono);
  font-size:.56rem;
}
@keyframes productsCategoryMarquee{to{transform:translateX(-50%);}}

.products-page #productsCatalog{
  position:relative;
  padding-block:36px 54px;
  background:
    radial-gradient(circle at 6% 6%,rgba(23,135,109,.07),transparent 24%),
    radial-gradient(circle at 96% 26%,rgba(199,162,82,.075),transparent 20%),
    var(--paper);
}
.products-page .products-layout{grid-template-columns:286px minmax(0,1fr);gap:26px;}
.products-page .cat-sidebar{
  padding:18px;
  border:1px solid rgba(11,92,76,.17);
  border-radius:22px;
  background:rgba(255,255,255,.82);
  box-shadow:0 22px 56px -42px rgba(6,46,37,.58);
  backdrop-filter:blur(12px);
}
.cat-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:4px 4px 14px;}
.cat-sidebar-head > div{display:flex;flex-direction:column;gap:2px;}
.cat-sidebar-head span{
  color:var(--emerald-600);
  font-family:var(--font-mono);
  font-size:.56rem;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.cat-sidebar-head strong{color:var(--emerald-900);font-family:var(--font-display);font-size:1.35rem;font-weight:600;}
.cat-sidebar-close{
  display:none;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--emerald-800);
}
.cat-sidebar-close svg{width:19px;height:19px;}
.cat-reset-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  margin-bottom:10px;
  border:1px solid rgba(11,92,76,.17);
  border-radius:999px;
  color:var(--emerald-700);
  font-family:var(--products-font);
  font-size:.72rem;
  font-weight:600;
  transition:background .22s ease,color .22s ease;
}
.cat-reset-link:hover{background:var(--emerald-700);color:#fff;}
.products-page .cat-list{margin-top:0;}
.products-page .cat-list > li{margin-bottom:5px;}
.products-page .cat-list .cat-all > a,
.cat-group-row > a{
  display:flex;
  min-height:45px;
  flex:1;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 11px;
  border-radius:11px;
  color:var(--ink);
  font-family:var(--products-font);
  font-size:.85rem;
  font-weight:600;
  transition:background .2s ease,color .2s ease;
}
.products-page .cat-list .cat-all > a:hover,
.products-page .cat-list .cat-all > a.active,
.cat-group-row > a:hover,.cat-group-row > a.active{background:var(--emerald-100);color:var(--emerald-800);}
.products-page .cat-list small{
  color:var(--ink-soft);
  font-family:var(--font-mono);
  font-size:.56rem;
  font-weight:400;
}
.cat-group-row{display:flex;align-items:center;gap:4px;}
.cat-group-toggle{
  display:flex;
  width:34px;
  height:34px;
  flex:none;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--emerald-700);
  transition:background .2s ease,transform .3s var(--ease);
}
.cat-group-toggle:hover{background:var(--emerald-50);}
.cat-group-toggle svg{width:18px;height:18px;transition:transform .3s var(--ease);}
.cat-group.is-open .cat-group-toggle svg{transform:rotate(180deg);}
.products-page .cat-list .sub-list{
  max-height:0;
  margin:0 0 0 13px;
  padding-left:13px;
  overflow:hidden;
  border-left:1px solid rgba(11,92,76,.16);
  opacity:0;
  transition:max-height .38s var(--ease),opacity .25s ease,margin .3s ease;
}
.products-page .cat-group.is-open .sub-list{max-height:520px;margin-top:3px;margin-bottom:9px;opacity:1;}
.products-page .cat-list .sub-list a{
  padding:6px 9px;
  font-family:var(--products-font);
  font-size:.76rem;
  line-height:1.4;
}
.products-filter-overlay{display:none;}

.products-page .products-toolbar{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px 20px;
  margin-bottom:18px;
  padding:13px;
  border:1px solid rgba(11,92,76,.17);
  border-radius:20px;
  background:rgba(255,255,255,.9);
  box-shadow:0 20px 48px -40px rgba(6,46,37,.56);
  backdrop-filter:blur(14px);
}
.products-toolbar-primary{display:flex;align-items:center;gap:12px;}
.products-toolbar-title{display:flex;min-width:150px;flex-direction:column;gap:1px;}
.products-toolbar-title > span{
  color:var(--emerald-900);
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:600;
}
.products-page .results-count{color:var(--ink-soft);font-family:var(--products-font);font-size:.68rem;font-weight:500;}
.products-filter-trigger{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 15px;
  border:1px solid rgba(11,92,76,.2);
  border-radius:999px;
  background:#fff;
  color:var(--emerald-800);
  font-family:var(--products-font);
  font-weight:600;
}
.products-filter-trigger svg{width:18px;height:18px;}
.products-toolbar-controls{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0;}
.catalog-search{
  display:flex;
  min-width:180px;
  max-width:300px;
  flex:1;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 14px;
  border:1px solid rgba(11,92,76,.18);
  border-radius:999px;
  background:var(--mist);
  color:var(--emerald-700);
}
.catalog-search svg{width:18px;height:18px;flex:none;}
.catalog-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-family:var(--products-font);font-size:.78rem;}
.products-sort-wrap{position:relative;flex:none;}
.products-sort-wrap select{
  min-height:44px;
  max-width:170px;
  padding:0 38px 0 15px;
  appearance:none;
  border:1px solid rgba(11,92,76,.18);
  border-radius:999px;
  outline:0;
  background:#fff;
  color:var(--emerald-800);
  font-family:var(--products-font);
  font-size:.76rem;
  font-weight:600;
  cursor:pointer;
}
.products-sort-wrap::after{
  content:"";
  position:absolute;
  top:50%;
  right:16px;
  width:7px;
  height:7px;
  border-right:1.5px solid var(--emerald-700);
  border-bottom:1.5px solid var(--emerald-700);
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
.products-view-toggle{display:flex;flex:none;padding:3px;border:1px solid rgba(11,92,76,.18);border-radius:999px;background:var(--mist);}
.products-view-toggle button{
  display:flex;
  width:36px;
  height:36px;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ink-soft);
}
.products-view-toggle button.is-active{background:var(--emerald-700);color:#fff;box-shadow:0 8px 20px rgba(6,46,37,.18);}
.products-view-toggle svg{width:17px;height:17px;}
.products-page .active-filter-chips{grid-column:1/-1;justify-content:flex-start;gap:7px;}
.products-page .active-filter-chips:empty{display:none;}
.products-page .chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px 6px 12px;
  border-color:rgba(11,92,76,.2);
  font-family:var(--products-font);
  font-size:.68rem;
}
.products-page button.chip{cursor:pointer;}
.products-page .chip span{font-size:.85rem;line-height:1;}
.products-clear-all{margin-left:4px;color:var(--emerald-700);font-family:var(--products-font);font-size:.68rem;font-weight:600;text-decoration:underline;text-underline-offset:3px;}

.products-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-flow:dense;
  gap:18px;
}
.products-load-more{
  display:grid;
  justify-items:center;
  gap:12px;
  padding:28px 12px 8px;
  text-align:center;
}
.products-load-more[hidden],
.products-load-button[hidden]{display:none;}
.products-load-more p{
  margin:0;
  color:var(--ink-soft);
  font-family:var(--products-font);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.02em;
}
.products-load-button{min-width:210px;}
.products-load-button:disabled{cursor:wait;opacity:.55;}
.products-page .product-card{
  position:relative;
  display:flex;
  min-width:0;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(11,92,76,.16);
  border-radius:20px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 44px -34px rgba(6,46,37,.48);
  transition:transform .55s var(--ease),border-color .35s ease,box-shadow .55s var(--ease);
}
.products-page .product-card:hover,.products-page .product-card:focus-within{
  transform:translateY(-7px);
  border-color:rgba(11,92,76,.42);
  box-shadow:0 32px 72px -38px rgba(6,46,37,.62);
}
.product-card-media-link{display:block;padding:10px 10px 0;}
.products-page .product-media{
  width:100%;
  margin:0;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:13px;
  background:
    radial-gradient(circle at 50% 45%,rgba(255,255,255,.98),rgba(227,238,232,.72) 76%),
    var(--emerald-50);
}
.products-page .product-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.32),transparent 42%);
}
.products-page .product-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:18px;
  object-fit:contain;
  background:#fff;
  transition:transform .7s var(--ease),filter .5s ease,opacity .35s ease;
}
.products-page .product-card:hover .product-image{transform:scale(1.065);filter:saturate(1.04);}
.products-page .product-badge{
  top:12px;
  left:12px;
  max-width:58%;
  overflow:hidden;
  padding:5px 10px;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:1px solid rgba(199,162,82,.34);
  background:rgba(251,250,246,.92);
  color:var(--emerald-900);
}
.product-featured-badge{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  padding:5px 9px;
  border-radius:999px;
  background:var(--emerald-700);
  color:#fff;
  font-family:var(--font-mono);
  font-size:.54rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.products-page .product-image-placeholder{
  display:flex;
  position:absolute;
  inset:0;
  align-items:center;
  justify-content:center;
  gap:15px;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,255,255,.95),rgba(227,238,232,.75) 68%),
    repeating-linear-gradient(135deg,transparent 0,transparent 16px,rgba(11,92,76,.025) 16px,rgba(11,92,76,.025) 17px);
}
.product-placeholder-brand{
  display:flex;
  position:absolute;
  right:16px;
  bottom:13px;
  left:16px;
  height:32px;
  align-items:center;
  justify-content:center;
  opacity:.64;
}
.product-placeholder-brand img{width:auto!important;max-width:88px;height:26px!important;object-fit:contain;}
.products-page .product-placeholder-mark{
  display:flex;
  width:86px;
  height:86px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(11,92,76,.22);
  border-radius:50%;
  background:rgba(255,255,255,.78);
  box-shadow:0 18px 42px rgba(6,46,37,.09);
}
.products-page .product-media .product-placeholder-mark svg{width:44px;height:44px;}
.product-card-body{display:flex;flex:1;flex-direction:column;padding:18px 20px 20px;font-family:var(--products-font);}
.products-page .product-brand{margin-bottom:7px;font-size:.61rem;}
.products-page .product-card h3{
  display:-webkit-box;
  min-height:2.5em;
  margin:0 0 9px;
  overflow:hidden;
  font-size:1.05rem;
  line-height:1.25;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.products-page .product-card h3 a{transition:color .2s ease;}
.products-page .product-card h3 a:hover{color:var(--emerald-600);}
.products-page .product-card .desc{
  display:-webkit-box;
  min-height:2.9em;
  margin-bottom:18px;
  overflow:hidden;
  color:var(--ink-soft);
  font-size:.76rem;
  line-height:1.5;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.products-page .product-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);}
.products-page .price{font-size:1.12rem;}
.product-add-button{
  display:inline-flex;
  min-height:40px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border:1px solid var(--emerald-700);
  border-radius:999px;
  background:var(--emerald-700);
  color:#fff;
  font-family:var(--products-font);
  font-size:.72rem;
  font-weight:600;
  transition:transform .25s var(--ease),background .2s ease,box-shadow .25s ease;
}
.product-add-button:hover{transform:translateY(-2px);background:var(--emerald-800);box-shadow:0 12px 24px rgba(6,46,37,.18);}
.product-add-button svg{width:16px;height:16px;}

.products-grid.is-list{grid-template-columns:1fr;}
.products-grid.is-list .product-card{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:246px;}
.products-grid.is-list .product-card-media-link{padding:10px;}
.products-grid.is-list .product-media{height:100%;aspect-ratio:auto;}
.products-grid.is-list .product-card-body{padding:26px 26px 24px;}
.products-grid.is-list .product-card h3{min-height:0;font-size:1.28rem;}
.products-grid.is-list .product-card .desc{max-width:640px;min-height:0;-webkit-line-clamp:3;}

@media (min-width:901px){
  .products-page #productsCatalog .products-layout{height:clamp(610px,calc(100dvh - 132px),860px);}
  .products-page #productsCatalog .cat-sidebar{height:100%;}
  .products-page #productsCatalog .cat-list{
    padding-right:7px;
    scrollbar-color:transparent transparent;
  }
  .products-page #productsCatalog .cat-list:hover{scrollbar-color:rgba(11,92,76,.4) transparent;}
  .products-page #productsCatalog .products-results-pane{
    padding-right:9px;
    scrollbar-color:transparent transparent;
  }
  .products-page #productsCatalog .products-results-pane:hover{scrollbar-color:rgba(11,92,76,.4) transparent;}
  .products-page #productsCatalog .products-toolbar{
    top:0;
    padding:13px;
    margin-bottom:18px;
    background:rgba(251,250,246,.94);
  }
  .products-page #productsCatalog .cat-list::-webkit-scrollbar-thumb,
  .products-page #productsCatalog .products-results-pane::-webkit-scrollbar-thumb{background:transparent;}
  .products-page #productsCatalog .cat-list:hover::-webkit-scrollbar-thumb,
  .products-page #productsCatalog .products-results-pane:hover::-webkit-scrollbar-thumb{background:rgba(11,92,76,.4);background-clip:padding-box;}
}
@media (max-width:1120px) and (min-width:901px){
  .products-page .products-layout{grid-template-columns:250px minmax(0,1fr);gap:20px;}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .catalog-search{max-width:230px;}
  .products-view-toggle{display:none;}
}
@media (max-width:900px){
  .products-hero .products-hero-content{grid-template-columns:minmax(0,1fr) 270px;gap:28px;padding-inline:24px;}
  .products-hero-gallery{width:270px;height:250px;opacity:.92;}
  .products-hero-product-main{right:35px;left:30px;}
  .products-hero-product-top{width:94px;height:116px;}
  .products-hero-product-bottom{width:104px;height:108px;}
  .products-page #productsCatalog{padding-block:30px 64px;}
  .products-page .products-layout{display:block;}
  .products-page .cat-sidebar{
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    z-index:92;
    display:flex;
    width:min(88vw,360px);
    height:100dvh;
    flex-direction:column;
    padding:22px 18px;
    overflow:hidden;
    border:0;
    border-radius:0 24px 24px 0;
    background:rgba(251,250,246,.98);
    box-shadow:28px 0 70px rgba(6,46,37,.2);
    transform:translateX(-105%);
    transition:transform .4s var(--ease);
  }
  .products-page .cat-sidebar.is-mobile-open{transform:translateX(0);}
  .products-page .cat-sidebar-close{display:flex;}
  .products-page .cat-list{flex:1;max-height:none!important;padding-right:7px;overflow-y:auto!important;opacity:1!important;}
  .products-filter-overlay{
    position:fixed;
    inset:0;
    z-index:91;
    border:0;
    background:rgba(3,25,20,.48);
    backdrop-filter:blur(3px);
  }
  .products-filter-open .products-filter-overlay{display:block;}
  body.products-filter-open{overflow:hidden;}
  .products-page #productsCatalog .products-results-pane{height:auto;padding:0;overflow:visible;}
  .products-page .products-toolbar{position:relative;grid-template-columns:1fr;padding:12px;}
  .products-page .products-toolbar-primary{justify-content:space-between;}
  .products-filter-trigger{display:inline-flex;}
  .products-toolbar-controls{justify-content:stretch;}
  .catalog-search{max-width:none;}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
  .products-hero{min-height:500px;align-items:flex-start;}
  .products-hero .products-hero-content{display:block;padding:62px 18px 128px;}
  .products-hero-copy{max-width:620px;}
  .products-hero h1{font-size:clamp(2.7rem,12vw,4rem);}
  .products-hero-copy > p{max-width:540px;font-size:.94rem;}
  .products-hero-gallery{position:absolute;right:-44px;bottom:76px;width:230px;height:190px;opacity:.22;filter:saturate(.5);}
  .products-hero-actions{position:relative;z-index:2;}
  .products-category-marquee{height:70px;}
  .products-category-item{min-height:40px;padding-inline:15px;font-size:.72rem;}
  .products-toolbar-controls{display:grid;grid-template-columns:1fr auto;}
  .catalog-search{grid-column:1/-1;}
  .products-sort-wrap select{width:100%;max-width:none;}
  .products-grid{grid-template-columns:1fr;gap:14px;}
  .products-grid.is-list{grid-template-columns:1fr;}
  .products-grid.is-list .product-card{display:flex;min-height:0;}
  .products-grid.is-list .product-card-media-link{padding:10px 10px 0;}
  .products-grid.is-list .product-media{height:auto;aspect-ratio:1/1;}
  .products-grid.is-list .product-card-body{padding:18px 20px 20px;}
  .products-toolbar,.products-toolbar-primary,.products-toolbar-controls,
  .product-card,.product-card-body,.product-foot{min-width:0;}
  .product-foot{align-items:flex-end;flex-wrap:wrap;}
  .pd-layout{gap:30px;margin-top:30px;}
  .pd-layout > div{min-width:0;}
  .qty-row{flex-wrap:wrap;}
}
@media (max-width:480px){
  .products-hero-actions{display:grid;grid-template-columns:1fr;}
  .products-hero-actions .btn{width:100%;}
  .products-inline-media{width:116px;height:48px;}
  .products-view-toggle{display:none;}
  .products-toolbar-controls{grid-template-columns:1fr;}
  .products-sort-wrap{width:100%;}
  .products-sort-wrap select{width:100%;}
  .product-card-body{padding:17px 18px 18px;}
  .product-add-button span{display:none;}
  .product-add-button{width:42px;padding:0;}
  .products-page #productsCatalog{padding-bottom:82px;}
  .products-toolbar-primary{align-items:flex-start;flex-wrap:wrap;gap:10px;}
  .products-toolbar-title{min-width:0;}
  .product-card h3,.pd-hero-title{overflow-wrap:anywhere;}
  .product-variants{gap:8px;}
  .product-variants button{max-width:100%;white-space:normal;}
}
@media (prefers-reduced-motion:reduce){
  .products-category-marquee{overflow-x:auto;scrollbar-width:none;}
  .products-category-marquee::-webkit-scrollbar{display:none;}
  .products-category-track{animation:none;}
  .products-category-group[aria-hidden="true"]{display:none;}
  .products-page .product-card,.products-page .product-image,.product-add-button,.cat-group-toggle svg{transition:none;}
}
