/* ============================================================
   AREXA — Phase 2: CLiQ Luxury visual language layer
   Loaded after style.css + mega-nav.css. Additive overrides only.
   ============================================================ */

/* ---- Product card: always-on "Add to Bag", CLiQ-style meta stack ---- */
.product-card.cliq{background:transparent;padding-bottom:0}
.product-card.cliq .product-image{aspect-ratio:.82;background:#f1efe9}
.product-card.cliq .heart{background:rgba(255,255,255,.96);box-shadow:0 3px 10px rgba(23,19,15,.16),0 0 0 1px rgba(23,19,15,.05) inset;color:var(--ink);font-size:15px;top:8px;right:8px;width:30px;height:30px;transition:transform .18s var(--ease),box-shadow .18s var(--ease),color .18s var(--ease)}
.product-card.cliq .heart:active{transform:scale(.88)}
.product-card.cliq .heart:hover{box-shadow:0 5px 14px rgba(23,19,15,.22),0 0 0 1px rgba(23,19,15,.06) inset}
.product-card.cliq .heart.active{color:#c0392b;box-shadow:0 3px 10px rgba(23,19,15,.16),0 0 0 1px rgba(192,57,43,.18) inset}
.product-card.cliq .quick-add{display:none}
.product-card.cliq .product-info{padding:12px 2px 0}
.product-card.cliq .product-name{display:block;font:700 12.5px/1.3 var(--sans);letter-spacing:.01em;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card.cliq .product-sub{display:block;font-size:11.5px;color:var(--muted);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card.cliq .product-price{font-size:13px;font-weight:700}
.product-card.cliq .product-price .mrp{font-weight:400;color:var(--muted);text-decoration:line-through;margin-left:6px;font-size:11.5px}
.product-card.cliq .product-price .discount{display:block;color:#1c7a3e;font-weight:700;font-size:11.5px;margin-top:2px}
.badge-pill{position:absolute;top:8px;left:8px;z-index:1;background:#f3ddf0;color:#7a3a8a;font-size:9.5px;font-weight:700;padding:4px 9px;border-radius:999px;text-transform:none;max-width:calc(100% - 46px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.badge-pill.new{background:#f3ddf0;color:#7a3a8a}
.badge-pill.sale{background:#fde2e2;color:#b3261e}
.image-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:2px;pointer-events:none}
.image-dots span{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.6);box-shadow:0 0 0 1px rgba(0,0,0,.12) inset;pointer-events:auto;cursor:pointer;padding:6px;background-clip:content-box}
.image-dots span.active{background:var(--ink);box-shadow:none}
.rating-row{display:flex;align-items:center;gap:8px;margin-top:4px;flex-wrap:wrap}
.rating-pill{display:inline-flex;align-items:center;gap:3px;border:1px solid var(--line);border-radius:999px;padding:2px 8px;font-size:10.5px;color:var(--ink)}
.rating-pill b{font-weight:500;color:var(--muted)}
.low-stock{font-size:10.5px;color:#c0392b;font-weight:600}
.add-to-bag{display:block;width:100%;margin-top:10px;height:36px;border:1px solid var(--ink);background:transparent;color:var(--ink);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;transition:background .18s var(--ease),color .18s var(--ease)}
.add-to-bag:hover{background:var(--ink);color:#fff}
.rail-scroll{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:6px}
.rail-scroll::-webkit-scrollbar{display:none}
.rail-scroll .product-card{flex:0 0 46%;min-width:150px}
@media(min-width:600px){.rail-scroll .product-card{flex-basis:210px}}

/* ---- Popular categories: photo-tile grid with caption ---- */
.cat-tile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line)}
.cat-tile{position:relative;aspect-ratio:1;overflow:hidden;background:#ddd}
.cat-tile img{transition:transform .6s var(--ease)}
.cat-tile:hover img{transform:scale(1.06)}
.cat-tile span{position:absolute;left:0;right:0;bottom:0;padding:10px 6px;text-align:center;background:linear-gradient(transparent,rgba(0,0,0,.55));color:#fff;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
@media(min-width:821px){.cat-tile-grid{grid-template-columns:repeat(4,1fr)}}

/* ---- Bank offers rail ---- */
.bank-offer-grid{display:grid;grid-template-columns:1fr;gap:10px}
.bank-offer-card{display:flex;align-items:center;gap:14px;padding:16px;background:var(--card);border:1px solid var(--line)}
.bank-offer-icon{flex:none;width:38px;height:38px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font:700 15px var(--serif)}
.bank-offer-card h4{margin:0 0 3px;font-size:13px}
.bank-offer-card p{margin:0;font-size:11.5px;color:var(--muted)}
@media(min-width:640px){.bank-offer-grid{grid-template-columns:1fr 1fr}}

/* ---- Price Crash strip: dark banner header + product rail ---- */
.price-crash{background:#161310;color:#fff;padding:36px 0 40px}
.price-crash .section-head{margin-bottom:20px}
.price-crash .eyebrow{color:#cbb98a}
.price-crash .section-title{color:#fff}
.price-crash .product-card.cliq .product-name,
.price-crash .product-card.cliq .product-price{color:#fff}
.price-crash .product-card.cliq .product-sub{color:#a9a49b}
.price-crash .add-to-bag{border-color:#fff;color:#fff}
.price-crash .add-to-bag:hover{background:#fff;color:#161310}

/* ---- Home page: luxury rail flows straight into the hero ---- */
body[data-page="home"] .luxury-rail{border-top:0}

/* ---- Mobile/desktop hero visibility toggle ---- */
.mobile-only-hero{display:block}
.desktop-only-hero{display:none}
@media(min-width:821px){
  .mobile-only-hero{display:none}
  .desktop-only-hero{display:block}
}

/* ---- Mobile hero: single swipeable slider, one slide per banner (matches the desktop slider behaviour) ---- */
.hero-stack{background:#161310}
.hero-banner{position:relative;overflow:hidden;border-bottom:2px solid var(--paper)}
.hero-banner:last-child{border-bottom:0}
.hero-banner .hero-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}
.hero-banner .hero-track::-webkit-scrollbar{display:none}
.hero-banner .hero-slide{flex:0 0 100%;scroll-snap-align:start;position:relative;min-height:40vh;min-height:max(40vh,340px);display:flex;align-items:flex-end}
/* 2nd mobile home banner (Festive Edit) shorter than the 1st — compact CLiQ-style promo strip */
.hero-stack .hero-banner:nth-of-type(2) .hero-slide{min-height:20vh;min-height:max(20vh,200px)}
.hero-banner .hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.88}
.hero-banner .hero-slide:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,8,6,.08) 40%,rgba(10,8,6,.8))}
.hero-slide-content{position:relative;z-index:1;padding:0 clamp(20px,6vw,60px) 42px;color:#fff;max-width:640px;width:100%}
.hero-slide-content .eyebrow{color:#e4c68a}
.hero-slide-content h2{font:600 clamp(28px,6vw,50px)/1.02 var(--serif);letter-spacing:-.03em;margin:8px 0 10px}
.hero-slide-content p{margin:0 0 18px;color:rgba(255,255,255,.85);max-width:420px}
.hero-slide-content .text-link{display:inline-block}
.shop-all-eyebrow{display:block;font:600 26px var(--serif);color:#fff}
.hero-banner-shop .hero-slide{padding-bottom:78px}
.hero-chip-row{position:absolute;left:0;right:0;bottom:14px;z-index:2;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0 clamp(20px,6vw,60px) 2px}
.hero-chip-row::-webkit-scrollbar{display:none}
.hero-chip-row a{flex:none;padding:9px 16px;border-radius:999px;background:rgba(255,255,255,.92);color:#161310;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.hero-banner .hero-dots{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:center;gap:6px;z-index:2;pointer-events:none}
.hero-banner-shop .hero-dots{display:none}

/* 3rd mobile home "slider" — a horizontally-scrollable row of category
   bubbles (round icon + label), same box height as the 2nd banner
   slider for visual consistency, with a decorative dot row underneath
   (matching the look of the two banner sliders above it) — data comes
   from categories_for_home_bubbles(). */
.hero-cat-bubbles{position:relative;background:var(--paper);min-height:20vh;min-height:max(20vh,200px);display:flex;flex-direction:column;justify-content:flex-end;padding:14px 0 40px;overflow:hidden}
.hero-cat-bg-track{position:absolute;inset:0;z-index:0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}
.hero-cat-bg-track::-webkit-scrollbar{display:none}
.hero-cat-bg-slide{flex:0 0 100%;scroll-snap-align:start;position:relative}
.hero-cat-bg-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-cat-bubbles.has-bg:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(10,8,6,.08) 40%,rgba(10,8,6,.75));pointer-events:none}
.hero-cat-bubbles-rows{position:relative;z-index:2;display:flex;flex-direction:column;gap:10px}
.hero-cat-bubbles-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;padding:0 clamp(20px,6vw,60px)}
.hero-cat-bubbles-track::-webkit-scrollbar{display:none}
.cat-bubble{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:999px;background:#fff;border:1px solid var(--line);scroll-snap-align:start;text-decoration:none}
.cat-bubble-label{font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap}
/* Slider 3 has a swipeable background photo behind the bubbles — keep the
   pills see-through (instead of solid white) so that photo stays visible,
   with a light blur for legibility. No background photo means these sit
   on plain paper, where solid white pills read better, so this is scoped
   to .has-bg only. */
.hero-cat-bubbles.has-bg .cat-bubble{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.hero-cat-bubbles.has-bg .cat-bubble-label{color:#fff}
.hero-cat-bg-dots{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:6px;z-index:3;pointer-events:none}
.hero-cat-bg-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);transition:background .2s,transform .2s}
.hero-cat-bg-dots span.active{background:#fff;transform:scale(1.3)}

/* ---- Desktop hero: single slider, CLiQ-Fashion "SHOP NOW" style ---- */
.hero-main{position:relative;overflow:hidden;background:#161310}
.hero-main .hero-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}
.hero-main .hero-track::-webkit-scrollbar{display:none}
.hero-main .hero-slide{flex:0 0 100%;scroll-snap-align:start;position:relative;min-height:0;aspect-ratio:2.5/1;display:flex;align-items:center}
.hero-main .hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 15%;opacity:.95}
.hero-main .hero-slide:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,8,6,.55) 0%,rgba(10,8,6,.1) 42%,rgba(10,8,6,0) 60%)}
.hero-slide-content{position:relative;z-index:1;padding:0 clamp(20px,6vw,60px) 46px;color:#fff;max-width:600px;width:100%}
.hero-main .hero-slide-content{padding:0 clamp(20px,6vw,70px);margin-bottom:0}
.hero-slide-eyebrow{display:block;font:italic 500 14px var(--serif);color:#e4c68a;margin-bottom:8px}
.hero-slide-content h2{font:600 clamp(28px,6vw,48px)/1.06 var(--serif);letter-spacing:-.02em;margin:0 0 8px}
.hero-slide-content p{margin:0 0 18px;color:rgba(255,255,255,.85);max-width:380px;font-size:14px}
.hero-shop-btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 26px;background:#fff;color:#161310;font-size:11px;font-weight:700;letter-spacing:.12em;border-radius:2px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.hero-shop-btn:hover{background:var(--accent);color:#fff;box-shadow:0 8px 24px rgba(181,138,80,.4)}
.hero-main .hero-dots{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:6px;z-index:2;pointer-events:none}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.85);color:#161310;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;transition:background .18s var(--ease)}
.hero-arrow:hover{background:#fff}
.hero-arrow-prev{left:14px}
.hero-arrow-next{right:14px}
.hero-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);transition:background .2s,transform .2s}
.hero-dots span.active{background:#fff;transform:scale(1.3)}
.hero-main{max-width:1800px;margin:0 auto}
@media(min-width:821px){
  body[data-page="home"] .hero-main{background:#fff;max-width:1500px;margin:22px auto 44px;padding:0 34px;overflow:visible}
  body[data-page="home"] .hero-main .hero-track{border-radius:16px;overflow:hidden}
  body[data-page="home"] .hero-arrow{box-shadow:0 4px 16px rgba(0,0,0,.18);background:#fff;border:1px solid var(--line)}
  /* .hero-main has 34px side padding on desktop, so arrows must sit 34px + inset in
     from the outer edge to land inside the hero-track image instead of the padding gutter */
  body[data-page="home"] .hero-arrow-prev{left:44px}
  body[data-page="home"] .hero-arrow-next{right:44px}
}

/* ---- Home page ---- */
body[data-page="home"] .topbar{display:none}
body[data-page="home"] main{background:#fff}
body[data-page="home"] .hero-stack{margin-top:0}
/* Mobile only: header floats transparently over the hero image (CLiQ-Fashion style)
   instead of sitting in a solid white bar above it. Desktop keeps the standard
   sticky white header untouched. */
@media(max-width:820px){
  body[data-page="home"] .header{position:absolute;top:0;left:0;right:0;z-index:50;background:rgba(10,8,6,.12);border-bottom:0;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);padding-bottom:14px}
  /* Two rows: logo + icons on top, full-width search pill below (CLiQ-Fashion style) */
  body[data-page="home"] .header .logo img{filter:drop-shadow(0 1px 4px rgba(0,0,0,.45))}
  body[data-page="home"] .header .logo-tagline{color:#fff}
  body[data-page="home"] .header .nav-search-row{padding:10px 0 0}
  body[data-page="home"] .header .nav-search{background:rgba(255,255,255,.22)}
  body[data-page="home"] .header .nav-search svg{color:#fff;opacity:1}
  body[data-page="home"] .header .nav-search-input{color:#fff}
  body[data-page="home"] .header .nav-search-input::placeholder{color:rgba(255,255,255,.85)}
  /* White icons with a soft shadow so they stay legible over any hero photo */
  body[data-page="home"] .header .icon-btn{color:#fff}
  body[data-page="home"] .header .icon-btn svg{filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
  /* Push the model down within the first mobile banner's photos so the face sits
     below the floating header/search bar instead of behind it */
  body[data-page="home"] .hero-stack .hero-banner:first-child .hero-slide img{object-position:center 2%}
  /* The source photos have no extra headroom above the model, so repositioning alone
     can't fully clear the header — add a dark scrim behind the header/search bar so
     it stays legible and visually separated no matter what's directly beneath it */
  body[data-page="home"] .hero-stack .hero-banner:first-child .hero-slide:after{background:linear-gradient(180deg,rgba(10,8,6,.7) 0%,rgba(10,8,6,.7) 24%,rgba(10,8,6,.08) 44%,rgba(10,8,6,.8) 100%)}
}

/* ---- Promo banners: full-bleed image slider, overlay text, white SHOP NOW pill (CLiQ-Fashion home style) ---- */
.promo-banner{position:relative;overflow:hidden;min-height:340px;background:#ddd}
.promo-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;height:100%;position:absolute;inset:0}
.promo-track::-webkit-scrollbar{display:none}
.promo-slide{flex:0 0 100%;scroll-snap-align:start;height:100%}
.promo-slide img{width:100%;height:100%;object-fit:cover;object-position:center 32%}
.promo-banner:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.38));pointer-events:none}
.promo-banner-content{position:absolute;left:18px;bottom:56px;z-index:1;color:#fff;max-width:66%}
.promo-banner-alt .promo-banner-content{bottom:auto;top:26px}
.promo-eyebrow{display:block;font:italic 500 14px var(--serif)}
.promo-banner-content h2{font:700 30px/1.05 var(--serif);letter-spacing:-.01em;margin:2px 0 8px}
.promo-banner-content p{font-size:12.5px;margin:0}
.promo-shop-btn{position:absolute;right:16px;bottom:16px;z-index:1;background:#fff;color:#161310;height:38px;padding:0 22px;display:inline-flex;align-items:center;font-size:10.5px;font-weight:700;letter-spacing:.1em}
.promo-shop-btn:hover{background:var(--accent);color:#fff}
.promo-dots{position:absolute;left:0;right:0;bottom:8px;z-index:1;display:flex;justify-content:center;gap:6px;pointer-events:none}
.promo-dots span{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.45);transition:background .2s,transform .2s}
.promo-dots span.active{background:#fff;transform:scale(1.3)}
@media(min-width:821px){.promo-banner{min-height:0;aspect-ratio:2.6/1;max-width:1800px;margin:0 auto}}

/* ---- Image shimmer/skeleton loading (home hero banners + category
   tiles, mobile and desktop). Pure CSS + a tiny load-listener in
   app.js (initShimmer) — no markup other than the .shimmer class and
   an <img> inside it, so it's safe to drop onto any image container. */
.shimmer{position:relative;overflow:hidden;background:#efe9df}
.shimmer::before{content:'';position:absolute;inset:0;background:linear-gradient(100deg,#efe9df 20%,#f7f2e8 40%,#efe9df 60%);background-size:200% 100%;animation:shimmer-sweep 1.5s ease-in-out infinite;z-index:0}
.shimmer.shimmer-loaded::before{content:none}
.shimmer img{opacity:0;transition:opacity .35s ease}
.shimmer.shimmer-loaded img{opacity:1}
@keyframes shimmer-sweep{0%{background-position:150% 0}100%{background-position:-50% 0}}
@media(prefers-reduced-motion:reduce){.shimmer::before{animation:none}}

/* ---- Explore It All: rectangular label+thumbnail tiles, CLiQ-Fashion style ---- */
.cat-list-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cat-list-tile{display:flex;align-items:center;justify-content:space-between;background:#f1ece1;padding:14px 10px 14px 16px;min-height:76px;overflow:hidden;transition:background .18s var(--ease)}
.cat-list-tile:hover{background:#e9e0cf}
.cat-list-tile span{font:700 12.5px/1.25 var(--sans);letter-spacing:.02em;text-transform:uppercase;color:var(--ink);max-width:60%}
.cat-list-tile img{width:58px;height:58px;object-fit:cover;border-radius:50%;flex:none}
@media(min-width:600px){.cat-list-grid{grid-template-columns:repeat(4,1fr)}.cat-list-tile{flex-direction:column-reverse;text-align:center;gap:8px;padding:16px 8px}.cat-list-tile span{max-width:100%}.cat-list-tile img{width:64px;height:64px}}

/* ---- Homepage category grid: rectangular photo tiles matching the CLiQ-Fashion home reference ---- */
.home-cat-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.home-cat-grid .cat-list-tile{position:relative;display:block;align-items:unset;justify-content:unset;background:#f7ece0;padding:14px;min-height:120px;overflow:hidden}
.home-cat-grid .cat-list-tile:hover{background:#efe1cd}
.home-cat-grid .cat-list-tile span{display:block;font:800 13.5px/1.25 var(--sans);letter-spacing:.01em;text-transform:uppercase;color:var(--ink);max-width:55%;position:relative;z-index:1}
.home-cat-grid .cat-list-tile small{display:none}
.home-cat-grid .cat-list-tile img{position:absolute;right:0;bottom:0;top:0;width:52%;height:100%;border-radius:0;object-fit:cover}
.home-cat-section{padding:0 0 60px}
@media(max-width:820px){body[data-page="home"] .home-cat-section{width:100%;max-width:100%;margin:2px 0 0;padding:0 0 2px}}
.home-cat-title{text-align:center;font:600 26px var(--serif);letter-spacing:-.01em;margin:0 0 22px}
@media(min-width:600px){.home-cat-grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:821px){
  .home-cat-grid{grid-template-columns:repeat(6,1fr);gap:20px;background:transparent}
  .home-cat-grid .cat-list-tile{background:transparent;padding:0;min-height:0}
  .home-cat-grid .cat-list-tile:hover img{transform:scale(1.03)}
  .home-cat-grid .cat-list-tile img{position:static;width:100%;height:220px;border-radius:6px;object-fit:cover;margin-bottom:12px;transition:transform .3s var(--ease)}
  .home-cat-grid .cat-list-tile span{display:block;max-width:100%;font-size:13px;margin-bottom:2px}
  .home-cat-grid .cat-list-tile small{display:block;font-size:11.5px;color:var(--muted);text-transform:none;letter-spacing:0;font-weight:500}
  .home-cat-title{font-size:30px}
}

/* ---- Desktop-only sections (hidden on mobile per the mobile "stop after tiles" reference) ---- */
.desktop-only-section,.desktop-only-footer{display:none}
@media(min-width:821px){
  .desktop-only-section{display:block}
  .desktop-only-footer{display:block}
  .collection-spotlight{padding:10px 0 60px}
  .spotlight-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
  .spotlight-card{display:block;text-decoration:none}
  .spotlight-card img{width:100%;height:230px;border-radius:6px;object-fit:cover;margin-bottom:12px;transition:transform .3s var(--ease)}
  .spotlight-card:hover img{transform:scale(1.03)}
  .spotlight-label{display:block;font:700 13px var(--sans);color:var(--ink)}
  .spotlight-card small{display:block;font-size:11px;color:var(--accent);font-weight:700;letter-spacing:.04em;margin-top:2px}
}
.listing-hero .hero-slide{min-height:38vh}
.explore-all-strip{padding:34px 0 10px}
.explore-all-title{font:600 22px var(--serif);letter-spacing:-.02em;margin:0 0 16px}
@media(min-width:821px){.listing-hero{max-width:1800px;margin:0 auto}.listing-hero .hero-slide{min-height:0;aspect-ratio:3/1}}


/* ---- Contact page: studio details card + form ---- */
.contact-layout{display:grid;grid-template-columns:1fr;gap:34px;padding-bottom:70px}
.contact-card{background:#161310;color:#fff;padding:32px 28px;border-radius:2px}
.contact-card h3{font:600 26px var(--serif);margin:0 0 4px}
.contact-owner{color:#cbb98a;font-size:12.5px;letter-spacing:.04em;margin:0 0 22px}
.contact-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.contact-list li{font-size:14px;color:#f0ece3}
.contact-list li span{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#a9a49b;margin-bottom:4px}
.contact-list li a{color:#fff;border-bottom:1px solid rgba(255,255,255,.3)}
.contact-form{max-width:680px}
@media(min-width:821px){.contact-layout{grid-template-columns:.85fr 1.15fr;align-items:start}}

/* ---- Unified account modal: email-first login/signup, matches the whitish site theme ---- */
.auth-modal-card{padding:0;overflow:hidden;background:#fff;color:var(--ink)}
#auth-modal .modal-card{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-width:100%;transform:translateY(100%);border-radius:14px 14px 0 0;padding:30px 24px 34px;box-shadow:0 -8px 30px rgba(0,0,0,.12)}
#auth-modal.open .modal-card{transform:translateY(0)}
.auth-modal-card .modal-close{color:var(--ink)}
.auth-modal-head{text-align:center;margin-bottom:22px}
.auth-modal-eyebrow{display:block;font-size:13px;color:var(--muted);margin-bottom:10px}
.auth-modal-logo{height:34px;width:auto;object-fit:contain;margin:0 auto}
.auth-modal-tagline{display:block;margin-top:6px;font:700 9px/1 var(--sans);letter-spacing:.15em;text-transform:uppercase;color:var(--ink)}
.auth-modal-label{display:block;font-size:12px;color:var(--muted);margin:14px 0 6px}
.auth-modal-input{width:100%;height:44px;border:0;border-bottom:1px solid var(--line);background:transparent;font-size:15px;padding:0 2px;outline:0;color:var(--ink)}
.auth-modal-input:focus{border-color:var(--ink)}
.auth-modal-terms{font-size:11px;color:var(--muted);line-height:1.6;margin:16px 0}
.auth-modal-terms a{color:var(--accent);border-bottom:1px solid var(--accent)}
.auth-modal-btn{width:100%;height:48px;margin-top:8px;background:var(--ink);color:#fff}
.auth-modal-btn:hover{background:var(--accent);color:#fff}
.auth-modal-divider{display:flex;align-items:center;gap:10px;margin:18px 0;color:var(--muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.auth-modal-divider::before,.auth-modal-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-modal-google{width:100%;height:48px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:10px;font-size:13.5px;color:var(--ink);cursor:pointer;font-weight:500}
.auth-modal-google:hover{background:#f8f5ef}
.auth-modal-google:disabled{cursor:not-allowed}
.auth-modal-note{font-size:13px;color:var(--muted);margin:0 0 6px}
.auth-modal-back{display:block;margin:16px auto 0;text-align:center;width:100%;color:var(--ink);border-color:var(--ink)}
.auth-modal-forgot{display:block;text-align:right;font-size:11.5px;color:var(--muted);margin-top:10px;border-bottom:0}
.auth-modal-forgot:hover{color:var(--ink)}
.auth-modal-resend{display:block;margin:14px auto 0;text-align:center;width:100%;color:var(--ink);border-color:var(--ink)}
.auth-modal-error{color:#b3261e;font-size:12.5px;margin-top:14px;text-align:center}
@media(min-width:640px){#auth-modal .modal-card{position:absolute;left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-45%) scale(.96);width:min(420px,calc(100% - 36px));border-radius:4px;padding:36px 32px}#auth-modal.open .modal-card{transform:translate(-50%,-50%) scale(1)}}

/* ---- Trust strip (Genuine / Warranty / Secure) reused on cart later ---- */
.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust-strip div{font-size:10px;letter-spacing:.05em;color:var(--muted)}
.trust-strip span{display:block;font-size:20px;margin-bottom:6px}

/* ---- Mobile Sort/Filter bottom bar (CLiQ-style) ---- */
.sort-filter-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(0,0,0,.06)}
.sort-filter-bar button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:54px;font-size:12.5px;font-weight:700;color:var(--ink)}
.sort-filter-bar svg{width:18px;height:18px}
.sf-divider{width:1px;height:26px;background:var(--line)}
#listing-grid-section{padding-bottom:70px}
body[data-page="listing"] .footer{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
@media(min-width:821px){
  .sort-filter-bar,#sort-sheet,#filter-drawer{display:none}
  /* Keep breathing room between the product grid / Add to Bag row and the footer
     on desktop — this only needs to lose the fixed mobile sort-bar clearance, not all spacing */
  #listing-grid-section{padding-bottom:60px}
  body[data-page="listing"] .footer{padding-bottom:25px}
}

/* ---- Cart page: items list, free-shipping nudge, checkout bar ----
   Deliberately its own classes (not .drawer-item-list/.drawer-foot,
   which belong to the slide-out drawers) so nothing here can ever be
   pushed out of the normal document flow by drawer-only rules. */
.cart-items{margin-top:4px}
.cart-ship-hint{margin:18px 0;padding:11px 14px;background:#f7f4ef;border:1px solid var(--line);border-radius:6px;font-size:12px;color:var(--muted)}
.cart-ship-hint b{color:var(--ink)}
.cart-ship-hint-ok{background:#eaf6ee;border-color:#bfe3ca;color:#1e7a3d}
.cart-ship-hint-ok b{color:#1e7a3d}
.cart-summary{margin-top:22px}
.cart-summary-row{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;margin-bottom:16px}
.cart-checkout-btn{display:flex;width:100%}
@media(max-width:820px){
  body[data-page="cart"] #cart-page{padding-bottom:14px}
  body[data-page="cart"] main{padding-bottom:96px}
  body[data-page="cart"] .cart-summary{position:fixed;left:0;right:0;bottom:0;z-index:40;margin:0;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(0,0,0,.08);padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}
  body[data-page="cart"] .cart-summary-row{margin:0;flex-direction:column;align-items:flex-start;gap:2px;font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}
  body[data-page="cart"] .cart-summary-row span:last-child{font-size:17px;font-weight:700;color:var(--ink)}
  body[data-page="cart"] .cart-checkout-btn{width:auto;flex:1;max-width:230px}
  body[data-page="cart"] .footer{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
}

/* ---- Sort bottom sheet ---- */
#sort-sheet .sheet-panel{position:fixed;left:0;right:0;bottom:0;background:#fff;border-radius:14px 14px 0 0;transform:translateY(100%);transition:.35s var(--ease);padding-bottom:16px}
#sort-sheet.open .sheet-panel{transform:translateY(0)}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;font:700 15px var(--sans);border-bottom:1px solid var(--line)}
.sheet-head .modal-close{position:static;font-size:20px}
.sheet-options{display:flex;flex-direction:column}
.sheet-option{text-align:left;padding:16px 20px;font-size:14px;color:var(--ink);border-bottom:1px solid var(--line)}
.sheet-option.active{color:var(--accent);font-weight:700}

/* ---- Filter drawer ---- */
.filter-panel{padding:22px}
.filter-field{margin-bottom:18px}
.filter-field label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}
.filter-field .filter-select{width:100%}
.filter-panel .drawer-foot .btn{width:100%}

/* ---- Compact mobile category header (CLiQ-style secondary header) ---- */
.cat-header-compact{display:none}
.desktop-rich-shop{display:none}
.mobile-search-box{padding:14px 18px 16px}
.mobile-search-inner{display:flex;align-items:center;gap:10px;height:44px;padding:0 16px;background:#efece5;border-radius:999px;color:var(--muted)}
.mobile-search-inner svg{flex:none;width:17px;height:17px;color:var(--muted)}
.mobile-search-inner .mic-icon{color:var(--ink);cursor:pointer}
.mobile-search-inner .mic-icon.listening{color:var(--accent);animation:micPulse 1s ease-in-out infinite}
@keyframes micPulse{0%,100%{opacity:1}50%{opacity:.4}}
.mobile-search-input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--ink);font-size:13px;font-family:var(--sans)}
.mobile-search-input::placeholder{color:var(--muted)}
@media(max-width:820px){
  body[data-page="listing"] .topbar,body[data-page="listing"] #site-nav{display:none}
  .cat-header-compact{display:grid;grid-template-columns:28px 1fr auto auto;align-items:center;gap:10px;padding:14px 16px;background:#fff;border-bottom:1px solid var(--line)}
  .cat-back{font-size:24px;line-height:1;color:var(--ink)}
  .cat-header-title{display:flex;flex-direction:column;min-width:0}
  .cat-header-title span{font:700 15px var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cat-header-title small{font-size:11px;color:var(--muted)}
  .cat-header-compact .icon-btn{width:26px;height:26px}
  .cat-header-compact .icon-btn svg{width:20px;height:20px}
}
@media(min-width:821px){
  .desktop-rich-shop{display:block}
  .mobile-search-box{display:none}
}

/* ---- Desktop listing page: sidebar filters + product grid (CLiQ-Fashion style) ---- */
@media(min-width:821px){
  .listing-page-title{text-align:center;font:600 30px var(--serif);letter-spacing:-.01em;margin:20px 0 30px}
  .listing-layout{display:grid;grid-template-columns:230px 1fr;gap:36px;align-items:start}
  .filters-sidebar{position:sticky;top:100px}
  .filters-sidebar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
  .filters-sidebar-head h3{font:700 16px var(--sans);margin:0}
  .filters-sidebar-head button{font-size:11px;color:var(--accent);font-weight:700;letter-spacing:.03em}
  .filter-group{margin-bottom:20px}
  .filter-group label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:7px;font-weight:700}
  .filter-group .filter-select{width:100%}
  .listing-main .results-line{display:flex;align-items:center;justify-content:space-between}
  .sort-inline{display:flex;align-items:center;gap:8px}
  .sort-inline label{font-size:12px;color:var(--muted);white-space:nowrap}
  .sort-inline .filter-select{min-width:170px}
}

/* ---- Tighten shop page-head spacing on desktop (was leaving a large blank gap before the hero banner) ---- */
@media(min-width:821px){
  body[data-page="listing"] .page-head{padding:24px 0 18px}
  body[data-page="listing"] .page-head .eyebrow{display:none}
  body[data-page="listing"] .topbar{display:none}
  /* Header stays the standard white theme (matches product/home pages) */
}

/* ---- Product reviews (Phase 6) ---- */
.reviews-section{max-width:720px;margin:40px auto 0;padding:0 20px}
.reviews-heading{font-family:var(--serif);font-size:22px;margin:0 0 18px}
.reviews-loading,.reviews-empty{color:var(--muted);font-size:13px}
.review-card{border-top:1px solid var(--line);padding:16px 0}
.review-stars{color:#c99a2e;letter-spacing:2px;font-size:14px}
.review-card h4{margin:6px 0 4px;font-size:14px}
.review-card p{margin:0 0 6px;font-size:13.5px;color:#3d3833;line-height:1.6}
.review-meta{font-size:11.5px;color:var(--muted)}
.review-form{border:1px solid var(--line);padding:20px;margin-bottom:24px;background:#faf8f4}
.star-picker{display:flex;gap:6px;margin:6px 0 16px}
.star-picker button{font-size:26px;background:none;border:none;cursor:pointer;color:#c99a2e;line-height:1;padding:0}
.review-form input,.review-form textarea{width:100%;padding:11px 12px;border:1px solid var(--line);background:#fff;font:inherit;font-size:13.5px;margin-bottom:12px;box-sizing:border-box}
.review-form-msg{font-size:12.5px;color:#5c554d;margin-top:10px}
.review-media-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.review-media-thumb{width:72px;height:72px;object-fit:cover;border-radius:4px;border:1px solid var(--line);background:#000}

/* ---- Colour swatches with real photos (Phase 11) ---- */
.color-swatches{display:flex;flex-wrap:wrap;gap:12px}
.color-swatch{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  width:70px; padding:0; background:none; border:none; cursor:pointer;
}
.color-swatch img{
  width:70px; height:88px; object-fit:contain; background:#f4f0e8; border-radius:8px;
  border:1px solid var(--line,#e4ddcf); box-shadow:0 1px 3px rgba(20,15,10,.08);
  transition:box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.color-swatch:hover img{ transform:translateY(-2px); box-shadow:0 4px 10px rgba(20,15,10,.12); }
.color-swatch.active img{ border-color:var(--maroon,#7a1f2b); box-shadow:0 0 0 2px var(--maroon,#7a1f2b); }
.color-swatch span{
  font-size:11px; color:#5f5a54; width:100%; text-align:center; line-height:1.25;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.color-swatch.active span{ color:var(--maroon,#7a1f2b); font-weight:600; }
/* .color-swatch also carries the generic .option class (for shared button
   reset styles). Two problems that causes: .option forces height:38px —
   too short for the 70px swatch photo, so the photo overflowed downward
   into the Size row below it; and .option.active sets a black
   background (meant for the Size pills), which showed through around
   the swatch photo/caption since the first colour is active by default.
   Override both here so the swatch only takes its own styling. */
.option.color-swatch{ height:auto; min-width:auto; background:none; }
.option.color-swatch.active{ background:none; border-color:transparent; }

/* ---- Listing skeleton / shimmer loading state (shown until real products render) ---- */
@keyframes arexaShimmer{0%{background-position:-420px 0}100%{background-position:420px 0}}
.skeleton-bar{display:inline-block;height:11px;width:72px;border-radius:3px;vertical-align:middle;background:linear-gradient(90deg,#e9e5db 0px,#f5f2ec 60px,#e9e5db 120px);background-size:480px 100%;animation:arexaShimmer 1.3s ease-in-out infinite}
.product-card.skeleton-card{pointer-events:none}
.product-card.skeleton-card .product-image{background:linear-gradient(90deg,#eeece6 0px,#f7f5f0 60px,#eeece6 120px);background-size:480px 100%;animation:arexaShimmer 1.3s ease-in-out infinite}
.product-card.skeleton-card .skeleton-line{height:10px;border-radius:3px;margin-top:9px;background:linear-gradient(90deg,#e9e5db 0px,#f5f2ec 60px,#e9e5db 120px);background-size:480px 100%;animation:arexaShimmer 1.3s ease-in-out infinite}
.product-card.skeleton-card .skeleton-line.w-70{width:70%}
.product-card.skeleton-card .skeleton-line.w-45{width:45%}
.product-card.skeleton-card .skeleton-line.w-30{width:30%;margin-top:12px}
@media(prefers-reduced-motion:reduce){.skeleton-bar,.product-card.skeleton-card .product-image,.product-card.skeleton-card .skeleton-line{animation:none}}

/* Stock: sold-out sizes/colours on the product page, and sold-out cards in listings */
.option.oos,.option:disabled{opacity:.45;text-decoration:line-through;cursor:not-allowed}
.option.color-swatch.oos img{filter:grayscale(1);opacity:.55}
.variant-stock-note{font-size:12.5px;font-weight:600;color:#c0392b;margin:8px 0;min-height:1px}
.product-card.is-soldout .product-image img{filter:grayscale(.85) opacity(.65)}
.product-card.is-soldout .product-image:after{display:none}
.soldout-ribbon{position:absolute;left:0;right:0;bottom:0;z-index:1;background:rgba(20,15,10,.72);color:#fff;text-align:center;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:6px 0}

/* Bag: lines that are sold out / over available stock, and the blocked checkout button */
.cart-stock-banner{background:#fdecea;color:#b3261e;border:1px solid #f5c2be;border-radius:6px;padding:10px 12px;font-size:13px;font-weight:600;margin:0 0 14px}
.drawer-item.has-issue{background:#fff7f6}
.drawer-item.has-issue img{filter:grayscale(.7);opacity:.7}
.cart-issue{color:#b3261e;font-size:12px;font-weight:600;margin:4px 0}
.cart-issue-fix{background:none;border:1px solid #b3261e;color:#b3261e;border-radius:4px;padding:4px 10px;font-size:12px;font-weight:600;margin:2px 0 6px;cursor:pointer}
.cart-checkout-btn:disabled{opacity:.5;cursor:not-allowed}
.quantity button:disabled{opacity:.4;cursor:not-allowed}
