/* =========================================================
   ELWAN STORE — Category & brand pages (shop.html)
   Luxury dark theme, products on white 3D display plates
   ========================================================= */
.page-shop {
  --lx-gold: #b08a55;
  --lx-gold2: #8b6a43;
  --lx-ivory: #1d1615;
  --lx-muted: #7a6d66;
  --lx-line: rgba(139, 106, 67, .22);
  --lx-panel: #fff;
  background:
    radial-gradient(1000px 520px at 90% 0%, rgba(201, 162, 110, .12), transparent 60%),
    #f7f2ec;
  color: var(--lx-ivory);
  font-variant-numeric: lining-nums;
}
.page-shop [hidden] { display: none !important; }
.page-shop .header { background: rgba(247, 241, 234, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.is-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shop-page { padding-bottom: 50px; }
.shop-inner { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.page-shop .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 0; font-size: 11.5px; color: var(--lx-muted); }
.page-shop .crumbs a { text-decoration: none; }
.page-shop .crumbs a:hover, .page-shop .crumbs span { color: var(--lx-gold2); }
.page-shop .crumbs svg { width: 11px; height: 11px; opacity: .6; }

/* ---------- hero: full width, the whole picture is shown ---------- */
.shero {
  position: relative;
  display: grid;
  background: linear-gradient(180deg, #ece2d6 0%, #f7f2ec 100%);
  overflow: hidden;
}
.shero__media { position: relative; display: flex; justify-content: center; align-items: center; }
.shero__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  /* soft fade on all four edges so the photo melts into the page */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 82%, transparent 100%);
  mask-composite: intersect;
  animation: heroImg 1.3s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes heroImg { from { opacity: 0; transform: scale(1.05); } }
/* photo hero: the whole picture, sharp, over a soft blurred copy of itself */
.shero--photo .shero__media {
  height: clamp(300px, 86vw, 460px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.shero--photo .shero__media::before { content: ""; position: absolute; inset: -40px; background: #2a1512 var(--ph) center / cover no-repeat; filter: blur(28px) saturate(1.15) brightness(.75); transform: scale(1.1); animation: heroImg 1.3s cubic-bezier(.16, 1, .3, 1) both; }
.shero--photo .shero__media img { position: relative; height: 100%; max-height: none; width: auto; max-width: 100%; object-fit: contain; -webkit-mask-image: none; mask-image: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
@media (min-width: 900px) { .shero--photo .shero__media { height: 520px; } }
.shero--logo .shero__media img { max-height: 200px; padding: 40px; -webkit-mask-image: none; mask-image: none; }
.shero__txt { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 4px var(--gutter) 26px; animation: shIn 1s cubic-bezier(.16, 1, .3, 1) .15s both; }
@keyframes shIn { from { opacity: 0; transform: translateY(16px); } }
.shero__kicker { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--lx-gold2); }
.shero__title { margin-top: 8px; font-family: "Cormorant Garamond", "Playfair Display", var(--font-serif); font-weight: 500; font-size: clamp(34px, 9.5vw, 68px); line-height: 1.02; letter-spacing: -.02em; color: #1d1615; }
.shero__desc { margin-top: 12px; max-width: 520px; font-size: 14px; line-height: 1.75; color: #5d514b; }
.shero__facts { display: flex; margin-top: 18px; }
.shero__facts li { padding: 0 18px; border-left: 1px solid var(--lx-line); }
.shero__facts li:first-child { padding-left: 0; border-left: 0; }
.shero__facts b { display: block; font-family: "Cormorant Garamond", "Playfair Display", serif; font-weight: 500; font-size: 22px; color: var(--lx-gold2); }
.shero__facts span { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--lx-muted); }
.shero__logo { margin-top: 12px; }
.shero__logo img { height: 46px; width: auto; max-width: 230px; object-fit: contain; }

/* ---------- quick nav: rail of small 3D picture cards ---------- */
.snav { position: relative; margin-top: 10px; --flow: 26deg; --depth: -26px; }
.snav__wrap { position: relative; }
.snav__rail {
  position: relative; display: flex; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  perspective: 720px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.snav__rail::-webkit-scrollbar { display: none; }
.scat {
  --d: 0; --tx: 0; --ty: 0;
  position: relative; flex: none; display: block; width: 84px;
  text-decoration: none; scroll-snap-align: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--d) * var(--flow) * -1)) translateZ(calc(var(--d) * var(--d) * var(--depth)));
  animation: scatIn 1s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
  -webkit-tap-highlight-color: transparent;
}
@keyframes scatIn { from { opacity: 0; translate: 0 28px; rotate: x 75deg; } }
.scat__tile {
  position: relative; display: block; height: 104px; border-radius: 18px; overflow: hidden;
  background: #241918;
  /* a thin cream "slab" under the card gives it thickness */
  box-shadow: 0 3px 0 #e2cfb3, 0 4px 0 rgba(139, 106, 67, .35), 0 14px 18px -10px rgba(60, 30, 20, .5);
  transform: translateY(0) rotateX(calc(var(--ty) * -16deg)) rotateY(calc(var(--tx) * 18deg));
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s;
}
.scat__tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(236, 211, 166, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.scat__tile::after {
  content: ""; position: absolute; inset: 40% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(20, 8, 8, .82));
}
.scat__tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08) translate(calc(var(--tx) * -6px), calc(var(--ty) * -6px));
  filter: saturate(.92) brightness(.95);
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .5s;
}
.scat__gloss {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 246, 228, .5) 48%, transparent 60%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
}
.scat__name {
  position: absolute; left: 6px; right: 6px; bottom: 9px; z-index: 4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 11px; line-height: 1.2; font-weight: 500; letter-spacing: .01em; text-align: center;
  color: #fff6ea; text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.scat__n {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600; color: #2a0b0e;
  background: rgba(255, 250, 242, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
  transform: translateZ(26px);
}
/* the page you are on: lifted, gold rim, glowing floor, slow shine */
.scat.is-on .scat__tile {
  transform: translateY(-7px) rotateX(calc(var(--ty) * -16deg)) rotateY(calc(var(--tx) * 18deg));
  box-shadow: 0 0 0 2px #e6c896, 0 3px 0 2px #b08a55, 0 4px 0 2px #8b6a43, 0 20px 26px -12px rgba(176, 138, 85, .75);
}
.scat.is-on .scat__tile img { filter: saturate(1.05) brightness(1.02); }
.scat.is-on .scat__gloss { animation: scatShine 3.6s ease-in-out 1.2s infinite; }
@keyframes scatShine { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }
.scat.is-on .scat__name { color: #f6dcaa; }
.scat.is-on .scat__n { background: linear-gradient(180deg, #f3dcae, #c9a26e); }
.scat.is-on::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -12px; height: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 110, .65), transparent);
  filter: blur(2px);
}
/* sale: wine tint + pulsing badge */
.scat--sale .scat__tile::after { inset: 0; background: linear-gradient(180deg, rgba(120, 12, 24, .15), rgba(74, 10, 18, .88)); }
.scat--sale .scat__n { background: #b3122a; color: #fff; animation: scatPulse 1.8s ease-in-out infinite; }
@keyframes scatPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 18, 42, .5); } 50% { box-shadow: 0 0 0 6px rgba(179, 18, 42, 0); } }
/* brands: logo on an ivory plate */
.scat--brand .scat__tile { background: linear-gradient(160deg, #fff, #f1e7da); }
.scat--brand .scat__tile::after { display: none; }
.scat--brand .scat__tile img { inset: 14px 12px 30px; width: calc(100% - 24px); height: calc(100% - 44px); object-fit: contain; filter: none; transform: translate(calc(var(--tx) * -4px), calc(var(--ty) * -4px)); }
.scat--brand .scat__name { color: #3a2a24; text-shadow: none; }
.scat--word .scat__name { top: 0; bottom: 0; display: grid; place-items: center; -webkit-line-clamp: unset; font-family: "Cormorant Garamond", "Playfair Display", serif; font-size: 15px; line-height: 1.1; }
.scat.is-on.scat--brand .scat__name { color: #8b6a43; }
@media (hover: hover) {
  .scat:hover .scat__tile { transform: translateY(-5px) rotateX(calc(var(--ty) * -16deg)) rotateY(calc(var(--tx) * 18deg)); }
  .scat.is-on:hover .scat__tile { transform: translateY(-9px) rotateX(calc(var(--ty) * -16deg)) rotateY(calc(var(--tx) * 18deg)); }
  .scat:hover .scat__tile img { filter: saturate(1.05) brightness(1.03); }
  .scat:hover .scat__gloss { background-position: -30% 0; transition: background-position .9s ease; }
}
.scat:active .scat__tile { transform: translateY(-2px) scale(.96); transition-duration: .15s; }

.snav__arrow { display: none; }

/* sub-categories: small pills with a round picture */
.snav__sub { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.snav__sub::-webkit-scrollbar { display: none; }
.snav__subitem {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 4px;
  border: 1px solid var(--lx-line); border-radius: 999px; background: rgba(255, 255, 255, .7);
  font-size: 12px; text-decoration: none; color: var(--lx-muted); white-space: nowrap;
  animation: scatIn .8s cubic-bezier(.16, 1, .3, 1) .5s backwards;
  transition: border-color .25s, color .25s, background-color .25s;
}
.snav__subitem img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(176, 138, 85, .35); }
.snav__subitem:hover { color: var(--lx-ivory); border-color: var(--lx-gold); }
.snav__subitem.is-on { color: #2a0b0e; border-color: transparent; background: linear-gradient(180deg, #f3e2c2, #dcbb85); }

@media (prefers-reduced-motion: reduce) {
  .scat, .snav__subitem { animation: none; }
  .scat { transform: none; }
  .scat.is-on .scat__gloss, .scat--sale .scat__n { animation: none; }
}

/* ---------- layout ---------- */
.slayout { display: block; margin-top: 18px; }
.slist { min-width: 0; }

.stool {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 15;
  display: flex; align-items: center; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter);
  background: rgba(247, 242, 236, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lx-line);
}
.stool__filters { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--lx-gold); border-radius: 999px; font-size: 13px; color: var(--lx-gold2); }
.stool__filters svg { width: 17px; height: 17px; }
.stool__filters b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lx-gold); color: #2a0b0e; font-size: 10.5px; font-weight: 600; line-height: 18px; text-align: center; }
.stool__count { flex: 1; font-size: 12.5px; color: var(--lx-muted); }
.stool__count b { color: var(--lx-ivory); font-weight: 600; }
.stool__sort { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--lx-muted); }
.stool__sort > span { display: none; }
.stool__sort select {
  height: 38px; max-width: 150px; padding: 0 30px 0 14px; border: 1px solid var(--lx-line); border-radius: 999px;
  background: var(--lx-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6a43' stroke-width='1.6'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 13px no-repeat;
  appearance: none; -webkit-appearance: none; font: inherit; color: var(--lx-ivory); cursor: pointer;
}
.stool__sort option { color: #1d1615; }
.stool__cols { display: none; }

.schips { display: flex; flex-wrap: wrap; gap: 8px; }
.schips:not(:empty) { padding: 12px 0 2px; }
.schip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(201, 162, 110, .14); color: var(--lx-gold2); font-size: 12px; }
.schip svg { width: 12px; height: 12px; }
.schip:hover { background: rgba(201, 162, 110, .24); }
.schip--clear { background: none; color: var(--lx-muted); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }

/* ---------- product grid: 3D display plates ---------- */
.sgrid2 { --cols: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; padding-top: 18px; }
.lcard { position: relative; display: flex; flex-direction: column; min-width: 0; animation: lIn .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes lIn { from { opacity: 0; transform: translateY(26px) rotateX(14deg); } }
.lcard__top { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; position: relative; perspective: 900px; }
.lcard__media {
  position: relative; display: block; aspect-ratio: 1 / 1.12;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.lcard__top.is-tilt .lcard__media { transition: transform .15s ease-out; }
.lcard__plate {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(139, 106, 67, .16), 0 26px 44px -30px rgba(60, 35, 20, .45);
  transition: box-shadow .5s;
}
.lcard__top.is-tilt .lcard__plate { box-shadow: 0 0 0 1px rgba(201, 162, 110, .7), 0 34px 54px -28px rgba(60, 35, 20, .5), 0 0 40px -12px rgba(201, 162, 110, .35); }
.lcard__glare { position: absolute; inset: 0; background: radial-gradient(45% 45% at var(--gx) var(--gy), rgba(236, 211, 166, .22), transparent 70%); mix-blend-mode: normal; opacity: 0; transition: opacity .4s; }
.lcard__top.is-tilt .lcard__glare { opacity: 1; }
.lcard__floor { position: absolute; left: 22%; right: 22%; bottom: 7%; height: 7%; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(60, 30, 15, .32), transparent 72%); transform: translateZ(2px); }
/* the whole product, floating above the plate */
.lcard__media img {
  position: absolute; inset: 9% 10% 13%;
  width: 80%; height: 78%;
  object-fit: contain;
  transform: translateZ(34px);
  filter: drop-shadow(0 18px 14px rgba(40, 20, 10, .26));
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.lcard__top.is-tilt .lcard__media img { transform: translateZ(70px) scale(1.04); transition: transform .3s ease-out; }
/* touch screens: a slow 3D float while the card is on screen */
@media (hover: none) {
  .lcard__top.is-inview .lcard__media { animation: plateFloat 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.8s); }
  .lcard__top.is-inview .lcard__media img { animation: imgFloat 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.8s); }
}
@keyframes plateFloat { 0%, 100% { transform: rotateX(4deg) rotateY(-7deg); } 50% { transform: rotateX(-3deg) rotateY(7deg); } }
@keyframes imgFloat { 0%, 100% { transform: translateZ(34px) translateY(1.5%); } 50% { transform: translateZ(48px) translateY(-1.5%); } }
.lcard { --i: 0; }

.lcard__tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: #f2e8dc; color: #4a3a2e; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.lcard__tag--best-seller { background: linear-gradient(90deg, #c9a26e, #ecd3a6); color: #2a0b0e; }
.lcard__tag--new { background: #2a0b0e; color: #ecd3a6; }
.lcard__fav { position: absolute; top: 7px; right: 7px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #2a0b0e; background: rgba(255, 255, 255, .85); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); transition: transform .25s; }
.lcard__fav svg { width: 17px; height: 17px; }
.lcard__fav:hover { transform: scale(1.08); }
.lcard__fav.is-on { color: var(--burgundy); }
.lcard__fav.is-on svg { fill: var(--burgundy); animation: favPop .45s var(--ease); }
.lcard__quick { display: none; }
.lcard__body { display: block; padding: 14px 44px 0 2px; text-decoration: none; color: inherit; }
.lcard__brand { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--lx-gold); }
.lcard__model { margin-top: 4px; font-family: "Cormorant Garamond", "Playfair Display", serif; font-size: 15px; line-height: 1.3; color: var(--lx-ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__price { margin-top: 6px; font-size: 13.5px; font-weight: 500; letter-spacing: .04em; color: #1d1615; }
.lcard__add { position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ecd3a6, #c9a26e); color: #2a0b0e; box-shadow: 0 10px 18px -10px rgba(201, 162, 110, .8); transition: transform .25s; }
.lcard__add svg { width: 17px; height: 17px; }
.lcard__add:hover { transform: scale(1.08); }
.lcard.is-added .lcard__add, .lcard.is-added .lcard__quick { animation: cartPop .5s var(--ease); }

/* load more */
.smore { display: grid; justify-items: center; gap: 12px; margin-top: 40px; }
.smore__txt { font-size: 12.5px; color: var(--lx-muted); }
.smore__txt b { color: var(--lx-ivory); }
.smore__bar { width: 200px; height: 2px; background: var(--lx-line); border-radius: 2px; overflow: hidden; }
.smore__bar span { display: block; height: 100%; background: var(--lx-gold); transition: width .5s var(--ease); }

/* buttons */
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; font-size: 13px; letter-spacing: .04em; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, filter .25s; }
.sbtn--dark { background: linear-gradient(180deg, #ecd3a6, #c9a26e); color: #2a0b0e; font-weight: 500; }
.sbtn--dark:hover { filter: brightness(1.08); }
.sbtn--ghost { border: 1px solid var(--lx-line); color: var(--lx-ivory); }
.sbtn--ghost:hover { border-color: var(--lx-gold); }
.sbtn--line { min-width: 220px; border: 1px solid var(--lx-gold); color: var(--lx-gold2); }
.sbtn--line:hover { background: var(--lx-gold); color: #2a0b0e; }

/* empty */
.sempty { display: grid; justify-items: center; gap: 12px; padding: 50px 16px; margin-top: 16px; text-align: center; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--lx-line); }
.sempty__ic { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(201, 162, 110, .12); color: var(--lx-gold2); }
.sempty__ic svg { width: 30px; height: 28px; }
.sempty h3 { font-family: "Cormorant Garamond", "Playfair Display", serif; font-weight: 500; font-size: 23px; color: var(--lx-ivory); }
.sempty p { max-width: 420px; font-size: 13.5px; line-height: 1.7; color: #5d514b; }
.sempty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- filters ---------- */
.sside {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  max-height: 86vh; display: flex; flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .35);
  transform: translateY(105%);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  color: var(--lx-ivory);
}
.sside { isolation: isolate; }
.filters-open .sside { transform: none; }
.sside__veil { position: fixed; inset: 0; z-index: 129; background: rgba(20, 8, 8, .45); opacity: 0; pointer-events: none; transition: opacity .35s; }
.filters-open .sside__veil { opacity: 1; pointer-events: auto; }
.sside__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--lx-line); }
.sside__head h2 { font-family: "Cormorant Garamond", "Playfair Display", serif; font-weight: 500; font-size: 21px; color: var(--lx-ivory); }
.sside__x { width: 36px; height: 36px; display: grid; place-items: center; color: var(--lx-ivory); }
.sside__x svg { width: 22px; height: 22px; }
.sside__body { flex: 1; overflow-y: auto; padding: 4px 20px 10px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(201, 162, 110, .3) transparent; }
.sside__foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lx-line); }
.fnone { padding: 20px 0; font-size: 13px; color: var(--lx-muted); }

.fgroup { border-bottom: 1px solid var(--lx-line); }
.fgroup summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--lx-gold2); cursor: pointer; list-style: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary i { width: 8px; height: 8px; border-right: 1.5px solid var(--lx-gold); border-bottom: 1.5px solid var(--lx-gold); transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.fgroup[open] summary i { transform: rotate(-135deg) translateY(-2px); }
.fgroup__body { display: grid; gap: 2px; padding-bottom: 16px; }
.fgroup__body--sw { display: flex; flex-wrap: wrap; gap: 8px; }
.fcheck { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--lx-ivory); cursor: pointer; }
.fcheck input { position: absolute; opacity: 0; pointer-events: none; }
.fcheck__box { flex: none; width: 19px; height: 19px; border: 1px solid rgba(29, 22, 21, .35); border-radius: 4px; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.fcheck__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.fcheck input:checked + .fcheck__box { background: var(--lx-gold); border-color: var(--lx-gold); }
.fcheck input:checked + .fcheck__box svg { opacity: 1; }
.fcheck input:focus-visible + .fcheck__box { outline: 2px solid var(--lx-gold); outline-offset: 2px; }
.fcheck__name { flex: 1; }
.fcheck__n { font-size: 12px; color: var(--lx-muted); }
.fcheck.is-zero { opacity: .4; }
.fswatch { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border: 1px solid var(--lx-line); border-radius: 999px; font-size: 12.5px; color: var(--lx-ivory); }
.fswatch span { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .15); }
.fswatch.is-on { border-color: var(--lx-gold); box-shadow: inset 0 0 0 1px var(--lx-gold); }
.fprice { display: flex; align-items: center; gap: 10px; }
.fprice label { flex: 1; display: grid; gap: 6px; font-size: 10.5px; color: var(--lx-muted); letter-spacing: .14em; text-transform: uppercase; }
.fprice input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--lx-line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--lx-ivory); outline: 0; letter-spacing: 0; }
.fprice input:focus { border-color: var(--lx-gold); }
.fprice__dash { width: 10px; height: 1px; margin-top: 18px; background: var(--lx-muted); }
.fpresets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fpresets button { height: 30px; padding: 0 12px; border: 1px solid var(--lx-line); border-radius: 999px; font-size: 12px; color: var(--lx-ivory); transition: border-color .2s, background-color .2s, color .2s; }
.fpresets button:hover { border-color: var(--lx-gold); }
.fpresets button.is-on { background: var(--lx-gold); border-color: var(--lx-gold); color: #2a0b0e; }

/* trust strip */
.strust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; max-width: 1320px; margin: 0 auto; padding: 28px var(--gutter); border-top: 1px solid var(--lx-line); }
.strust li { display: flex; align-items: center; gap: 12px; }
.strust svg { flex: none; width: 30px; height: 28px; color: var(--lx-gold2); }
.strust b { display: block; font-size: 12.5px; font-weight: 500; color: var(--lx-ivory); }
.strust small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--lx-muted); }

/* ---------- small phones ---------- */
@media (max-width: 479px) {
  .lcard__model { font-size: 13.5px; }
  .lcard__price { font-size: 12.5px; }
  .lcard__body { padding-right: 40px; }
  .lcard__add { width: 34px; height: 34px; }
  .lcard__tag { top: 8px; left: 8px; font-size: 8.5px; padding: 3px 8px; }
  .lcard__fav { width: 30px; height: 30px; top: 6px; right: 6px; }
}

/* ---------- tablet / laptop ---------- */
@media (min-width: 640px) {
  .sgrid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; }
  .stool__sort > span { display: inline; }
}
@media (min-width: 768px) {
  .shero { grid-template-columns: 1fr 1.1fr; min-height: 420px; align-items: center; }
  .shero__media { order: 2; height: 100%; }
  .shero__media img { max-height: 520px; }
  .shero__txt { padding: 40px 20px 40px max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); margin: 0; }
  .strust { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .shero { min-height: 480px; }
  .shero__txt { padding-left: max(32px, calc((100vw - 1320px) / 2 + 32px)); }
  .shero__logo img { height: 60px; max-width: 300px; }
  .shop-page { padding-bottom: 70px; }
  .shop-inner { padding: 0 32px; }
  .page-shop .crumbs { padding: 18px 0; font-size: 12px; }
  .snav { margin-top: 18px; --flow: 0deg; --depth: 0px; }
  .snav__rail { gap: 14px; margin: 0 -8px; padding: 16px 8px 22px; }
  .scat { width: 112px; }
  .scat__tile { height: 136px; border-radius: 20px; }
  .scat__name { font-size: 12.5px; bottom: 12px; }
  .scat--word .scat__name { font-size: 18px; }
  .snav__arrow {
    position: absolute; top: calc(50% - 22px); z-index: 5;
    display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: #fff; color: var(--lx-ivory); cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(60, 30, 20, .35), inset 0 0 0 1px var(--lx-line);
    transition: opacity .3s, transform .3s;
  }
  .snav__arrow svg { width: 16px; height: 16px; }
  .snav__arrow:hover { transform: scale(1.08); }
  .snav__arrow--prev { left: -18px; }
  .snav__arrow--next { right: -18px; }
  .snav.at-start .snav__arrow--prev, .snav.at-end .snav__arrow--next { opacity: 0; pointer-events: none; }
  .snav__sub { flex-wrap: wrap; margin: 4px 0 0; padding: 0; overflow: visible; }

  .slayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; margin-top: 28px; align-items: start; }
  .slayout.is-full { grid-template-columns: minmax(0, 1fr); }
  .sside.is-gone, .sside__veil { display: none; }
  .sside {
    position: sticky; top: calc(var(--header-h) + 16px); z-index: 1;
    max-height: calc(100vh - var(--header-h) - 32px);
    border-radius: 16px; padding: 18px 18px 10px;
    background: var(--lx-panel); box-shadow: inset 0 0 0 1px var(--lx-line);
    transform: none; transition: none;
  }
  .sside::before { display: none; }
  .sside__head { padding: 0 0 8px; }
  .sside__head h2 { font-size: 20px; }
  .sside__x, .sside__foot .sbtn--dark { display: none; }
  .sside__body { padding: 0 6px 0 0; }
  .sside__foot { grid-template-columns: 1fr; padding: 12px 0 4px; border: 0; }

  .stool { position: static; margin: 0; padding: 0 0 16px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .stool__filters { display: none; }
  .stool__count { font-size: 13.5px; }
  .stool__cols { display: flex; gap: 4px; padding-left: 12px; border-left: 1px solid var(--lx-line); }
  .stool__cols button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: rgba(29, 22, 21, .3); transition: color .2s; }
  .stool__cols button svg { width: 19px; height: 19px; }
  .stool__cols button.is-on { color: var(--lx-gold2); }
  .sgrid2 { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 44px 24px; padding-top: 10px; }
  .slayout.is-full .sgrid2 { --cols: 4; }

  /* laptop: gold "Add to cart" rises from the plate on hover */
  .lcard__add { display: none; }
  .lcard__body { padding-right: 2px; }
  .lcard__quick {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px;
    border-radius: 999px; background: #1b0b0c; color: #ecd3a6; font-size: 12.5px; letter-spacing: .08em;
    box-shadow: 0 0 0 1px rgba(201, 162, 110, .6);
    opacity: 0; transform: translateY(10px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s, color .25s;
  }
  .lcard__quick svg { width: 16px; height: 16px; }
  .lcard__quick:hover { background: var(--lx-gold); color: #2a0b0e; }
  .lcard:hover .lcard__quick, .lcard__quick:focus-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lcard, .lcard__media, .lcard__media img { animation: none !important; }
}

/* mobile hero: title + details beside the picture (not under it) */
@media (max-width: 767px) {
  .shero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; min-height: 250px; }
  .shero__media { order: 2; padding: 14px 8px 14px 0; }
  .shero__media img { max-height: 250px; }
  .shero__txt { padding: 22px 6px 22px var(--gutter); margin: 0; }
  .shero__kicker { font-size: 9px; letter-spacing: .24em; }
  .shero__title { margin-top: 6px; font-size: clamp(26px, 8vw, 36px); }
  .shero__desc { margin-top: 8px; font-size: 11.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .shero__facts { margin-top: 12px; flex-wrap: wrap; row-gap: 8px; }
  .shero__facts li { padding: 0 10px; }
  .shero__facts b { font-size: 17px; }
  .shero__facts span { font-size: 8.5px; letter-spacing: .12em; }
  .shero__logo img { height: 34px; max-width: 150px; }
}

/* All / Men / Women switch */
.sgender { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--lx-line); }
.sgender button { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 12.5px; letter-spacing: .04em; color: var(--lx-muted); transition: background-color .25s, color .25s; }
.sgender button:hover { color: #1d1615; }
.sgender button.is-on { background: #1d1615; color: #fff; }
@media (max-width: 1023px) {
  .stool { flex-wrap: wrap; row-gap: 10px; }
  .sgender { order: 5; flex: 1 1 100%; }
  .sgender button { flex: 1; }
}

/* every product card is exactly the same size */
.sgrid2 { align-items: stretch; }
.lcard__brand, .lcard__model, .lcard__price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* performance: cards no longer float forever on phones */
@media (hover: none) {
  .lcard__top.is-inview .lcard__media, .lcard__top.is-inview .lcard__media img { animation: none !important; }
}
.lcard__price:has(.pold) { white-space: normal; overflow: visible; }
.lcard__price { font-size: 15px !important; }

/* no layout jumps while the page fills in: the footer starts below the screen, the hero keeps its height */
.shop-page { min-height: 100vh; }
@media (max-width: 767px) { .shero__media { min-height: 278px; } }

/* the product photo fills the plate edge to edge, in the shape cropped in the dashboard */
.lcard__media { aspect-ratio: var(--ar, 1 / 1.12); }
.lcard__media img { inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; transform: translateZ(0); filter: none; }
.lcard__top.is-tilt .lcard__media img { transform: translateZ(18px) scale(1.02); }
.lcard__floor { display: none; }
.lcard__glare { z-index: 1; border-radius: 14px; }
@keyframes imgFloat { 0%, 100% { transform: translateZ(0); } 50% { transform: translateZ(10px); } }
.lcard .cdots { margin-top: 8px; }
.lcard .cdots i { width: 14px; height: 14px; }

/* every product card is the same square picture, and names take the same room */
.lcard__media { aspect-ratio: 1 !important; }
.lcard__model { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* brands without a separate logo: their card picture already carries logo + name */
.scat--card .scat__tile::after { display: none; }
.scat--card .scat__tile img { filter: none; }
.scat--card .scat__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* Sale: full-width banner (whole picture, no fade), page text below it */
.shero--banner { display: block !important; min-height: 0 !important; background: #1a0306; }
.shero--banner .shero__media { display: block; width: 100%; height: auto !important; min-height: 0 !important; padding: 0 !important; -webkit-mask-image: none; mask-image: none; }
.shero--banner .shero__media::before { display: none; }
.shero--banner .shero__media img { width: 100%; height: auto; max-width: none; max-height: none; aspect-ratio: 2 / 1; object-fit: cover; -webkit-mask-image: none; mask-image: none; box-shadow: none; }
.shero--banner .shero__kicker, .shero--banner .shero__title, .shero--banner .shero__desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shero--banner .shero__txt { padding: 16px var(--gutter, 16px); background: linear-gradient(180deg, #ece2d6, #f7f2ec); }
.shero--banner .shero__facts { margin: 0; justify-content: center; }

/* GPU versions of the two endless effects (repainting background-position / box-shadow every
   frame kept phones busy): the shine is a sliding layer, the sale pulse a fading ring */
.scat__gloss { background: none !important; overflow: hidden; }
.scat__gloss::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 260%; background: linear-gradient(115deg, transparent 35%, rgba(255, 246, 228, .5) 48%, transparent 60%); transform: translateX(5%); }
.scat.is-on .scat__gloss { animation: none; }
.scat.is-on .scat__gloss::before { animation: scatShine2 3.6s ease-in-out 1.2s infinite; will-change: transform; }
@keyframes scatShine2 { 0% { transform: translateX(5%); } 45%, 100% { transform: translateX(-60%); } }
@media (hover: hover) { .scat:hover .scat__gloss::before { transform: translateX(-60%); transition: transform .9s ease; } }
.scat--sale .scat__n { animation: none; }
.scat--sale .scat__n::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 6px rgba(179, 18, 42, .5); opacity: 0; transform: scale(.75); animation: scatPulse2 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes scatPulse2 { 0% { opacity: 0; transform: scale(.75); } 15% { opacity: .9; } 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .scat.is-on .scat__gloss::before, .scat--sale .scat__n::after { animation: none; } }
/* phones: the hero keeps its usual height before the category text arrives, so the products
   below don't jump down when it fills in (layout shift) */
@media (max-width: 767px) { .shero:not(.shero--banner) { min-height: 278px; } }
