/* ═══════════════════════════════════════════════════════
   SPRINT DRIVES — shop.css
   Loaded only on shop pages, product archives, single products
═════════════════════════════════════════════════════════ */

/* ═══ SHOP HERO ════════════════════════════════════════ */
.shop-hero{
  position:relative;
  background:var(--N5);
  color:#fff;
  padding:88px 0 56px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}
.shop-hero.has-image{
  padding:120px 0 80px;
}
.shop-hero::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:28px 28px;
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 45%,black 0%,transparent 100%);
          mask-image:radial-gradient(ellipse 80% 70% at 50% 45%,black 0%,transparent 100%);
}
.shop-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(7,8,28,.7) 0%,rgba(7,8,28,.92) 100%);
  z-index:0;
}
.shop-hero.has-image .shop-hero-overlay{
  background:linear-gradient(to bottom,rgba(7,8,28,.6) 0%,rgba(7,8,28,.95) 100%);
}
.shop-hero-inner{position:relative;z-index:2;}

.shop-breadcrumb{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-family:var(--fb);font-size:11px;font-weight:500;letter-spacing:.04em;
  color:rgba(255,255,255,.45);
  margin-bottom:24px;
}
.shop-breadcrumb a{color:rgba(255,255,255,.45);transition:color .15s;}
.shop-breadcrumb a:hover{color:var(--L);}
.shop-breadcrumb .bc-sep{color:rgba(255,255,255,.2);}
.shop-breadcrumb .bc-current{color:#fff;font-weight:600;}

.shop-hero-title-row{
  display:grid;grid-template-columns:1fr auto;align-items:end;gap:32px;
}
.shop-hero-kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--fb);font-size:10px;font-weight:700;letter-spacing:.26em;text-transform:uppercase;
  color:var(--L);margin-bottom:16px;
}
.shop-hero-kicker::before{content:'';width:22px;height:1px;background:var(--L);}
html body.woocommerce-shop section.shop-hero h1.shop-hero-title,
html body.archive section.shop-hero h1.shop-hero-title,
html body section.shop-hero h1.shop-hero-title,
html body section.shop-hero .shop-hero-title,
html body .shop-hero h1,
section.shop-hero h1.shop-hero-title,
.shop-hero .shop-hero-title,
body .shop-hero-title{
  font-family:var(--fh) !important;
  font-size:clamp(3rem,7vw,4.4rem) !important;
  letter-spacing:.02em !important;
  line-height:.96 !important;
  text-transform:uppercase !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  margin-bottom:16px !important;
  text-shadow:none !important;
  background:none !important;
  background-image:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  filter:none !important;
  opacity:1 !important;
}
.shop-hero-sub{
  font-family:var(--fb);font-size:14.5px;font-weight:300;line-height:1.7;
  color:rgba(255,255,255,.55);max-width:560px;margin:0;
}
.shop-hero-count{
  text-align:right;flex-shrink:0;
}
.shop-hero-count-n{
  font-family:var(--fh);font-size:clamp(2rem,3.5vw,3rem);
  color:var(--L);line-height:1;letter-spacing:.02em;
}
.shop-hero-count-l{
  font-family:var(--fb);font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.4);margin-top:6px;
}

/* ═══ CATEGORY TILES ═══════════════════════════════════ */
.shop-cats{
  background:var(--BG);padding:64px 0 48px;
}
.shop-cats-head{margin-bottom:32px;}
.shop-cats-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
}
.shop-cat-tile{
  position:relative;
  border-radius:10px;overflow:hidden;
  display:block;text-decoration:none;
  aspect-ratio:5/4;
  background:var(--N3);
  transition:transform .4s var(--e),box-shadow .4s var(--e);
  isolation:isolate;
}
.shop-cat-tile:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(0,0,0,.18),0 0 0 1px rgba(211,214,58,.3);
}
.shop-cat-img{
  position:absolute;inset:0;z-index:0;
  background-size:cover;background-position:center;
  transition:transform .6s var(--e),filter .4s;
  filter:brightness(.78) saturate(.88);
}
.shop-cat-tile:hover .shop-cat-img{transform:scale(1.08);filter:brightness(.65) saturate(1);}
.shop-cat-overlay{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to top,rgba(7,8,28,.95) 0%,rgba(7,8,28,.4) 50%,rgba(7,8,28,.1) 100%);
}
.shop-cat-content{
  position:absolute;bottom:0;left:0;right:0;z-index:2;
  padding:22px 22px 22px;
}
.shop-cat-t{
  font-family:var(--fh);font-size:1.25rem;letter-spacing:.03em;text-transform:uppercase;
  color:#fff;line-height:1;margin-bottom:6px;
}
.shop-cat-meta{
  font-family:var(--fb);font-size:11px;font-weight:500;letter-spacing:.06em;
  color:rgba(255,255,255,.55);text-transform:uppercase;
}
.shop-cat-arrow{
  position:absolute;top:18px;right:18px;z-index:2;
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  color:#fff;
  transform:translateX(0);
  transition:all .25s var(--e);
}
.shop-cat-arrow svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.shop-cat-tile:hover .shop-cat-arrow{
  background:var(--L);color:var(--N4);transform:translateX(4px);
}

/* Top accent bar on hover */
.shop-cat-tile::after{
  content:'';position:absolute;top:0;left:0;width:50px;height:3px;z-index:3;
  background:var(--L);transform:scaleX(0);transform-origin:left;
  transition:transform .4s var(--e);
}
.shop-cat-tile:hover::after{transform:scaleX(1);}

/* ═══ SHOP TOOLBAR — filter button + sort + count ═════ */
.shop-grid-wrap{
  background:#fff;padding:48px 0 96px;border-top:1px solid var(--BD);
}
.shop-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 0 24px;border-bottom:1px solid var(--BD);margin-bottom:32px;
  flex-wrap:wrap;
}
.shop-filter-btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--fb);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  background:var(--N4);color:#fff;
  padding:11px 20px;border-radius:4px;border:none;cursor:pointer;
  transition:all .2s var(--e);
}
.shop-filter-btn:hover{background:var(--N);transform:translateY(-1px);}
.shop-filter-btn svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.shop-active-filters{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 6px;border-radius:9px;
  background:var(--L);color:var(--N4);
  font-size:10px;font-weight:700;line-height:1;margin-left:4px;
}

.shop-toolbar-meta{
  font-family:var(--fb);font-size:12px;color:var(--MUT);
  flex:1;text-align:center;
}

.shop-sort{display:flex;align-items:center;gap:10px;}
.shop-sort-label{
  font-family:var(--fb);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--MUT);margin:0;
}
.shop-sort .woocommerce-ordering{margin:0;}
.shop-sort select.orderby{
  font-family:var(--fb);font-size:12px;font-weight:500;
  background:#fff;border:1px solid var(--BD);
  padding:8px 28px 8px 14px;border-radius:4px;
  color:var(--INK);cursor:pointer;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237a7a8a' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 8px center;background-size:14px;
}
.shop-sort select.orderby:focus{outline:none;border-color:var(--N);}

/* Hide WC default elements we don't want */
.woocommerce-result-count{display:none;}

/* ═══ PRODUCT GRID — 3 columns desktop ════════════════ */
.shop-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  margin-bottom:48px;
}
ul.products{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  list-style:none;margin:0 0 48px;padding:0;
}
ul.products li.product{display:contents;}

/* ═══ PRODUCT CARD ═════════════════════════════════════ */
.sd-product-card{
  position:relative;
  background:#fff;
  border:1px solid var(--BD);
  border-radius:8px;
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:all .3s var(--e);
  isolation:isolate;
}
.sd-product-card:hover{
  border-color:rgba(51,52,127,.18);
  box-shadow:0 12px 32px rgba(51,52,127,.1),0 4px 12px rgba(0,0,0,.04);
  transform:translateY(-3px);
}

.sd-product-img-wrap{
  position:relative;display:block;
  aspect-ratio:1/1;background:#f7f7f5;
  overflow:hidden;
  border-bottom:1px solid var(--BD);
}
.sd-product-img,.sd-product-img-hover{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:contain;padding:14px;
  transition:opacity .3s var(--e),transform .5s var(--e);
}
.sd-product-img-hover{
  opacity:0;
}
.sd-product-card:hover .sd-product-img{
  transform:scale(1.04);
  opacity:0;
}
.sd-product-card:hover .sd-product-img-hover{
  opacity:1;
  transform:scale(1.04);
}
.sd-product-card:not(:has(.sd-product-img-hover)):hover .sd-product-img{
  opacity:1;
}

.sd-product-badge{
  position:absolute;top:12px;left:12px;z-index:3;
  font-family:var(--fb);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:5px 10px;border-radius:3px;
  line-height:1;
}
.sd-badge-sale{
  background:#e63946;color:#fff;
}
.sd-badge-oos{
  background:rgba(0,0,0,.7);color:#fff;
  top:auto;bottom:12px;left:12px;
}

.sd-product-body{
  padding:14px 16px 10px;
  flex:1;display:flex;flex-direction:column;
}
.sd-product-brand{
  font-family:var(--fb);font-size:9.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--N);margin-bottom:6px;
}
.sd-product-title{
  font-family:var(--fb);font-size:16px;font-weight:500;line-height:1.35;color:var(--INK);
  text-transform:none;letter-spacing:0;
  margin:0 0 8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:2.7em;
}
.sd-product-title a{color:inherit;transition:color .15s;}
.sd-product-title a:hover{color:var(--N);}
.sd-product-stock{
  font-family:var(--fb);font-size:11px;font-weight:600;
  margin-bottom:8px;display:flex;align-items:center;gap:6px;
}
.sd-stock-ok{color:#0a8a4a;}
.sd-stock-ok::before{content:'';width:7px;height:7px;border-radius:50%;background:#0a8a4a;display:inline-block;margin-right:2px;}
.sd-stock-low{color:#e08400;font-weight:700;}
.sd-stock-low::before{content:'';width:7px;height:7px;border-radius:50%;background:#e08400;display:inline-block;margin-right:2px;animation:stockPulseShop 2s ease-in-out infinite;}
.sd-stock-out{color:#c1272d;font-weight:600;}
.sd-stock-out::before{content:'';width:7px;height:7px;border-radius:50%;background:#c1272d;display:inline-block;margin-right:2px;}
@keyframes stockPulseShop{0%,100%{opacity:1;}50%{opacity:.5;}}

.sd-product-price{
  font-family:var(--fh);font-size:1.25rem;letter-spacing:.02em;
  color:var(--INK);margin-top:auto;
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;
}
.sd-product-price ins{
  text-decoration:none;color:#e63946;font-weight:inherit;
}
.sd-product-price del{
  font-family:var(--fb);font-size:13px;font-weight:400;
  color:var(--MUT);text-decoration:line-through;
}
.sd-product-price .woocommerce-Price-amount{font-family:var(--fh);}
.sd-product-price small{display:none;} /* Hide "VAT included" small text */

.sd-product-foot{
  padding:0 16px 16px;
  display:flex;gap:10px;align-items:stretch;
}

/* Quantity stepper on product card — half width, balanced */
.sd-product-qty{
  display:flex;align-items:center;
  border:1.5px solid var(--BD);border-radius:8px;
  background:#fff;
  flex:1 1 50%;min-width:0;
  height:48px;
  overflow:hidden;
  transition:border-color .15s;
}
.sd-product-qty:hover,
.sd-product-qty:focus-within{border-color:var(--N);}
.sd-qty-btn{
  flex:0 0 36px;height:100%;
  background:transparent;border:none;cursor:pointer;
  color:var(--INK);font-size:18px;font-weight:600;line-height:1;
  display:flex;align-items:center;justify-content:center;
  padding:0;
  transition:background .15s,color .15s;
}
.sd-qty-btn:hover{background:#f5f5f0;color:var(--N);}
.sd-qty-input{
  flex:1;min-width:0;width:100%;
  height:100%;
  text-align:center;border:none;background:transparent;
  font-family:var(--fb);font-size:14px;font-weight:700;color:var(--INK);
  appearance:textfield;-moz-appearance:textfield;
  padding:0;
}
.sd-qty-input::-webkit-outer-spin-button,
.sd-qty-input::-webkit-inner-spin-button{
  -webkit-appearance:none;margin:0;
}
.sd-qty-input:focus{outline:none;background:#f9f9f6;}

/* Cart button — pill-shaped, balanced with stepper */
.sd-product-cart-btn{
  flex:1 1 50%;min-width:0;
  display:flex;align-items:center;justify-content:center;gap:0;
  background:var(--N4);color:#fff;
  height:48px;
  border-radius:8px;
  border:none;cursor:pointer;text-decoration:none;
  transition:all .25s var(--e);
  position:relative;
  padding:0;
  font-size:0;
  letter-spacing:0;
  box-shadow:0 2px 6px rgba(14,15,51,.18);
}
.sd-product-cart-btn:hover{
  background:var(--L);color:var(--N4);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(211,214,58,.45);
}
.sd-product-cart-btn svg{
  width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;
  stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;
  display:block;
}
/* The "+" badge sitting on top-right of the cart button */
.sd-cart-plus{
  position:absolute;
  top:-6px;right:-6px;
  width:20px;height:20px;
  background:var(--L);color:var(--N4);
  border-radius:50%;
  font-family:var(--fb);font-size:14px;font-weight:700;line-height:20px;
  text-align:center;
  display:block;
  border:2px solid #fff;
  transition:all .25s;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.sd-product-cart-btn:hover .sd-cart-plus{
  background:var(--N4);color:var(--L);border-color:var(--L);
  transform:scale(1.1);
}
.sd-product-cart-btn.added{
  background:#0a8a4a;color:#fff;
}
.sd-product-cart-btn.added .sd-cart-plus{display:none;}
.sd-product-cart-btn.loading{
  opacity:.7;pointer-events:none;
}
/* Disabled state for out-of-stock — uses a wider rect */
.sd-product-cart-btn.sd-cart-disabled{
  background:#e2e2dc;color:var(--MUT);cursor:not-allowed;
  width:auto;padding:0 18px;height:40px;
  border-radius:4px;font-size:10px;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;
}
/* WC's "View Cart" link that appears after add */
.added_to_cart{
  display:flex;align-items:center;justify-content:center;
  font-family:var(--fb);font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--N) !important;background:transparent;
  padding:8px 0 0;margin:0;
  text-decoration:underline;
}

/* ═══ PAGINATION ═══════════════════════════════════════ */
.shop-pagination{
  display:flex;justify-content:center;margin-top:32px;
}
.shop-pagination ul.page-numbers,
.shop-pagination .page-numbers{
  display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:0;
}
.shop-pagination .page-numbers li{margin:0;}
.shop-pagination .page-numbers a,
.shop-pagination .page-numbers span{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-width:40px;height:40px;padding:0 14px;
  font-family:var(--fb);font-size:12px;font-weight:600;
  background:#fff;border:1px solid var(--BD);
  color:var(--INK);text-decoration:none;border-radius:4px;
  transition:all .15s;
}
.shop-pagination .page-numbers a:hover{
  background:var(--N4);color:#fff;border-color:var(--N4);
}
.shop-pagination .page-numbers .current{
  background:var(--N4);color:#fff;border-color:var(--N4);
}
.shop-pagination .page-numbers svg{
  width:11px;height:11px;stroke:currentColor;stroke-width:2.5;fill:none;stroke-linecap:round;
}
.shop-pagination .page-numbers .dots{
  border:none;background:transparent;
}

/* ═══ EMPTY STATE ══════════════════════════════════════ */
.shop-empty{
  text-align:center;padding:72px 32px;
  display:flex;flex-direction:column;align-items:center;gap:16px;
}
.shop-empty-icon{
  width:72px;height:72px;border-radius:50%;
  background:#f7f7f5;border:1px solid var(--BD);
  display:flex;align-items:center;justify-content:center;
  color:var(--MUT);
}
.shop-empty-icon svg{width:30px;height:30px;}
.shop-empty-t{
  font-family:var(--fh);font-size:1.5rem;letter-spacing:.02em;text-transform:uppercase;
  color:var(--INK);margin:0;
}
.shop-empty-d{
  font-family:var(--fb);font-size:14px;color:var(--MUT);max-width:380px;margin:0;line-height:1.6;
}

/* ═══ FILTER PANEL — slide from RIGHT ═════════════════ */
.shop-filter-overlay{
  position:fixed;inset:0;background:rgba(7,8,28,.7);
  z-index:980;opacity:0;visibility:hidden;
  transition:opacity .3s,visibility 0s linear .3s;
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
.shop-filter-overlay.open{opacity:1;visibility:visible;transition:opacity .3s,visibility 0s linear 0s;}

.shop-filter-panel{
  position:fixed;top:0;right:0;bottom:0;width:min(420px,100vw);
  background:#fff;z-index:990;
  transform:translateX(102%);
  transition:transform .4s var(--e);
  display:flex;flex-direction:column;
  box-shadow:-4px 0 40px rgba(0,0,0,.18);
}
.shop-filter-panel.open{transform:translateX(0);}

.shop-filter-head{
  padding:20px 24px;background:var(--N4);color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  flex-shrink:0;
}
.shop-filter-head-t{
  font-family:var(--fh);font-size:1.2rem;letter-spacing:.03em;text-transform:uppercase;line-height:1;
  color:#fff;
}
.shop-filter-head-s{
  font-family:var(--fb);font-size:11px;font-weight:500;color:rgba(255,255,255,.55);margin-top:4px;letter-spacing:.06em;
}
.shop-filter-close{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.08);border:none;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s var(--e);flex-shrink:0;
}
.shop-filter-close:hover{background:var(--L);color:var(--N4);transform:rotate(90deg);}
.shop-filter-close svg{width:14px;height:14px;stroke:currentColor;stroke-width:2.5;fill:none;stroke-linecap:round;}

.shop-filter-body{
  flex:1;overflow-y:auto;padding:8px 0 0;
  -webkit-overflow-scrolling:touch;
}

.shop-filter-group{
  border-bottom:1px solid var(--BD);
  padding:0;
}
.shop-filter-group summary{
  cursor:pointer;list-style:none;
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 24px;
  font-family:var(--fb);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--INK);
  user-select:none;
}
.shop-filter-group summary::-webkit-details-marker{display:none;}
.shop-filter-group summary svg{
  width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;
  transition:transform .2s;
}
.shop-filter-group[open] summary svg{transform:rotate(180deg);}

.shop-filter-options{
  padding:0 24px 18px;
  display:flex;flex-direction:column;gap:4px;
}

.shop-filter-checkbox{
  display:flex;align-items:center;gap:10px;
  padding:8px 0;cursor:pointer;
  font-family:var(--fb);font-size:13px;color:var(--INK);
  position:relative;
}
.shop-filter-checkbox input{
  position:absolute;opacity:0;pointer-events:none;
}
.shop-filter-checkbox-box{
  width:18px;height:18px;flex-shrink:0;
  border:1.5px solid var(--BD);border-radius:3px;
  background:#fff;
  position:relative;transition:all .15s;
}
.shop-filter-checkbox input:checked + .shop-filter-checkbox-box{
  background:var(--N);border-color:var(--N);
}
.shop-filter-checkbox input:checked + .shop-filter-checkbox-box::after{
  content:'';position:absolute;
  top:3px;left:6px;width:4px;height:8px;
  border-right:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(45deg);
}
.shop-filter-checkbox-label{flex:1;}
.shop-filter-checkbox-count{
  font-size:11px;color:var(--MUT);font-weight:500;
}
.shop-filter-checkbox:hover .shop-filter-checkbox-box{border-color:var(--N);}

.shop-filter-price{
  padding-top:8px;
}
.shop-price-inputs{
  display:flex;align-items:center;gap:8px;
}
.shop-price-inputs input{
  flex:1;width:100%;
  font-family:var(--fb);font-size:13px;
  padding:10px 12px;border:1px solid var(--BD);border-radius:4px;
  color:var(--INK);background:#fff;
}
.shop-price-inputs input:focus{outline:none;border-color:var(--N);}
.shop-price-sep{color:var(--MUT);font-size:14px;}

.shop-filter-actions{
  padding:20px 24px;
  background:#fff;
  border-top:1px solid var(--BD);
  position:sticky;bottom:0;
  display:flex;flex-direction:column;gap:10px;
}
.shop-filter-actions .btn{width:100%;}
.shop-filter-clear{
  text-align:center;
  font-family:var(--fb);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--MUT);text-decoration:underline;
}
.shop-filter-clear:hover{color:var(--N);}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═════════════════════════════════════════════════════════ */
@media(max-width:1100px){
  .shop-cats-grid{grid-template-columns:repeat(3,1fr);gap:14px;}
  .shop-grid,ul.products{grid-template-columns:repeat(2,1fr);gap:16px;}
  .shop-hero-title-row{grid-template-columns:1fr;align-items:start;}
  .shop-hero-count{text-align:left;}
}

@media(max-width:768px){
  .shop-hero{padding:64px 0 40px;}
  .shop-hero.has-image{padding:80px 0 56px;}
  .shop-cats{padding:48px 0 32px;}
  .shop-cats-head{margin-bottom:24px;}
  .shop-cats-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .shop-cat-tile{aspect-ratio:1/1;}
  .shop-cat-content{padding:14px;}
  .shop-cat-t{font-size:1rem;}
  .shop-cat-meta{font-size:10px;}
  .shop-cat-arrow{top:12px;right:12px;width:30px;height:30px;}

  .shop-grid-wrap{padding:32px 0 64px;}
  .shop-toolbar{
    flex-wrap:wrap;gap:12px;padding-bottom:16px;margin-bottom:20px;
  }
  .shop-toolbar-meta{order:3;flex-basis:100%;text-align:left;font-size:11px;}
  .shop-filter-btn{flex:1;justify-content:center;}
  .shop-sort{flex:1;}
  .shop-sort .woocommerce-ordering,
  .shop-sort select.orderby{width:100%;}
  .shop-sort-label{display:none;}

  .shop-grid,ul.products{grid-template-columns:repeat(2,1fr);gap:10px;}
  .sd-product-body{padding:12px 14px 8px;}
  .sd-product-title{font-size:14.5px;min-height:2.6em;}
  .sd-product-foot{padding:0 14px 14px;gap:8px;}
  .sd-product-qty{height:46px;}
  .sd-qty-btn{flex:0 0 32px;font-size:16px;}
  .sd-qty-input{font-size:13px;}
  .sd-product-cart-btn{height:46px;}
  .sd-product-cart-btn svg{width:18px;height:18px;}
  .sd-cart-plus{width:18px;height:18px;font-size:13px;line-height:18px;top:-5px;right:-5px;}
  .sd-product-price{font-size:1.15rem;}
}

@media(max-width:480px){
  .shop-grid,ul.products{grid-template-columns:repeat(2,1fr);gap:10px;}
  .sd-product-title{font-size:13.5px;}
  .sd-product-foot{gap:8px;padding:0 12px 12px;}
  .sd-product-qty{height:42px;}
  .sd-qty-btn{flex:0 0 28px;font-size:14px;}
  .sd-qty-input{font-size:12px;}
  .sd-product-cart-btn{height:42px;}
  .sd-product-cart-btn svg{width:16px;height:16px;}
  .sd-cart-plus{width:16px;height:16px;font-size:12px;line-height:16px;top:-5px;right:-5px;}
}

/* ═══════════════════════════════════════════════════════
   DESKTOP SIDEBAR LAYOUT — sidebar always visible on desktop
═════════════════════════════════════════════════════════ */
.shop-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
}

@media(min-width:1101px){
  .shop-layout{
    grid-template-columns:280px 1fr;
    gap:32px;
    align-items:start;
  }
  .shop-sidebar{
    position:sticky;top:84px;
    background:#fff;
    border:1px solid var(--BD);
    border-radius:8px;
    overflow:hidden;
    align-self:start;
    max-height:calc(100vh - 100px);
    overflow-y:auto;
    /* Custom scrollbar */
    scrollbar-width:thin;
    scrollbar-color:#d8d8d2 transparent;
  }
  .shop-sidebar::-webkit-scrollbar{width:5px;}
  .shop-sidebar::-webkit-scrollbar-thumb{background:#d8d8d2;border-radius:3px;}

  /* Desktop sidebar disables the slide-in drawer */
  .shop-filter-overlay,
  .shop-filter-panel{display:none;}

  /* Hide the "Filters" button on the toolbar — sidebar is always visible */
  .shop-filter-btn{display:none;}

  /* Inside sidebar, the filter form fills it nicely */
  .shop-sidebar .shop-filter-body{
    padding:0;
    overflow:visible;
  }

  /* Sidebar header */
  .shop-sidebar-head{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:16px 20px;
    background:var(--N4);color:#fff;
    border-bottom:1px solid var(--BD);
  }
  .shop-sidebar-t{
    margin:0;
    font-family:var(--fh);font-size:1rem;letter-spacing:.04em;text-transform:uppercase;
    color:#fff;line-height:1;
  }
  .shop-sidebar-clear{
    font-family:var(--fb);font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
    color:rgba(255,255,255,.6);text-decoration:underline;
    transition:color .15s;
  }
  .shop-sidebar-clear:hover{color:var(--L);}

  /* Filter groups inside sidebar */
  .shop-sidebar .shop-filter-group{border-bottom:1px solid var(--BD);}
  .shop-sidebar .shop-filter-group:last-of-type{border-bottom:1px solid var(--BD);}
  .shop-sidebar .shop-filter-group summary{
    padding:14px 20px;
    font-size:10.5px;
  }
  .shop-sidebar .shop-filter-options{padding:0 20px 14px;}
  .shop-sidebar .shop-filter-checkbox{padding:5px 0;font-size:12.5px;}
  .shop-sidebar .shop-filter-actions{
    padding:14px 20px;
    background:#fafafa;
    border-top:1px solid var(--BD);
    border-bottom:none;
    position:sticky;bottom:0;
  }
  .shop-sidebar .shop-filter-actions .btn{
    width:100%;font-size:11px;padding:11px 16px;
  }

  /* Hide the "Clear all" link in sidebar (shown in header instead) */
  .shop-sidebar .shop-filter-actions .shop-filter-clear{display:none;}
}

/* Below desktop breakpoint — single column, drawer behavior */
@media(max-width:1100px){
  .shop-sidebar{display:none;}
  .shop-layout{display:block;}
}
