/* =====================================================================
   EthnicHaat – Category / browse page (loaded after category.css)
   ===================================================================== */
:root{
  --eh-maroon:#8f0c2d; --eh-maroon-deep:#5e0419; --eh-gold:#b8843c;
  --eh-line:#ece3d6; --eh-ink:#231815; --eh-text:#4a3b33; --eh-muted:#8a7b70;
  --eh-ui:'Jost',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --eh-head:'Cormorant Garamond',Georgia,serif;
  --ks-green:#8f0c2d; --ks-green-dark:#6f061f;
}
body.eh-browse{background:#fff;font-family:var(--eh-ui);color:var(--eh-ink)}
body.eh-browse .search-container{max-width:1240px;padding:20px 20px 48px;border-radius:0;background:transparent;font-family:var(--eh-ui)}
body.eh-browse .search-container *:not(i){font-family:inherit}

/* ---------- heading + breadcrumb ---------- */
body.eh-browse .search-header{display:block !important;margin:0 0 18px}
.eh-cat-hero{padding:0;border:0;background:none}
.eh-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px;padding:0;list-style:none;font-size:13.5px;color:var(--eh-muted)}
.eh-crumbs a{color:var(--eh-muted);text-decoration:none}
.eh-crumbs a:hover{color:var(--eh-maroon)}
.eh-crumbs i{font-size:11px;opacity:.7}
.eh-crumbs li:last-child span{color:var(--eh-ink);font-weight:500}
body.eh-browse .search-header h1{margin:0 !important;color:var(--eh-ink);font:600 30px/1.2 var(--eh-ui) !important;letter-spacing:-.01em}

/* ---------- controls ---------- */
body.eh-browse .ks-controls-row{margin-top:14px;padding:10px 0;background:#fff;border-top:1px solid var(--eh-line);border-bottom:1px solid var(--eh-line)}
body.eh-browse .ks-filter-toggle-btn{
  display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 18px;
  border:1px solid #dcd0c0;border-radius:10px;background:#fff;color:var(--eh-ink);
  font:500 15px/1 var(--eh-ui);cursor:pointer;box-shadow:none;transition:border-color .18s,color .18s;
}
body.eh-browse .ks-filter-toggle-btn:hover{border-color:var(--eh-maroon);color:var(--eh-maroon)}
body.eh-browse .ks-filter-toggle-btn i{color:var(--eh-maroon)}
body.eh-browse .sort-select{
  height:40px;padding:0 38px 0 14px;border:1px solid #dcd0c0;border-radius:10px;
  font:500 15px/1 var(--eh-ui);color:var(--eh-ink);cursor:pointer;-webkit-appearance:none;appearance:none;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238f0c2d' stroke-width='1.8'/%3E%3C/svg%3E") right 14px center no-repeat;
}
body.eh-browse .sort-select:focus{border-color:var(--eh-maroon);box-shadow:0 0 0 3px rgba(143,12,45,.10)}

/* ---------- grid ---------- */
body.eh-browse .card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}

/* ---------- card ---------- */
body.eh-browse .eh-pcard{
  position:relative;display:flex;flex-direction:column;min-width:0;
  border:0;border-radius:0;background:#fff;box-shadow:none;overflow:visible;cursor:default;
}
body.eh-browse .eh-pcard:hover{box-shadow:none}
.eh-pcard-media{position:relative;display:block;aspect-ratio:4/5;border-radius:12px;overflow:hidden;background:#f6efe5}
body.eh-browse .eh-pcard-media img{
  display:block;width:100%;height:100% !important;object-fit:cover;object-position:center top;
  border:0;border-radius:0;transition:transform .45s ease;
}
body.eh-browse .eh-pcard:hover .eh-pcard-media img{transform:scale(1.04)}
body.eh-browse .eh-pcard .discount-badge{
  top:10px;left:10px;z-index:2;padding:4px 8px;border-radius:6px;background:var(--eh-maroon);
  color:#fff;font:600 11.5px/1 var(--eh-ui);letter-spacing:.02em;
}
body.eh-browse .eh-pcard [hidden]{display:none !important}
body.eh-browse .eh-pcard .product-card-body{display:flex;flex-direction:column;gap:6px;padding:10px 2px 0;flex:1}
body.eh-browse .eh-pcard .product-title{
  margin:0;color:var(--eh-ink);font:500 15px/1.35 var(--eh-ui);text-decoration:none;
  white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
body.eh-browse .eh-pcard .product-title:hover{color:var(--eh-maroon)}
body.eh-browse .eh-pcard .price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;margin:0;font:600 16.5px/1.3 var(--eh-ui);color:var(--eh-ink)}
body.eh-browse .eh-pcard .price-row s{margin:0;color:#9d9087;font-size:13.5px;font-weight:400}
.eh-off{color:#c2410c;font-size:13.5px;font-weight:600}

/* colour / size chips */
.eh-opt{display:flex;flex-wrap:wrap;gap:6px}
.eh-chip{
  min-width:34px;height:30px;padding:0 10px;border:1px solid #d9cfc2;border-radius:8px;background:#fff;
  color:var(--eh-text);font:500 13px/1 var(--eh-ui);cursor:pointer;transition:border-color .15s,color .15s,background .15s;
}
.eh-chip:hover{border-color:var(--eh-maroon);color:var(--eh-maroon)}
.eh-chip.is-on{border-color:var(--eh-maroon);background:#fff4f6;color:var(--eh-maroon);box-shadow:inset 0 0 0 1px var(--eh-maroon)}
.eh-chip-size{min-width:34px;padding:0 8px}
.eh-chip.is-out{color:#b9aea5;text-decoration:line-through;border-style:dashed}

/* add to cart */
.eh-cart-slot{display:flex;gap:8px;margin-top:auto;padding-top:4px}
.eh-add{
  flex:1;height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1.5px solid var(--eh-maroon);border-radius:10px;background:#fff;color:var(--eh-maroon);
  font:600 14.5px/1 var(--eh-ui);cursor:pointer;transition:background .15s,color .15s;
}
.eh-add:hover{background:var(--eh-maroon);color:#fff}
.eh-add:disabled{border-color:#ddd;color:#9e9e9e;background:#f5f5f5;cursor:not-allowed}
.eh-step{flex:1;height:40px;display:flex;align-items:center;justify-content:space-between;border-radius:10px;background:var(--eh-maroon);color:#fff}
.eh-step span{font:600 14px/1 var(--eh-ui)}
.eh-step button{width:40px;height:40px;border:0;background:transparent;color:#fff;cursor:pointer;font-size:13px}
.eh-go-cart{width:40px;height:40px;flex:0 0 40px;border:1.5px solid var(--eh-maroon);border-radius:10px;background:#fff;color:var(--eh-maroon);cursor:pointer}

body.eh-browse .results-info{padding:40px 20px;border:1px dashed #e3cfae;border-radius:14px;background:#fffaf2;text-align:center;font-size:16px;color:var(--eh-text)}
body.eh-browse .category-description{margin-top:40px;padding:22px 24px;border:1px solid var(--eh-line);border-radius:14px;background:#fffaf4;color:var(--eh-text);font-size:15.5px;line-height:1.75}

/* ---------- filter panel ---------- */
body.eh-browse .ks-filter-panel{font-family:var(--eh-ui)}
body.eh-browse .ks-filter-title{font:600 20px/1.2 var(--eh-ui);color:var(--eh-ink)}
body.eh-browse .ks-filter-group h4{font:600 13px/1.2 var(--eh-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--eh-gold)}
body.eh-browse .ks-checklist label{font-size:15px;color:var(--eh-text)}
body.eh-browse .ks-checklist input{accent-color:var(--eh-maroon)}
body.eh-browse .ks-btn-primary{background:var(--eh-maroon) !important;border-color:var(--eh-maroon) !important;color:#fff !important}
body.eh-browse .ks-btn-ghost{color:var(--eh-maroon) !important;border-color:#e3cfae !important}

/* ---------- responsive ---------- */
@media (max-width:1024px){ body.eh-browse .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:768px){
  body.eh-browse .search-container{padding:12px 12px 32px}
  body.eh-browse .search-header h1{font-size:24px !important}
  body.eh-browse .ks-controls-row{margin-top:10px;padding:8px 0}
  body.eh-browse .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
  .eh-pcard-media{border-radius:10px}
  body.eh-browse .eh-pcard .product-title{font-size:14px}
  body.eh-browse .eh-pcard .price-row{font-size:15.5px}
  body.eh-browse .eh-pcard .price-row s,.eh-off{font-size:12.5px}
  .eh-chip{height:30px;font-size:12.5px;padding:0 8px}
  .eh-add,.eh-step,.eh-step button,.eh-go-cart{height:38px}
  .eh-add{font-size:13.5px;gap:6px}
  .eh-go-cart{width:38px;flex-basis:38px}
  .eh-step button{width:34px}
  .eh-step span{font-size:13px}
}

/* ---------- v3 polish: rating, swatches, card ---------- */
.eh-rating{display:flex;align-items:center;gap:5px;font:500 13px/1 var(--eh-ui);color:var(--eh-text)}
.eh-rating b{font-weight:600;color:var(--eh-ink)}
.eh-rate-cnt{color:var(--eh-muted)}
.eh-stars{--r:100%;position:relative;display:inline-block;font-size:14px;line-height:1;letter-spacing:1px;color:#e2d8ca;white-space:nowrap}
.eh-stars::before{content:"\2605\2605\2605\2605\2605"}
.eh-stars::after{content:"\2605\2605\2605\2605\2605";position:absolute;left:0;top:0;width:var(--r);overflow:hidden;color:#f59e0b}

/* colour swatches (no text) */
.eh-opt[data-group="color"]{gap:8px;align-items:center}
.eh-chip.eh-swatch{
  --sw:#d8cfc4;width:24px;min-width:24px;height:24px;padding:0;border:0;border-radius:50%;
  background:transparent;box-shadow:none;position:relative;
}
.eh-chip.eh-swatch span{
  position:absolute;inset:3px;border-radius:50%;
  background:var(--sw);background-image:var(--sw-img,none);background-size:cover;background-position:center top;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);
}
.eh-chip.eh-swatch:hover{border:0;box-shadow:0 0 0 1px #cbbfb2}
.eh-chip.eh-swatch.is-on{background:transparent;box-shadow:0 0 0 2px var(--eh-maroon)}

/* card polish */
body.eh-browse .eh-pcard{padding:8px;border-radius:16px;transition:box-shadow .25s ease,transform .25s ease}
body.eh-browse .eh-pcard:hover{box-shadow:0 14px 34px rgba(60,20,10,.10);transform:translateY(-2px)}
.eh-pcard-media{border-radius:12px}
.eh-pcard-media::after{content:"";position:absolute;inset:auto 0 0;height:30%;background:linear-gradient(to top,rgba(0,0,0,.10),transparent);pointer-events:none}
body.eh-browse .eh-pcard .eh-pcard-media img{transition:transform .5s ease,opacity .2s ease}
body.eh-browse .eh-pcard .product-card-body{gap:7px;padding:12px 4px 4px}
body.eh-browse .eh-pcard .product-title{font-size:15px;font-weight:500}
body.eh-browse .eh-pcard .price-row{font-size:17px}
.eh-off{color:#1e7a46;font-weight:600}
.eh-chip-size{height:30px;min-width:36px;border-radius:8px}
.eh-add{border-radius:10px}
@media (max-width:768px){
  body.eh-browse .eh-pcard{padding:0}
  body.eh-browse .eh-pcard:hover{box-shadow:none;transform:none}
  .eh-stars{font-size:12.5px}
  .eh-rating{font-size:12.5px}
  body.eh-browse .eh-pcard .price-row{font-size:15.5px}
}

/* ---------- filter drawer (v2) ---------- */
body.eh-browse .eh-filter-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--eh-maroon);color:#fff;font:600 12px/1 var(--eh-ui)}
body.eh-browse .ks-filter-panel{width:380px;left:-400px;background:#fff}
body.eh-browse .ks-filter-panel.show{left:0}
body.eh-browse .ks-filter-head{padding:16px 20px;border-bottom:1px solid var(--eh-line)}
body.eh-browse .ks-filter-title{font:600 20px/1.2 var(--eh-ui);color:var(--eh-ink)}
body.eh-browse .ks-filter-close{width:36px;height:36px;border-radius:50%;background:#f6efe5;color:var(--eh-ink);font-size:16px}
body.eh-browse .ks-filter-body{padding:4px 20px}
.eh-fg{margin:0 !important;padding:14px 0;border-bottom:1px solid var(--eh-line)}
.eh-fg:last-child{border-bottom:0}
.eh-fg > summary{
  display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;
  font:600 13px/1.2 var(--eh-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--eh-ink);
}
.eh-fg > summary::-webkit-details-marker{display:none}
.eh-fg > summary span{flex:1}
.eh-fg > summary em{min-width:20px;height:20px;display:grid;place-items:center;padding:0 6px;border-radius:999px;background:#fff0f3;color:var(--eh-maroon);font:600 11.5px/1 var(--eh-ui);font-style:normal;letter-spacing:0}
.eh-fg > summary::after{content:"\f078";font:900 11px/1 "Font Awesome 6 Free";color:var(--eh-muted);transition:transform .2s}
.eh-fg[open] > summary::after{transform:rotate(180deg)}
.eh-fg > div{margin-top:12px}

.eh-fg-list{display:flex;flex-direction:column;gap:2px;max-height:240px;overflow:auto}
.eh-check{display:flex;align-items:center;gap:10px;padding:7px 2px;cursor:pointer;color:var(--eh-text);font:400 15px/1.3 var(--eh-ui)}
.eh-check input{width:18px;height:18px;margin:0;accent-color:var(--eh-maroon);flex:0 0 18px}
.eh-check:hover span{color:var(--eh-maroon)}

.eh-fg-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
.eh-swatch-opt{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;text-align:center}
.eh-swatch-opt input{position:absolute;opacity:0;pointer-events:none}
.eh-swatch-opt i{
  --sw:#d8cfc4;width:36px;height:36px;border-radius:50%;background:var(--sw);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),0 0 0 3px #fff,0 0 0 4px transparent;transition:box-shadow .15s;position:relative;
}
.eh-swatch-opt input:checked + i{box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),0 0 0 3px #fff,0 0 0 5px var(--eh-maroon)}
.eh-swatch-opt input:checked + i::after{content:"\f00c";position:absolute;inset:0;display:grid;place-items:center;font:900 13px/1 "Font Awesome 6 Free";color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.eh-swatch-opt span{font:400 12.5px/1.2 var(--eh-ui);color:var(--eh-text);word-break:break-word}

.eh-fg-pills{display:flex;flex-wrap:wrap;gap:8px}
.eh-pill{cursor:pointer}
.eh-pill input{position:absolute;opacity:0;pointer-events:none}
.eh-pill span{
  display:inline-grid;place-items:center;min-width:46px;height:38px;padding:0 12px;border:1px solid #d9cfc2;border-radius:10px;
  color:var(--eh-ink);font:500 14px/1 var(--eh-ui);transition:all .15s;
}
.eh-pill:hover span{border-color:var(--eh-maroon)}
.eh-pill input:checked + span{border-color:var(--eh-maroon);background:var(--eh-maroon);color:#fff}

.eh-price-row{display:flex;align-items:flex-end;gap:10px}
.eh-price-row label{flex:1;display:flex;flex-direction:column;gap:4px}
.eh-price-row small{color:var(--eh-muted);font:500 12px/1 var(--eh-ui)}
body.eh-browse .eh-price-row input{height:42px;padding:0 12px;border:1px solid #d9cfc2;border-radius:10px;font:500 15px/1 var(--eh-ui);color:var(--eh-ink);width:100%;box-sizing:border-box}
body.eh-browse .eh-price-row input:focus{outline:none;border-color:var(--eh-maroon);box-shadow:0 0 0 3px rgba(143,12,45,.10)}
.eh-price-dash{padding-bottom:11px;color:var(--eh-muted)}

body.eh-browse .ks-filter-footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--eh-line);box-shadow:0 -10px 20px rgba(60,20,10,.06)}
body.eh-browse .ks-btn{height:46px;border-radius:12px;font:600 15px/1 var(--eh-ui)}
@media (max-width:768px){
  body.eh-browse .ks-filter-panel{width:92vw;left:-94vw}
  body.eh-browse .ks-filter-panel.show{left:0}
  .eh-fg-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}
}
body.eh-browse.has-bottom-nav .ks-filter-footer{bottom:0}   /* drawer sits above the bottom nav, so no lift needed */

/* ---------- colour filter: list with dot + count ---------- */
.eh-color-filter{display:flex;flex-direction:column;gap:0}
.eh-color-filter.is-collapsed .is-extra{display:none}
.eh-color-filter [hidden]{display:none !important}
.eh-color-search{position:relative;margin-bottom:8px}
.eh-color-search i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--eh-muted);font-size:13px}
body.eh-browse .eh-color-search input{width:100%;height:38px;padding:0 12px 0 34px;border:1px solid #e3d6c2;border-radius:10px;font:400 14px/1 var(--eh-ui);color:var(--eh-ink);box-sizing:border-box;background:#fffdf9}
body.eh-browse .eh-color-search input:focus{outline:none;border-color:var(--eh-maroon)}
.eh-color-row{gap:10px}
.eh-color-row .eh-dot{--sw:#d8cfc4;width:16px;height:16px;flex:0 0 16px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 1px rgba(0,0,0,.10)}
.eh-color-row .eh-dot.is-light{box-shadow:inset 0 0 0 1px #cfc6ba}
.eh-color-row .eh-dot.is-multi{background:conic-gradient(#e53935,#fb8c00,#fdd835,#43a047,#1e88e5,#8e24aa,#e53935)}
.eh-color-row span{flex:0 1 auto}
.eh-color-row small{color:#9d9087;font:400 13px/1 var(--eh-ui)}
.eh-more{align-self:flex-start;margin-top:6px;padding:4px 2px;border:0;background:none;color:var(--eh-maroon);font:500 14.5px/1 var(--eh-ui);cursor:pointer}
.eh-more:hover{text-decoration:underline}

/* ---------- v4: compact card that fits one laptop screen + rating badge on photo ---------- */
.eh-pcard-media{aspect-ratio:10/11}
.eh-rate-badge{
  position:absolute;left:10px;bottom:10px;z-index:2;display:inline-flex;align-items:center;gap:4px;
  padding:4px 8px;border-radius:6px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(0,0,0,.12);
  color:#231815;font:600 12.5px/1 var(--eh-ui);backdrop-filter:blur(4px);
}
.eh-rate-badge i{color:#1e7a46;font-size:10px}
.eh-rate-badge em{font-style:normal;font-weight:500;color:#6b5a50;padding-left:6px;margin-left:2px;border-left:1px solid #d8cdc1}
body.eh-browse .eh-pcard .product-card-body{gap:6px;padding:10px 2px 2px}
body.eh-browse .eh-pcard .product-title{-webkit-line-clamp:1;font-size:15px}
body.eh-browse .eh-pcard .price-row{font-size:16.5px}
.eh-opts-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:0}
.eh-opts-row:empty{display:none}
.eh-opts-row .eh-opt{gap:5px}
.eh-opts-row .eh-opt[data-group="color"]{gap:6px}
.eh-opts-row .eh-opt[data-group="color"] + .eh-opt[data-group="size"]{padding-left:12px;border-left:1px solid var(--eh-line)}
.eh-chip.eh-swatch{width:22px;min-width:22px;height:22px}
.eh-chip.eh-chip-size{height:26px;min-width:30px;padding:0 7px;border-radius:7px;font-size:12.5px}
.eh-cart-slot{padding-top:2px}
.eh-add,.eh-step,.eh-step button,.eh-go-cart{height:38px}
.eh-go-cart{width:38px;flex-basis:38px}
body.eh-browse .card-grid{gap:22px 16px}
body.eh-browse .eh-pcard{padding:6px}
@media (max-width:768px){
  .eh-pcard-media{aspect-ratio:4/5}
  .eh-rate-badge{left:8px;bottom:8px;padding:3px 6px;font-size:11.5px}
  .eh-opts-row .eh-opt[data-group="color"] + .eh-opt[data-group="size"]{padding-left:0;border-left:0}
  .eh-opts-row{gap:6px 8px}
  body.eh-browse .eh-pcard{padding:0}
}

/* ---------- v5: many colours / sizes without growing the card ---------- */
.eh-opts-row{flex-wrap:nowrap;min-width:0}
.eh-opts-row .eh-opt{flex-wrap:nowrap;min-width:0}
.eh-opts-row.is-stacked{flex-direction:column;align-items:stretch;gap:7px}
.eh-opts-row.is-stacked .eh-opt[data-group="color"] + .eh-opt[data-group="size"]{padding-left:0;border-left:0}
/* colours: 5 dots + "+N" */
.eh-opt[data-group="color"] .eh-swatch.is-extra{display:none}
.eh-opt[data-group="color"].is-open{flex-wrap:wrap}
.eh-opt[data-group="color"].is-open .eh-swatch.is-extra{display:inline-block}
.eh-sw-more{
  height:22px;min-width:26px;padding:0 6px;border:1px solid #d9cfc2;border-radius:999px;background:#fff;
  color:var(--eh-text);font:600 11.5px/1 var(--eh-ui);cursor:pointer;flex:0 0 auto;
}
.eh-sw-more:hover{border-color:var(--eh-maroon);color:var(--eh-maroon)}
/* sizes: always one line, swipe sideways when there are many */
.eh-opt[data-group="size"]{
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:1px;
  -webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);
}
.eh-opt[data-group="size"]::-webkit-scrollbar{display:none}
.eh-opt[data-group="size"] .eh-chip{flex:0 0 auto}
/* no fade when the sizes fit */
.eh-opts-row:not(.is-stacked) .eh-opt[data-group="size"],
.eh-opt[data-group="size"].is-fit{-webkit-mask-image:none;mask-image:none}

/* ---------- v6: mobile – colour & size on separate rows, clean Filter | Sort bar ---------- */
@media (max-width:768px){
  .eh-opts-row,.eh-opts-row.is-stacked{flex-direction:column;align-items:flex-start;gap:8px}
  .eh-opts-row .eh-opt[data-group="color"] + .eh-opt[data-group="size"]{padding-left:0;border-left:0}
  .eh-opts-row .eh-opt[data-group="size"]{max-width:100%}

  body.eh-browse .ks-controls-row,
  body.eh-browse .ks-controls-row.is-fixed{
    display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;gap:10px !important;
    margin:10px -12px 0 !important;padding:10px 12px !important;border:0 !important;border-bottom:1px solid var(--eh-line) !important;
    background:#fff !important;box-shadow:0 8px 14px -12px rgba(60,20,10,.25) !important;box-sizing:border-box;
  }
  body.eh-browse .ks-controls-row .ks-filter-toggle-btn{
    width:100% !important;margin:0 !important;justify-content:center;height:44px !important;
    border-radius:12px !important;font-size:15px !important;
  }
  body.eh-browse .ks-controls-row .sort-form{display:block !important;width:100% !important;margin:0 !important;justify-self:stretch !important}
  body.eh-browse .ks-controls-row .sort-label{display:none}
  body.eh-browse .ks-controls-row .sort-select{
    width:100% !important;height:44px !important;border-radius:12px !important;font-size:15px !important;
    padding:0 36px 0 14px !important;text-overflow:ellipsis;
  }
}

/* ---------- v6: all colours in one row that scrolls sideways (no "+N") ---------- */
.eh-opts-row .eh-opt[data-group="color"]{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:3px 2px 4px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.eh-opts-row .eh-opt[data-group="color"]::-webkit-scrollbar{display:none}
.eh-opts-row .eh-opt[data-group="color"] .eh-swatch{flex:0 0 auto;scroll-snap-align:start}
.eh-opts-row .eh-opt[data-group="color"] .eh-swatch.is-extra{display:inline-block}
.eh-opts-row .eh-opt[data-group="color"].is-many{padding-right:18px;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 22px),transparent)}
/* mouse / trackpad screens: a thin scrollbar so colours can be reached without a touch screen */
@media (hover:hover) and (pointer:fine){
  .eh-opts-row .eh-opt[data-group="color"].is-many{scrollbar-width:thin;scrollbar-color:#d9c3a3 transparent;padding-bottom:6px}
  .eh-opts-row .eh-opt[data-group="color"].is-many::-webkit-scrollbar{display:block;height:4px}
  .eh-opts-row .eh-opt[data-group="color"].is-many::-webkit-scrollbar-thumb{background:#d9c3a3;border-radius:4px}
}
