/* =========================================================================
   QELVORI™ EYEWEAR — public stylesheet
   Palette: icy blue · light blue-grey · soft white · silver · dark navy · gold
   ========================================================================= */

:root {
  --ink: #0c0f16;
  --ink-2: #1a2130;
  --navy: #16233d;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --mist-2: #e9eff6;
  --icy: #dde8f2;
  --line: #dde4ec;
  --line-soft: #e9eef4;
  --silver: #7d8899;
  --silver-2: #a7b1bf;
  --gold: #c9a35c;
  --gold-2: #e6cd9b;
  --gold-deep: #a8813f;

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-ui: "Jost", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  --container: 1240px;
  --pad: clamp(18px, 4vw, 32px);
  --radius: 3px;
  --shadow-sm: 0 2px 10px rgba(14, 22, 38, 0.06);
  --shadow-md: 0 14px 40px rgba(14, 22, 38, 0.1);
  --shadow-lg: 0 30px 70px rgba(8, 14, 26, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 0.4em; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
sup { font-size: 0.45em; vertical-align: super; letter-spacing: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; font-size: 13px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ------------------------------------------------------------- typography */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 18px;
}
.eyebrow .rule { display: inline-block; width: 34px; height: 1px; background: var(--gold); opacity: 0.7; }

/* Hero brand line "QELVORI™ EYEWEAR" only — classic luxury-eyewear masthead:
   timeless serif capitals with refined, wide tracking (colours unchanged). */
.hero .eyebrow {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

h1 { font-size: clamp(40px, 6vw, 74px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }

.link-arrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 9px;
  padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: 0.35s var(--ease);
  white-space: nowrap;
}
.link-arrow::after { content: "→"; color: var(--gold); transition: transform 0.35s var(--ease); }
.link-arrow:hover { border-color: var(--gold); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all 0.4s var(--ease); text-align: center;
  background: none;
}
.btn-sm { padding: 10px 16px; font-size: 11px; letter-spacing: 0.13em; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #17110a; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201, 163, 92, 0.28); }
.btn-line { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-danger { border-color: #e6c7c7; color: #a34a4a; background: #fff; }
.btn-danger:hover { background: #a34a4a; border-color: #a34a4a; color: #fff; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(12, 17, 28, 0.08); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 44px; height: 44px; border-radius: 4px; overflow: hidden; flex: none; box-shadow: 0 3px 12px rgba(12, 17, 28, 0.22); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 23px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--ink);
}
.brand-name sup { color: var(--gold); font-size: 9px; letter-spacing: 0; }
.brand-sub { font-size: 9px; letter-spacing: 0.46em; color: var(--silver); margin-top: 5px; }

.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a, .drop-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-2); padding: 10px 15px; background: none; border: 0; cursor: pointer;
  transition: color 0.3s var(--ease);
}
.main-nav a::after, .drop-toggle::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover, .drop-toggle:hover, .main-nav a[aria-current="page"] { color: var(--gold-deep); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.has-drop { position: relative; }
.drop-toggle svg { transition: transform 0.3s var(--ease); }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 224px;
  background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-md);
  padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: 0.35s var(--ease); z-index: 40;
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.is-open .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.has-drop:hover .drop-toggle svg, .has-drop.is-open .drop-toggle svg { transform: rotate(180deg); }
.drop li a { display: block; padding: 9px 22px; letter-spacing: 0.12em; font-size: 11.5px; }
.drop li a::after { display: none; }
.drop li a:hover { background: var(--mist); color: var(--gold-deep); }
.drop-all { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 6px; }
.drop-all a { color: var(--gold-deep); }

.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink); padding: 11px 20px; transition: 0.35s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--gold-2); }

.nav-toggle { display: none; width: 44px; height: 40px; background: none; border: 1px solid var(--line); position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.4px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19.5px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-on span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav-toggle.is-on span:nth-child(2) { opacity: 0; }
.nav-toggle.is-on span:nth-child(3) { top: 19.5px; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 78px 0 0; background: #fff; z-index: 89;
  padding: 26px var(--pad) 60px; overflow-y: auto;
  animation: slideDown 0.4s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-panel a { display: block; font-family: var(--font-display); font-size: 27px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-sub > span { display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); padding: 22px 0 6px; }
.mobile-sub ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.mobile-sub a { font-size: 17px; font-family: var(--font-ui); font-weight: 300; padding: 10px 0; }

/* ------------------------------------------------------------------ hero
   Sized so the hero (and its background video) never eats the whole
   screen — the category section below must peek into the first viewport
   on both desktop and mobile. */
.hero {
  position: relative; overflow: hidden; background: var(--ink);
  padding: clamp(38px, 5vw, 66px) 0 clamp(44px, 5.5vw, 74px);
}
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }
/* -------------------------------------------------------- hero video layer
   Optional cinematic background set from the admin (Homepage → Hero video).
   Sits behind every existing hero layer; a dark overlay keeps the white/gold
   typography readable. If the video fails or is removed, the hero simply
   falls back to its original ink background + halos (and the poster image). */
.hero-video { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero-video-el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-video-el.is-ready { opacity: 1; }
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.82) 0%, rgba(8, 10, 16, 0.55) 42%, rgba(8, 10, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 10, 16, 0.78) 0%, rgba(8, 10, 16, 0.35) 60%, rgba(8, 10, 16, 0.6) 100%);
}
.hero-has-video .hero-backdrop { z-index: 1; }
.hero-has-video .hero-grid,
.hero-has-video .scroll-cue { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.halo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.halo-1 { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(201, 163, 92, 0.35), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.halo-2 { width: 620px; height: 620px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(96, 138, 190, 0.3), transparent 68%); animation: drift 24s ease-in-out infinite alternate-reverse; }
.hairline { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.07), transparent); }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(34px, 5vw, 70px); align-items: center;
}
.hero-copy h1 { color: #f6f8fb; margin-bottom: 16px; }
.hero-lede { color: #b8c2d1; font-size: clamp(15px, 1.3vw, 17.5px); max-width: 48ch; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 20px; }
.hero-micro { font-size: 11.5px; letter-spacing: 0.09em; color: var(--silver-2); margin: 0; }
.hero-micro sup { color: var(--gold); }

.hero-visual { position: relative; }
/* ---------------------------------------------------- hero typographic mark
   The homepage hero presents the brand as live typography — no photo.
   Layers:
     · markLetterIn — cinematic per-letter reveal (fade + rise + focus pull)
     · markRuleIn / markTagIn — rule and tagline settle in after the letters
     · markSheenIn + markSheen — a soft light band travels across the glyphs,
       clipped to the text (background-clip: text). Both end states leave the
       band off-text, so the loop point is invisible (seamless).
     · markFloat — continuous slow float with micro scale breathing (depth)
     · markGlow — refined gold glow breathing behind the lockup
   Letter tracking lives inside each .hm-ch span (and on the ::after copy)
   so the sheen copy stays pixel-aligned with the letters; text-indent
   recenters each line against its trailing letter-space.
   The site's reduced-motion rule collapses all motion to the static state. */
.hero-mark {
  position: relative; text-align: center;
  padding: clamp(6px, 1.4vw, 18px) 0 clamp(26px, 4vw, 52px);
  animation: markFloat 16s ease-in-out 2.6s infinite;
}
.hero-mark::before {
  content: ""; position: absolute; left: 50%; top: 40%; z-index: 0;
  transform: translate(-50%, -50%);
  width: min(560px, 94%); height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 163, 92, 0.2), rgba(201, 163, 92, 0.06) 58%, transparent 78%);
  filter: blur(16px); opacity: 0.55;
  pointer-events: none;
  animation: markGlow 9s ease-in-out infinite alternate;
}
.hm-wordmark { position: relative; z-index: 1; }
.hm-line {
  display: block; position: relative;
  font-family: var(--font-display); font-weight: 500;
  color: var(--gold); line-height: 1.06;
  white-space: nowrap;
}
.hm-line-1 { font-size: clamp(46px, 5.8vw, 88px); letter-spacing: 0; text-indent: 0.07em; }
.hm-line-2 { font-size: clamp(20px, 2.3vw, 33px); letter-spacing: 0; text-indent: 0.6em; margin-top: clamp(4px, 0.7vw, 10px); }
.hm-line-1 .hm-ch { letter-spacing: 0.07em; }
.hm-line-2 .hm-ch { letter-spacing: 0.6em; }
/* Per-letter: metallic gold gradient clipped to the glyph + cinematic reveal */
.hm-ch {
  display: inline-block;
  background: linear-gradient(180deg, #f9ecc6 0%, #e2c07c 30%, #cda85f 58%, #a37c34 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: markLetterIn 0.95s var(--ease) calc(0.3s + var(--i, 0) * 0.075s) both;
}
@keyframes markLetterIn {
  from { opacity: 0; transform: translateY(0.4em) scale(0.97); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
/* Light sweep: a plain-text copy of the line, clipped to its own glyphs,
   with a soft warm band sliding through them (left to right). */
.hm-line::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  letter-spacing: 0.07em;
  background-image: linear-gradient(100deg,
    rgba(255, 247, 226, 0) 40%,
    rgba(255, 247, 226, 0.9) 50%,
    rgba(255, 247, 226, 0) 60%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: markSheenIn 0.7s ease 2.45s both, markSheen 8.5s ease-in-out 3.35s infinite;
}
.hm-line-2::after { letter-spacing: 0.6em; }
@keyframes markSheenIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes markSheen {
  from { background-position: 100% 50%; }
  to   { background-position: 0% 50%; }
}
/* Hairline rule + tagline settle in beneath the lettering */
.hm-rule {
  position: relative; z-index: 1;
  display: block; width: clamp(120px, 30%, 200px); height: 1px;
  margin: clamp(16px, 2.2vw, 28px) auto 0;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 92, 0.85) 22%, rgba(246, 231, 188, 0.95) 50%, rgba(201, 163, 92, 0.85) 78%, transparent);
  animation: markRuleIn 1.1s var(--ease) 2s both;
}
@keyframes markRuleIn { from { opacity: 0; transform: scaleX(0.45); } to { opacity: 1; transform: none; } }
.hm-tag {
  position: relative; z-index: 1;
  margin: clamp(12px, 1.6vw, 20px) 0 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(13px, 1.25vw, 16.5px);
  letter-spacing: 0.42em; text-indent: 0.42em;
  color: rgba(237, 232, 222, 0.85);
  animation: markTagIn 1.1s var(--ease) 2.2s both;
}
@keyframes markTagIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Continuous float: slow pendulum rise/fall with micro breathing for depth —
   no rotation, no shake; 0% and 100% are identical (seamless). */
@keyframes markFloat {
  0%   { transform: translateY(0) scale(1); }
  25%  { transform: translateY(-7px) scale(1.008); }
  50%  { transform: translateY(0) scale(1); }
  75%  { transform: translateY(7px) scale(0.996); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes markGlow { from { opacity: 0.4; } to { opacity: 0.75; } }
/* Screen-reader text for the aria-hidden lettering */
.hm-sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* Cinematic entrance — refined fade, gentle rise, slight settle in scale.
   (Shared: also used by the .hero-float featured card.) */
@keyframes plateIn {
  from { opacity: 0; transform: translateY(28px) scale(0.988); }
  to   { opacity: 1; transform: none; }
}

.hero-float {
  position: absolute; left: -26px; bottom: -44px; display: flex; gap: 14px; align-items: center;
  background: #fff; padding: 12px 20px 12px 12px; box-shadow: var(--shadow-lg);
  animation: floatCard 7s ease-in-out infinite, plateIn 1s var(--ease) both 0.6s;
  max-width: 320px;
}
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-float-media { width: 96px; height: 72px; overflow: hidden; flex: none; background: var(--mist); }
.hero-float-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-meta { display: flex; flex-direction: column; gap: 2px; }
.hf-label { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.hf-name { font-family: var(--font-display); font-size: 21px; color: var(--ink); }
.hf-price { font-size: 13px; color: var(--silver); letter-spacing: 0.05em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px;
  background: rgba(255, 255, 255, 0.16); overflow: hidden;
}
.scroll-cue span { position: absolute; left: 0; top: -46px; width: 1px; height: 46px; background: var(--gold); animation: cue 2.6s linear infinite; }
@keyframes cue { 0% { top: -46px; } 60%, 100% { top: 46px; } }

/* -------------------------------------------------------------- sections */
.section { padding: clamp(62px, 8vw, 110px) 0; }
.section-tight { padding-top: clamp(30px, 4vw, 54px); }
/* the first section after the hero stays tight so it is visible on load */
#collection-start + .section { padding-top: clamp(42px, 5vw, 74px); }
/* Mobile-only category navigation under the hero: the Women | Men | Kids row
   plus the four-across category index below it (.section-home-cats). Both are
   hidden on desktop, where the desktop layout carries no category tiles. */
.section-gender { display: none; }
.section-home-cats { display: none; }

.sec-head { margin-bottom: clamp(30px, 4vw, 52px); max-width: 760px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-lede { color: var(--silver); font-size: 15.5px; margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.sec-cta { margin-top: clamp(30px, 4vw, 48px); text-align: center; }
.empty-note { color: var(--silver); text-align: center; padding: 30px 0; }
.empty-state { text-align: center; padding: clamp(40px, 7vw, 90px) 20px; }
.empty-state img { width: 96px; height: 96px; object-fit: cover; margin: 0 auto 22px; border-radius: 4px; opacity: 0.85; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--silver); margin-bottom: 24px; }

/* --------------------------------------------------------- category tiles */
/* Square image box used by the mobile homepage category index
   (.home-cat-grid): cover-crops, so any source aspect ratio is preserved
   without stretching. */
.cat-img-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 6px; background: linear-gradient(160deg, #eef3f8, #e4ecf5); }
.cat-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.2s var(--ease); }
.cat-img-wrap img.is-visible { opacity: 1; }
/* If an image is missing or fails to load, show a branded fallback — never a
   broken-image icon or a blank hole. */
.cat-img-wrap.img-fallback {
  background:
    url("/img/brand/qelvori-mark.jpg") center / 44px 44px no-repeat,
    linear-gradient(160deg, #eef3f8, #e4ecf5);
}
.cat-img-wrap.img-fallback img { display: none; }
.cat-img-wrap.cat-rotate img { animation: catSwap 7s ease-in-out infinite; }
.cat-img-wrap.cat-rotate img:nth-child(1) { animation-delay: 0s; }
.cat-img-wrap.cat-rotate img:nth-child(2) { animation-delay: 3.5s; }
@keyframes catSwap { 0%, 42% { opacity: 1; } 58%, 100% { opacity: 0; } }

/* ---------------------------------------------------------- product cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: clamp(18px, 2vw, 30px); }
.p-grid-tight { margin-top: 40px; }

.p-card {
  background: #fff; border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; transition: 0.5s var(--ease);
}
.p-card:hover { border-color: var(--line); box-shadow: var(--shadow-md); transform: translateY(-6px); }

.p-media {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(160deg, #eef3f8, #e4ecf5);
}
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.055); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: var(--gold-2);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 11px;
}
.badge-lg { top: 16px; left: 16px; font-size: 11px; padding: 9px 14px; }

.p-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 22, 0.5); opacity: 0; transition: opacity 0.45s var(--ease);
}
.p-hover span {
  color: #fff; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold); padding-bottom: 6px;
}
.p-card:hover .p-hover, .p-card:focus-within .p-hover { opacity: 1; }

.p-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat a { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.p-cat a:hover { color: var(--gold); }
.p-name { font-size: 24px; margin: 2px 0 0; }
.p-name a { transition: color 0.3s var(--ease); }
.p-name a:hover { color: var(--gold-deep); }
.p-sku { font-size: 11px; letter-spacing: 0.13em; color: var(--silver); text-transform: uppercase; }
.p-price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.price-now { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: 0.03em; }
.price-was { font-size: 14px; color: var(--silver-2); text-decoration: line-through; }
.p-actions { display: flex; gap: 9px; margin-top: auto; padding-top: 16px; }
.p-actions .btn { flex: 1; }

/* --------------------------------------------------------------- editorial */
.section-editorial { background: var(--mist); }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.editorial-grid-rev .editorial-copy { order: -1; }
.editorial-media { margin: 0; box-shadow: var(--shadow-md); }
.editorial-media img { width: 100%; height: auto; }
.editorial-copy h2 { margin-bottom: 18px; }
.editorial-copy p { color: var(--ink-2); line-height: 1.8; }
.editorial-copy .link-arrow { margin-top: 12px; }

/* ------------------------------------------------------------------ offers */
.section-offers { background: var(--ink); }
.section-offers h2, .section-offers .sec-lede { color: #f4f7fb; }
.section-offers .sec-lede { color: var(--silver-2); }
.offer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 44px; }
.offer-card {
  border: 1px solid rgba(255, 255, 255, 0.13); padding: 26px 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
  transition: 0.45s var(--ease);
}
.offer-card:hover { border-color: rgba(201, 163, 92, 0.55); transform: translateY(-5px); }
.offer-badge {
  display: inline-block; background: var(--gold); color: #17110a;
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 11px;
}
.offer-card h3 { color: #fff; font-size: 26px; margin: 16px 0 8px; }
.offer-card p { color: var(--silver-2); font-size: 14.5px; margin: 0 0 6px; }
.offer-until { font-size: 12px !important; letter-spacing: 0.1em; color: var(--gold-2) !important; }
.section-offers .p-card { background: #fff; }

/* ----------------------------------------------------------------- pillars */
.section-pillars { background: var(--paper); }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pillar { border-top: 1px solid var(--line); padding: 26px 22px 24px 0; transition: 0.4s var(--ease); }
.pillar:hover { border-color: var(--gold); }
.pillar-num { font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: 0.2em; }
.pillar h3 { font-size: 27px; margin: 14px 0 8px; }
.pillar p { color: var(--silver); font-size: 14.5px; line-height: 1.75; margin: 0; }

/* ------------------------------------------------------------------- promo */
.section-promo { background: var(--ink); padding: clamp(50px, 6vw, 84px) 0; }
.promo-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.promo-copy { max-width: 620px; }
.promo-copy h2 { color: #f6f8fb; margin-bottom: 8px; }
.promo-copy p { color: var(--silver-2); margin: 0; }
.promo-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------- page hero */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(34px, 5vw, 62px) 0; }
.page-hero h1 { margin: 6px 0 10px; }
.page-lede { color: var(--silver); max-width: 68ch; margin: 0; font-size: 15.5px; }
.crumbs { font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--silver); display: flex; gap: 9px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs span[aria-current] { color: var(--ink); }

/* ----------------------------------------------------------------- toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: clamp(26px, 3vw, 40px); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line); color: var(--ink-2);
  transition: 0.35s var(--ease); background: #fff;
}
.pill:hover { border-color: var(--gold); color: var(--gold-deep); }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field-search input, .field-select select {
  font-family: var(--font-ui); font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 11px 14px; min-width: 172px;
  transition: border-color 0.3s var(--ease); border-radius: var(--radius);
}
.field-search input:focus, .field-select select:focus { outline: none; border-color: var(--gold); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--gold-deep); width: 15px; height: 15px; }

/* ------------------------------------------------------------ product page */
.pd-section { padding: clamp(26px, 4vw, 46px) 0 clamp(50px, 6vw, 80px); }
.pd-section .crumbs { margin-bottom: 26px; }
.pd-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(30px, 5vw, 64px); align-items: start; }

.pd-main {
  position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #eef3f8, #e3ebf4);
  border: 1px solid var(--line-soft); overflow: hidden;
}
.pd-main-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s var(--ease); }
.pd-main-img.is-fading { opacity: 0; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }

/* navigation dots — sit directly below the main image, above the thumbs */
.pd-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; margin-top: 14px;
}
.pd-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: 0.28s var(--ease);
}
.pd-dot:hover { border-color: var(--gold); }
.pd-dot.is-on {
  background: var(--ink); border-color: var(--ink);
  transform: scale(1.35);
}
@media (max-width: 760px) {
  /* comfortable touch target on mobile without changing the visual size */
  .pd-dot { position: relative; }
  .pd-dot::after {
    content: ''; position: absolute; inset: -9px;
  }
}
.pd-thumb {
  padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer;
  aspect-ratio: 4 / 3; overflow: hidden; transition: 0.3s var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: var(--gold); }
.pd-thumb.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.pd-cat a { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.pd-info h1 { font-size: clamp(34px, 4vw, 52px); margin: 8px 0 6px; }
.pd-sku { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); margin-bottom: 22px; }
.pd-price { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-price .now { font-family: var(--font-display); font-size: 36px; color: var(--ink); }
.pd-price .was { color: var(--silver-2); text-decoration: line-through; font-size: 16px; }
.pd-price .save { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--gold); padding: 5px 9px; }
.pd-variant { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); padding: 18px 0 0; margin: 0; }
.pd-variant strong { font-weight: 500; color: var(--silver); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; display: block; }
.pd-desc { margin-top: 20px; color: var(--ink-2); line-height: 1.85; }

.spec-list { margin: 26px 0 0; border-top: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.spec-row dt { color: var(--silver); letter-spacing: 0.05em; }
.spec-row dd { margin: 0; color: var(--ink); font-weight: 400; text-align: right; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.pd-actions .btn-line { border-color: var(--line); color: var(--ink); }
.pd-actions .btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-assure { display: flex; flex-direction: column; gap: 8px; }
.pd-assure li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--silver); }
.pd-assure li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 1px; background: var(--gold); }

/* --------------------------------------------------------------- enquire */
.section-enquire { background: var(--mist); }
.enquire-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.enquire-copy p { color: var(--ink-2); line-height: 1.8; }
.enquire-points { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.enquire-points li { position: relative; padding-left: 22px; font-size: 14px; color: var(--silver); }
.enquire-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 1px; background: var(--gold); }
.enquire-form-wrap { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); font-weight: 400; }
.field > span em { text-transform: none; letter-spacing: 0.02em; font-style: italic; color: var(--silver-2); }
.field input, .field textarea, .field select {
  font-family: var(--font-ui); font-size: 15px; font-weight: 300; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 13px 15px;
  border-radius: var(--radius); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.14);
}
.field input[readonly] { background: var(--mist); color: var(--silver); }
.field-static input { background: var(--mist); }
.form-note { font-size: 13px; color: var(--silver); margin: -4px 0 0; }

.alert { padding: 15px 18px; border: 1px solid; font-size: 14.5px; margin-bottom: 6px; }
.alert-success { background: #f2f8f3; border-color: #cfe6d5; color: #2f6b40; }
.alert-error { background: #fdf3f3; border-color: #eed3d3; color: #964141; }

/* ---------------------------------------------------------------- related */
.section-related { background: var(--paper); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.info-block { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.info-block h2 { font-size: 15px; font-family: var(--font-ui); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.info-block p { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.info-block a:hover { color: var(--gold-deep); }
.tick-list li { position: relative; padding-left: 22px; color: var(--silver); font-size: 14.5px; margin-bottom: 8px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 1px; background: var(--gold); }
.contact-mark { margin: 26px 0 0; box-shadow: var(--shadow-md); }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.about-plate { margin: 0; position: sticky; top: 104px; box-shadow: var(--shadow-md); }
.about-copy .lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; color: var(--ink); font-weight: 300; }
.about-copy p { color: var(--ink-2); line-height: 1.85; }
.about-quote { margin: 34px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.about-quote p { font-family: var(--font-display); font-size: clamp(23px, 2.4vw, 31px); font-style: italic; color: var(--ink); line-height: 1.4; margin-bottom: 12px; }
.about-quote cite { font-style: normal; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.pillar-grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ----------------------------------------------------------------- errors */
.error-page { text-align: center; padding: clamp(60px, 10vw, 130px) 0; }
.error-code { font-family: var(--font-display); font-size: clamp(70px, 12vw, 140px); color: var(--icy); line-height: 1; margin: 0 0 6px; }
.error-page .hero-cta { justify-content: center; margin-top: 30px; }
.error-page .btn-line { border-color: var(--line); color: var(--ink); }
.error-page .btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--silver-2); padding: clamp(50px, 6vw, 80px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); }
.footer-brand img { width: 100%; max-width: 340px; border: 1px solid rgba(201, 163, 92, 0.22); }
.footer-tag { font-size: 14px; color: var(--silver); margin: 18px 0 0; max-width: 34ch; }
.footer-col h2 { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.footer-col li { margin-bottom: 9px; font-size: 14.5px; }
.footer-col a { transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact li { color: var(--silver-2); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.09); margin-top: clamp(34px, 5vw, 58px); padding-top: 24px;
}
.footer-base p { margin: 0; font-size: 12.5px; letter-spacing: 0.05em; color: var(--silver); }
.footer-note { color: rgba(201, 163, 92, 0.75) !important; }

/* -------------------------------------------------------------- animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero-copy h1 { font-size: clamp(34px, 4.4vw, 50px); }
  .hero-lede { font-size: 15px; }
  .hm-line-1 { font-size: clamp(40px, 5vw, 58px); }
  .hm-line-2 { font-size: clamp(17px, 2.1vw, 22px); }
  .hero-mark { padding-bottom: 26px; }
  .hero-visual { max-width: 620px; }
  .hero-float { left: auto; right: -8px; bottom: -34px; }
  .pd-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-plate { position: static; max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* tablets & phones: hamburger replaces the inline nav once links + CTA no
   longer fit comfortably next to the brand */
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-inner { height: 70px; }
  .mobile-panel { inset: 70px 0 0; }
  /* stacked hero — compact proportions so the section below stays in view */
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 30px 0 32px; }
  .hero-copy h1 { font-size: clamp(33px, 4.4vw, 54px); }
  .hero-lede { font-size: 14.5px; line-height: 1.6; }
  .hero-cta { margin: 16px 0 12px; }
  .hm-line-1 { font-size: clamp(33px, 5vw, 54px); }
  .hm-line-2 { font-size: clamp(13px, 2.9vw, 19px); }
  .hero-mark { padding-bottom: 16px; }
  #collection-start + .section { padding-top: 32px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid-rev .editorial-copy { order: 0; }
  .enquire-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .p-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  /* compact hero on phones — the category section must stay visible below */
  .hero { padding: 30px 0 34px; }
  .hero-grid { gap: 22px; }
  .hero-copy h1 { font-size: clamp(30px, 8.6vw, 40px); margin-bottom: 10px; }
  .hero-lede { font-size: 14.5px; line-height: 1.62; }
  .hero-cta { margin: 18px 0 14px; gap: 10px; }
  .hm-line-1 { font-size: clamp(32px, 8.6vw, 46px); }
  .hm-line-2 { font-size: clamp(14px, 4.1vw, 21px); }
  .hero-float { position: static; margin-top: 14px; max-width: none; animation: none; }
  .hero-mark { padding: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .field-search input { min-width: 0; width: 100%; }
  .field-search { flex: 1; }
  .pd-price .now { font-size: 30px; }
}

@media (max-width: 520px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-actions { flex-direction: column; }
  .brand-name { font-size: 20px; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ------------------------------------------------- header search & icons */
.nav-search {
  display: flex; align-items: center; gap: 0; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.14); }
.nav-search input {
  width: 168px; border: 0; background: transparent; padding: 10px 12px;
  font-family: var(--font-ui); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink);
}
.nav-search input:focus { outline: none; }
.nav-search input::placeholder { color: var(--silver-2); }
.nav-search button {
  border: 0; background: transparent; padding: 0 12px; height: 38px; cursor: pointer;
  color: var(--silver); display: grid; place-items: center; transition: color 0.3s var(--ease);
}
.nav-search button:hover { color: var(--gold-deep); }
/* the search field lives inside the primary nav: Home → Categories → Search */
.nav-search-li { display: flex; align-items: center; padding: 0 4px; }
/* tablet/mobile: a dedicated search row sits directly under the header */
.header-search-row {
  display: none; background: var(--paper); border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
}
.header-search-row .nav-search { width: 100%; }
.header-search-row .nav-search input { flex: 1; width: auto; font-size: 14px; padding: 10px 14px; }
.header-search-row .nav-search button { height: 40px; padding: 0 16px; color: var(--gold-deep); }
@media (max-width: 1050px) {
  .nav-search-li { display: none; }
  .header-search-row { display: block; }
}
.nav-account { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink-2); transition: color 0.3s var(--ease); }
.nav-account:hover { color: var(--gold-deep); }
.mobile-search { display: flex; gap: 8px; margin: 18px 0 6px; }
.mobile-search input {
  flex: 1; border: 1px solid var(--line); background: var(--mist); padding: 12px 14px;
  font-family: var(--font-ui); font-size: 14px;
}
.mobile-search input:focus { outline: none; border-color: var(--gold); background: #fff; }

/* ------------------------------------------------- style cards (section 4) */
.section-styles { background: var(--paper); }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.style-card {
  position: relative; display: block; overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--mist); transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.style-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.style-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, #eef3f8, #e4ecf5); }
.style-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.1s var(--ease); }
.style-card:hover .style-media img { transform: scale(1.05); }
/* Broken/missing card image → branded fallback instead of a broken icon. */
.style-media.img-fallback {
  background:
    url("/img/brand/qelvori-mark.jpg") center / 52px 52px no-repeat,
    linear-gradient(160deg, #eef3f8, #e4ecf5);
}
.style-media.img-fallback img { display: none; }
/* Category card without an owner photo → the SAME line icon the mobile
   "Explore Category" tile uses, so both layouts identify the category alike. */
.style-media.style-icon { display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.style-media.style-icon svg.cat-icon { width: 30%; height: auto; }
.style-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 16px;
  font-family: var(--font-display); font-size: clamp(21px, 2vw, 27px); color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 22, 0.72));
}
.style-cta {
  position: absolute; top: 14px; right: 14px; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, 0.92);
  padding: 7px 11px; opacity: 0; transform: translateY(-4px); transition: 0.35s var(--ease);
}
.style-card:hover .style-cta { opacity: 1; transform: none; }
@media (max-width: 900px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
/* phones keep two balanced columns (not one oversized card per row) */
@media (max-width: 520px) {
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .style-label { padding: 26px 12px 10px; font-size: 16.5px; }
  .style-cta { top: 8px; right: 8px; padding: 5px 8px; font-size: 9px; }
  /* hero CTAs share one row on phones — keeps the hero compact */
  .hero-cta { flex-wrap: nowrap; gap: 8px; }
  .hero-cta .btn { flex: 1 1 0; width: auto; padding: 15px 8px; font-size: 10.5px; text-align: center; }
}

/* ------------------------------------------------- trust strip */
.section-trust { background: var(--mist); border-top: 1px solid var(--line); padding: clamp(38px, 5vw, 64px) 0; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 34px); }
.trust-item { display: flex; flex-direction: column; gap: 8px; }
.trust-ico {
  width: 34px; height: 34px; border: 1px solid var(--gold); transform: rotate(45deg);
  position: relative; margin-bottom: 8px; flex: none;
}
.trust-ico::after {
  content: ""; position: absolute; inset: 9px; background: var(--gold); opacity: 0.55;
}
.trust-item strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.trust-item span { font-size: 13.5px; color: var(--silver); line-height: 1.65; }
@media (max-width: 900px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-strip { grid-template-columns: 1fr; } }

/* ------------------------------------------------- stock labels */
.badge-stock { background: var(--ink-2); color: #fff; top: auto; bottom: 14px; left: 14px; }
.p-stock {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px;
}
.p-stock.is-in { color: #3d7a4e; }
.p-stock.is-out { color: var(--silver); }
.pd-stock {
  display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0 0 4px;
}
.pd-stock strong { font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.pd-stock.is-in strong { color: #3d7a4e; }
.pd-stock.is-out strong { color: var(--silver); }
.pd-stock.is-in::before, .pd-stock.is-out::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
}
.pd-stock.is-in::before { background: #4a8a5e; }
.pd-stock.is-out::before { background: var(--silver-2); }
.pd-stock-note {
  font-size: 13.5px; color: var(--silver); background: var(--mist); border: 1px solid var(--line);
  padding: 14px 16px; margin: 14px 0 0;
}
.pd-stock-note a { color: var(--gold-deep); border-bottom: 1px solid var(--gold-2); }

/* ------------------------------------------------- search page */
.toolbar-search { align-items: flex-end; }
.field-search-lg input { min-width: min(420px, 76vw); padding: 13px 16px; font-size: 15px; }
.search-count { font-size: 13px; letter-spacing: 0.1em; color: var(--silver); margin: 0 0 22px; }
.search-cats { margin-top: clamp(36px, 5vw, 60px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.search-cats h2 { font-size: 22px; margin-bottom: 14px; }
/* compact variant shown above the result grid */
.search-cats-inline { margin: 0 0 26px; padding: 0 0 22px; border-top: 0; border-bottom: 1px solid var(--line); }
.search-cats-inline h2 { font-size: 15px; font-family: var(--font-ui); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }


/* ===========================================================================
   QELVORI homepage updates
   1) Image auto-fit safety — product photography is always shown in full.
   2) Admin-built custom sections (banners + card rows) below the category row.
   3) Compact mobile hero (280-340px) + horizontal category tile row on phones.
   =========================================================================== */

/* ------------------------------------------------ 1. image auto-fit safety
   The pipeline already generates contain-padded detail renditions; using
   object-fit: contain here guarantees that a frame, hinge or logo is never
   cropped even if a container's aspect ratio shifts. Containers keep the
   brand soft-white surface behind the letterboxing. */
.cat-img-wrap img { object-fit: contain; }
.style-media img { object-fit: contain; }
.p-media img { object-fit: contain; background: #f2f6fa; }
.pd-main-img { object-fit: contain; background: #f2f6fa; }
.pd-thumb img { object-fit: contain; background: #f2f6fa; }

/* -------------------------------------------- 2. custom sections (admin) */
.custom-section { position: relative; }

/* full-width banner */
.cs-banner { padding: 0; }
.cs-banner-media {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #eef3f8, #e4ecf5);
}
.cs-banner.cs-fit-cover .cs-banner-media { background: var(--ink); }
.cs-banner-media picture { display: block; position: absolute; inset: 0; }
.cs-banner-media img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
.cs-banner.cs-fit-cover .cs-banner-media img { object-fit: cover; }

.cs-size-sm .cs-banner-media { aspect-ratio: 3.4 / 1; }
.cs-size-md .cs-banner-media { aspect-ratio: 2.6 / 1; }
.cs-size-lg .cs-banner-media { aspect-ratio: 21 / 9; }

/* cover: text overlays the image with a dark scrim for readability */
.cs-banner.cs-fit-cover .cs-banner-panel {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0) 34%, rgba(8, 10, 16, 0.74) 100%);
}
.cs-banner.cs-fit-cover .cs-banner-inner { padding-bottom: clamp(18px, 3vw, 42px); }
.cs-banner.cs-fit-cover .cs-title { color: #f6f8fb; }
.cs-banner.cs-fit-cover .cs-text { color: #c8d1de; }
.cs-banner.cs-fit-cover .eyebrow { color: var(--gold); }

/* contain: the whole image is shown, copy sits on a clean panel below it */
.cs-banner.cs-fit-contain .cs-banner-panel {
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* text-only banner (no image) keeps the ink surface */
.cs-banner-noimg .cs-banner-panel {
  position: static; background: var(--ink);
  padding: clamp(26px, 4vw, 48px) 0;
}
.cs-banner-noimg .cs-title { color: #f6f8fb; }
.cs-banner-noimg .cs-text { color: #b8c2d1; }

.cs-banner-inner {
  display: grid; gap: 10px; justify-items: start;
  padding-top: clamp(16px, 2.4vw, 28px);
}
.cs-title { margin: 0; }
.cs-text { margin: 0; max-width: 62ch; color: var(--ink-2, #3a4356); }
.cs-banner-inner .btn { margin-top: 6px; }

/* image card rows */
.cs-cards .sec-head { margin-bottom: clamp(16px, 2.4vw, 26px); }
.cs-cards-grid {
  display: grid; gap: clamp(12px, 2vw, 24px);
  grid-template-columns: repeat(3, 1fr);
}
.cs-cards-2 .cs-cards-grid { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.cs-cards-4 .cs-cards-grid { grid-template-columns: repeat(4, 1fr); }
.cs-card { display: block; }
.cs-card-media {
  display: block; position: relative; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(160deg, #eef3f8, #e4ecf5);
  border: 1px solid var(--line); border-radius: 4px;
}
.cs-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: transform 1.1s var(--ease);
}
.cs-cards.cs-fit-cover .cs-card-media img { object-fit: cover; }
.cs-card:hover .cs-card-media img { transform: scale(1.04); }
.cs-card-label {
  display: block; margin-top: 10px; text-align: center;
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.cs-cards .sec-cta { margin-top: clamp(18px, 2.6vw, 30px); }

/* ------------------------------------------- 3. mobile phone layout (<=760) */
@media (max-width: 900px) {
  /* replaces #collection-start + .section (the flow wrapper sits between) */
  .home-flow > .section:first-child { padding-top: 32px; }
}

@media (max-width: 760px) {

  /* compact hero — target 280-340px total height, content never clipped */
  .hero { padding: 22px 0 26px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
  .hero .scroll-cue { display: none; }
  .hero-visual { display: none; }
  .hero-copy .eyebrow { font-size: 10.5px; margin-bottom: 8px; }
  .hero-copy h1 { font-size: clamp(26px, 7.4vw, 34px); margin-bottom: 8px; }
  .hero-lede { font-size: 13px; line-height: 1.55; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-cta { margin: 12px 0 0; gap: 8px; flex-wrap: wrap; }
  .hero-cta .btn { width: auto; padding: 9px 15px; font-size: 12px; letter-spacing: 0.06em; }
  .hero-micro { display: none; }

  /* section flow: category row + index right under the hero, custom sections next */
  .home-flow { display: flex; flex-direction: column; }
  .home-flow > .section:first-child { padding-top: 28px; }
  .home-flow > .section-home-cats { order: 1; }
  .home-flow > .custom-section { order: 2; }
  .home-flow > .section-styles { order: 3; display: none; }
  .home-flow > .section-featured { order: 4; }
  .home-flow > .section-editorial { order: 5; }
  .home-flow > .section-offers { order: 6; }
  .home-flow > .section-pillars { order: 7; }
  .home-flow > .section-promo { order: 8; }
  .home-flow > .section-trust { order: 9; }

  /* "Explore Category": the single four-across grid under the hero — the three
     admin-managed style-card slots first (Men | Women | Kids), then every
     visible Admin › Categories entry, wrapping into further rows of four.
     Vertical page scrolling only (never a horizontal carousel/slider); the
     final row keeps the same card size and is never stretched to fill space. */
  .home-flow > .section-home-cats { display: block; order: 1; padding: 8px 0 50px; }
  .home-cats-head { margin-bottom: 12px; }
  .home-cats-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: 26px; line-height: 1.1; letter-spacing: 0.01em;
    color: var(--ink); margin: 0;
  }
  .home-cats-rule {
    display: block; width: 38px; height: 3px; border-radius: 2px;
    background: var(--gold); margin-top: 7px;
  }
  .home-cats-panel { background: #f3f4f6; border-radius: 14px; padding: 8px; }
  .home-cat-grid {
    /* minmax(0, 1fr): the auto (min-content) minimum of `1fr` lets a long
       label word widen its column past the equal share, squeezing sibling
       columns and overflowing the page on narrow phones. minmax(0, 1fr)
       forces exactly four equal columns at every width. */
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  }
  .home-cat-tile {
    display: flex; flex-direction: column; min-width: 0; padding: 4px 3px;
    background: #fff; border: 1px solid #e9ecf1; border-radius: 10px;
    overflow: hidden; box-shadow: 0 1px 4px rgba(14, 22, 38, 0.05);
    transition: 0.35s var(--ease); transform: none !important;
  }
  .home-cat-tile:hover, .home-cat-tile:focus-visible {
    border-color: var(--gold); box-shadow: 0 6px 18px rgba(14, 22, 38, 0.1);
    transform: none;
  }
  /* every card uses the same 4:3 image box; photos letterbox (contain) and
     icon fallbacks fill it — same footprint either way, never stretched */
  .home-cat-img {
    display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0;
    position: relative; overflow: hidden; border-radius: 7px;
    background: linear-gradient(160deg, #eef3f8, #e4ecf5);
  }
  .home-cat-icon {
    display: flex; align-items: center; justify-content: center; color: var(--ink-2);
  }
  .home-cat-icon svg { width: 46%; height: auto; }
  /* name row: category name (left) + small right chevron, exactly as the
     reference. Mixed case, no uppercase transform. Two-line reserve keeps 1-
     and 2-line names (plus their chevron) at the same card height at every
     width — the 2.85vw scale guarantees even the longest live name + chevron
     ("Sunglasses ›") fits in two lines down to 320px, so every row (incl. a
     final 1-card row) is always the same height. The 3-line clamp is only an
     extreme guard for a future very long admin name (current names never
     reach it, so names are never ellipsized). overflow-wrap: anywhere is the
     last resort. */
  .home-cat-name {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden; min-height: 2.7em; margin-top: 6px;
    overflow-wrap: anywhere; text-align: left;
    font-size: clamp(9px, 2.85vw, 13px); font-weight: 500;
    letter-spacing: 0.01em; line-height: 1.35; color: var(--ink);
  }
  .home-cat-arrow {
    display: inline-block; width: 5px; height: 8px; margin-left: 1px;
    color: var(--silver); vertical-align: -1px;
  }

  /* custom sections: banner heights + two-up card grids on phones */
  .cs-size-sm .cs-banner-media { aspect-ratio: 2.7 / 1; }
  .cs-size-md .cs-banner-media { aspect-ratio: 1.9 / 1; }
  .cs-size-lg .cs-banner-media { aspect-ratio: 16 / 10; }
  .cs-cards-grid, .cs-cards-2 .cs-cards-grid, .cs-cards-3 .cs-cards-grid, .cs-cards-4 .cs-cards-grid {
    grid-template-columns: repeat(2, 1fr); gap: 10px;
  }
  /* overlay copy must always fit inside the banner — trim its internal
     spacing on phones so the eyebrow never spills over the top edge */
  .cs-banner.cs-fit-cover .cs-banner-inner { padding-top: 8px; padding-bottom: 14px; gap: 6px; }
  .cs-banner.cs-fit-cover .cs-title, .cs-banner-noimg .cs-title { font-size: 20px; }
  .cs-banner.cs-fit-cover .cs-text, .cs-banner-noimg .cs-text { font-size: 12.5px; }
  .cs-banner.cs-fit-cover .cs-banner-inner .btn { margin-top: 2px; padding: 8px 14px; font-size: 11.5px; }
}
