/* =========================================================
   ANTIQUE HOME — SHOP / CATEGORY LISTING
   Loaded after styles.css + sections.css on every category page.
   Mobile-first; desktop rules gated behind (min-width: 1024px).
   ========================================================= */

.shop{
  background: var(--paper);
  color: var(--ink-900);
  min-height: 100vh;
}

/* =========================================================
   TOP UTILITY BAR (desktop only — shipping / currency / lang)
   ========================================================= */

.shop-topbar{
  display:none;
}

@media (min-width: 1024px){
  .shop-topbar{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding: 9px var(--gutter);
    background: var(--ink);
    color: var(--champagne);
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing:.1em;
  }
  .shop-topbar__ship{
    display:flex;
    align-items:center;
    gap:8px;
  }
  .shop-topbar__ship svg{
    width:15px; height:15px;
    fill:none; stroke:currentColor; stroke-width:1.3;
    stroke-linecap:round; stroke-linejoin:round;
  }
  .shop-topbar__right{
    display:flex;
    align-items:center;
    gap:16px;
    opacity:.85;
  }
}

/* =========================================================
   DESKTOP NAV ROW (logo left-of-center layout, inline nav)
   Reuses .header from styles.css but adds an inline nav row
   only visible from 1024px up, positioned above the existing
   mobile-style header via a wrapping bar.
   ========================================================= */

.shop-nav{
  display:none;
}

@media (min-width: 1024px){
  .shop-nav{
    display:flex;
    align-items:center;
    gap:22px;
    padding: 0 var(--gutter);
    font-family: var(--sans);
    font-size:10.5px;
    font-weight:400;
    letter-spacing:.13em;
    text-transform:uppercase;
  }
  .shop-nav a{
    position:relative;
    padding:4px 0;
    color: var(--ink-600);
    transition: color .3s var(--ease);
  }
  .shop-nav a:hover,
  .shop-nav a.is-active{ color: var(--ink-900); }
  .shop-nav a.is-active::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:1px;
    background: var(--gold-deep);
  }
}

/* the shop header sits on the paper surface, not the dark hero —
   override the token colors for this page only */
.shop-header{
  position:relative;
  background: var(--paper);
  color: var(--ink-900);
  border-bottom: 1px solid rgba(43,36,28,.08);
  padding-bottom: 8px;
}
.shop-header .icon-btn{ color: var(--ink-900); opacity:1; animation:none; }
.shop-header .icon-btn svg{ animation:none; filter:none; }
@media (hover:hover){
  .shop-header .icon-btn:hover{ color: var(--gold-deep); }
}
.shop-header .brand__logo{
  filter:
    brightness(0) saturate(100%) invert(9%) sepia(15%)
    saturate(1200%) hue-rotate(2deg) brightness(90%) contrast(94%);
}
.shop-header .brand__shine{ display:none; }
.shop-header .menu-btn__label{ text-shadow:none; }
.shop-header .cart-btn__count{ background: var(--gold-deep); color:#fff; }

/* a noticeably smaller header on the shop pages — this bar's only job
   is quick navigation, the banner below carries the visual weight */
.shop-header{ --logo-w: clamp(96px, 22vw, 118px) !important; --header-top: 14px !important; }
.shop-header .icon-btn{ padding:5px; }
.shop-header .icon-btn svg{ width:17px; height:17px; }
.shop-header .menu-btn__lines{ width:16px; }
.shop-header .menu-btn__lines span + span{ margin-top:4px; }
.shop-header .menu-btn__label{ font-size:9px; }

@media (min-width: 1024px){
  .shop-header{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding-top:12px;
    --logo-w: clamp(120px, 9vw, 150px) !important;
  }
  .shop-header .header{
    padding-top:0;
  }
  .shop-header .menu-btn{ display:none; } /* desktop uses inline nav instead */
}

/* =========================================================
   SHOP HERO — full-bleed banner used only on shop.html (All Products),
   header + promo bar sit on top of the photo, matching the Home hero.
   ========================================================= */

.shop-hero{
  position:relative;
  min-height: 56vh;
  display:flex;
  flex-direction:column;
  color:#fff;
  overflow:hidden;
}

.shop-hero__media{
  position:absolute;
  inset:0;
  z-index:0;
  background: var(--ink-900, #2b241c);
}
.shop-hero__media picture,
.shop-hero__media img{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 42%;
}
.shop-hero__tint{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(20,15,9,.62) 0%, rgba(20,15,9,.38) 42%, rgba(20,15,9,.58) 100%);
}
/* if the placeholder photo files aren't present yet, fall back to a
   warm solid so the page still reads correctly */
.shop-hero--fallback .shop-hero__media{
  background: linear-gradient(160deg, #3c3123, #241d15);
}
.shop-hero--fallback .shop-hero__media img{ display:none; }

.shop-hero .header,
.shop-hero .shop-nav--hero{ position:relative; z-index:2; }
.shop-hero .header{ color:#fff; }
.shop-hero .icon-btn{ color:#fff; }
.shop-hero .brand__logo{ filter: brightness(0) invert(1); }
.shop-hero .cart-btn__count{ background: var(--gold-deep,#B9955B); color:#fff; }

.shop-nav--hero{
  display:none;
}
@media (min-width: 1024px){
  .shop-nav--hero{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:26px;
    padding: 6px var(--gutter) 0;
    font-family: var(--sans);
    font-size:10.5px;
    font-weight:400;
    letter-spacing:.14em;
    text-transform:uppercase;
  }
  .shop-nav--hero a{
    position:relative;
    padding:4px 0;
    color: rgba(255,255,255,.78);
    transition: color .3s var(--ease);
  }
  .shop-nav--hero a:hover,
  .shop-nav--hero a.is-active{ color:#fff; }
  .shop-nav--hero a.is-active::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:1px;
    background: var(--gold-deep,#B9955B);
  }
}

.shop-hero__inner{
  position:relative;
  z-index:2;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 28px var(--gutter) 40px;
}
.shop-hero__inner .crumb{ color: rgba(255,255,255,.8); margin-bottom:14px; }
.shop-hero__inner .crumb a{ color: rgba(255,255,255,.8); }
.shop-hero__inner .crumb a:hover{ color:#fff; }
.shop-hero__inner .crumb__here{ color:#fff; }

.shop-hero__eyebrow{
  margin:0 0 8px;
  font-family: var(--sans);
  font-size:10px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: var(--champagne,#E3D5BC);
}
.shop-hero__title{
  margin:0 0 10px;
  font-family: var(--serif);
  font-weight:500;
  font-size: clamp(38px, 12vw, 56px);
  line-height:1.04;
  color:#fff;
}
.shop-hero__text{
  margin:0;
  max-width:34ch;
  font-family: var(--sans);
  font-size:13px;
  font-weight:300;
  line-height:1.55;
  color: rgba(255,255,255,.86);
}

@media (min-width: 700px){
  .shop-hero{ min-height:60vh; }
  .shop-hero__inner{ padding: 34px clamp(28px,5vw,64px) 52px; }
  .shop-hero__title{ font-size: clamp(52px, 7vw, 74px); }
  .shop-hero__text{ font-size:15px; max-width:40ch; }
}

@media (min-width: 1024px){
  .shop-hero{ min-height:64vh; }
  .shop-hero__inner{ padding-top:10px; }
  .shop-hero__title{ font-size: clamp(60px, 4.4vw, 80px); }
}

/* =========================================================
   CATEGORY ICON RAIL — circular icons under the hero
   ========================================================= */

.catrail{
  background: var(--paper);
  border-bottom: 1px solid rgba(43,36,28,.08);
  padding: 18px 0;
}
.catrail__scroll{
  display:flex;
  gap:22px;
  overflow-x:auto;
  scrollbar-width:none;
  padding: 0 var(--gutter);
  -webkit-overflow-scrolling:touch;
}
.catrail__scroll::-webkit-scrollbar{ display:none; }

.catrail__item{
  flex:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  width:66px;
  text-align:center;
}
.catrail__ico{
  width:60px; height:60px;
  border-radius:50%;
  overflow:hidden;
  background: var(--paper-2);
  border:1px solid rgba(43,36,28,.1);
  display:flex; align-items:center; justify-content:center;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.catrail__ico img{ width:100%; height:100%; object-fit:cover; --cat-zoom: 1; transform: scale(var(--cat-zoom)); }
.catrail__ico--all{ color: var(--ink-600); }
.catrail__ico--all svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.4; }

.catrail__label{
  font-family: var(--sans);
  font-size:10.5px;
  font-weight:400;
  letter-spacing:.02em;
  color: var(--ink-600);
  white-space:nowrap;
}

@media (hover:hover){
  .catrail__item:hover .catrail__ico{ border-color: var(--gold-deep); transform: translateY(-2px); }
  .catrail__item:hover .catrail__label{ color: var(--ink-900); }
}

.catrail__item--active .catrail__ico{ border-color: var(--gold-deep); box-shadow:0 0 0 2px rgba(185,149,91,.18); }
.catrail__item--active .catrail__label{ color: var(--gold-deep); font-weight:500; }

@media (min-width: 700px){
  .catrail{ padding:24px 0; }
  .catrail__scroll{ gap:32px; justify-content:center; }
  .catrail__item{ width:78px; }
  .catrail__ico{ width:72px; height:72px; }
  .catrail__label{ font-size:11.5px; }
}

/* =========================================================
   BREADCRUMB + BANNER
   ========================================================= */

/* split banner — copy on the left, the category photo fully visible
   (never cropped under a scrim) on the right. Same side-by-side
   layout at every width, from phones up. */
.shop-banner{
  position:relative;
  background: var(--paper);
  display:flex;
  flex-direction:row;
  align-items:stretch;
  min-height: 168px;
}

.shop-banner__bg{
  position:relative;
  order:2; /* photo on the right */
  width: 42%;
  flex:none;
  overflow:hidden;
  background: var(--paper-2);
}
.shop-banner__bg img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 38%; /* overridden inline per category once a custom crop is set */
  --cat-zoom: 1;
  transform: scale(var(--cat-zoom));
}
/* no scrim at all — the photo stays fully visible; only a hairline
   edge to separate it from the paper surface */
.shop-banner__bg::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow: inset 0 0 0 1px rgba(43,36,28,.06);
}

.shop-banner__inner{
  position:relative;
  order:1;
  width:58%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 18px 16px 18px var(--gutter);
}
.shop-banner__inner .crumb,
.shop-banner__inner .shop-banner__title,
.shop-banner__inner .shop-banner__text{
  color: var(--ink-900);
}
.shop-banner__inner .crumb a{ color: var(--ink-600); }
.shop-banner__inner .crumb a:hover{ color: var(--ink-900); }
.shop-banner__inner .crumb__here{ color: var(--ink-900); }
.shop-banner__inner .shop-banner__text{ color: var(--ink-600); }

@media (min-width: 700px){
  .shop-banner{ min-height: 320px; }
  .shop-banner__bg{ width: 46%; }
  .shop-banner__inner{
    width:54%;
    padding: 40px clamp(28px, 5vw, 64px);
  }
}

@media (min-width: 1024px){
  .shop-banner{ min-height: 380px; }
  .shop-banner__bg{ width:48%; }
  .shop-banner__inner{ width:52%; }
}

/* subcategory pill row — sits right under a category's banner, shows
   that category's subcategories (or, on a subcategory page, its
   siblings + a link back to the full parent group) */
.subcat-rail{
  background: var(--paper-card);
  border-bottom:1px solid rgba(43,36,28,.08);
}
.subcat-rail__inner{
  max-width: var(--shell, 1280px);
  margin-inline:auto;
  padding: 14px var(--gutter);
  display:flex;
  align-items:center;
  gap:16px;
  overflow-x:auto;
  scrollbar-width:none;
}
.subcat-rail__inner::-webkit-scrollbar{ display:none; }
.subcat-rail__label{
  flex:none;
  font-family: var(--sans);
  font-size:10px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: var(--ink-400);
}
.subcat-rail__list{ display:flex; gap:8px; flex-wrap:nowrap; }
.subcat-rail__pill{
  flex:none;
  padding:8px 16px;
  border:1px solid rgba(43,36,28,.14);
  border-radius:20px;
  background: var(--paper);
  color: var(--ink-600);
  font-family: var(--sans);
  font-size:11.5px;
  font-weight:500;
  white-space:nowrap;
  text-decoration:none;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.subcat-rail__pill--all{
  border-style:dashed;
  color: var(--ink-400);
}
.subcat-rail__pill.is-active{
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color:#fff;
}
@media (hover:hover){
  .subcat-rail__pill:not(.is-active):hover{ border-color: var(--gold-deep); color: var(--gold-deep); }
}

@media (min-width: 700px){
  .subcat-rail__inner{ padding: 16px clamp(28px, 5vw, 64px); }
}

.crumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 6px;
  margin:0 0 10px;
  font-family: var(--sans);
  font-size:8.5px;
  font-weight:400;
  letter-spacing:.1em;
  text-transform:uppercase;
  color: var(--ink-600);
}

@media (min-width: 700px){
  .crumb{ gap:8px; margin-bottom:18px; font-size:10px; letter-spacing:.14em; }
}
.crumb a{ color: var(--ink-600); transition: color .25s var(--ease); }
.crumb a:hover{ color: var(--ink-900); }
.crumb__sep{ opacity:.5; }
.crumb__here{ color: var(--ink-900); }

.shop-banner__title{
  margin:0 0 8px;
  font-family: var(--serif);
  font-weight:500;
  font-style:italic;
  font-size: clamp(20px, 7vw, 30px);
  line-height:1.08;
  letter-spacing:.01em;
  color: var(--gold-deep);
}

.shop-banner__rule{
  display:flex;
  gap:5px;
  margin-bottom:10px;
}
.shop-banner__rule i{
  width:22px; height:2px;
  background: var(--gold-deep);
}
.shop-banner__rule i:last-child{ width:9px; opacity:.6; }

.shop-banner__text{
  margin:0;
  max-width:32ch;
  font-family: var(--sans);
  font-size:10.5px;
  font-weight:300;
  line-height:1.5;
  display:none; /* too little room on a phone-width banner column */
}

@media (min-width: 700px){
  .shop-banner__title{ margin:0 0 14px; font-size: clamp(30px, 6vw, 44px); line-height:1.1; letter-spacing:.02em; }
  .shop-banner__rule{ gap:6px; margin-bottom:16px; }
  .shop-banner__rule i{ width:34px; height:2px; }
  .shop-banner__rule i:last-child{ width:14px; }
  .shop-banner__text{ display:block; font-size:13px; line-height:1.65; max-width:36ch; }
}

@media (min-width: 1024px){
  .shop-banner__title{ font-size: clamp(46px, 4vw, 60px); }
  .shop-banner__text{ font-size:14.5px; max-width:40ch; }
}

/* =========================================================
   TOOLBAR — filter / sort / count / view toggle
   ========================================================= */

.shop-toolbar{
  padding: 16px var(--gutter);
}

.shop-toolbar__row{
  display:flex;
  gap:12px;
}

.tool-btn{
  appearance:none;
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:12px 14px;
  border:1px solid rgba(43,36,28,.16);
  background: var(--paper-card);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size:11px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.tool-btn svg{
  width:15px; height:15px;
  fill:none; stroke:currentColor; stroke-width:1.4;
  stroke-linecap:round; stroke-linejoin:round;
  flex:none;
}
.tool-btn:hover{ border-color: var(--gold-deep); color: var(--gold-deep); }

.tool-btn--sort{ justify-content:space-between; }
.tool-btn--sort .tool-btn__chev{
  width:11px; height:7px;
  transition: transform .3s var(--ease);
}
.tool-btn--sort[aria-expanded="true"] .tool-btn__chev{ transform: rotate(180deg); }

.shop-toolbar__meta{
  display:none;
}

@media (min-width: 1024px){
  .shop-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 22px var(--gutter);
    border-bottom: 1px solid rgba(43,36,28,.1);
  }
  .shop-toolbar__row{ flex:none; width:auto; gap:14px; }
  .tool-btn{ flex:none; padding:11px 18px; }
  .tool-btn--filter{ display:none; } /* desktop uses the sidebar instead */
  .shop-toolbar__meta{
    display:flex;
    align-items:center;
    gap:18px;
    font-family: var(--sans);
    font-size:11.5px;
    letter-spacing:.08em;
    color: var(--ink-600);
  }
  .view-toggle{
    display:flex;
    gap:6px;
  }
  .view-toggle button{
    appearance:none;
    border:1px solid rgba(43,36,28,.16);
    background: var(--paper-card);
    width:38px; height:38px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    color: var(--ink-600);
    transition: border-color .25s var(--ease), color .25s var(--ease);
  }
  .view-toggle button svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.4; }
  .view-toggle button.is-active{ border-color: var(--gold-deep); color: var(--gold-deep); }
}

/* dropdown sort panel (mobile + desktop share the same markup) */
.sort-pop{
  position:relative;
}
.sort-pop__list{
  position:absolute;
  top: calc(100% + 8px);
  right:0;
  z-index:20;
  min-width:200px;
  background: var(--paper-card);
  border:1px solid rgba(43,36,28,.12);
  box-shadow: 0 14px 34px rgba(20,15,9,.14);
  padding:6px;
  display:none;
  flex-direction:column;
}
.sort-pop[data-open="true"] .sort-pop__list{ display:flex; }
.sort-pop__list button{
  appearance:none;
  background:none;
  border:0;
  text-align:left;
  padding:10px 12px;
  font-family: var(--sans);
  font-size:12px;
  letter-spacing:.04em;
  color: var(--ink-900);
  cursor:pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sort-pop__list button:hover,
.sort-pop__list button.is-active{
  background: var(--paper-2);
  color: var(--gold-deep);
}

/* =========================================================
   LAYOUT — sidebar (desktop) + grid
   ========================================================= */

.shop-body{
  padding: 0 var(--gutter) 40px;
}

@media (min-width: 1024px){
  .shop-body{
    display:grid;
    grid-template-columns: 244px 1fr;
    gap:40px;
    align-items:start;
    padding: 8px var(--gutter) 64px;
  }
}

/* ---------- sidebar filters (desktop) ---------- */

.filters{
  display:none;
}

/* mobile filter drawer — toggled by #filterToggle */
.filters__scrim{
  display:none;
  position:fixed;
  inset:0;
  z-index:299;
  background:rgba(20,15,9,.5);
  opacity:0;
  transition:opacity .35s ease;
}
.filters__scrim.is-open{ display:block; opacity:1; }

@media (max-width: 1023.98px){
  .filters.is-open{
    display:block;
    position:fixed;
    top:0; right:0; bottom:0;
    z-index:300;
    width:min(86vw, 340px);
    background: var(--paper, #FAF6EE);
    padding:20px var(--gutter) 40px;
    overflow-y:auto;
    transform:translateX(0);
    box-shadow:-20px 0 50px rgba(0,0,0,.25);
    animation: filtersSlideIn .35s ease;
  }
  @keyframes filtersSlideIn{
    from{ transform:translateX(100%); }
    to{ transform:translateX(0); }
  }
  .filters__closeBtn{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:16px;
    font-family: var(--sans);
    font-size:12px;
    font-weight:600;
    letter-spacing:.1em;
    text-transform:uppercase;
  }
  .filters__closeBtn button{
    background:none;
    border:0;
    width:32px;height:32px;
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;
  }
  .filters__closeBtn svg{ width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6; }
}

/* Core filter styling — unconditional so it applies inside the mobile
   drawer too, not just the >=1024px sidebar layout. */
.filters__group{
  padding-bottom:22px;
  margin-bottom:22px;
  border-bottom:1px solid rgba(43,36,28,.1);
}
.filters__group:last-of-type{ border-bottom:0; }
.filters__title{
  margin:0 0 14px;
  font-family: var(--sans);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: var(--ink-900);
}

.filters__cats{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.filters__cats a{
  display:flex; align-items:center; gap:8px;
  font-family: var(--sans); font-size:12.5px; color: var(--ink-600);
  transition: color .2s var(--ease);
}
.filters__cats a svg{ width:12px; height:9px; fill:none; stroke:var(--gold-deep); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; opacity:0; }
.filters__cats a:hover{ color: var(--ink-900); }
.filters__cats li.is-active a{ color: var(--gold-deep); font-weight:500; }
.filters__cats li.is-active a svg{ opacity:1; }

.filters__price{ padding-top:2px; }
.filters__range{
  width:100%;
  accent-color: var(--gold-deep);
  margin-bottom:8px;
}
.filters__price-labels{
  display:flex; justify-content:space-between;
  font-family: var(--sans); font-size:11px; color: var(--ink-600);
}

.filters__swatches{ display:flex; flex-wrap:wrap; gap:9px; }
.filters__swatch{
  width:22px; height:22px;
  border-radius:50%;
  border:1px solid rgba(43,36,28,.18);
  cursor:pointer;
  padding:0;
}
.filters__swatch[aria-pressed="true"]{ outline:2px solid var(--gold-deep); outline-offset:2px; }

.filters__check{ display:flex; flex-direction:column; gap:10px; }
.filters__check label{
  display:flex; align-items:center; gap:9px;
  font-family: var(--sans); font-size:12.5px; color: var(--ink-600);
  cursor:pointer;
}
.filters__check input{ accent-color: var(--gold-deep); width:14px; height:14px; }

.filters__clear{
  appearance:none;
  width:100%;
  padding:11px;
  background:none;
  border:1px solid rgba(43,36,28,.2);
  font-family: var(--sans); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--ink-900);
  cursor:pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.filters__clear:hover{ border-color: var(--gold-deep); color: var(--gold-deep); }

@media (min-width: 1024px){
  .filters{
    display:block;
    position:sticky;
    top:24px;
  }
}

/* ---------- product grid ---------- */

.shop-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}

@media (min-width: 560px){
  .shop-grid{ grid-template-columns: repeat(3, 1fr); gap:12px; }
}

@media (min-width: 1024px){
  .shop-grid{ grid-template-columns: repeat(4, 1fr); gap:18px; }
  .shop-grid.is-list{ grid-template-columns: 1fr; gap:14px; }
}

/* product card — smaller, softer-edged, with a refined lift-on-hover
   so it reads as jewellery on a tray rather than a plain catalogue tile */
.pcard{
  display:flex;
  flex-direction:column;
  background: var(--paper-card);
  border:1px solid rgba(43,36,28,.06);
  border-radius:10px;
  overflow:hidden;
  box-shadow: 0 1px 3px rgba(43,36,28,.05);
  cursor:pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
@media (hover:hover){
  .pcard:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(30,22,13,.14);
    border-color: rgba(201,180,138,.4);
  }
}

.pcard__media{
  position:relative;
  aspect-ratio: 1 / 1;
  overflow:hidden;
  background: var(--paper-2);
}
.pcard__media img{
  width:100%; height:100%;
  object-fit:contain;
  --zoom: 1;
  transform: scale(var(--zoom));
  transition: transform .7s var(--ease);
}
@media (hover:hover){
  .pcard:hover .pcard__media img{ transform: scale(calc(var(--zoom) * 1.07)); }
}

.pcard .fav{
  position:absolute;
  top:7px; right:7px;
  z-index:2;
  width:26px; height:26px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background: rgba(251,248,243,.92);
  border:0;
  cursor:pointer;
  color: var(--ink-900);
  box-shadow: 0 2px 8px rgba(20,15,9,.16);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
@media (hover:hover){
  .pcard .fav:hover{ transform: scale(1.1); }
}
.pcard .fav svg{ width:12.5px; height:12.5px; fill:none; stroke:currentColor; stroke-width:1.6; }
.pcard .fav[aria-pressed="true"] svg{ fill: var(--gold-deep); stroke: var(--gold-deep); }
.pcard .fav.pop{ animation: favPop .4s var(--ease); }
@keyframes favPop{ 40%{ transform: scale(1.28); } 100%{ transform: scale(1); } }

.pcard__badge{
  position:absolute;
  top:7px; left:7px;
  z-index:2;
  padding:3.5px 8px;
  background: var(--ink-900);
  color: var(--champagne, #E3D5BC);
  font-family: var(--sans);
  font-size:8px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-radius:3px;
}
.pcard__badge--sale{ background:#C0392B; color:#fff; font-weight:700; }
.pcard__badge--low{ background:#D9A441; color:#1C1611; font-weight:600; }
.pcard__badge--out{ background:#3A2F27; color:#fff; }
.pcard__badges{ position:absolute; top:7px; left:7px; z-index:2; display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.pcard__badges .pcard__badge{ position:static; }

/* Full-width "Add to Cart" bar — sits just under the image, above the
   product name, transparent black that solidifies slightly on hover.
   Always visible on touch devices (no hover to reveal it there). */
.pcard__add{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:12px 8px 11px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg, rgba(20,15,9,.86), rgba(12,9,5,.94));
  color: var(--gold, #C9B48A);
  border:0;
  border-top:1px solid rgba(201,180,138,.5);
  cursor:pointer;
  font-family: var(--serif, var(--sans));
  font-size:11px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  opacity:0;
  transform: translateY(100%);
  transition: background .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
  overflow:hidden;
}
.pcard__add::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(110deg, transparent 30%, rgba(201,180,138,.28) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover:hover){
  .pcard:hover .pcard__add{ opacity:1; transform: translateY(0); }
  .pcard__add:hover{ color:#fff; }
  .pcard__add:hover::after{ transform: translateX(120%); transition: transform .9s var(--ease); }
}
/* touch devices: tapping the card once reveals the bar (site-chrome.js
   toggles this class) instead of navigating straight to the product;
   a second tap on the bar itself adds to cart. */
.pcard.is-touched .pcard__add{ opacity:1; transform: translateY(0); }
.pcard__add.pop{ animation: favPop .4s var(--ease); }

.pcard__body{
  padding:9px 10px 11px;
}
.pcard__cat{
  margin:0 0 3px;
  font-family: var(--sans);
  font-size:8.5px;
  letter-spacing:.11em;
  text-transform:uppercase;
  color: var(--gold-deep);
  opacity:.85;
}
.pcard__name{
  margin:0 0 4px;
  font-family: var(--serif);
  font-weight:500;
  font-size:13.5px;
  line-height:1.28;
  color: var(--ink-900);
}
.pcard__stars{
  display:flex;
  align-items:center;
  gap:2px;
  margin-bottom:4px;
}
.pcard__stars svg{ width:9.5px; height:9.5px; fill: var(--gold-deep); stroke:none; }
.pcard__stars em{
  font-style:normal;
  margin-left:3px;
  font-family: var(--sans);
  font-size:9px;
  color: var(--ink-400);
}
.pcard__price{
  margin:0;
  font-family: var(--sans);
  font-size:12px;
  font-weight:500;
  color: var(--ink-900);
  letter-spacing:.01em;
}

/* ---------- list view (desktop) ---------- */

@media (min-width: 1024px){
  .shop-grid.is-list .pcard{
    flex-direction:row;
    align-items:stretch;
  }
  .shop-grid.is-list .pcard__media{
    width:180px;
    flex:none;
    aspect-ratio:auto;
  }
  .shop-grid.is-list .pcard__body{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:16px 22px;
  }
  .shop-grid.is-list .pcard__name{ font-size:17px; }
  .shop-grid.is-list .pcard__price{ font-size:14px; margin-top:6px; }
}

/* ---------- hidden by filter/sort ---------- */
.pcard.is-hidden{ display:none !important; }

/* =========================================================
   PAGINATION
   ========================================================= */

.pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:28px;
}
.pager button{
  appearance:none;
  min-width:34px; height:34px;
  padding:0 6px;
  border:1px solid rgba(43,36,28,.14);
  background: var(--paper-card);
  color: var(--ink-600);
  font-family: var(--sans);
  font-size:12px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pager button.is-active{
  border-color: var(--gold-deep);
  color: var(--ink-900);
  background: var(--paper-2);
}
.pager button:hover{ border-color: var(--gold-deep); }
.pager button svg{ width:13px; height:10px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.pager__dots{ color: var(--ink-400); padding:0 2px; }

/* =========================================================
   MOBILE FILTER / SORT SHEETS
   ========================================================= */

.sheet{
  position:fixed;
  inset:0;
  z-index:80;
  visibility:hidden;
  pointer-events:none;
}
.sheet[data-open="true"]{ visibility:visible; pointer-events:auto; }

.sheet__scrim{
  position:absolute;
  inset:0;
  background: rgba(20,15,9,.5);
  border:0;
  padding:0;
  opacity:0;
  transition: opacity .3s var(--ease);
}
.sheet[data-open="true"] .sheet__scrim{ opacity:1; }

.sheet__panel{
  position:absolute;
  left:0; right:0; bottom:0;
  max-height:82vh;
  overflow-y:auto;
  background: var(--paper);
  border-radius:16px 16px 0 0;
  padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom,0px));
  transform: translateY(100%);
  transition: transform .38s var(--ease);
}
.sheet[data-open="true"] .sheet__panel{ transform: translateY(0); }

.sheet__handle{
  width:36px; height:4px;
  border-radius:2px;
  background: rgba(43,36,28,.2);
  margin: 0 auto 16px;
}

.sheet__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.sheet__head h2{
  margin:0;
  font-family: var(--serif);
  font-size:20px;
  font-weight:500;
  color: var(--ink-900);
}
.sheet__close{
  appearance:none; background:none; border:0;
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-600);
  cursor:pointer;
}
.sheet__close svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }

/* filter sheet content reuses the same visual language as the
   desktop sidebar, so most rules are shared via .filters__* */
.sheet .filters__group{
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid rgba(43,36,28,.1);
}
.sheet .filters__title{
  margin:0 0 12px;
  font-family: var(--sans);
  font-size:11px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.sheet .filters__cats{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.sheet .filters__cats a{
  display:flex;
  align-items:center;
  gap:9px;
  font-family: var(--sans); font-size:13.5px; color: var(--ink-600);
}
.sheet .filters__cats a svg{
  width:11px; height:8px;
  flex:none;
  fill:none; stroke: var(--gold-deep);
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  opacity:0;
}
.sheet .filters__cats li.is-active a{ color: var(--gold-deep); font-weight:500; }
.sheet .filters__cats li.is-active a svg{ opacity:1; }

.sheet .filters__range{ width:100%; accent-color: var(--gold-deep); margin-bottom:8px; }
.sheet .filters__price-labels{ display:flex; justify-content:space-between; font-family: var(--sans); font-size:12px; color: var(--ink-600); }

.sheet .filters__swatches{ display:flex; flex-wrap:wrap; gap:10px; }
.sheet .filters__swatch{ width:26px; height:26px; border-radius:50%; border:1px solid rgba(43,36,28,.2); }
.sheet .filters__swatch[aria-pressed="true"]{ outline:2px solid var(--gold-deep); outline-offset:2px; }

.sheet .filters__check{ display:flex; flex-direction:column; gap:12px; }
.sheet .filters__check label{ display:flex; align-items:center; gap:10px; font-family: var(--sans); font-size:13.5px; color: var(--ink-600); }
.sheet .filters__check input{ width:16px; height:16px; accent-color: var(--gold-deep); }

.sheet__actions{
  display:flex;
  gap:10px;
  margin-top:6px;
}
.sheet__actions button{
  flex:1 1 0;
  appearance:none;
  padding:13px;
  font-family: var(--sans);
  font-size:11px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  border:1px solid rgba(43,36,28,.2);
  background:none;
  color: var(--ink-900);
}
.sheet__actions .is-primary{
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper-card);
}

/* sort sheet — simple radio-style list */
.sheet__sort-list{
  display:flex;
  flex-direction:column;
}
.sheet__sort-list button{
  appearance:none;
  background:none;
  border:0;
  border-bottom:1px solid rgba(43,36,28,.08);
  text-align:left;
  padding:14px 2px;
  font-family: var(--sans);
  font-size:13.5px;
  color: var(--ink-600);
  cursor:pointer;
}
.sheet__sort-list button.is-active{ color: var(--gold-deep); font-weight:500; }

@media (min-width: 1024px){
  .sheet{ display:none; } /* desktop uses sidebar + inline sort-pop */
}

@media (prefers-reduced-motion: reduce){
  .sheet__panel,
  .sheet__scrim,
  .pcard__media img{ transition:none !important; }
}
