/* ==========================================================================
   Hizjaab — Shop / Category listing
   Shared chrome and cards come from components.css.
   ========================================================================== */

.shop-band{
  background:var(--surface-base);
  transition:background-color .25s ease;
  padding-bottom:8px;
}

/* ---------- page head ---------- */
.shop-head{
  display:flex;justify-content:space-between;align-items:flex-end;gap:40px;flex-wrap:wrap;
}
.shop-head__stats{
  display:flex;gap:36px;padding-bottom:6px;
}
.shop-head__stat .n{
  font-family:var(--font-display);font-size:30px;color:var(--text-on-base-heading);line-height:1;
}
.shop-head__stat .l{
  font-size:11px;letter-spacing:var(--tracking-wider);text-transform:uppercase;
  color:var(--text-on-base-muted);margin-top:8px;
}
@media (max-width:700px){
  .shop-head__stats{gap:24px}
  .shop-head__stat .n{font-size:24px}
}

/* ---------- toolbar ---------- */
.shop-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  padding:22px 0;
  border-top:1px solid var(--hairline-on-base);
  border-bottom:1px solid var(--hairline-on-base);
}
.shop-toolbar .chip-row{margin-bottom:0;flex:1;min-width:240px}
.toolbar-right{display:flex;align-items:center;gap:12px}

.select-wrap{position:relative;display:inline-flex;align-items:center}
.select-wrap svg{
  position:absolute;right:14px;width:14px;height:14px;pointer-events:none;color:var(--text-on-base-muted);
}
.sort-select{
  appearance:none;-webkit-appearance:none;
  font-family:var(--font-sans);font-size:13px;
  color:var(--text-on-base);
  background:var(--pill-bg);
  border:1px solid var(--pill-border);
  border-radius:var(--radius-pill);
  padding:12px 38px 12px 18px;
  cursor:pointer;
}
.sort-select option{background:var(--surface-inverse-card);color:var(--text-on-base)}

.view-toggle{
  display:flex;gap:4px;padding:4px;
  background:var(--pill-bg);border:1px solid var(--pill-border);border-radius:var(--radius-pill);
}
.view-toggle button{
  width:34px;height:34px;border-radius:50%;border:none;background:transparent;cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--text-on-base-muted);
}
.view-toggle button svg{width:15px;height:15px}
.view-toggle button.is-active{background:var(--pill-active-bg);color:var(--pill-active-text)}
@media (max-width:820px){.view-toggle{display:none}}

.filter-open-btn{display:none}
@media (max-width:960px){
  .filter-open-btn{
    display:inline-flex;align-items:center;gap:8px;
    font-family:var(--font-sans);font-size:12px;letter-spacing:var(--tracking-wide);text-transform:uppercase;
    padding:12px 22px;border-radius:var(--radius-pill);
    background:var(--pill-active-bg);color:var(--pill-active-text);border:none;cursor:pointer;
  }
  .filter-open-btn svg{width:14px;height:14px}
}

/* ---------- layout ---------- */
.shop-body{
  background:var(--surface-inverse);
  transition:background-color .25s ease;
  padding:40px 0 96px;
}
.shop-layout{
  display:grid;grid-template-columns:268px 1fr;gap:44px;align-items:start;
}
@media (max-width:960px){
  .shop-layout{grid-template-columns:1fr;gap:0}
}
/* A sticky rail taller than the viewport would strand its lower filters,
   so it scrolls internally on desktop. */
@media (min-width:961px){
  .filter-rail{max-height:calc(100vh - 48px);overflow-y:auto;scrollbar-width:thin}
}

/* ---------- filter rail ---------- */
.filter-rail{
  position:sticky;top:24px;
  background:var(--surface-inverse-card);
  border:1px solid var(--surface-inverse-card-border);
  border-radius:25px;
  padding:24px 22px;
  transition:background-color .25s ease,border-color .25s ease;
}
.filter-rail__head{
  display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;
}
.filter-rail__head h2{
  font-family:var(--font-display);font-size:20px;color:var(--text-on-base-heading);margin:0;
}
.filter-clear{
  font-size:11px;letter-spacing:var(--tracking-wide);text-transform:uppercase;
  background:none;border:none;color:var(--taupe-400);cursor:pointer;padding:0;
}
.filter-clear:hover{color:var(--text-on-base)}
.filter-close{display:none}

.filter-group{border-top:1px solid var(--hairline-on-base);padding:18px 0 4px}
.filter-group:first-of-type{border-top:none}
.filter-group__head{
  width:100%;display:flex;justify-content:space-between;align-items:center;
  background:none;border:none;padding:0 0 14px;cursor:pointer;
  font-family:var(--font-sans);font-size:11px;letter-spacing:var(--tracking-wider);
  text-transform:uppercase;color:var(--text-on-base-muted);
}
.filter-group__head svg{width:14px;height:14px;transition:transform .2s ease}
.filter-group.is-collapsed .filter-group__head svg{transform:rotate(-90deg)}
.filter-group.is-collapsed .filter-group__body{display:none}
.filter-group__body{padding-bottom:16px}

.filter-option{
  display:flex;align-items:center;gap:10px;
  font-size:13px;color:var(--text-on-base);
  padding:7px 0;cursor:pointer;
}
.filter-option input{position:absolute;opacity:0;pointer-events:none}
.filter-option .box{
  width:17px;height:17px;border-radius:var(--radius-sm);flex-shrink:0;
  border:1px solid var(--surface-inverse-control-border);
  display:flex;align-items:center;justify-content:center;
  transition:background-color .15s ease,border-color .15s ease;
}
.filter-option .box svg{width:11px;height:11px;color:var(--pill-active-text);opacity:0}
.filter-option input[type="radio"] + .box{border-radius:50%}
.filter-option input:checked + .box{background:var(--pill-active-bg);border-color:var(--pill-active-bg)}
.filter-option input:checked + .box svg{opacity:1}
.filter-option .count{margin-left:auto;font-size:11px;color:var(--text-on-base-muted)}
.filter-option:hover .label{color:var(--text-on-base-heading)}

/* colour swatches and size pills live in components.css — the product page
   reuses them for its variant selectors. */

/* price */
.price-readout{
  display:flex;justify-content:space-between;font-size:13px;color:var(--text-on-base);margin-bottom:14px;
}
.price-readout span:last-child{color:var(--taupe-400)}
.price-slider{
  -webkit-appearance:none;appearance:none;width:100%;height:3px;border-radius:var(--radius-pill);
  background:var(--surface-inverse-control-border);outline:none;cursor:pointer;
}
.price-slider::-webkit-slider-thumb{
  -webkit-appearance:none;width:16px;height:16px;border-radius:50%;
  background:var(--taupe-400);border:2px solid var(--surface-inverse-card);cursor:pointer;
}
.price-slider::-moz-range-thumb{
  width:16px;height:16px;border-radius:50%;
  background:var(--taupe-400);border:2px solid var(--surface-inverse-card);cursor:pointer;
}

/* Toggle switch is shared — components.css. */

/* rail promo */
.rail-promo{
  margin-top:22px;border-radius:20px;overflow:hidden;position:relative;
}
.rail-promo .img-slot{height:190px}
.rail-promo__copy{
  position:absolute;inset:auto 0 0 0;padding:16px 18px;
  background:linear-gradient(180deg,rgba(24,6,20,0),rgba(36,26,31,.92));
}
.rail-promo__copy h4{font-family:var(--font-display);font-size:17px;color:#fff;margin:0}
.rail-promo__copy p{font-size:11px;color:var(--cream-200);margin:4px 0 0}

/* ---------- results ---------- */
.results-bar{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  margin-bottom:22px;
}
.results-count{font-size:13px;color:var(--text-on-base-muted)}
.results-count strong{color:var(--text-on-base-heading);font-weight:600}
.active-filters{display:flex;gap:8px;flex-wrap:wrap}
.filter-pill{
  display:inline-flex;align-items:center;gap:7px;
  font-size:12px;padding:7px 14px;border-radius:var(--radius-pill);
  background:var(--pill-bg);border:1px solid var(--pill-border);color:var(--text-on-base);
  cursor:pointer;
}
.filter-pill svg{width:12px;height:12px;opacity:.7}
.filter-pill:hover{border-color:var(--taupe-400)}

.product-grid--listing{grid-template-columns:repeat(3,1fr)}
.product-grid--listing .img-slot{height:330px}
@media (max-width:1180px){
  .product-grid--listing{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .product-grid--listing{grid-template-columns:1fr}
}
/* "wide" view toggle — two-up cards with taller media */
.product-grid--wide{grid-template-columns:repeat(2,1fr)}
.product-grid--wide .img-slot{height:460px}

.shop-empty{
  border:1px dashed var(--surface-inverse-control-border);
  border-radius:25px;padding:72px 32px;text-align:center;
}
.shop-empty svg{width:34px;height:34px;color:var(--text-on-base-muted);margin-bottom:18px}
.shop-empty h3{font-family:var(--font-display);font-size:24px;color:var(--text-on-base-heading);margin:0 0 8px}
.shop-empty p{font-size:14px;color:var(--text-on-base-muted);margin:0 0 24px}

.load-more-wrap{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:48px}
.load-more-progress{font-size:12px;color:var(--text-on-base-muted)}
.load-more-track{width:180px;height:2px;background:var(--surface-inverse-control-border);border-radius:var(--radius-pill)}
.load-more-track span{display:block;height:100%;background:var(--taupe-400);border-radius:var(--radius-pill);transition:width .3s ease}

/* ---------- sizing help band ---------- */
.size-help{background:var(--cream-100);padding:72px 0}
.size-help .container{display:grid;grid-template-columns:1fr 1.1fr;gap:56px;align-items:center}
@media (max-width:900px){.size-help .container{grid-template-columns:1fr;gap:32px}}
.size-help__eyebrow{
  font-size:11px;letter-spacing:var(--tracking-wider);text-transform:uppercase;
  color:var(--text-muted);margin-bottom:14px;
}
.size-help h2{font-family:var(--font-display);font-size:34px;color:var(--text-primary);margin:0 0 12px}
.size-help p{font-size:14px;color:var(--text-muted);line-height:1.6;margin:0 0 24px;max-width:420px}
.size-help__chart{background:#fff;border:1px solid var(--border-subtle);border-radius:20px;padding:24px}
.size-help__chart .size-chart table{border-radius:12px}
.size-help__note{font-size:12px;color:var(--text-muted);margin:16px 0 0;text-align:center}

/* ---------- mobile filter drawer ---------- */
.filter-scrim{
  position:fixed;inset:0;background:rgba(20,12,16,.55);
  opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:40;
}
body.filters-open .filter-scrim{opacity:1;pointer-events:auto}
@media (max-width:960px){
  .filter-rail{
    position:fixed;top:0;left:0;bottom:0;width:min(340px,88vw);
    border-radius:0 25px 25px 0;overflow-y:auto;z-index:50;
    transform:translateX(-102%);transition:transform .28s ease;
    margin-bottom:0;
  }
  body.filters-open .filter-rail{transform:translateX(0)}
  .filter-close{
    display:flex;align-items:center;justify-content:center;
    width:32px;height:32px;border-radius:50%;
    background:var(--pill-bg);border:1px solid var(--pill-border);
    color:var(--text-on-base);cursor:pointer;
  }
  .filter-close svg{width:14px;height:14px}
  .filter-rail__head .filter-clear{margin-left:auto;margin-right:12px}
}
