/* ============================================================
   STUDIO LAXMI — DESIGN SYSTEM
   All tokens map to future ThemeSettings Django model.
   ============================================================ */

:root {
  /* Colors — future: ThemeSettings model */
  --ink: #1a1713;            /* warm black */
  --ink-soft: #2b2620;
  --charcoal: #4a443c;
  --stone: #8a8175;
  --line: #e5ddd0;
  --cream: #f6f1e8;
  --off-white: #fbf8f3;
  --white: #ffffff;
  --gold: #b99256;
  --gold-deep: #9a7743;
  --gold-soft: rgba(185, 146, 86, 0.12);

  /* Typography — future: ThemeSettings model */
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  /* Scale */
  --text-hero: clamp(2.8rem, 7vw, 5.5rem);
  --text-h2: clamp(2rem, 4.5vw, 3.4rem);
  --text-h3: clamp(1.4rem, 2.5vw, 1.9rem);

  /* Rhythm */
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;

  /* DB-driven extras (overridden from ThemeSettings/TypographySettings in base.html) */
  --nav-solid-bg: rgba(251, 248, 243, 0.92);
  --footer-bg: var(--ink);
  --font-nav: var(--font-body);
  --font-btn: var(--font-body);
  --font-footer: var(--font-body);
  --radius-btn: 2px;
  --base-size: 16px;
  --body-weight: 300;
  --heading-weight: 500;
  --body-lh: 1.7;
  --heading-lh: 1.15;
  --nav-tracking: 0.2em;

  --shadow-soft: 0 12px 40px rgba(26, 23, 19, 0.08);
  --shadow-lift: 0 24px 60px rgba(26, 23, 19, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* `overflow-x: clip` (not `hidden`) is the safety net against sideways
   scrolling on phones: it clips a stray wide element without creating a scroll
   container, so `position: sticky` and the fixed header keep working. Layout
   fixes still come first — this only catches what slips through. */
html { scroll-behavior: smooth; font-size: var(--base-size); overflow-x: clip; min-height: 100%; }

/* ---------- Sticky footer ----------
   A page whose content does not fill the viewport (sign-in, password reset,
   an empty cart, the branded 404) left the footer sitting mid-screen with
   blank background beneath it. `body` is the column; `#main` absorbs the
   slack, so the footer lands on the fold on short pages and simply flows
   after the content on long ones.

   Only three elements are in normal flow — the skip link is absolutely
   positioned, and the header, flash stack, floating actions, lightbox and
   cookie banner are all position:fixed — so nothing else becomes a flex item
   and no existing layout changes. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* svh ignores the mobile browser's collapsing address bar, so a short page
   does not gain a sliver of scroll on phones. Ignored where unsupported. */
@supports (min-height: 100svh) {
  body { min-height: 100svh; }
}
#main { flex: 1 0 auto; }          /* grow into the gap, never shrink */
.site-footer { flex-shrink: 0; }   /* keep its natural height */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: var(--body-lh);
  font-weight: var(--body-weight);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: var(--gold); color: var(--white); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--heading-weight); line-height: var(--heading-lh); letter-spacing: 0.01em; }
em { font-style: italic; color: var(--gold-deep); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }

section { padding: var(--section-pad) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--off-white); }
.section--dark .section-head p { color: rgba(246, 241, 232, 0.65); }

/* ---------- Section headings ---------- */
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 400; margin-bottom: 1.1rem;
}
.eyebrow::before, .eyebrow:not(.eyebrow--left)::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow--left::before { display: none; }
.section--dark .eyebrow { color: var(--gold); }
.section-head h2 { font-size: var(--text-h2); margin-bottom: 1rem; }
.section-head p { color: var(--stone); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 2.4rem; font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 400; border-radius: var(--radius-btn);
  font-family: var(--font-btn);
  transition: all 0.45s var(--ease); overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.14);
  transform: translateX(-101%); transition: transform 0.5s var(--ease);
}
.btn:hover::after { transform: translateX(0); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-deep); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--off-white); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); background: var(--gold); }
.btn--line { border: 1px solid var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-deep); }

.link-more {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.link-more:hover { gap: 1rem; border-color: var(--gold); }

/* ---------- Navigation ----------

   The navbar is transparent over a hero and turns solid on scroll (main.js
   adds .is-solid past 60px). That only works when there is a dark hero behind
   it — on a page without one, white links sat on a pale background and were
   effectively invisible.

   `body:not(:has(.hero))` decides it from the page's own markup: no hero
   element, solid navbar from the first paint. It is automatic, so a new
   template needs no flag and cannot get this wrong, and because it is CSS
   there is no flash of transparent navbar before JavaScript runs.

   `body.no-hero` is the same rule for browsers without :has() — main.js adds
   the class on load. Every navbar rule below therefore names three states:
   scrolled (.is-solid), no hero (:has), no hero without :has (.no-hero). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: all 0.45s var(--ease); padding: 1.4rem 0;
}
.site-header.is-solid,
body.no-hero .site-header,
body:not(:has(.hero)) .site-header {
  background: var(--nav-solid-bg); backdrop-filter: blur(14px);
  padding: 0.8rem 0; box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .nav-link, .site-header.is-solid .logo,
body.no-hero .site-header .nav-link, body.no-hero .site-header .logo,
body:not(:has(.hero)) .site-header .nav-link,
body:not(:has(.hero)) .site-header .logo { color: var(--ink); }

/* The header is fixed, so something has to leave room for it. A hero does it
   with its own padding; on a page without one, a plain <section> already
   carries the site's standard top spacing, but a full-width bar
   (announce/shop) sits flush and ends up half-hidden. main.js adds this class
   in exactly that case — see "Navbar over hero vs. standalone" there. */
#main.needs-nav-space { padding-top: 5.4rem; }

/* Pages whose banner is optional (sign-in, the account area, order and
   payment screens) open with a plain section instead. It has to clear the
   fixed header itself — but only while there is no banner, or switching one
   on in the CMS would leave a blank strip between the two. Same `:has` /
   `.no-hero` pair as the navbar rules above, for the same browsers. */
body.no-hero .page-top,
body:not(:has(.hero)) .page-top { padding-top: calc(var(--section-pad) * 1.4); }
body.no-hero .page-top--tall,
body:not(:has(.hero)) .page-top--tall { padding-top: calc(var(--section-pad) * 1.6); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { font-family: var(--font-head); font-size: 1.55rem; letter-spacing: 0.06em; color: var(--white); display: flex; align-items: center; gap: 0.65rem; transition: color 0.4s; }
.logo-mark {
  width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem; letter-spacing: 0.1em;
  color: var(--gold); font-family: var(--font-body); font-weight: 400; flex-shrink: 0;
}
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-nav);
  font-size: 0.75rem; letter-spacing: var(--nav-tracking); text-transform: uppercase;
  color: rgba(255,255,255,0.85); padding: 0.5rem 0; position: relative; transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover, .nav-link.is-active { color: var(--gold); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
  padding: 0.9rem 0; min-width: 240px; opacity: 0; visibility: hidden;
  transition: all 0.35s var(--ease); max-height: 420px; overflow-y: auto;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: block; padding: 0.55rem 1.5rem; font-size: 0.82rem; color: var(--charcoal);
  letter-spacing: 0.04em; transition: all 0.25s;
}
.dropdown a:hover { color: var(--gold-deep); background: var(--gold-soft); padding-left: 1.8rem; }

.nav-cta { flex-shrink: 0; }
/* 44px is the accessible minimum for a primary touch target. */
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 8px; min-width: 44px; min-height: 44px; z-index: 950; }
.nav-toggle span { width: 26px; height: 1.5px; background: currentColor; color: var(--white); transition: all 0.35s var(--ease); }
.site-header.is-solid .nav-toggle span,
body.no-hero .site-header .nav-toggle span,
body:not(:has(.hero)) .site-header .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 0 6rem; color: var(--white); isolation: isolate;
}
.hero--short { min-height: 62vh; padding: 9rem 0 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) + 0.22)) 0%, rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) - 0.15)) 55%, rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) - 0.35)) 100%);
}
.hero-content { max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: var(--text-hero); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 520px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero — right-hand copy column (home) ----------
   The photograph is the product. The copy is a narrow column held against the
   RIGHT edge of the container, and it has no box of its own: no background,
   no blur, no border, no padding. Anything opaque there is another rectangle
   covering the picture, which is exactly what this layout exists to avoid.

   Readability instead comes from three things that cost the image nothing:
   a text-shadow sized for photographic backgrounds, generous line spacing,
   and the hero's existing tint — still `--hero-overlay` from the CMS — angled
   so its dark end falls under the text rather than across the whole frame.

   Every size is fluid (clamp/min/%), so nothing is a fixed pixel offset and
   the column keeps its proportion from a 4K desktop down to a phone.
   Content is untouched: the same CMS hero slide fields render inside it. */

/* The hero is a flex row, so its content box shrinks to fit its child. Left
   alone, a narrow column shrinks the *container* too and the centred container
   drags the copy back into the middle of the picture. Span the row, then push
   the column to the end — the container's max-width still holds it on wide
   screens, so the copy never drifts off to a 4K monitor's far edge. */
.hero--side .hero-content {
  max-width: 1280px; width: 100%;
  display: flex; justify-content: flex-end;
}
.hero--side .hero-panel {
  max-width: min(28rem, 42%);
  /* Fully transparent — the photograph shows through the copy. */
  background: none;
  text-align: right;
  text-shadow: 0 1px 2px rgba(12, 10, 8, 0.55), 0 2px 22px rgba(12, 10, 8, 0.5);
}
/* Smaller than the full-bleed hero type, but still the largest thing on the
   page — this has to read as the headline, not as a caption. */
.hero--side .hero-panel h1 { font-size: clamp(1.9rem, 3.1vw, 2.9rem); margin-bottom: 1rem; }
.hero--side .hero-panel .hero-sub {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  max-width: none; margin-bottom: 1.9rem;
  color: rgba(255, 255, 255, 0.92);   /* lifted: no panel behind it now */
}
/* The two calls to action sit side by side and stay that way — `nowrap` is
   what stops a long CMS label from silently breaking them onto two lines. */
.hero--side .hero-panel .hero-actions {
  gap: 0.75rem; flex-wrap: nowrap; justify-content: flex-end; align-items: stretch;
}
.hero--side .hero-panel .btn {
  padding: 0.85rem 1.5rem; font-size: 0.75rem; white-space: nowrap;
  text-shadow: none;                   /* the buttons have their own surface */
}
/* Dark end on the right, under the copy; the left two-thirds of the
   photograph stay as the client uploaded them. Still driven by the slide's
   own --hero-overlay, so the CMS control keeps working. */
.hero--side::before {
  background: linear-gradient(280deg,
    rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) + 0.08)) 0%,
    rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) - 0.22)) 48%,
    rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) - 0.42)) 100%);
}

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.scroll-hint::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Stats bar ---------- */
.stats-bar {
  position: relative; z-index: 5; margin-top: -4.5rem;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(26, 23, 19, 0.75); backdrop-filter: blur(16px);
  border: 1px solid rgba(185, 146, 86, 0.25); border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: 2.2rem 1.5rem; text-align: center; color: var(--off-white); position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: rgba(185,146,86,0.25); }
.stat-value { font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,241,232,0.65); margin-top: 0.6rem; }

/* Standalone stats (about page) */
.stats-inline .stats-grid { background: var(--ink); }

/* ---------- Brand strip ---------- */
.brand-strip { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.brand-strip-title { text-align: center; font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--stone); margin-bottom: 2rem; }
.brand-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 4rem; }
.brand-logos span {
  font-family: var(--font-head); font-size: 1.25rem; color: var(--stone);
  opacity: 0.75; transition: all 0.35s; letter-spacing: 0.05em;
}
.brand-logos span:hover { opacity: 1; color: var(--gold-deep); }

/* ---------- Cards: generic grid ---------- */
/* `minmax(0, 1fr)` everywhere: a plain `1fr` never shrinks below its content's
   minimum width, which pushes long words, buttons and cards past the viewport
   on small phones. */
.grid { display: grid; gap: 1.8rem; grid-auto-columns: minmax(0, 1fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Service card ---------- */
.service-card {
  position: relative; display: block; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.service-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card-body { padding: 1.6rem 1.6rem 1.8rem; }
.service-card-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft);
  display: grid; place-items: center; color: var(--gold-deep); margin: -3.2rem 0 0.9rem;
  position: relative; background: var(--cream); border: 1px solid var(--line);
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.92rem; color: var(--stone); margin-bottom: 1rem; }
.service-card .price-from { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Album / portfolio card ---------- */
.album-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  isolation: isolate; box-shadow: var(--shadow-soft);
}
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.album-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,0.85) 0%, transparent 55%);
  transition: opacity 0.5s;
}
.album-card:hover img { transform: scale(1.06); }
.album-card-meta {
  position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.5rem; z-index: 2; color: var(--white);
  transform: translateY(6px); transition: transform 0.5s var(--ease);
}
.album-card:hover .album-card-meta { transform: translateY(0); }
.album-card-cat { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.album-card-meta h3 { font-size: 1.5rem; margin-top: 0.35rem; }
.album-card-meta p { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* Masonry */
.masonry { columns: 3; column-gap: 1.6rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1.6rem; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.filter-btn {
  padding: 0.6rem 1.4rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--charcoal); border: 1px solid var(--line); border-radius: 100px; transition: all 0.35s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Split section (about preview) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.split-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-img::before {
  content: ""; position: absolute; inset: 1.1rem; border: 1px solid rgba(255,255,255,0.45);
  border-radius: calc(var(--radius) - 6px); z-index: 2; pointer-events: none;
}
.split-body h2 { font-size: var(--text-h2); margin-bottom: 1.4rem; }
.split-body p { color: var(--charcoal); margin-bottom: 1.2rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.process-step { text-align: center; padding: 0 0.5rem; position: relative; }
.process-num {
  font-family: var(--font-head); font-size: 1.1rem; color: var(--gold);
  width: 58px; height: 58px; border: 1px solid rgba(185,146,86,0.5); border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1.2rem; background: transparent;
  transition: all 0.4s var(--ease);
}
.process-step:hover .process-num { background: var(--gold); color: var(--white); transform: scale(1.08); }
.process-step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--stone); }
.section--dark .process-step p { color: rgba(246,241,232,0.6); }
.section--dark .process-step h3 { color: var(--off-white); }

/* ---------- Packages ---------- */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; align-items: stretch; }
.package-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.6rem 2.2rem; display: flex; flex-direction: column; position: relative;
  transition: all 0.5s var(--ease);
}
.package-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.package-card.is-popular {
  background: var(--ink); color: var(--off-white); border-color: var(--gold);
  transform: scale(1.03);
}
.package-card.is-popular:hover { transform: scale(1.03) translateY(-8px); }
.package-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white); font-size: 0.62rem; letter-spacing: 0.25em;
  text-transform: uppercase; padding: 0.45rem 1.3rem; border-radius: 100px; white-space: nowrap;
}
.package-name { font-size: 1.7rem; text-align: center; }
.package-tagline { text-align: center; font-size: 0.85rem; color: var(--stone); margin: 0.3rem 0 1.4rem; }
.package-card.is-popular .package-tagline { color: rgba(246,241,232,0.6); }
.package-price { text-align: center; margin-bottom: 1.8rem; }
.package-price .unit { display: block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.3rem; }
.package-card.is-popular .package-price .unit { color: var(--gold); }
.package-price .amount { font-family: var(--font-head); font-size: 2.5rem; }
.package-features { flex: 1; margin-bottom: 2rem; }
.package-features li {
  display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.9rem;
  padding: 0.5rem 0; border-bottom: 1px dashed var(--line);
}
.package-card.is-popular .package-features li { border-color: rgba(246,241,232,0.15); }
.package-features li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
.package-card .btn { justify-content: center; }

/* Add-ons */
.addon-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 2.5rem; max-width: 860px; margin: 0 auto; }
.addon-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.addon-list .addon-price { font-family: var(--font-head); font-size: 1.15rem; color: var(--gold-deep); white-space: nowrap; }
.addon-list li::after { display: none; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 1.3rem;
  transition: all 0.5s var(--ease); height: 100%;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.85rem; }
.testimonial-text { font-family: var(--font-head); font-size: 1.18rem; line-height: 1.55; font-style: italic; color: var(--ink-soft); flex: 1; }
.testimonial-person { display: flex; align-items: center; gap: 1rem; }
.testimonial-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-weight: 500; font-size: 0.95rem; }
.testimonial-person span { font-size: 0.78rem; color: var(--stone); }
.testimonial-source { margin-left: auto; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--line); padding: 0.3rem 0.8rem; border-radius: 100px; }

/* ---------- Blog ---------- */
.blog-card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.5s var(--ease); height: 100%; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 1.6rem; }
.blog-meta { display: flex; gap: 1rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.7rem; }
.blog-meta .dot::before { content: "·"; margin-right: 1rem; color: var(--stone); }
.blog-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; transition: color 0.3s; }
.blog-card:hover h3 { color: var(--gold-deep); }
.blog-card p { font-size: 0.9rem; color: var(--stone); }

/* Blog article */
.article-body { font-size: 1.08rem; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.6rem; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-head); font-size: 3.4em; float: left; line-height: 0.85;
  padding-right: 0.12em; color: var(--gold-deep);
}
.article-meta-bar {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
  padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2.5rem 0;
}
.share-row { display: flex; gap: 0.6rem; align-items: center; }
.share-row span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-right: 0.4rem; }

/* ---------- FAQ ---------- */
.faq-search { position: relative; max-width: 520px; margin: 0 auto 2.5rem; }
.faq-search input {
  width: 100%; padding: 1rem 1.4rem 1rem 3rem; border: 1px solid var(--line);
  border-radius: 100px; background: var(--white); font-size: 0.95rem; outline: none;
  transition: border-color 0.3s;
}
.faq-search input:focus { border-color: var(--gold); }
.faq-search svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--stone); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  text-align: left; padding: 1.4rem 0; font-family: var(--font-head); font-size: 1.28rem;
  color: var(--ink); transition: color 0.3s;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q .faq-icon { flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-body); font-size: 1rem; font-weight: 300; transition: all 0.4s var(--ease); }
.faq-item.is-open .faq-icon { background: var(--gold); border-color: var(--gold); color: var(--white); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { padding: 0 2.5rem 1.5rem 0; color: var(--charcoal); font-size: 0.98rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  font-weight: 300; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--stone); margin-top: 1rem; }
.form-success { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius-sm); padding: 1.2rem 1.5rem; color: var(--gold-deep); display: none; margin-top: 1.2rem; }
.form-success.is-visible { display: block; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 2.4rem; margin-bottom: 1.6rem; }
.contact-info-card h3 { font-size: 1.4rem; margin-bottom: 1.4rem; }
.contact-row { display: flex; gap: 1.1rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--line); align-items: flex-start; font-size: 0.95rem; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ci { color: var(--gold-deep); flex-shrink: 0; margin-top: 0.2rem; }
.contact-row a:hover { color: var(--gold-deep); }
.contact-row small { display: block; color: var(--stone); font-size: 0.78rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(0.6) sepia(0.12); }

/* ---------- Gallery / lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); aspect-ratio: 4/3; }
.gallery-item--portrait img { aspect-ratio: 3/4; }
.gallery-item--square img { aspect-ratio: 1/1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20,17,13,0.35); color: var(--white); font-size: 2rem; font-weight: 200;
  opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 1200; background: rgba(15, 13, 10, 0.96);
  display: none; align-items: center; justify-content: center; padding: 3rem;
}
.lightbox.is-open { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.lightbox-btn {
  position: absolute; color: rgba(255,255,255,0.7); font-size: 2rem; font-weight: 200;
  padding: 1rem; transition: color 0.3s; user-select: none;
}
.lightbox-btn:hover { color: var(--gold); }
.lightbox-close { top: 1.2rem; right: 1.8rem; font-size: 2.4rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.55); font-size: 0.8rem; letter-spacing: 0.25em; }

/* ---------- Instagram strip ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.insta-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.insta-item img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform 0.6s var(--ease); }
.insta-item::after {
  content: ""; position: absolute; inset: 0; background: rgba(185,146,86,0.35);
  opacity: 0; transition: opacity 0.4s;
}
.insta-item:hover::after { opacity: 1; }
.insta-item:hover img { transform: scale(1.08); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; color: var(--white); text-align: center; isolation: isolate; }
.cta-banner .bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20,17,13,0.72); }
.cta-banner h2 { font-size: var(--text-h2); margin-bottom: 1rem; }
.cta-banner h2 em { color: var(--gold); }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2.2rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2.4rem; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-entry { position: relative; padding-bottom: 2.4rem; }
.timeline-entry::before {
  content: ""; position: absolute; left: -2.4rem; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; border: 1px solid var(--gold); background: var(--off-white);
}
.timeline-entry:hover::before { background: var(--gold); }
.timeline-year { font-size: 0.72rem; letter-spacing: 0.28em; color: var(--gold-deep); text-transform: uppercase; }
.timeline-entry h3 { font-size: 1.45rem; margin: 0.3rem 0 0.4rem; }
.timeline-entry p { color: var(--charcoal); font-size: 0.95rem; }

/* ---------- Awards ---------- */
.award-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.award-year { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-deep); }
.award-row h3 { font-size: 1.3rem; }
.award-org { font-size: 0.82rem; color: var(--stone); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Value cards ---------- */
.value-card { padding: 2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: all 0.5s var(--ease); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.value-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; margin-bottom: 1.2rem; }
.value-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--stone); }

/* ---------- Equipment ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.equip-col h3 { font-size: 1.25rem; color: var(--gold); margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(185,146,86,0.3); }
.equip-col li { font-size: 0.9rem; padding: 0.4rem 0; color: rgba(246,241,232,0.75); }

/* ---------- Feature list (service detail) ---------- */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: baseline; padding: 0.55rem 0; font-size: 0.98rem; }
.feature-list li::before { content: "✦"; color: var(--gold); font-size: 0.7rem; flex-shrink: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: 0.7rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { font-family: var(--font-footer); background: var(--footer-bg); color: rgba(246,241,232,0.7); padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand .logo { color: var(--off-white); margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; font-weight: 400; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { font-size: 0.9rem; transition: all 0.3s; }
.footer-col a:hover { color: var(--gold); padding-left: 5px; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(246,241,232,0.2); border-radius: 50%;
  display: grid; place-items: center; transition: all 0.35s var(--ease);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-3px); }
/* Admin-uploaded social marks (SocialLink.custom_icon). Built-in icons are
   inline SVG that inherits currentColor; an upload is an <img>, so it needs an
   explicit box or a large PNG would blow the circle apart. */
.social-icon-img { width: 17px; height: 17px; object-fit: contain; display: block; }
.footer-social .social-icon-img { filter: brightness(0) invert(1); opacity: .85; }
.footer-social a:hover .social-icon-img { opacity: 1; }
.newsletter { display: flex; margin-top: 1rem; border: 1px solid rgba(246,241,232,0.2); border-radius: 100px; overflow: hidden; }
.newsletter input { flex: 1; background: transparent; border: 0; outline: 0; padding: 0.8rem 1.3rem; color: var(--off-white); font-weight: 300; min-width: 0; }
.newsletter input::placeholder { color: rgba(246,241,232,0.4); }
.newsletter button { background: var(--gold); color: var(--white); padding: 0 1.5rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; transition: background 0.3s; }
.newsletter button:hover { background: var(--gold-deep); }
.footer-bottom {
  border-top: 1px solid rgba(246,241,232,0.12); padding: 1.6rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(246,241,232,0.45);
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 850; display: flex; flex-direction: column; gap: 0.7rem; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); box-shadow: var(--shadow-lift); transition: all 0.35s var(--ease);
}
.float-btn:hover { transform: translateY(-4px) scale(1.05); }
.float-btn--wa { background: #25d366; }
.float-btn--call { background: var(--ink); border: 1px solid var(--gold); color: var(--gold); }
.float-btn--top { background: var(--gold); opacity: 0; visibility: hidden; }
.float-btn--top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
/* On phones a sideways entrance offset sticks out of the viewport and creates
   horizontal scrolling before the element animates in — fade upwards instead. */
@media (max-width: 700px) {
  .reveal--left, .reveal--right { transform: translateY(24px); }
}
.reveal--scale { transform: scale(0.94); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
.mt-2 { margin-top: 2rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #fff; padding: 0.8rem 1.4rem; z-index: 2000; }
.skip-link:focus { left: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .masonry { columns: 2; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Laptop / small desktop: a 42% column gets too cramped for a serif
     headline, so the copy takes a little more of the width. Still right-hand,
     still transparent, buttons still side by side. */
  .hero--side .hero-panel { max-width: min(26rem, 54%); }
}

@media (max-width: 880px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .package-card.is-popular { transform: none; }
  .package-card.is-popular:hover { transform: translateY(-8px); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  /* Tablet / phone: there is no "side" left to hold, so the copy spans the
     column and reads left-aligned again — right-aligned body text on a narrow
     screen is genuinely harder to scan. The tint goes back to a top-to-bottom
     wash, because the copy now sits over the whole width. */
  .hero--side .hero-content { justify-content: flex-start; }
  .hero--side .hero-panel { max-width: 100%; text-align: left; }
  .hero--side .hero-panel .hero-actions { justify-content: flex-start; }
  .hero--side::before {
    background: linear-gradient(160deg,
      rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) + 0.14)) 0%,
      rgba(20, 17, 13, calc(var(--hero-overlay, 0.6) - 0.02)) 100%);
  }
  .addon-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0; background: rgba(21, 18, 14, 0.98); backdrop-filter: blur(8px);
    flex-direction: column; justify-content: center; gap: 1.6rem;
    opacity: 0; visibility: hidden; transition: all 0.4s var(--ease); z-index: 940;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; }
  .nav-link { font-size: 1rem; color: var(--off-white) !important; }
  .site-header.is-solid .nav-menu .nav-link,
  body.no-hero .site-header .nav-menu .nav-link,
  body:not(:has(.hero)) .site-header .nav-menu .nav-link { color: var(--off-white) !important; }
  .dropdown { display: none; }
  .nav-cta { display: none; }
  body.nav-locked { overflow: hidden; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--off-white); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--off-white); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { margin-top: -2.5rem; }
  .stat { padding: 1.5rem 0.8rem; }
  .stat-value { font-size: 2rem; }
  .award-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Phone: two 100%-wide buttons cannot sit side by side, so release the
     `nowrap` that keeps them on one line everywhere else and let them stack.
     Everything above this width still shows them together. */
  .hero--side .hero-panel .hero-actions { flex-wrap: wrap; }
  .hero--side .hero-panel .btn { padding: 0.95rem 1.5rem; }
}


/* ---------- Fixed image containers (uploads can never break layout) ---------- */
img { object-fit: cover; }
.album-card { display: block; }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.album-card { position: relative; aspect-ratio: 4 / 3; }
.masonry .album-card { aspect-ratio: 3 / 4; margin-bottom: 1.6rem; }
.masonry .album-card:nth-child(3n+2) { aspect-ratio: 4 / 5; }
.masonry .album-card:nth-child(4n+3) { aspect-ratio: 1 / 1; }
.split-img img { height: auto; }
.logo img.logo-img { height: 52px; width: auto; max-width: 230px; object-fit: contain; }
/* Single navbar logo; src is swapped by main.js when the navbar turns solid */
.site-footer .logo-img { height: 46px; }
.brand-logos img { height: 34px; width: auto; max-width: 140px; object-fit: contain; opacity: 0.75; transition: opacity .3s; }
.brand-logos a:hover img { opacity: 1; }

/* Newsletter inline success */
.newsletter-msg { font-size: 0.8rem; color: var(--gold); margin-top: 0.5rem; }

/* ============================================================
   SHOP — same design language: variables, cards, buttons
   ============================================================ */
.btn-block { width: 100%; justify-content: center; }
.muted { color: var(--stone); font-size: .9rem; }

/* shop bar */
.shop-bar { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.shop-bar-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.shop-cats { display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.shop-cats a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); white-space: nowrap; padding: .3rem 0; border-bottom: 1px solid transparent; }
.shop-cats a:hover, .shop-cats a.is-active { color: var(--gold-deep); border-color: var(--gold); }
.shop-links { display: flex; gap: 1rem; align-items: center; color: var(--charcoal); }
.shop-links a { display: grid; place-items: center; position: relative; }
.shop-links a:hover { color: var(--gold-deep); }
.shop-signin { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.cart-count { position: absolute; top: -7px; right: -9px; background: var(--gold); color: #fff; font-size: .62rem; font-weight: 600; min-width: 16px; height: 16px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.announce-bar { background: var(--ink); color: var(--cream); text-align: center; font-size: .78rem; letter-spacing: .12em; padding: .5rem 1rem; }
.announce-bar a { color: var(--gold); }

/* product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: all .5s var(--ease); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-card-img { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.badge { position: absolute; top: .8rem; left: .8rem; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 100px; background: var(--ink); color: #fff; }
.badge-sale { background: var(--gold); }
.badge-new { left: auto; right: .8rem; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.badge-out { background: var(--stone); }
.product-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card-cat { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.product-card h3 { font-size: 1.15rem; line-height: 1.25; }
.product-card h3 a:hover { color: var(--gold-deep); }
.price-row { display: flex; gap: .7rem; align-items: baseline; }
.price { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.price-row--lg .price { font-size: 2rem; }
.price-old { color: var(--stone); text-decoration: line-through; font-size: .9rem; }
.product-card-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .7rem; align-items: stretch; }
.product-card-actions form:first-child, .product-card-actions > a { flex: 1; }
.wish-btn { border: 1px solid var(--line); border-radius: var(--radius-btn); width: 42px; display: grid; place-items: center; color: var(--charcoal); transition: all .3s; position: relative; }
.wish-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.wish-btn--lg { width: 52px; }
.wish-on { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-soft); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .8rem; background: linear-gradient(transparent, rgba(20,17,13,.8)); color: #fff; font-family: var(--font-head); font-size: 1.05rem; text-align: center; }

/* promo slider + strip */
.promo-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.promo-slide { display: none; position: relative; aspect-ratio: 21/8; }
.promo-slide.is-active { display: block; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; }
.promo-slide-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(1.5rem, 6vw, 4rem); background: linear-gradient(90deg, rgba(20,17,13,.72), transparent 65%); color: #fff; gap: .6rem; align-items: flex-start; }
.promo-slide-body h2 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); }
.promo-slide-body p { color: rgba(255,255,255,.8); max-width: 400px; }
.promo-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.promo-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); }
.promo-dots button.is-active { background: var(--gold); }
.promo-strip { display: flex; gap: 1rem; flex-wrap: wrap; }
.promo-chip { display: flex; gap: .8rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.2rem; flex: 1; min-width: 220px; }
.promo-chip span { display: block; font-size: .8rem; color: var(--stone); }
.promo-badge { background: var(--gold-soft); color: var(--gold-deep); font-family: var(--font-head); font-size: 1.1rem; padding: .4rem .8rem; border-radius: var(--radius-sm); white-space: nowrap; }

/* toolbar / pagination */
.shop-toolbar { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.shop-search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.shop-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--stone); }
.shop-search input { width: 100%; padding: .8rem 1rem .8rem 2.7rem; border: 1px solid var(--line); border-radius: 100px; background: var(--white); outline: none; }
.shop-search input:focus { border-color: var(--gold); }
.shop-sort { padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 100px; background: var(--white); color: var(--charcoal); font: inherit; font-size: .85rem; }
.shop-count { margin-left: auto; color: var(--stone); font-size: .85rem; }
.shop-pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 2.5rem; color: var(--stone); }

/* product detail */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); }
.product-main-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-soft); }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: .7rem; margin-top: .8rem; overflow-x: auto; }
.thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); }
.product-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .4rem 0 .8rem; }
.product-short { color: var(--charcoal); margin: .8rem 0 1.4rem; }
.variant-select label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--charcoal); display: block; margin-bottom: .6rem; }
.variant-pills { display: flex; gap: .6rem; flex-wrap: wrap; }
.variant-pill input { position: absolute; opacity: 0; }
.variant-pill span { display: inline-block; padding: .55rem 1.2rem; border: 1px solid var(--line); border-radius: 100px; font-size: .85rem; cursor: pointer; transition: all .25s; background: var(--white); }
.variant-pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.variant-pill span:hover { border-color: var(--gold); }
.buy-row { display: flex; gap: .8rem; margin-top: 1.2rem; align-items: stretch; }
.qty-box { display: flex; border: 1px solid var(--line); border-radius: var(--radius-btn); overflow: hidden; background: var(--white); }
.qty-box button { width: 40px; font-size: 1.1rem; color: var(--charcoal); }
.qty-box button:hover { background: var(--cream); }
.qty-box input { width: 52px; text-align: center; border: 0; outline: 0; font: inherit; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-note { font-size: .8rem; color: var(--gold-deep); margin-top: .6rem; min-height: 1.2em; }
.product-desc { color: var(--charcoal); margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; }
.spec-table td { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.spec-table td:first-child { color: var(--stone); width: 40%; }
.sku-line { font-size: .75rem; letter-spacing: .12em; color: var(--stone); margin-top: 1rem; text-transform: uppercase; }
.policy-fold { border-top: 1px solid var(--line); padding: .8rem 0; }
.policy-fold summary { cursor: pointer; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.policy-fold p { padding-top: .6rem; color: var(--stone); font-size: .9rem; }

/* cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .8rem; }
.cart-line img { width: 76px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-line-info { display: flex; flex-direction: column; gap: .15rem; }
.cart-line-total { font-family: var(--font-head); font-size: 1.15rem; }
.cart-actions { display: flex; gap: .8rem; margin-top: 1rem; }
.cart-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-soft); position: sticky; top: 90px; }
.cart-summary h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.sum-row.sum-total { border-bottom: 0; font-family: var(--font-head); font-size: 1.25rem; padding-top: .8rem; }
.sum-save { color: var(--gold-deep); }
.cart-summary .btn { margin-top: 1rem; }
.co-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem; }
.co-block h3 { font-size: 1.25rem; margin-bottom: 1.1rem; }
.option-cards { display: flex; flex-direction: column; gap: .7rem; }
.option-card { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; cursor: pointer; transition: all .25s; background: var(--off-white); }
.option-card:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.option-card input { accent-color: var(--gold); }
.option-card div { flex: 1; display: flex; flex-direction: column; }
.option-card span { font-size: .8rem; color: var(--stone); }
.option-price { font-family: var(--font-head); font-size: 1.05rem; color: var(--gold-deep); }

/* payment method chooser (checkout step 3) */
.pay-methods { display: flex; flex-direction: column; gap: .8rem; }
.pay-method { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  cursor: pointer; transition: border-color .25s, box-shadow .25s, background .25s; }
.pay-method:hover { border-color: var(--gold); }
.pay-method input { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-method__mark { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--stone); transition: border-color .25s, box-shadow .25s; }
.pay-method:has(input:checked) { border-color: var(--gold); background: var(--gold-soft);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .05); }
.pay-method:has(input:checked) .pay-method__mark { border-color: var(--gold-deep);
  box-shadow: inset 0 0 0 4.5px var(--gold); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.pay-method__body { flex: 1; display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.pay-method__name { font-size: .98rem; color: var(--charcoal); }
.pay-method__note { font-size: .78rem; line-height: 1.5; color: var(--stone); }
.pay-method__logo { flex: 0 0 auto; height: 30px; width: auto; max-width: 96px; object-fit: contain; }
@media (max-width: 560px) {
  .pay-method { flex-wrap: wrap; align-items: flex-start; padding: .95rem 1rem; gap: .75rem; }
  .pay-method__mark { margin-top: .15rem; }
  .pay-method__body { flex: 1 1 60%; }
  .pay-method__logo { height: 26px; max-width: 80px; margin-left: calc(20px + 1rem); }
}
.check-inline { display: flex; flex-direction: row !important; align-items: center; gap: .6rem; }
.check-inline label { order: 2; margin: 0; }

/* orders / account */
.order-row { display: flex; gap: 1.2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: .7rem; transition: all .3s; }
.order-row:hover { border-color: var(--gold); transform: translateX(3px); }
.order-row > div { flex: 1; display: flex; flex-direction: column; }
.status-pill { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 100px; background: var(--cream); color: var(--charcoal); white-space: nowrap; }
.status-received { background: var(--gold-soft); color: var(--gold-deep); }
.status-confirmed, .status-preparing { background: #e9f0fb; color: #2b5fb0; }
.status-shipped, .status-pickup { background: #efe9fb; color: #6742b0; }
.status-delivered { background: #e5f3ec; color: #1f7a4d; }
.status-cancelled { background: #faeae8; color: #b3382e; }
.notif-unread { border-left: 3px solid var(--gold); }

/* error pages (400 / 403 / 404 / CSRF) */
.error-page { padding: clamp(5rem, 18vh, 10rem) 0; text-align: center; }
.error-page .error-code { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--stone); display: block; margin-bottom: .8rem; }
.error-page h1 { font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 2.8rem); margin-bottom: .8rem; }
.error-page p { max-width: 34rem; margin: 0 auto 2rem; line-height: 1.75; }
.error-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .error-actions .btn { width: 100%; } }

/* payment history (account profile) */
.pay-history { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.pay-history__table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.pay-history__table th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone); font-weight: 500; padding: .9rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pay-history__table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pay-history__table tr:last-child td { border-bottom: 0; }
.pay-history__ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem;
  color: var(--stone); max-width: 220px; overflow-wrap: anywhere; }
.pay-status--paid { background: #e5f3ec; color: #1f7a4d; }
.pay-status--pending, .pay-status--processing, .pay-status--authorized { background: var(--gold-soft); color: var(--gold-deep); }
.pay-status--failed, .pay-status--cancelled, .pay-status--expired { background: #faeae8; color: #b3382e; }
.pay-status--refunded { background: #efe9fb; color: #6742b0; }
@media (max-width: 640px) {
  .pay-history__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pay-history__table tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .pay-history__table tr:last-child { border-bottom: 0; }
  .pay-history__table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem 1rem; }
  .pay-history__table td::before { content: attr(data-label); font-size: .68rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--stone); }
  .pay-history__ref { max-width: 60%; text-align: right; }
}
.account-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.account-nav a, .account-signout { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); padding: .45rem 1rem; border-radius: 100px; border: 1px solid transparent; cursor: pointer; }
.account-nav a:hover, .account-signout:hover { color: var(--gold-deep); }
.account-nav a.is-active { border-color: var(--gold); color: var(--gold-deep); }
.account-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.account-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .2rem; align-items: center; transition: all .3s; }
.account-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.account-card strong { font-family: var(--font-head); font-size: 1.7rem; }
.account-card span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.auth-narrow { max-width: 430px; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-soft); }
.auth-form .form-field { display: flex; flex-direction: column; gap: .4rem; }
.auth-form label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); }
.auth-divider { display: flex; align-items: center; gap: 1rem; color: var(--stone); font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-link { color: var(--gold-deep); font-size: .85rem; }
.auth-link:hover { text-decoration: underline; }
.auth-foot-note { text-align: center; font-size: .85rem; color: var(--stone); }
.order-timeline .timeline-entry { padding-bottom: 1.4rem; }

@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
  .account-cards { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px 1fr auto; grid-template-rows: auto auto; }
  .cart-line img { width: 60px; height: 60px; grid-row: span 2; }
  .promo-slide { aspect-ratio: 16/10; }
}
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr 1fr; gap: .9rem; } }

/* ============================================================
   SHOP REFINEMENT — navbar auth, pills, ratings, reviews, a11y
   ============================================================ */
/* focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px;
}

/* navbar icons + auth */
.nav-icons { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.nav-inner .nav-menu { flex: 1; justify-content: center; }
.nav-ic {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center;
  color: rgba(255,255,255,.85); border-radius: 50%; transition: all .3s var(--ease); background: none; border: 0; cursor: pointer;
}
.site-header.is-solid .nav-ic,
body.no-hero .site-header .nav-ic,
body:not(:has(.hero)) .site-header .nav-ic { color: var(--charcoal); }
.nav-ic:hover { color: var(--gold); }
.nav-ic-count {
  position: absolute; top: 2px; right: 0; min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--gold); color: #fff; font-size: .6rem; font-weight: 600;
  border-radius: 8px; display: grid; place-items: center; line-height: 1;
}
.nav-auth-links { display: flex; gap: .45rem; align-items: center; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); padding: 0 .5rem; white-space: nowrap; }
.site-header.is-solid .nav-auth-links,
body.no-hero .site-header .nav-auth-links,
body:not(:has(.hero)) .site-header .nav-auth-links { color: var(--charcoal); }
.nav-auth-links a:hover { color: var(--gold); }
.nav-account { position: relative; }
.nav-account .dropdown { min-width: 190px; left: auto; right: 0; transform: translateY(8px); }
.nav-account:hover .dropdown, .nav-account:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-hello { display: block; padding: .55rem 1.5rem .35rem; font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stone); border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.nav-account form button { display: block; width: 100%; text-align: left; padding: .55rem 1.5rem;
  font-size: .82rem; color: var(--charcoal); transition: all .25s; cursor: pointer; }
.nav-account form button:hover { color: var(--gold-deep); background: var(--gold-soft); }

/* category pills */
.shop-bar { background: var(--white); border-bottom: 1px solid var(--line); }
/* Horizontal category strip: it scrolls inside itself, so it must never
   widen the page (min-width:0 stops the flex/grid min-content floor). */
.cat-pills { display: flex; gap: .55rem; padding: .9rem 0; overflow-x: auto;
  scrollbar-width: none; min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: .5rem 1.25rem; border: 1px solid var(--line); border-radius: 100px;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal);
  background: var(--off-white); transition: all .3s var(--ease); white-space: nowrap;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold-deep); }
.cat-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* toolbar refinements */
.breadcrumb--light { color: var(--stone); margin-bottom: 1rem; }
.breadcrumb--light a:hover { color: var(--gold-deep); }
.active-filters { display: flex; gap: .5rem; margin: -0.8rem 0 1.4rem; flex-wrap: wrap; }
.filter-chip { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .9rem;
  background: var(--gold-soft); color: var(--gold-deep); border-radius: 100px; font-size: .78rem; }
.filter-chip:hover { background: var(--gold); color: #fff; }

/* rating */
.rating-line { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; color: var(--charcoal); }
.rating-line--lg { font-size: .95rem; margin-bottom: .6rem; }
.rating-line--lg:hover { color: var(--gold-deep); }
.stars-sm { color: var(--gold); letter-spacing: .1em; }

/* card wishlist float */
.card-wish { position: absolute; top: .7rem; right: .7rem; z-index: 3; }
.wish-float { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
  border: 0; box-shadow: var(--shadow-soft); display: grid; place-items: center; color: var(--charcoal); }
.wish-float:hover { color: var(--gold-deep); transform: scale(1.08); }
.badge-new { left: auto; right: auto; top: .8rem; left: .8rem; }
.product-card-img .badge-sale ~ .badge-new { top: 2.6rem; }

/* reviews */
.review-summary { display: flex; gap: 2.5rem; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 2rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.review-score { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.review-score strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.review-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .35rem; }
.review-bar-row { display: flex; gap: .7rem; align-items: center; font-size: .8rem; color: var(--charcoal); }
.review-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--cream); overflow: hidden; }
.review-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.review-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.6rem; }
.review-form h3 { font-size: 1.2rem; margin-bottom: .8rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; margin-bottom: .9rem; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.7rem; color: var(--line); cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.review-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.review-item p { color: var(--charcoal); font-size: .93rem; margin-top: .4rem; }
.review-head { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.pill-verified { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .6rem;
  border-radius: 100px; background: #e5f3ec; color: #1f7a4d; }

/* empty states */
.shop-empty { text-align: center; padding: 4rem 1rem; }
.shop-empty-ic { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: var(--cream); color: var(--gold-deep); margin-bottom: 1.1rem; }
.shop-empty h2 { font-size: 1.7rem; margin-bottom: .5rem; }
.shop-empty p { color: var(--stone); margin-bottom: 1.4rem; }

@media (max-width: 880px) {
  .nav-icons { margin-left: auto; }
  .nav-auth-links { display: none; }   /* auth lives in the account icon on mobile */
  .nav-ic--mobile-only { display: grid; }
  .nav-account .dropdown { display: none; }
  .review-summary { gap: 1.2rem; }
}

/* Small phones (320-420px): the header row is logo + icons + menu button.
   Without this the row cannot shrink and pushes the page into horizontal
   scrolling — the header is position:fixed, so body{overflow-x:hidden}
   cannot clip it. */
@media (max-width: 420px) {
  .nav-inner { gap: .5rem; }
  .logo { min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .logo-img { max-width: 100%; height: auto; }
  .nav-icons { gap: 0; flex: 0 0 auto; }
  .nav-ic { width: 34px; height: 34px; }
  .nav-toggle { flex: 0 0 auto; padding: 8px 0 8px 4px; }
  .nav-toggle span { width: 22px; }
}

@media (min-width: 881px) { .nav-ic--mobile-only { display: none; } }

/* ============================== unified media ==============================
   Every media slot accepts an image OR a video (see sl_media template tag).
   Videos always fill their container exactly like images: fixed aspect,
   object-fit cover, no layout shift regardless of source dimensions. */
.media-box { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.media-under { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.media-video { position: relative; display: block; width: 100%; height: 100%;
  object-fit: cover; background: #000; z-index: 1; }
.media-video.is-broken { display: none; }   /* poster/fallback shows through */
.media-box.is-playing .media-under { opacity: 0; transition: opacity .3s; }

/* play badge — the whole tile is clickable; this is the visible affordance
   and the keyboard target */
.media-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  border: 0; background: rgba(20,17,13,0.28); color: var(--white, #fff);
  font-size: 1.9rem; cursor: pointer; transition: background .35s var(--ease); }
.media-play:hover, .media-play:focus-visible { background: rgba(20,17,13,0.45); }
.media-play:focus-visible { outline: 2px solid var(--gold, #b99256); outline-offset: -4px; }
.media-box.is-playing .media-play { display: none; }
.media-unplayable .media-play { display: none; }

/* videos inherit each container's existing image geometry */
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .media-box { position: absolute; inset: 0; }
.promo-slide video, .promo-slide .media-box { width: 100%; height: 100%; }
.album-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.album-card:hover video { transform: scale(1.06); }
.blog-card-img video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .media-box, .gallery-item video { width: 100%; height: 100%; }
.gallery-item video { object-fit: cover; aspect-ratio: 4/3; }
.gallery-item .media-under { aspect-ratio: 4/3; }
.gallery-item--portrait video, .gallery-item--portrait .media-under { aspect-ratio: 3/4; }
.gallery-item--square video, .gallery-item--square .media-under { aspect-ratio: 1/1; }
.gallery-item--video { cursor: pointer; }
.gallery-item--video::after { content: none; }   /* no lightbox "+" on players */
.gallery-item--video:hover img, .gallery-item--video:hover video { transform: none; }

/* respect reduced motion: decorative autoplay videos hide, and the
   fallback image underneath (.media-under) shows instead */
@media (prefers-reduced-motion: reduce) {
  .media-video[autoplay] { display: none; }
}

/* image skeleton — a soft placeholder until a lazy image paints */
.gallery-item, .album-card, .blog-card-img, .product-card-img {
  background: linear-gradient(100deg, var(--cream, #f6f1e8) 30%, var(--off-white, #fbf8f3) 50%, var(--cream, #f6f1e8) 70%);
  background-size: 200% 100%; animation: mediaSkeleton 1.4s linear infinite;
}
.gallery-item img, .album-card img, .blog-card-img img, .product-card-img img,
.gallery-item video, .album-card video { background: transparent; }
@keyframes mediaSkeleton { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .gallery-item, .album-card, .blog-card-img, .product-card-img { animation: none; }
}

/* client-gallery download buttons */
.dl-link { position: absolute; right: .6rem; bottom: .6rem; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(20,17,13,.55); color: var(--white, #fff); border-radius: 50%;
  text-decoration: none; font-size: 1rem; transition: background .3s; }
.dl-link:hover, .dl-link:focus-visible { background: var(--gold, #b99256); }

/* ---------------------------- YouTube films ------------------------------ */
.yt-grid { align-items: start; }
.yt-embed { position: relative; }
.yt-play { position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius, 14px); background: var(--ink, #1a1713); }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease); }
.yt-play:hover img, .yt-play:focus-visible img { transform: scale(1.04); }
.yt-btn { position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20,17,13,.18); transition: background .35s var(--ease); }
.yt-btn svg { filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.yt-btn-bg { fill: rgba(20,17,13,.78); transition: fill .35s var(--ease); }
.yt-play:hover .yt-btn, .yt-play:focus-visible .yt-btn { background: rgba(20,17,13,.32); }
.yt-play:hover .yt-btn-bg, .yt-play:focus-visible .yt-btn-bg { fill: var(--gold, #b99256); }
.yt-play:focus-visible { outline: 2px solid var(--gold, #b99256); outline-offset: 3px; }
.yt-embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block;
  border-radius: var(--radius, 14px); }
.yt-title { margin-top: .7rem; font-family: var(--font-head); font-size: 1.05rem;
  color: var(--charcoal, #4a443c); text-align: center; }

/* ===================== Virtual Frame Preview ============================ */
.fp-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 2.5rem; align-items: start; }
.fp-stage { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.fp-canvas-wrap { width: 100%; display: flex; justify-content: center;
  background: var(--cream, #f6f1e8); border-radius: var(--radius, 14px); padding: 1.4rem; }
#frameCanvas { max-width: 100%; touch-action: none; cursor: grab;
  border-radius: 4px; box-shadow: 0 18px 50px rgba(26,23,19,.18); }
#frameCanvas:active { cursor: grabbing; }
#frameCanvas:focus-visible { outline: 2px solid var(--gold, #b99256); outline-offset: 6px; }
.fp-status { min-height: 1.2em; font-size: .82rem; }
.fp-controls { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.fp-controls .btn { padding: .5rem .9rem; font-size: .78rem; }
.fp-hint { font-size: .78rem; text-align: center; }

.fp-panel { border: 1px solid var(--line, #e5ddd0); border-radius: var(--radius, 14px);
  padding: 1.6rem; background: var(--white, #fff); }
.fp-panel h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.fp-price { font-family: var(--font-body); color: var(--gold-deep, #9a7743); font-size: 1.05rem; }
.fp-meta { list-style: none; padding: 0; margin: .8rem 0 0; font-size: .85rem; }
.fp-meta li { padding: .15rem 0; }
.fp-block { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line, #e5ddd0); }
.fp-block h3 { font-size: .95rem; letter-spacing: .04em; margin-bottom: .7rem; }
.fp-sub { margin: 1rem 0 .5rem; font-size: .85rem; color: var(--stone, #8a8175); }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.visually-hidden-input:focus-visible + .help { outline: 2px solid var(--gold, #b99256); }

.fp-samples { display: flex; gap: .5rem; flex-wrap: wrap; }
.fp-sample, .fp-frame { border: 2px solid transparent; background: none; padding: 0;
  cursor: pointer; border-radius: 8px; overflow: hidden; text-align: center;
  transition: border-color .25s var(--ease), transform .25s var(--ease); }
.fp-sample img { width: 64px; height: 64px; object-fit: cover; display: block; }
.fp-sample span, .fp-frame span { display: block; font-size: .66rem; padding: .25rem;
  color: var(--stone, #8a8175); }
.fp-sample:hover, .fp-frame:hover { transform: translateY(-2px); }
.fp-sample.is-active, .fp-frame.is-active { border-color: var(--gold, #b99256); }
.fp-sample:focus-visible, .fp-frame:focus-visible { outline: 2px solid var(--gold, #b99256); outline-offset: 2px; }

.fp-frames { grid-column: 1 / -1; margin-top: 1rem; }
.fp-frame-strip { display: flex; gap: .7rem; overflow-x: auto; padding: .6rem 0 1rem;
  scroll-snap-type: x mandatory; }
.fp-frame { flex: 0 0 auto; scroll-snap-align: start; }
.fp-frame img { width: 104px; height: 104px; object-fit: cover; display: block; }

.fp-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.fp-filters .input { max-width: 230px; }
.fp-card { border: 1px solid var(--line, #e5ddd0); border-radius: var(--radius, 14px);
  overflow: hidden; background: var(--white, #fff); display: flex; flex-direction: column; }
.fp-card-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.fp-card-img img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease); }
.fp-card:hover .fp-card-img img { transform: scale(1.05); }
.fp-card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.fp-card-meta { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem;
  flex-wrap: wrap; font-size: .75rem; }
.fp-card-meta li::after { content: "·"; margin-left: .5rem; }
.fp-card-meta li:last-child::after { content: ""; }
.fp-card-actions { margin-top: auto; padding-top: .8rem; display: flex; flex-direction: column; gap: .5rem; }

@media (max-width: 900px) {
  .fp-layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .fp-canvas-wrap { padding: .8rem; }
  .fp-filters .input { max-width: none; flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-sample, .fp-frame, .fp-card-img img { transition: none; }
}

/* ---- Live preview: loading, fade-in and unavailable states -------------- */
.fp-widget #frameCanvas {
  /* promote to its own layer: pan/zoom stay on the compositor */
  will-change: transform;
  transform: translateZ(0);
  touch-action: none;                 /* we handle pinch/drag ourselves */
  max-width: 100%;
}
.fp-widget #frameCanvas.is-fading-in { animation: fpFade .28s ease-out; }
@keyframes fpFade { from { opacity: 0; } to { opacity: 1; } }

.fp-canvas-wrap { position: relative; min-height: 220px; }
.fp-widget.is-loading .fp-canvas-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 70%);
  background-size: 200% 100%;
  animation: fpSkeleton 1.1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fpSkeleton { from { background-position: 180% 0; }
                        to   { background-position: -80% 0; } }

.fp-unavailable {
  max-width: 46rem; margin: 0 auto; padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--line, #e4ded4); border-radius: 10px;
}
.fp-unavailable h3 { margin: 0 0 .5rem; font-size: 1.05rem; }

.fp-tools[hidden] { display: none; }
.fp-controls .btn[disabled] { opacity: .45; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .fp-widget #frameCanvas.is-fading-in { animation: none; }
  .fp-widget.is-loading .fp-canvas-wrap::after { animation: none; }
}

/* Staff-only preview diagnostics — never shown to customers */
.fp-diagnostics {
  margin: 1.25rem auto 0; max-width: 40rem; text-align: left;
  padding: .9rem 1.1rem; border-radius: 8px;
  border: 1px dashed #c9a227; background: #fffbe9; font-size: .88rem;
}
.fp-diagnostics ul { margin: .35rem 0 .6rem 1.1rem; }
.fp-diagnostics code { background: #f3ead0; padding: .1rem .3rem; border-radius: 3px; }

/* Save Preview — confirmation has to be visible on the control itself */
#frameSaveBtn.is-saved {
  background: #2e7d4f; border-color: #2e7d4f; color: #fff;
}
#frameSaveBtn[disabled] { opacity: .7; cursor: progress; }
.fp-widget.is-saving { pointer-events: none; }
.fp-widget.is-saving #framePreviewStatus { font-weight: 500; }

/* ---- Save Preview: a state, not a flash -------------------------------- */
#frameSaveBtn { transition: background .2s ease, border-color .2s ease, color .2s ease; }
#frameSaveBtn.is-saved,
#frameSaveBtn.is-saved[disabled] {
  background: #2e7d4f; border-color: #2e7d4f; color: #fff;
  opacity: 1; cursor: default;
}
#frameSaveBtn[disabled]:not(.is-saved) { opacity: .7; cursor: progress; }

/* A confirmation the customer cannot miss, over the canvas itself. */
.fp-toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px);
  max-width: min(90%, 34rem); z-index: 5;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: rgba(26, 23, 19, .93); color: #fff;
  font-size: .88rem; line-height: 1.35; text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.fp-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.fp-toast--error { background: #8f2d2d; }

@media (prefers-reduced-motion: reduce) {
  .fp-toast { transition: none; }
}
