/* =========================================================================
   RAIVEX — css/rebrand.css   ("Streetwear. Redefined." design system)
   -------------------------------------------------------------------------
   Loaded AFTER css/style.css + css/motion.css on every page. The old
   stylesheet is token-driven, so most of the re-skin happens by redefining
   the tokens below (dark → light, red → ink, Orbitron/Rajdhani → Inter);
   the rest of this file restyles the pieces that were drawn with hard-coded
   colours or that have a brand-new look (header, footer, cards, dock).

   Nothing in here touches behaviour: every id / class / data-attribute the
   JS and the backend rely on is untouched — this file only changes how
   they look.
   ========================================================================= */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root{
  --bg:#ececea;            /* page */
  --card:#f6f6f4;          /* cards */
  --paper:#ffffff;
  --ink:#111111;
  --dark:#0b0b0b;
  --alert:#c62828;         /* errors / destructive only */

  /* legacy token names used all over style.css → remapped */
  --black:#ececea;
  --black-soft:#e3e3e0;
  --charcoal:#f6f6f4;
  --charcoal-2:#ffffff;
  --line:rgba(17,17,17,.13);
  --white:#111111;         /* "white" in the old file meant "foreground ink" */
  --muted:#6c6c69;
  --muted-2:#8a8a86;
  --red:#111111;           /* old accent → ink */
  --red-dim:#333333;
  --red-glow:rgba(0,0,0,.16);
  --chrome-a:#111111;
  --chrome-b:#8a8a86;
  --green:#1b8a4b;

  --f-display:'Inter','Inter Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-mono:'Inter','Inter Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-body:'Inter','Inter Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;

  --radius:12px;
  --container:1320px;
  --header-h:68px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. BASE ------------------------------------------------------ */
html{ background:var(--bg); }
body{ background:var(--bg); color:var(--ink); font-family:var(--f-body); letter-spacing:-.005em; }
::selection{ background:var(--ink); color:#fff; }
:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
.container{ max-width:var(--container); padding:0 max(20px,3.2vw); }
.grain::after{ display:none; }

/* headings that used Orbitron caps → Inter heavy, tight */
.section-title, h1, h2, h3.t{
  font-family:var(--f-display); font-weight:800; letter-spacing:-.035em; text-transform:none; line-height:1.02;
}
.eyebrow, .lbl{
  font-family:var(--f-mono); font-size:11px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--muted);
}
.eyebrow::before{ background:var(--muted); width:26px; }
.section-lead{ color:var(--muted); }

/* ---------- 3. BUTTONS --------------------------------------------------- */
.btn{
  font-family:var(--f-mono); font-weight:600; letter-spacing:.06em; text-transform:none; font-size:13px;
  padding:14px 26px; border-radius:999px; gap:14px;
}
.btn-primary{ background:var(--ink); color:#fff; border:1px solid var(--ink); }
.btn-primary:hover{ background:#000; box-shadow:0 12px 30px -10px rgba(0,0,0,.5); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--ink); border:1px solid var(--line); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn.is-added{ background:#fff; color:var(--ink); border-color:var(--ink); }
.btn-arrow{ display:inline-grid; place-items:center; }
.rx-fly-chip{ background:var(--ink); box-shadow:0 8px 20px rgba(0,0,0,.35); }
.rx-fly-chip svg{ stroke:#fff; }

/* ---------- 4. HEADER ---------------------------------------------------- */
.site-header{
  background:rgba(236,236,234,.78);
  backdrop-filter:blur(16px) saturate(1.3); -webkit-backdrop-filter:blur(16px) saturate(1.3);
  border-bottom:1px solid transparent;
}
.site-header::before{ display:none; }
.site-header.is-scrolled{ background:rgba(236,236,234,.92); border-bottom-color:var(--line); box-shadow:none; }

.rx-bar{
  max-width:1520px; margin:0 auto; height:var(--header-h);
  display:flex; align-items:center; gap:28px; padding:0 max(20px,3.2vw);
}
.logo img{ height:20px; width:auto; }
.rx-links{ display:flex; align-items:center; gap:30px; flex:1; justify-content:center; min-width:0; }
.rx-links > a, .rx-links .header-tab{
  position:relative; font-family:var(--f-mono); font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink); opacity:.62; padding:6px 0; transition:opacity .2s ease; white-space:nowrap;
}
.rx-links > a::after, .rx-links .header-tab::after{
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:100%; background:var(--ink);
  transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease);
}
.rx-links > a:hover, .rx-links .header-tab:hover, .rx-links > a.is-active{ opacity:1; }
.rx-links > a:hover::after, .rx-links .header-tab:hover::after, .rx-links > a.is-active::after{ transform:scaleX(1); }
.header-tabs{ display:contents; }
.header-tab.is-pinned{ display:none; }

.rx-tools{ display:flex; align-items:center; gap:6px; margin-left:auto; }
.rx-links + .rx-tools{ margin-left:0; }

.header-search{
  display:flex; align-items:center; gap:8px; width:190px; height:38px; padding:0 6px 0 14px;
  background:rgba(255,255,255,.7); border:1px solid var(--line); border-radius:999px;
  transition:width .35s var(--ease), background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.header-search:focus-within{ width:260px; background:#fff; border-color:var(--ink); box-shadow:0 8px 24px -12px rgba(0,0,0,.35); }
.header-search-icon{ width:15px; height:15px; stroke:var(--muted); fill:none; stroke-width:2; flex:none; }
.header-search input{
  flex:1; min-width:0; background:none; border:none; outline:none; font-size:13px; color:var(--ink); font-family:var(--f-body);
}
.header-search input::placeholder{ color:var(--muted-2); }
.header-search input::-webkit-search-cancel-button{ display:none; }
.header-search-submit{ display:none; }

.header-address{
  display:flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; color:var(--ink); max-width:225px;
  transition:background .2s ease;
}
.header-address:hover{ background:rgba(0,0,0,.05); }
.header-address > svg{ width:17px; height:17px; stroke:var(--ink); fill:none; stroke-width:1.7; flex:none; }
.header-address-text{ display:flex; flex-direction:column; line-height:1.15; min-width:0; }
.header-address-text strong{ font-size:11px; font-weight:700; letter-spacing:.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:165px; }
.header-address-text small{ font-size:10px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:130px; }
@media (max-width:1380px){ .header-address-text small{ display:none; } }
@media (max-width:1240px){ .header-address-text{ display:none; } .header-address{ padding:8px; } }

.header-account, .header-cart{ display:flex; }
.nav-account, .header-cart{
  display:flex; align-items:center; gap:7px; height:38px; padding:0 12px; border-radius:999px;
  font-family:var(--f-mono); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--ink);
  transition:background .2s ease, color .2s ease;
}
.nav-account:hover, .header-cart:hover{ background:rgba(0,0,0,.06); color:var(--ink); }
.header-cart:hover svg{ stroke:var(--ink); }
.nav-account svg, .header-cart svg{ width:18px; height:18px; }
.nav-account.is-signed-in svg[data-icon-filled]{ fill:var(--ink); }
.nav-account-avatar{ background:var(--ink); color:#fff; box-shadow:none; font-family:var(--f-body); }
.header-cart{ background:var(--ink); color:#fff; }
.header-cart svg{ stroke:#fff; }
.header-cart:hover{ background:#000; color:#fff; }
.header-cart:hover svg{ stroke:#fff; }
.cart-count{
  background:#fff; color:var(--ink); border:none; font-family:var(--f-body); font-weight:700; font-size:10px;
  min-width:18px; height:18px; border-radius:999px; display:inline-grid; place-items:center; padding:0 5px; line-height:1;
}
.cart-count[data-empty="true"]{ display:none; }
.header-cart.dot-mode .cart-count[data-empty="true"]{ display:none; }

/* account dropdown */
.header-dropdown{
  background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 24px 60px -18px rgba(0,0,0,.28); overflow:hidden;
}
.header-dropdown::before{ display:none; }
.header-dropdown a, .header-dropdown button{ font-family:var(--f-body); font-size:12px; font-weight:600; letter-spacing:.06em; color:var(--muted); }
.header-dropdown a:hover, .header-dropdown button:hover{ color:var(--ink); background:rgba(0,0,0,.04); }
.header-dropdown-name{ font-family:var(--f-body); font-weight:700; color:var(--ink); }
.header-dropdown-signout{ color:var(--alert) !important; }
.header-dropdown-signout:hover{ background:rgba(198,40,40,.07) !important; }

.nav-toggle{ display:none; width:38px; height:38px; padding:11px 9px; justify-content:space-between; border-radius:999px; }
.nav-toggle span{ background:var(--ink); height:2px; border-radius:2px; }
.nav-toggle.is-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* intermediate desktop widths: nav + tools used to collide below ~1300px */
@media (max-width:1320px){
  .rx-bar{ gap:16px; }
  .rx-links{ gap:20px; }
  .rx-links > a, .rx-links .header-tab{ letter-spacing:.12em; }
  .header-search{ width:150px; }
  .header-search:focus-within{ width:210px; }
}
@media (min-width:981px) and (max-width:1180px){
  .rx-bar{ gap:10px; }
  .rx-links{ gap:15px; }
  .rx-links > a, .rx-links .header-tab{ font-size:10.5px; letter-spacing:.08em; }
  /* search collapses to an icon pill and opens on focus */
  .header-search{ width:38px; padding:0 0 0 11px; cursor:pointer; }
  .header-search input{ width:0; padding:0; opacity:0; }
  .header-search:focus-within{ width:210px; padding:0 6px 0 14px; cursor:text; }
  .header-search:focus-within input{ width:auto; opacity:1; }
  .nav-account, .header-cart{ padding:0 10px; }
}

/* fullscreen mobile menu */
.nav-links{ display:none; }
@media (max-width:980px){
  .rx-links{ display:none; }
  .rx-tools{ margin-left:auto; }
  .nav-toggle{ display:flex; }
  .header-address{ display:none; }
  .header-account{ display:none; }
  .nav-links.is-open{
    display:flex; position:fixed; inset:0; top:var(--header-h); background:var(--bg); z-index:150;
    flex-direction:column; align-items:stretch; padding:18px 6vw 40px; gap:0; overflow:auto;
  }
  .nav-links.is-open a{
    font-family:var(--f-body); font-weight:800; font-size:clamp(30px,8vw,44px); letter-spacing:-.035em; text-transform:none;
    color:var(--ink); padding:14px 0; border-bottom:1px solid var(--line); width:100%;
  }
  .nav-links.is-open a::after{ display:none; }
  body.nav-open .site-header{ background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; transform:none; will-change:auto; }
}
@media (max-width:760px){
  :root{ --header-h:112px; }
  .rx-bar{ flex-wrap:wrap; height:auto; padding-top:12px; padding-bottom:10px; gap:10px 8px; }
  .logo img{ height:17px; }
  .rx-tools{ display:contents; }
  .header-search{ order:5; width:100%; flex-basis:100%; height:40px; }
  .header-search:focus-within{ width:100%; }
  .header-cart{ display:none; }          /* cart lives in the bottom dock on phones */
  .nav-toggle{ margin-left:auto; order:2; }
  .nav-links.is-open{ top:0; padding-top:calc(var(--header-h) + 12px); }
}

/* ---------- 5. PRELOADER / SPLASH --------------------------------------- */
.preloader{ background:var(--bg); display:grid; place-items:center; overflow:hidden; }
.rx-pre{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.rx-pre img{ width:84px; height:auto; animation:rx-pre-pulse 1.4s ease-in-out infinite; }
.rx-pre-bar{ width:120px; height:2px; background:rgba(0,0,0,.1); border-radius:2px; position:relative; overflow:hidden; }
.rx-pre-bar::after{ content:""; position:absolute; inset:0 auto 0 -40%; width:40%; background:var(--ink); animation:rx-splash-bar 1.1s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes rx-pre-pulse{ 0%,100%{ opacity:.35; transform:scale(.96); } 50%{ opacity:1; transform:scale(1); } }
.brand-splash{ background:var(--bg); }
.brand-splash img{ width:min(220px,56vw); }
.brand-splash-bar{ background:rgba(0,0,0,.1); }
.brand-splash-bar::after{ background:var(--ink); box-shadow:none; }

/* ---------- 6. FOOTER ----------------------------------------------------
   Compact: the old footer was ~1150px tall (giant watermark + huge padding + a
   second, invisible outlined wordmark injected by motion.js). Now ~500px on
   desktop, ~700px on phones, and it sits flush against the end of every page. */
.site-footer{
  background:var(--dark); color:#fff; border-top:none; padding:clamp(26px,3.4vw,48px) 0 20px; margin-top:clamp(24px,4vw,56px);
  overflow:hidden; perspective:1400px;
}
.rx-foot-giant{ display:grid; place-items:center; padding:0 3vw; margin-bottom:calc(-1 * clamp(14px,2.4vw,36px)); pointer-events:none; }
.rx-foot-giant img{ width:min(64vw,900px); height:auto; opacity:.11; }
.rx-foot-box{
  position:relative; background:#f4f4f2; color:var(--ink); border-radius:26px; padding:clamp(22px,3.4vw,52px);
  display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(22px,3vw,48px); transform-origin:50% 100%; will-change:transform;
}
.rx-foot-box .footer-brand h4{ font-size:clamp(28px,3.7vw,54px); letter-spacing:-.04em; line-height:1; font-weight:800; margin:0 0 16px; }
.rx-foot-box .footer-brand p{ color:var(--muted); max-width:340px; font-size:14px; margin:0 0 20px; }
.rx-foot-box .btn-primary{ background:var(--ink); color:#fff; }
.rx-foot-box .footer-top{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px; padding:0; border:none; align-content:start;
}
.footer-col h3{ font-family:var(--f-mono); font-size:11px; font-weight:700; letter-spacing:.18em; color:var(--muted-2); margin:0 0 10px; text-transform:uppercase; }
.footer-col a{ color:var(--ink); opacity:.7; font-size:14px; padding:4px 0; display:flex; align-items:center; gap:8px; transition:opacity .2s ease, padding-left .2s ease; }
.footer-col a:hover{ color:var(--ink); opacity:1; padding-left:4px; }
.footer-col a svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.6; flex:none; }
.site-footer .footer-bottom{
  border:none; padding:16px 0 0; color:rgba(255,255,255,.5); font-size:12px; letter-spacing:.04em;
}
.site-footer .footer-social a{ color:rgba(255,255,255,.6); }
.site-footer .footer-social a:hover{ color:#fff; }
/* the outlined "RAIVEX" ghost motion.js used to inject is redundant with .rx-foot-giant */
.site-footer > .rx-giant--footer{ display:none; }
@media (max-width:900px){
  .rx-foot-box{ grid-template-columns:1fr; border-radius:22px; }
  .rx-foot-box .footer-top{ grid-template-columns:1fr 1fr; gap:18px; }
  /* Follow tucks under Navigate (left column) so the link area stays two rows shorter */
  .rx-foot-box .footer-top .footer-col:nth-child(2){ grid-column:2; grid-row:1 / span 2; }
  .rx-foot-box .footer-follow{ grid-column:1; grid-row:2; }
}
@media (max-width:760px){
  /* the fixed dock / product CTA bar overlaps the page end, so the footer's own dark
     background reaches underneath it instead of body padding leaving a light strip */
  body, body.has-mobile-pd-cta{ padding-bottom:0; }
  .site-footer{ padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)); margin-top:28px; }  /* clears dock + WhatsApp/back-to-top buttons */
  .rx-foot-box{ padding:22px 20px; }
  .rx-foot-box .footer-brand h4{ font-size:clamp(28px,8.6vw,38px); margin-bottom:12px; }
  .rx-foot-box .footer-brand p{ margin-bottom:16px; }
  .footer-col a{ padding:3px 0; }
  .site-footer .footer-bottom{ flex-direction:column; align-items:flex-start; gap:8px; }
}

/* ---------- 7. MOBILE DOCK / FLOATING UI -------------------------------- */
.mobile-dock{
  background:rgba(255,255,255,.88); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--line); border-top:1px solid var(--line); box-shadow:0 -10px 40px -18px rgba(0,0,0,.25);
}
.mobile-dock a, .mobile-dock button{ color:var(--muted); }
.mobile-dock a.active, .mobile-dock a:hover, .mobile-dock button.active{ color:var(--ink); }
.mobile-dock svg{ stroke:currentColor; }
.dock-badge{ background:var(--ink); color:#fff; font-family:var(--f-body); }
.scroll-progress{ background:var(--ink); }
/* dock now carries up to 6 entries (Home, Shop, Collections, Orders, Cart, Sign In): sentence-case labels so "Collections" fits a 360px phone */
.mobile-dock a{ min-width:0; padding-left:2px; padding-right:2px; }
.mobile-dock a > span:not(.dock-badge):not(.nav-account-avatar){ max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-transform:none; letter-spacing:0; font-size:10px; font-weight:500; }
.back-to-top{ background:var(--ink); border-color:var(--ink); color:#fff; }
.back-to-top:hover{ background:#000; border-color:#000; box-shadow:0 10px 26px rgba(0,0,0,.35); }
.toast{ background:var(--ink); color:#fff; border:none; border-radius:999px; font-family:var(--f-body); }
.whatsapp-fab{ box-shadow:0 10px 26px -8px rgba(0,0,0,.4); }
.whatsapp-fab-menu{ background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 24px 60px -18px rgba(0,0,0,.3); }
.whatsapp-fab-menu-item{ color:var(--ink); }
.whatsapp-fab-menu-item:hover{ background:rgba(0,0,0,.05); }

/* ---------- 8. PRODUCT CARDS + GRID ------------------------------------- */
.product-grid{ gap:22px; }
.product-card{
  background:var(--card); border:none; border-radius:22px; padding:12px; box-shadow:0 14px 40px rgba(0,0,0,.07);
  transition:transform .45s var(--ease), box-shadow .45s var(--ease);
}
.product-card:hover{ transform:translateY(-6px); box-shadow:0 26px 60px -18px rgba(0,0,0,.25); }
.product-media{ border-radius:16px; overflow:hidden; background:linear-gradient(160deg,#d9d9d6,#bdbdb9); }
.product-info{ padding:14px 6px 8px; }
.product-name{ font-family:var(--f-body); font-weight:700; letter-spacing:-.01em; color:var(--ink); text-transform:none; }
.product-cat{ font-family:var(--f-mono); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.product-price{ font-family:var(--f-body); font-weight:700; color:var(--ink); }
.product-price.is-strike{ color:var(--muted-2); font-weight:500; }
.product-discount-tag{ background:rgba(27,138,75,.12); color:var(--green); border:none; border-radius:999px; font-family:var(--f-body); font-weight:700; }
.product-badge{
  background:var(--ink); color:#fff; border:none; border-radius:999px; font-family:var(--f-mono); font-weight:700;
  letter-spacing:.12em; padding:6px 11px; box-shadow:none;
}
.product-badge.badge-soldout{ background:#fff; color:var(--ink); border:1px solid var(--line); }
.product-badge.badge-sale{ background:var(--alert); color:#fff; }
.product-badge.badge-new{ background:#fff; color:var(--ink); box-shadow:0 4px 14px -6px rgba(0,0,0,.35); }
.product-best-price{ background:rgba(27,138,75,.09); border:none; border-radius:999px; color:var(--ink); }
.product-placeholder{ background:linear-gradient(160deg,#d9d9d6,#bdbdb9); color:rgba(0,0,0,.35); font-family:var(--f-mono); letter-spacing:.14em; }
.card-swatch{ border-radius:50%; }

/* ---------- 9. TOKEN-FLIP FIXES ------------------------------------------
   Rules in style.css that put "var(--white)" text on a "var(--red)" fill
   (white-on-red before, ink-on-ink after the remap) → forced back to white. */
.btn-primary, .cart-count, .product-badge.badge-limited, .size-pill.is-selected,
.mobile-dock .dock-badge, .nav-account-avatar, .profile-avatar, .rx-install-cta{ color:#fff; }
.product-badge.badge-sale{ background:var(--alert); color:#fff; box-shadow:none; }
.product-badge.badge-discounted{ background:rgba(255,255,255,.85); color:var(--green); border:1px solid var(--line); }
.product-badge.badge-riders{ background:#fff; color:var(--ink); border:1px solid var(--ink); }

/* semantic danger states keep a real red */
.cart-item-alert.is-danger, .btn-ghost-danger:hover, .support-popover-item:hover{ color:var(--alert); border-color:var(--alert); }
.cart-item-alert.is-danger{ background:rgba(198,40,40,.08); }
.btn-ghost-danger:hover{ background:rgba(198,40,40,.06); }
.cancel-reason-option.is-selected{ border-color:var(--ink); }
.cart-offer-banner{ background:linear-gradient(90deg, rgba(17,17,17,.06), transparent); border-color:var(--ink); }
.checkout-offer, .cart-offer-banner, .offer-banner{ background:rgba(17,17,17,.05); }
.field label{ color:var(--muted); }
.field input, .field textarea, .field select{ border-bottom-color:rgba(17,17,17,.3); }
/* metallic sheen → solid ink (the chrome gradient read as broken letters on a light page) */
.metallic{ background:none; -webkit-background-clip:border-box; background-clip:border-box; color:var(--ink); -webkit-text-fill-color:var(--ink); animation:none; }
.modal-box{ background:#f6f6f4; border-radius:20px; border:none; box-shadow:0 40px 100px -30px rgba(0,0,0,.45); }
.modal-close{ border-radius:50%; }


/* ---------- 10. CUTOUT PRODUCT IMAGERY -----------------------------------
   Product images are transparent full-body model cutouts (/images/cutouts/*).
   They are ~1:3.6 tall, so on cards, thumbs, cart rows and the gallery they are
   cropped from the top (head → hips, the garment) instead of letterboxed, and a
   soft shadow lifts the figure off the studio backdrop. Photos keep `cover`. */
img[src*="/images/cutouts/"][src]{
  object-fit:cover !important; object-position:50% 0 !important;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,.18));
}
/* headroom above the hair so the head is never kissing the frame edge (padding is background, image is drawn inside) */
.product-media img[src*="/images/cutouts/"], .gallery-main img[src*="/images/cutouts/"],
.gallery-swipe-slide img[src*="/images/cutouts/"], .quickview-media img[src*="/images/cutouts/"]{ box-sizing:border-box; padding-top:5%; }
.gallery-thumb img[src*="/images/cutouts/"], .color-option-thumb img[src*="/images/cutouts/"],
.cart-item-media img[src*="/images/cutouts/"]{ box-sizing:border-box; padding-top:6%; }
.product-media, .gallery-main, .gallery-swipe-slide, .quickview-media, .cart-item-media, .feat .big{
  background:radial-gradient(120% 90% at 50% 8%, #f1f1ef 0%, #dcdcd8 58%, #c9c9c4 100%);
}
/* wide tiles (home bento, strips): same crop, a touch lower so the garment is centred */
.bento .bg[src*="/images/cutouts/"]{ object-position:50% 22% !important; opacity:.9; }
.strip img.cover[src*="/images/cutouts/"]{ object-position:50% 14% !important; }
.feat .big img.cover[src*="/images/cutouts/"]{ object-position:50% 12% !important; }

/* ---------- 11. 3D DEPTH LAYER (js/depth3d.js) ---------------------------
   Pointer-driven perspective tilt + parallax. Pure transform/opacity, so it stays
   on the compositor. Idle sway keeps touch screens alive. All of it is off for
   prefers-reduced-motion. */
.rx-3d{ perspective:900px; }
.rx-3d-card{
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0);
  transform-style:preserve-3d; transition:transform .5s var(--ease), box-shadow .45s var(--ease);
}
.rx-3d-card.is-tilting{ transition:transform .08s linear, box-shadow .45s var(--ease); }
.rx-3d-card .rx-pop{ transform:translate3d(var(--px,0px),var(--py,0px),0) scale(var(--ps,1)); transition:transform .5s var(--ease); will-change:transform; }
.rx-3d-card.is-tilting .rx-pop{ transition:transform .08s linear; }
.product-card.rx-3d-card:hover{ transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-6px); }
.product-card.rx-3d-card:hover .product-media img{ transform:none; }  /* parallax replaces the plain zoom */

/* hero stage: tilts as one object, floor shadow stays on the ground */
.rx-stage{ position:relative; width:100%; height:100%; transform-style:preserve-3d;
  transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform .6s var(--ease); }
.rx-stage.is-tilting{ transition:transform .1s linear; }
.rx-floor{ position:absolute; left:50%; bottom:-1.2%; width:120%; height:5.5%; transform:translateX(-50%) translateZ(-30px);
  background:radial-gradient(closest-side, rgba(0,0,0,.34), rgba(0,0,0,0) 72%); filter:blur(4px); pointer-events:none; }
@media (prefers-reduced-motion:reduce){
  .rx-3d-card, .rx-3d-card .rx-pop, .rx-stage{ transition:none; transform:none !important; }
}

/* ---------- 12. SHOPPER-FLOW POLISH ---------------------------------------
   Found while walking Home → Product → Cart → Checkout on a phone. */
/* dashed "wireframe" boxes (cart banner, checkout/PDP offer rows) → solid cards like the rest of the site */
.cart-offer-banner, .pd-offer-item{
  border:1px solid var(--line); border-radius:14px; background:#f6f6f4;
}
.pd-offer-item{ padding:11px 14px; }
@media (max-width:760px){
  /* mobile product page: smaller square gallery so the name + price are visible without scrolling */
  .gallery-swipe-slide{ aspect-ratio:1/1; }
  /* the dark cart shortcut had a dark icon on a dark disc (token flip) → invisible */
  .mobile-cart-fab svg{ stroke:#fff; }
  .mobile-cart-fab{ background:var(--ink); border-color:var(--ink); }
  /* too many floating circles covered the content; the dock/CTA bar already covers "up" and "cart" */
  .back-to-top{ display:none !important; }
  /* never cover form fields */
  body:has(.checkout-form) .whatsapp-fab-wrap, body:has(#cart-root) .whatsapp-fab-wrap{ display:none; }
}

/* prepaid price box: Raivex Price is a real price (what you pay on delivery), not a cancelled one — only the MRP is struck through */
.pd-payment-box[data-active="prepaid"] [data-line="cod"] .pd-payment-line-value{ text-decoration:none !important; }
.pd-payment-box[data-active="prepaid"] [data-line="prepaid"] .pd-payment-save-tag{ opacity:1; transform:none; }
/* "Added to cart" toast carries a View cart link */
.toast{ display:flex; align-items:center; gap:14px; white-space:nowrap; }
.toast-link{ color:#fff; text-decoration:underline; text-underline-offset:3px; font-weight:800; }
.toast.is-visible{ pointer-events:auto; }
/* why-is-Place-Order-disabled hint */
.checkout-hint{ display:block; width:100%; margin:10px 0 0; padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:#fff;
  color:var(--ink); font:600 12.5px/1.35 var(--f-body); text-align:center; cursor:pointer; }
.checkout-hint[hidden]{ display:none; }

/* ---------- PHONE FIT: nothing may leave the screen ----------------------------------------------------- */
@media (max-width:760px){
  html, body{ overflow-x:clip; }
  img, video, svg, canvas{ max-width:100%; }
  .cart-layout, .checkout-layout{ min-width:0; }
  .cart-layout > *, .checkout-layout > *, .cart-item > *{ min-width:0; }
  .cart-item{ grid-template-columns:72px minmax(0,1fr); gap:14px; }
  .cart-item-media{ width:72px; height:88px; border-radius:12px; }
  .cart-item > div:last-child{ grid-column:2; flex-direction:row !important; align-items:center !important; justify-content:space-between !important; padding-top:2px; }
  .cart-item-remove{ text-align:right; }
  .cart-summary-card, .checkout-summary-card{ border-radius:22px; padding:22px 18px; }
  .cart-page, .checkout-page{ padding-top:calc(var(--header-h) + 64px); }
  .modal-box{ max-width:calc(100vw - 24px); }
}


/* ---- footer contact block (address, email, WhatsApp) ---- */
.rx-foot-box .footer-brand p.footer-contact{ font-size:13px; line-height:1.7; margin:0 0 20px; }
.rx-foot-box .footer-brand p.footer-contact a{ color:var(--ink); border-bottom:1px solid transparent; }
.rx-foot-box .footer-brand p.footer-contact a:hover{ border-color:var(--ink); }

/* ---- guides (articles) ---- */
.guide .guide-lead{ font-size:18px; line-height:1.65; color:var(--ink); max-width:640px; margin:0 0 26px; }
.guide .guide-answer{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:20px 24px; max-width:720px; margin:0 0 30px; font-size:15.5px; line-height:1.7; color:var(--ink); }
.guide .guide-figure{ margin:0 0 40px; max-width:720px; display:flex; flex-direction:column; align-items:center; gap:10px; background:var(--card); border-radius:14px; padding:22px 16px 14px; }
.guide .guide-figure img{ height:340px; width:auto; max-width:100%; object-fit:contain; }
.guide .guide-figure figcaption{ font-size:12.5px; color:var(--muted); }
.guide .policy-section h2{ text-transform:none; letter-spacing:-.01em; font-weight:800; }
.guide .policy-content a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.guide .policy-content em{ font-style:italic; }
.guide-table-wrap{ overflow-x:auto; margin:6px 0 18px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.guide-table{ width:100%; border-collapse:collapse; font-size:14px; min-width:520px; }
.guide-table th,.guide-table td{ text-align:left; padding:12px 16px; border-bottom:1px solid var(--line); vertical-align:top; color:var(--muted); }
.guide-table th{ color:var(--ink); font-weight:700; font-size:12.5px; letter-spacing:.04em; text-transform:uppercase; }
.guide-table td:first-child{ color:var(--ink); font-weight:600; white-space:nowrap; }
.guide-table tr:last-child td{ border-bottom:none; }
.guide-cta{ margin-top:56px; padding:30px 32px; border:1px solid var(--line); background:var(--paper); border-radius:16px; max-width:720px; }
.guide-cta h3{ font-size:20px; letter-spacing:-.01em; margin:0 0 10px; color:var(--ink); }
.guide-cta p{ color:var(--muted); font-size:15px; line-height:1.7; margin:0 0 14px; }
.guide-cta a:not(.btn){ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.guide-cta .btn{ margin-top:4px; }
.guide-related{ margin-top:40px; max-width:720px; }
.guide-related h3{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted-2); margin:0 0 10px; }
.guide-related ul{ list-style:none; margin:0; padding:0; }
.guide-related li{ padding:8px 0; border-top:1px solid var(--line); font-size:15px; }
.guide-related a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.guide-index{ display:grid; gap:16px; max-width:720px; margin-top:30px; }
.guide-card{ display:block; background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:26px 28px; transition:transform .25s ease, box-shadow .25s ease; }
.guide-card:hover{ transform:translateY(-3px); box-shadow:0 12px 30px #0001; }
.guide-card h2{ font-size:clamp(19px,2.4vw,24px); letter-spacing:-.02em; line-height:1.2; margin:0 0 8px; color:var(--ink); text-transform:none; }
.guide-card p{ color:var(--muted); font-size:15px; line-height:1.65; margin:0 0 14px; }
.guide-card span{ font-size:13px; font-weight:700; color:var(--ink); }
@media (max-width:600px){ .guide .guide-figure img{ height:280px; } .guide-cta{ padding:24px 22px; } }

/* ---------- 12. BOTTOMWEAR — trousers / pants (data-fit="pants") ---------------
   Pants are full-length shots. Tops are cropped head→hips, which would hide the pants entirely, so:
     • queue / grid / thumbnails  → the WHOLE model (contain, standing on the floor of the frame)
     • being shown (hover, selected in the homepage showcase, touch-scroll) → zoom in on the pants
     • product page               → photo 1 whole model, photo 2 the pants close-up (…-detail.webp)
   Flag comes from scripts/build.js (isBottomwear), js/product-card.js and js/home.js.
   The zoom uses the individual `scale` property so it never fights the 3D tilt (`transform`) in §11. */
:root{ --pants-zoom:2.15; --pants-origin:50% 69%; --pants-ease:cubic-bezier(.16,1,.3,1); }

/* shop grid + "You might also like" cards */
.product-card[data-fit="pants"] .product-media img[src*="/images/cutouts/"]{
  object-fit:contain !important; object-position:50% 100% !important;
  padding:5% 0 0; box-sizing:border-box;
  transform-origin:var(--pants-origin);
  transition:scale .85s var(--pants-ease), transform .4s var(--pants-ease);
  will-change:auto;   /* a will-change:transform layer keeps its 1× raster and blurs when scaled up */
}
@media (hover:hover){
  .product-card[data-fit="pants"]:hover .product-media img[src*="/images/cutouts/"]{ scale:var(--pants-zoom); }
}
.product-card[data-fit="pants"].is-zoomed .product-media img[src*="/images/cutouts/"]{ scale:var(--pants-zoom); }
.product-card[data-fit="pants"] .product-media img[src*="-detail."]{ object-fit:cover !important; object-position:50% 50% !important; padding:0; }

/* homepage showcase: no zoom — queue and selected product both show the whole model */

/* product page: photo 1 whole model, detail photo cropped to the pants */
.pdp[data-fit="pants"] img[src*="/images/cutouts/"]:not([src*="-detail."]){
  object-fit:contain !important; object-position:50% 100% !important; padding:3% 0 0 !important; box-sizing:border-box;
}
.pdp[data-fit="pants"] img[src*="-detail."]{ object-fit:cover !important; object-position:50% 50% !important; padding:0 !important; }
.pdp[data-fit="pants"] .pdp-color-thumb img[src*="/images/cutouts/"]{ object-fit:cover !important; object-position:50% 60% !important; padding:0 !important; }

/* tiles that crop a wide window out of the figure: aim it at the pants instead of the face */
.bento .bg.is-bottom[src*="/images/cutouts/"]{ object-position:50% 50% !important; }
.strip img.cover.is-bottom[src*="/images/cutouts/"]{ object-position:50% 52% !important; }
.feat .big img.cover.is-bottom[src*="/images/cutouts/"]{ object-position:50% 40% !important; }
/* cart rows + gallery thumbs have no data flag — go by the file name */
.cart-item-media img[src*="/images/cutouts/"][src*="trouser"],
.cart-item-media img[src*="/images/cutouts/"][src*="pants"],
.cart-item-media img[src*="/images/cutouts/"][src*="jogger"]{ object-position:50% 52% !important; padding-top:0 !important; }

@media (prefers-reduced-motion:reduce){
  .product-card[data-fit="pants"] .product-media img[src*="/images/cutouts/"]{ transition:none; }
}


/* =========================================================================
   MOBILE POLISH (phones)
   - the WhatsApp floating button fades out while the page is scrolling and comes back when it stops,
     so it never sits on top of what is being read (js/main.js toggles html.rx-scrolling). The cart button always stays.
   - form fields are 16px so iPhones do not zoom the page when a field is tapped
   - footer links get a comfortable touch height
   ========================================================================= */
@media (max-width:760px){
  .whatsapp-fab-wrap{ transition:opacity .25s ease, transform .25s ease; }
  html.rx-scrolling .whatsapp-fab-wrap:not(:has([aria-expanded="true"])){ opacity:0; transform:translateY(10px) scale(.92); pointer-events:none; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
  select,textarea{ font-size:16px; }
  .footer-col a{ padding:11px 0; }
}
@media (prefers-reduced-motion:reduce){
  .whatsapp-fab-wrap{ transition:none; }
}

/* =========================================================================
   APP-LIKE BUTTON FEEL (touch)
   - no grey/square tap flash, no 300ms tap delay, no text-selection or image-callout on long press
   - press-in / spring-back animation is driven by js/main.js; the :active rule below is the no-JS fallback
   - keyboard focus keeps a visible outline that follows the button's rounded corners
   ========================================================================= */
*{ -webkit-tap-highlight-color:transparent; }
a,button,summary,label,select,input,[role="button"]{ touch-action:manipulation; }
button,.btn,[role="button"],.pdp-size,.mobile-dock a,summary,.hero-cta{ -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
:focus:not(:focus-visible){ outline:none; }
:focus-visible{ outline:2px solid var(--ink,#111); outline-offset:3px; }
@media (hover:none){
  button:not(:disabled):active,.btn:active,[role="button"]:active,.pdp-size:active,.mobile-dock a:active,.hero-cta:active{ scale:.95; }
}
@media (prefers-reduced-motion:reduce){
  button:not(:disabled):active,.btn:active,[role="button"]:active,.pdp-size:active,.mobile-dock a:active,.hero-cta:active{ scale:1; }
}

/* floating cart button: the item-count badge is a red dot with white text */
@media (max-width:760px){
  .mobile-cart-fab .dock-badge{ background:#e5322d; color:#fff; border:2px solid #fff; box-shadow:0 2px 8px rgba(229,50,45,.55); }
}

/* =========================================================================
   DELIVERY LOCATION — header chip + bottom sheet (js/header.js "Delivery location")
   ========================================================================= */
.rx-tools .header-address{ cursor:pointer; }
.header-address.is-busy svg{ animation:rx-loc-pulse 1s ease-in-out infinite; }
@keyframes rx-loc-pulse{ 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.35; transform:scale(.85); } }

/* tablets: show the text next to the pin */
@media (min-width:761px) and (max-width:980px){
  .rx-tools .header-address{ display:flex; max-width:170px; }
  .rx-tools .header-address .header-address-text{ display:flex; }
}
/* phones: a compact pill in the top row, between the logo and the menu button */
@media (max-width:760px){
  .rx-bar .header-address,.rx-tools .header-address{
    display:flex; order:1; flex:1 1 0; min-width:0; max-width:none; margin:0 0 0 2px;
    height:34px; padding:0 9px 0 9px; gap:5px; align-items:center;
    background:rgba(255,255,255,.75); border:1px solid var(--line); border-radius:999px;
  }
  .rx-tools .header-address > svg{ width:15px; height:15px; flex:none; }
  .rx-tools .header-address .header-address-text{ display:flex; min-width:0; flex:1; }
  .rx-tools .header-address .header-address-text strong{ max-width:none; font-size:12px; font-weight:700; letter-spacing:0; text-transform:none; }
  .rx-tools .header-address .header-address-text small{ display:none; }
  .rx-tools .header-address::after{ content:""; flex:none; width:6px; height:6px; margin-left:auto; margin-right:1px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(45deg) translateY(-2px); opacity:.55; }
  .nav-toggle{ order:2; margin-left:2px; }
}
@media (max-width:380px){
  .rx-tools .header-address::after{ display:none; }
  .rx-tools .header-address .header-address-text strong{ font-size:11.5px; }
}

/* the sheet */
html.rx-loc-open{ overflow:hidden; }
.rx-loc{ position:fixed; inset:0; z-index:1100; display:flex; align-items:flex-end; justify-content:center; }
.rx-loc[hidden]{ display:none; }
.rx-loc-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.42); opacity:0; transition:opacity .3s ease; }
.rx-loc.is-open .rx-loc-backdrop{ opacity:1; }
.rx-loc-sheet{ position:relative; width:100%; max-width:520px; max-height:92vh; overflow:auto; background:#f6f6f4; color:var(--ink,#111);
  border-radius:26px 26px 0 0; padding:12px 22px calc(22px + env(safe-area-inset-bottom,0px)); box-shadow:0 -20px 60px -20px rgba(0,0,0,.45);
  transform:translateY(100%); transition:transform .35s cubic-bezier(.2,.8,.2,1); }
.rx-loc.is-open .rx-loc-sheet{ transform:none; }
.rx-loc-grab{ display:block; width:42px; height:4px; border-radius:4px; background:rgba(0,0,0,.18); margin:0 auto 14px; }
.rx-loc-x{ position:absolute; top:14px; right:16px; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,.06); font-size:22px; line-height:1; color:var(--ink,#111); }
.rx-loc-title{ font-size:18px; font-weight:800; letter-spacing:-.02em; margin:0 0 4px; padding-right:44px; }
.rx-loc-current{ font-size:13px; color:var(--muted,#6c6c69); margin:0 0 16px; min-height:18px; }
.rx-loc-gps{ width:100%; display:flex; align-items:center; justify-content:center; gap:10px; height:52px; border-radius:16px; background:var(--ink,#111); color:#fff; font:700 14px var(--f-body,inherit); }
.rx-loc-gps svg{ width:20px; height:20px; stroke:#fff; fill:none; stroke-width:1.8; stroke-linecap:round; }
.rx-loc-or{ display:flex; align-items:center; gap:12px; margin:18px 0 12px; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--muted,#6c6c69); }
.rx-loc-or::before,.rx-loc-or::after{ content:""; flex:1; height:1px; background:var(--line,rgba(17,17,17,.13)); }
.rx-loc-pin{ display:flex; gap:8px; }
.rx-loc-pin input{ flex:1; min-width:0; height:50px; padding:0 16px; border:1px solid var(--line,rgba(17,17,17,.2)); border-radius:14px; background:#fff; font:600 16px var(--f-body,inherit); letter-spacing:.08em; }
.rx-loc-pin input:focus{ outline:none; border-color:var(--ink,#111); }
.rx-loc-pin button{ height:50px; padding:0 22px; border-radius:14px; border:1.5px solid var(--ink,#111); background:transparent; font:700 13px var(--f-body,inherit); letter-spacing:.06em; text-transform:uppercase; }
.rx-loc-msg{ min-height:20px; margin:10px 2px 0; font-size:13px; line-height:1.45; color:var(--green,#1b8a4b); }
.rx-loc-msg.is-error{ color:var(--alert,#c62828); }
.rx-loc-link{ display:inline-block; margin-top:6px; padding:10px 0; font-size:13px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.rx-loc-note{ margin:4px 0 0; font-size:11.5px; line-height:1.5; color:var(--muted,#6c6c69); }
@media (min-width:761px){
  .rx-loc{ align-items:flex-start; padding-top:96px; }
  .rx-loc-sheet{ border-radius:24px; transform:translateY(-14px); opacity:0; transition:transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
  .rx-loc.is-open .rx-loc-sheet{ transform:none; opacity:1; }
  .rx-loc-grab{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .rx-loc-sheet,.rx-loc-backdrop{ transition:none; }
  .header-address.is-busy svg{ animation:none; }
}


/* ---- Checkout: fields filled from the shopper's location ------------------------------------
   Green tick next to the label of every field filled from "Use my current location"; amber outline
   on the ones still to fill; amber note on a street-only address that needs the house/flat number. */
.field.is-geo-ok label::after{ content:"\2713"; display:inline-grid; place-items:center; width:16px; height:16px; margin-left:8px; border-radius:50%; background:#1b8a4b; color:#fff; font-size:10px; font-weight:800; letter-spacing:0; vertical-align:middle; }
.field.is-geo-ok input,.field.is-geo-ok select{ border-bottom-color:#1b8a4b; }
.field.is-geo-todo input,.field.is-geo-todo select{ border-bottom-color:#d98a00; }
.field.is-geo-todo input,.field.is-geo-todo select{ background:rgba(217,138,0,.06); }
.geo-note{ display:block; margin-top:6px; font-size:12px; font-weight:600; color:#9a6200; }
.geo-banner{ margin:0 0 18px; padding:11px 14px; border-radius:12px; background:rgba(27,138,75,.1); color:#14703c; font-size:13px; font-weight:600; line-height:1.4; }
