/* ==========================================================================
   RUHI — Trade Atelier  ·  luxury.css
   Load LAST on every page (after pdp.css / site-extras.css / inline styles).
   It restyles both the Tailwind pages (index.html) and the pdp.css pages
   (product, category, checkout) without touching any JavaScript or IDs.
   ========================================================================== */

:root{
  --ivory:#F5F1E8;        /* page */
  --bone:#EAE4D6;         /* quiet panels */
  --ink:#16120F;          /* text, dark sections */
  --umber:#2A231D;        /* footer / dark panels */
  --bronze:#8A7650;       /* the only accent: muted, never shiny */
  --stone:#6F675C;        /* secondary text */
  --hair:rgba(22,18,15,.14);   /* hairline rules */
  --oxblood:#5B1F1A;      /* the single permitted warning colour */
  --serif:"Cormorant Garamond","Cormorant",Georgia,"Times New Roman",serif;
  --sans:"Hanken Grotesk","Inter",system-ui,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base: silence ---------- */
html{background:var(--ivory)}
body,.bg-cream{background:var(--ivory)!important;color:var(--ink)!important;
  font-family:var(--sans)!important;font-weight:300;letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;line-height:1.8}
p,li,.copy,.muted,.text-slate-600,.text-slate-500,.text-slate-400,.text-slate-300,.text-slate-700{
  color:var(--stone)!important;font-weight:300}
strong,b,.font-black,.font-extrabold,.font-bold,[class*="font-black"]{font-weight:500!important}
h1,h2,h3,.brand-name{font-family:var(--serif)!important;font-weight:300!important;
  letter-spacing:.005em!important;color:var(--ink)!important;line-height:1.08!important}
h1{font-size:clamp(2.6rem,6vw,5.2rem)!important}
h2{font-size:clamp(2rem,3.6vw,3.2rem)!important}
.tracking-tight,.tracking-\[-\.04em\]{letter-spacing:.005em!important}

/* ---------- Eyebrows / small caps ---------- */
.text-gold,.pill,.ruhi-eyebrow,
[class*="tracking-[.18em]"],[class*="tracking-[.16em]"],[class*="tracking-[.2em]"]{
  color:var(--bronze)!important;font-family:var(--sans)!important;font-weight:400!important;
  font-size:.68rem!important;letter-spacing:.32em!important;text-transform:uppercase!important;
  background:transparent!important;border:0!important;padding:0!important}

/* ---------- Geometry: no pills, no bubbles, no shadows ---------- */
[class*="rounded"],.card,.fact,.trust div,.catcard,.size-matrix,.panel,
.ruhi-size-badge,.ruhi-size-badge .chip,.btn,.qty,details,select,input,textarea{
  border-radius:0!important}
.rounded-full{border-radius:0!important}
.shadow-lg,.shadow-2xl,.shadow-soft,.card-shadow,.card,.panel,.glass{box-shadow:none!important}
.blur-3xl,.hero-glow::before,.hero-glow::after{display:none!important}
.card,.fact,.trust div,.catcard,.panel,details,
.bg-white,.border-slate-200,.border-slate-300,.border-amber-100,.border-amber-200{
  background:transparent!important;border:0!important;border-top:1px solid var(--hair)!important}
.bg-amber-50,.bg-slate-50,.bg-\[\#fff8e7\]{background:var(--bone)!important}

/* ---------- Space: generous ---------- */
/* Only the page-level bands breathe this widely; cards, toolbars and
   product sections keep their own measure (the old blanket `section` rule
   put ~9rem of padding inside every card and tool). */
.hero{padding-block:clamp(2.5rem,6vw,5rem)!important}
main>section.family,main>section.footnote,main>section.toolbar{padding-block:clamp(1rem,2vw,1.5rem)}
.design-colour-previews,.size-matrix,main .card{padding-block:clamp(1.25rem,3vw,2rem)!important}
.wrap,.max-w-7xl,.max-w-4xl{max-width:1240px}
.py-14,.sm\:py-20,.lg\:py-24{padding-top:clamp(4.5rem,10vw,9rem)!important;
  padding-bottom:clamp(4.5rem,10vw,9rem)!important}
.grid,.gap-4,.gap-8{gap:clamp(1.5rem,4vw,4rem)!important}

/* ---------- Navigation: a whisper ---------- */
.trade-strip{background:var(--ink)!important;color:#CFC6B4!important;font-size:.64rem!important;
  letter-spacing:.28em!important;text-transform:uppercase;font-weight:300!important}
.trade-strip b{font-weight:400!important}
.site-header,.nav,.glass{background:rgba(245,241,232,.92)!important;
  border-bottom:1px solid var(--hair)!important;backdrop-filter:blur(10px)}
.desktop-nav a,.navlinks a,.nav a{font-size:.7rem!important;letter-spacing:.26em!important;
  text-transform:uppercase;font-weight:400!important;color:var(--ink)!important;
  text-decoration:none!important;transition:color .6s var(--ease)}
.desktop-nav a:hover,.nav a:hover{color:var(--bronze)!important}
.brand-name{font-size:1.5rem!important;letter-spacing:.38em!important;text-transform:uppercase}
.brand-sub{font-size:.6rem!important;letter-spacing:.3em!important;text-transform:uppercase;color:var(--stone)!important}

/* ---------- Dark sections (hero, footer) ---------- */
.bg-navy,.footer{background:var(--umber)!important;color:var(--ivory)!important}
.bg-navy h1,.bg-navy h2,.bg-navy h3,.footer h1,.footer strong{color:var(--ivory)!important}
.bg-navy p,.footer p,.footer a{color:#B9AF9C!important}
.text-navy{color:var(--ink)!important}
.hero-grid{background-image:none!important}

/* ---------- Buttons: ink rectangles, hairline outlines ---------- */
.btn,button.btn,.bg-gold,a.bg-gold,.rounded-xl.bg-navy,.bg-navy.text-white.rounded-xl,
button[type="submit"]{
  background:transparent!important;color:var(--ink)!important;
  border:1px solid var(--ink)!important;
  font-family:var(--sans)!important;font-size:.7rem!important;font-weight:400!important;
  letter-spacing:.22em!important;text-transform:uppercase!important;
  padding:.95rem 1.6rem!important;box-shadow:none!important;text-decoration:none;
  white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  transition:background .6s var(--ease),color .6s var(--ease)}
.btn:hover,.bg-gold:hover,button[type="submit"]:hover{background:var(--ink)!important;color:var(--ivory)!important}
.btn.dark,.dark,#add,.bg-navy.text-white.text-center{background:var(--ink)!important;color:var(--ivory)!important}
.btn.dark:hover,#add:hover{background:var(--bronze)!important;border-color:var(--bronze)!important}
.bg-navy .btn,.bg-navy a.bg-gold{color:var(--ivory)!important;border-color:var(--ivory)!important}
.bg-navy .btn:hover,.bg-navy a.bg-gold:hover{background:var(--ivory)!important;color:var(--ink)!important}

/* ---------- Product & catalogue ---------- */
.price{font-family:var(--serif)!important;font-weight:300!important;font-size:2.4rem!important;color:var(--ink)!important}
.strike{display:none!important}                    /* no struck-through prices in a house like this */
.productimg,.catcard img{background:var(--bone)!important;border-radius:0!important;
  transition:transform 1.4s var(--ease),opacity .8s var(--ease)}
.catcard:hover img{transform:scale(1.015)}
.catcard h2,.catcard h2 a{font-family:var(--serif)!important;font-size:1.5rem!important;
  font-weight:400!important;text-decoration:none}
.facts{gap:0!important}.fact b{font-size:.62rem!important;letter-spacing:.28em!important;
  color:var(--stone)!important;font-weight:400!important}
.fact strong{font-weight:400!important;font-family:var(--serif);font-size:1.35rem}

/* ---------- Size badge & the compulsory colour notice ----------
   The notice text must stay verbatim (tools/verify.py checks it);
   only its manner changes: from alarm to a quiet, ruled statement.    */
.ruhi-size-badge{background:transparent!important;border:0!important;
  border-top:1px solid var(--hair)!important;border-bottom:1px solid var(--hair)!important;padding:1rem 0!important}
.ruhi-size-badge .chip{background:transparent!important;border:1px solid var(--hair)!important;
  font-weight:400!important;letter-spacing:.2em;font-size:.72rem}
.ruhi-size-badge .chip.is-current{background:var(--ink)!important;color:var(--ivory)!important}
.ruhi-colour-warning{background:transparent!important;color:var(--oxblood)!important;
  border:0!important;border-left:2px solid var(--oxblood)!important;
  padding:.4rem 0 .4rem 1.1rem!important;font-weight:400!important;font-size:.85rem!important;
  letter-spacing:.04em;line-height:1.8}

/* ---------- Forms ---------- */
input,select,textarea{background:transparent!important;border:0!important;
  border-bottom:1px solid var(--ink)!important;padding:.9rem 0!important;font-weight:300;
  color:var(--ink)!important;box-shadow:none!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-bottom-color:var(--bronze)!important}
label,.label,.lbl{font-size:.64rem!important;letter-spacing:.28em!important;text-transform:uppercase;
  color:var(--stone)!important;font-weight:400!important}

/* ---------- Offer pop-up: retire it ---------- */
#openingOffer,.offer-pop{display:none!important}   /* the "Opening Offer" pop-up (wrapper id in index.html) */

/* ---------- Motion: slow, singular ---------- */
@media (prefers-reduced-motion:no-preference){
  .ruhi-reveal{opacity:0;transform:translateY(14px);
    transition:opacity 1.4s var(--ease),transform 1.4s var(--ease)}
  .ruhi-reveal.is-in{opacity:1;transform:none}
}
::selection{background:var(--ink);color:var(--ivory)}
:focus-visible{outline:1px solid var(--bronze)!important;outline-offset:4px}

/* ==========================================================================
   Repairs (collision / overflow / small-screen pass)
   ========================================================================== */

/* Grids: a flexible track must never be sized by its widest child. */
.grid>*,.product-grid>*,.design-preview-grid>*,.facts>*{min-width:0}
.matrix-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
img,svg,video{max-width:100%;height:auto}
.productimg{width:100%;height:auto;display:block}

/* Skip link: present for keyboards, silent for everyone else. */
.skip,.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--ink);
  color:var(--ivory)!important;padding:.8rem 1.2rem;font-size:.7rem;letter-spacing:.22em;text-transform:uppercase}
.skip:focus,.skip-link:focus{left:0}

/* Navigation: links keep a clear interval and wrap rather than fuse. */
.navlinks{display:flex;flex-wrap:wrap;gap:.25rem 1.4rem;align-items:center}
.navlinks a,.desktop-nav a{white-space:nowrap;padding:.6rem 0!important;background:transparent!important}
.logo{letter-spacing:.34em!important;font-weight:400!important;font-size:.8rem!important;text-decoration:none}
.nav .btn,.navin .btn{padding:.7rem 1rem!important;letter-spacing:.16em!important}
.nav [id="count"],.navin [id="count"]{border-radius:0!important;background:var(--bronze)!important;color:var(--ivory)!important}

/* Quiet notice: one statement, ruled, never an alarm. */
.imported-mixed-colour-notice{border:0!important;border-left:2px solid var(--oxblood)!important;
  background:transparent!important;color:var(--oxblood)!important;border-radius:0!important;padding:.4rem 0 .4rem 1.1rem!important}

/* Index header: the action cluster yields before it can overflow. */
header.site-header .actions{min-width:0;gap:6px}
header.site-header .actions .btn-pill{border-radius:0!important;padding:0 10px!important;letter-spacing:.04em!important}
@media(max-width:480px){
  header.site-header .actions .btn-wa,header.site-header .actions .btn-account{display:none!important}
}

/* Small screens */
@media(max-width:680px){
  body{line-height:1.7}
  .btn,button.btn,.bg-gold,button[type="submit"]{padding:.85rem 1.1rem!important;letter-spacing:.16em!important}
  .price{font-size:2rem!important}
  .facts{grid-template-columns:1fr!important}
  table{font-size:.85rem}
  th,td{padding:.6rem .5rem!important}
}

/* Category page: one geometry, one measure. */
.hero-note,.toolbar,.product,.footnote,.family-head,.design-preview-grid figure,.empty,select,.size-link{
  border-radius:0!important;box-shadow:none!important}
.hero-note{background:var(--bone)!important}
.toolbar{background:transparent!important;border:0!important;border-top:1px solid var(--hair)!important;border-bottom:1px solid var(--hair)!important}

@media(max-width:680px){
  .topbar .nav,.site-header .nav{flex-wrap:wrap;gap:.25rem 1rem;min-height:0;padding-block:.75rem}
  .navlinks{width:100%;justify-content:space-between;gap:.25rem .9rem}
  .navlinks a{min-height:36px;display:inline-flex;align-items:center;font-size:.62rem!important;letter-spacing:.2em!important}
  .logo{font-size:.72rem!important}
}

/* The catalogue is never withheld: product grids are always visible. */
#catalog,#catalog *,#productGrid,#productGrid *,.product-grid,.product-grid *{opacity:1!important}
#catalog.ruhi-reveal,#productGrid.ruhi-reveal,.product-grid.ruhi-reveal{transform:none!important}
.product-card,.catcard,.product{opacity:1!important;transform:none!important}

/* ==========================================================================
   HOME HEADER — one row, never overlapping
   Brand | navigation | actions, laid out by flexbox with fixed roles:
   the brand and the actions never shrink; the navigation takes what is left
   and sheds its two least-essential links before it would ever collide.
   ========================================================================== */
header.site-header{position:sticky;top:0;z-index:40;
  background:rgba(245,241,232,.94)!important;border-bottom:1px solid var(--hair)!important}
header.site-header .header-bar{display:flex!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:space-between!important;
  gap:clamp(12px,1.6vw,28px)!important;width:100%;max-width:1840px;height:76px!important;
  margin:0 auto;padding:0 clamp(16px,2.4vw,40px)!important;box-sizing:border-box}

/* brand */
header.site-header .brand{display:flex!important;align-items:center;gap:12px;flex:0 0 auto!important;min-width:0}
header.site-header .brand img{width:34px!important;height:34px!important;object-fit:contain;flex:0 0 auto}
header.site-header .brand-text{display:flex;flex-direction:column;justify-content:center;gap:3px;line-height:1}
header.site-header .brand .brand-name{font-family:var(--serif)!important;font-size:1.25rem!important;
  font-weight:400!important;letter-spacing:.34em!important;text-transform:uppercase;
  color:var(--ink)!important;white-space:nowrap;line-height:1!important}
header.site-header .brand .brand-sub{font-family:var(--sans)!important;font-size:.54rem!important;
  letter-spacing:.24em!important;text-transform:uppercase;color:var(--stone)!important;
  white-space:nowrap;margin:0!important;line-height:1!important}

/* navigation (desktop) */
header.site-header .desktop-nav{display:none!important;flex:1 1 0!important;min-width:0!important;
  align-items:center;justify-content:center;gap:clamp(14px,1.5vw,30px)!important;margin:0!important}
header.site-header .desktop-nav a{font-family:var(--sans)!important;font-size:.62rem!important;
  font-weight:400!important;letter-spacing:.18em!important;text-transform:uppercase;
  color:var(--ink)!important;white-space:nowrap;padding:.5rem 0!important;min-height:0!important;
  border-radius:0!important;background:transparent!important;line-height:1.2!important}
header.site-header .desktop-nav a:hover{color:var(--bronze)!important;background:transparent!important}
header.site-header .desktop-nav .nav-extra{display:none}
@media(min-width:1100px){header.site-header .desktop-nav{display:flex!important}
  header.site-header .hamburger{display:none!important}}
@media(min-width:1680px){header.site-header .desktop-nav .nav-extra{display:inline}}

/* actions */
header.site-header .actions{display:flex!important;flex-wrap:nowrap!important;align-items:center;
  justify-content:flex-end;gap:8px!important;flex:0 0 auto!important;min-width:0}
header.site-header .actions .btn-pill,header.site-header .actions .btn-icon,
header.site-header .actions .hamburger{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:40px!important;min-height:40px!important;padding:0 14px!important;border-radius:0!important;
  font-family:var(--sans)!important;font-size:.62rem!important;font-weight:400!important;
  letter-spacing:.2em!important;text-transform:uppercase;white-space:nowrap;box-sizing:border-box;
  background:transparent!important;color:var(--ink)!important;border:1px solid var(--hair)!important;
  box-shadow:none!important;text-decoration:none;transition:background .5s var(--ease),color .5s var(--ease)}
header.site-header .actions .btn-pill:hover{background:var(--ink)!important;color:var(--ivory)!important;border-color:var(--ink)!important}
header.site-header .actions .btn-cart,header.site-header .actions .btn-wa{
  background:var(--ink)!important;color:var(--ivory)!important;border-color:var(--ink)!important}
header.site-header .actions .btn-cart:hover,header.site-header .actions .btn-wa:hover{background:var(--bronze)!important;border-color:var(--bronze)!important}
header.site-header .actions .btn-cta{display:none!important;border-color:var(--bronze)!important;color:var(--bronze)!important}
header.site-header .actions .hamburger{width:40px;padding:0!important;letter-spacing:0!important}
header.site-header .actions .btn-account,header.site-header .actions .btn-wa{padding:0 12px!important}
header.site-header .actions .lbl{display:none!important}
header.site-header .actions svg{flex:0 0 auto}
.cart-badge,#headerCartCount{border-radius:0!important;background:var(--bronze)!important;color:var(--ivory)!important;
  min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 5px;font-size:.6rem;letter-spacing:0;line-height:1}
@media(min-width:640px){header.site-header .actions .btn-cart .lbl{display:inline!important}}
@media(min-width:1360px){header.site-header .actions .btn-wa .lbl,header.site-header .actions .btn-account .lbl{display:inline!important}}
@media(min-width:1920px){header.site-header .actions .btn-cta{display:inline-flex!important}}
@media(max-width:480px){
  header.site-header .header-bar{height:64px!important;gap:10px!important}
  header.site-header .brand-sub{display:none!important}
  header.site-header .brand .brand-name{font-size:1.05rem!important;letter-spacing:.28em!important}
  header.site-header .actions .btn-wa,header.site-header .actions .btn-account{display:none!important}
}

/* ==========================================================================
   HERO FILM — replaces the former image card
   ========================================================================== */
.hero-film-wrap{position:relative;min-width:0;width:100%;max-width:640px;margin-inline:auto}
@media(min-width:1024px){.hero-film-wrap{margin-right:0;margin-left:auto}}
.hero-film{position:relative;margin:0;width:100%;overflow:hidden;background:#1c1713;
  aspect-ratio:1/1;max-height:80vh;border:1px solid rgba(245,241,232,.2);border-radius:0!important;
  box-shadow:none!important;isolation:isolate}
@media(min-width:1024px){.hero-film{aspect-ratio:4/5}}
.hero-film::before{content:"";position:absolute;inset:10px;border:1px solid rgba(245,241,232,.14);
  z-index:2;pointer-events:none}
.hero-film-video{position:absolute!important;inset:0;width:100%!important;height:100%!important;
  max-width:none!important;object-fit:cover;object-position:50% 50%;display:block;background:#1c1713;
  filter:saturate(.9) contrast(1.02)}
.hero-film-badge{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;flex-direction:column;gap:6px;
  padding:clamp(1.6rem,4vw,2.6rem) clamp(1.2rem,3vw,2rem) clamp(1.1rem,2.6vw,1.6rem);
  background:linear-gradient(to top,rgba(22,18,15,.86) 0%,rgba(22,18,15,.55) 55%,rgba(22,18,15,0) 100%);
  color:var(--ivory)}
.hero-film-badge span{font-family:var(--sans);font-size:.6rem;font-weight:400;letter-spacing:.34em;
  text-transform:uppercase;color:#CDB98C}
.hero-film-badge strong{font-family:var(--serif)!important;font-size:clamp(1.05rem,2vw,1.35rem);
  font-weight:400!important;letter-spacing:.01em;color:var(--ivory)!important;line-height:1.3}
@media(prefers-reduced-motion:reduce){.hero-film-video{animation:none}}

/* Action labels take the colour of their button (the global label rule would grey them). */
header.site-header .actions .lbl{color:inherit!important;font-size:inherit!important;letter-spacing:inherit!important;font-weight:inherit!important}
