/* =========================================================
   VAV.Ravi Ganapathi & Sons — Bimetallic Design System
   Traditional & trusted · polished brass + matte aluminium · bilingual
   ========================================================= */

:root {
  /* Palette — toasted paper, oil-dark patina, two real metals */
  --cream:        #f1e7d4;   /* aged paper ground */
  --cream-2:      #e7d8bd;
  --paper:        #fffdf6;   /* card / near-white */
  --ink:          #221a0f;   /* warm near-black text */
  --ink-soft:     #564838;
  --ink-faint:    #897a62;
  --patina:       #17110a;   /* oil-darkened brass-shop dark */
  --patina-2:     #2b2012;
  --brass:        #b3862a;   /* brass */
  --brass-deep:   #835c12;
  --brass-light:  #d9b357;
  --brass-glow:   #f4dd92;   /* metal highlight */
  --brass-shadow: #694b10;
  --silver:       #8b969d;   /* matte aluminium */
  --silver-deep:  #586269;
  --silver-light: #c5cdd1;
  --maroon:       #6e2b2b;   /* heritage accent */
  --green:        #2f7048;   /* trust / whatsapp accent */
  --line:         rgba(34, 26, 15, 0.12);
  --shadow-sm:    0 2px 10px rgba(34, 26, 15, 0.08);
  --shadow-md:    0 14px 36px rgba(34, 26, 15, 0.15);
  --shadow-lg:    0 30px 64px rgba(34, 26, 15, 0.22);

  /* Type — characterful display + humanist body (not Playfair/Inter) */
  --serif: "Fraunces", "Noto Serif Tamil", Georgia, serif;
  --sans:  "Hanken Grotesk", "Noto Sans Tamil", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1640px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tamil mode swaps serif/sans to Tamil-capable faces */
body.lang-ta {
  --serif: "Noto Serif Tamil", "Fraunces", Georgia, serif;
  --sans:  "Noto Sans Tamil", "Hanken Grotesk", sans-serif;
}
/* Tamil script must not get wide Latin letter-spacing — it splits conjuncts and
   overflows on small screens. Tighten spacing for the labels that use it. */
body.lang-ta .eyebrow,
body.lang-ta .scroll-cue,
body.lang-ta .brand__sub,
body.lang-ta .footer__bottom,
body.lang-ta .strip__row .stat span { letter-spacing: 0.02em; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--cream); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 4vw, 64px); }
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 12px;
}
.eyebrow::before, .eyebrow.center::after {
  content: "";
  width: 30px; height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h2.title { font-size: clamp(1.9rem, 4vw, 3rem); margin: 14px 0 18px; }
.lede { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-soft); max-width: 60ch; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btnc: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.3s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  color: #2a1d06;
  background: linear-gradient(150deg, var(--brass-glow), var(--brass-light) 38%, var(--brass-deep));
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -2px 3px rgba(0,0,0,0.16),
    0 10px 24px rgba(131,92,18,0.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 16px 34px rgba(131,92,18,0.42); }
/* brass shine sweep */
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  color: var(--ink); background: transparent; border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-deep); transform: translateY(-2px); }
.btn--wa { background: #25925a; color:#fff; box-shadow: 0 10px 24px rgba(37,146,90,0.3); }
.btn--wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--lg { padding: 17px 34px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.35s var(--ease);
  background: rgba(247, 241, 230, 0);
}
.header.scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(44,33,23,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height 0.35s var(--ease); }
.header.scrolled .nav { height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, var(--brass-glow), var(--brass) 52%, var(--brass-shadow));
  color: #2a1d06; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 0 0 1px rgba(105,75,16,0.55),
    0 4px 10px rgba(34,26,15,0.25);
}
.brand__mark--sm { font-size: 0.8rem; letter-spacing: 0.01em; }
.brand__logo { height: 54px; width: auto; display: block; flex: none; }
.header.scrolled .brand__logo { height: 46px; transition: height 0.35s var(--ease); }
.brand > span:not(.brand__mark) { display: flex; flex-direction: column; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; line-height: 1.1; white-space: nowrap; }
.brand__sub { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.nav__links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft); transition: all 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(176,141,46,0.1); }
.nav__links a.active { color: var(--brass-deep); }
.nav__phonewrap { flex: 1; display: flex; justify-content: center; }
.nav__phone, .nav__call {
  font-weight: 600; font-size: 0.95rem; white-space: nowrap; letter-spacing: 0.01em;
  color: #fff;                    /* white text */
  background: #bfa14d;            /* muted antique-gold oval (matches EN button shade) */
  padding: 9px 20px; border-radius: 999px; transition: background 0.25s var(--ease);
}
.nav__phone:hover, .nav__call:hover { background: #a98c3c; color: #fff; }
.nav__call { display: none; }     /* mobile-only "Call" pill (shown in responsive) */

.nav__right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; font-size: 0.82rem; font-weight: 600;
  background: var(--paper);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; padding: 7px 13px;
  color: var(--ink-faint); font-family: var(--sans); font-weight: 600; transition: all 0.2s;
}
.lang-toggle button.active { background: var(--brass); color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: all 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; align-items: safe center; /* never clip the top under the header */
  padding: 165px 0 48px; overflow: hidden;
  background:
    radial-gradient(108% 80% at 82% -5%, rgba(244, 221, 146, 0.34), transparent 52%),
    radial-gradient(80% 70% at -8% 108%, rgba(110, 43, 43, 0.08), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.015em; }
.hero h1 .shine {
  background: linear-gradient(100deg, var(--brass-shadow), var(--brass) 28%, var(--brass-glow) 50%, var(--brass) 72%, var(--brass-shadow));
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: shine 7s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.45));
}
@keyframes shine { to { background-position: 220% center; } }
/* Aluminium word shines like silver, not brass */
.hero h1 .shine--silver {
  background-image: linear-gradient(100deg, var(--silver-deep), var(--silver) 26%, #f4f8fa 50%, var(--silver) 74%, var(--silver-deep));
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6));
}
.hero .lede { margin: 22px 0 32px; font-size: 1.12rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__cta--m { display: none; } /* mobile-only copy of the hero buttons (shown below the medallion on phones) */
.hero__head--m { display: none; } /* mobile-only copy of the eyebrow + title (shown above the medallion on phones) */
.hero__trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust .stat strong { font-family: var(--serif); font-size: 1.8rem; color: var(--brass-deep); display: block; }
.hero__trust .stat span { font-size: 0.82rem; color: var(--ink-faint); }

.hero__art { position: relative; aspect-ratio: 1/1; }
/* Signature: a lathe-spun brass medallion / hallmark */
.hero__plate {
  position: absolute; inset: 8px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.09) 0deg 3deg, rgba(0,0,0,0.05) 3deg 6deg),
    radial-gradient(circle at 38% 30%, var(--brass-glow), var(--brass-light) 28%, var(--brass) 56%, var(--brass-deep) 80%, var(--brass-shadow));
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.55),
    inset 0 -10px 24px rgba(0,0,0,0.4),
    0 0 0 2px rgba(105,75,16,0.6),
    0 0 0 9px var(--cream),
    0 0 0 11px rgba(105,75,16,0.32),
    var(--shadow-lg);
}
/* engraved inner ring */
.hero__plate::before {
  content: ""; position: absolute; inset: 13%; border-radius: 50%;
  border: 1px dashed rgba(42,29,6,0.4);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.07), inset 0 0 18px rgba(0,0,0,0.18);
  z-index: 1;
}
.hero__lamp { width: 40%; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4)); }
/* Product photo filling the medallion */
.hero__photo {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero__photo.is-on { opacity: 1; }
.hero__art:hover .hero__photo.is-on { transform: scale(1.02); transition: transform 0.6s var(--ease), opacity 1.1s ease; }
.hero__plate::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(125deg, transparent 38%, rgba(255,255,255,0.42) 50%, transparent 62%);
  transform: translateX(-100%); animation: sweep 5.5s var(--ease) infinite;
}
@keyframes sweep { 0%,100%{transform:translateX(-100%);} 55%,75%{transform:translateX(100%);} }
/* Golden shining ring framing the medallion */
.hero__art::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: 4;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    #7a560f, #f6e285, #caa23a, #fff7cf, #b07d1c, #f6e285, #caa23a, #7a560f);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 11px), #000 calc(100% - 10px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 11px), #000 calc(100% - 10px));
  animation: ringspin 8s linear infinite;
  filter: drop-shadow(0 0 7px rgba(226,178,66,0.6));
}
@keyframes ringspin { to { transform: rotate(360deg); } }
/* auto shimmer sweep for the mobile hero CTA (no hover on touch) */
@keyframes btnShine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.hero__badge {
  position: absolute; bottom: -22px; left: -22px; z-index: 5; background: var(--paper);
  border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.hero__badge .seal {
  width: 44px; height: 44px; border-radius: 50%; flex:none;
  background: radial-gradient(circle at 34% 28%, var(--brass-glow), var(--brass) 55%, var(--brass-shadow));
  display:grid; place-items:center; color:#2a1d06; font-weight:700; font-family:var(--serif); font-size: 0.82rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -2px 4px rgba(0,0,0,0.3);
}
.hero__badge small { color: var(--ink-faint); font-size: 0.72rem; display:block; }
.hero__badge b { font-family: var(--serif); font-size: 1rem; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after { content:""; width:1px; height:34px; background: var(--brass); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0);} 50%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* ---------- Trust strip ---------- */
.strip { background: linear-gradient(120deg, var(--patina), var(--patina-2)); color: var(--cream); }
.strip__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.strip__row .stat strong { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--brass-light); display:block; }
.strip__row .stat span { font-size: 0.85rem; color: rgba(247,241,230,0.7); letter-spacing: 0.04em; }
.strip__row .stat + .stat { border-left: 1px solid rgba(255,255,255,0.1); }

/* ---------- Cards / category grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(176,141,46,0.4); }
/* Desktop: enlarge the whole product card (image + info) on hover, lifting it above its neighbours */
@media (hover: hover) and (min-width: 769px) {
  .card.product:hover {
    transform: translateY(-6px) scale(1.07);
    position: relative; z-index: 3;
    box-shadow: 0 28px 64px rgba(23,17,10,0.24);
    border-color: rgba(176,141,46,0.6);
  }
}
.card__media {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--cream-2), #e3d6bc);
  display: grid; place-items: center;
}
.card__media .ph-icon { width: 56px; height: 56px; color: var(--brass-deep); opacity: 0.9; transition: transform 0.5s var(--ease); }
.card:hover .card__media .ph-icon { transform: scale(1.12) rotate(-4deg); }
.card__media .card__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media .card__photo { transform: scale(1.05); }
.card__media.brass { background: radial-gradient(circle at 40% 32%, #f1dda8, #d9bd84 55%, #c3a25e); }
.card__media.brass .ph-icon { color: var(--brass-deep); }
.card__media.alu   { background: radial-gradient(circle at 40% 32%, #eef1f3, #d0d6da 55%, #aeb6bc); }
.card__media.alu .ph-icon { color: var(--silver-deep); }
.card__media .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: rgba(44,33,23,0.78); color: var(--cream);
}
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 1.22rem; }
.card__size { display: block; margin-top: 3px; font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); }
.card__body p { color: var(--ink-soft); font-size: 0.94rem; }
.card__link {
  margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--brass-deep);
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem;
}
.card__link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
/* Product cards: the Enquire link is a full-width brown bar with white text */
.card.product .card__link {
  justify-content: center; width: 100%;
  background: var(--patina-2); color: #fff;
  padding: 14px 18px; border-radius: 10px;
  font-size: 1.02rem; letter-spacing: 0.01em;
  transition: background 0.25s var(--ease);
}
.card.product .card__link:hover { background: var(--patina); color: #fff; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__art {
  border-radius: 20px; aspect-ratio: 5/4; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 11px),
    linear-gradient(150deg, var(--brass-glow), var(--brass) 34%, var(--brass-deep) 68%, var(--patina));
}
.split__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.split__photo--contain { object-fit: contain; background: #fff; }
.split__art .stamp {
  position: absolute; inset: auto 22px 22px auto; z-index: 2; width: 92px; height: 92px; border-radius: 50%;
  border: 2px dashed rgba(216,182,90,0.9); display:grid; place-items:center; text-align:center;
  font-family: var(--serif); font-size: 0.78rem; line-height:1.2; padding: 8px;
  color: transparent;
  background: linear-gradient(100deg, var(--brass-shadow), var(--brass) 28%, var(--brass-glow) 50%, var(--brass) 72%, var(--brass-shadow));
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  animation: shine 7s linear infinite;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}
@media (prefers-reduced-motion: reduce) { .split__art .stamp { animation: none; } }
/* Tamil name on the About page should not get wide Latin letter-spacing */
body.lang-ta .owner-name { letter-spacing: 0.01em; }

/* Owner slot — shining gold name above the photo, with softly faded edges */
.split__side { display: flex; flex-direction: column; gap: 18px; }
.owner-name {
  margin: 0; text-align: center; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: 0.05em; text-transform: uppercase;
}
.owner-name .shine {
  background: linear-gradient(100deg, var(--brass-shadow), var(--brass) 28%, var(--brass-glow) 50%, var(--brass) 72%, var(--brass-shadow));
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: shine 7s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.5));
}
/* Replace the photo's baked-in dark edge with a soft cream faded border */
.split__art--owner { background: var(--cream); }
.split__art--owner::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 38px 18px var(--cream);
}
@media (prefers-reduced-motion: reduce) { .owner-name .shine { animation: none; } }

/* About page reorder (positions set by initAboutReorder in main.js) */
@media (min-width: 769px) {
  /* PC: whole Story section is moved above the page-hero */
  section.story-top { padding-top: calc(150px + 40px); }
  section.story-top + .page-hero { padding-top: 52px; }
}
@media (max-width: 768px) {
  /* Mobile: thinner golden ring around the medallion */
  .hero__art::before {
    inset: -1px;
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 6px), #000 calc(100% - 5px));
            mask: radial-gradient(farthest-side, #0000 calc(100% - 6px), #000 calc(100% - 5px));
  }
  /* Mobile: Browse Products CTA shines continuously */
  .hero__cta--m .btn--primary::after { animation: btnShine 3.2s var(--ease) infinite; }
  /* Mobile: only RAVI GANAPATHI + photo is moved above the page-hero */
  .split__side.owner-top {
    padding: calc(150px + 22px) 24px 6px; max-width: 620px; margin: 0 auto;
    align-items: center; text-align: center;
  }
  .split__side.owner-top .split__art { width: 100%; }
  .split__side.owner-top + .page-hero { padding-top: 26px; }
}
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ic {
  width: 42px; height: 42px; border-radius: 11px; flex: none; display:grid; place-items:center;
  background: rgba(176,141,46,0.13); color: var(--brass-deep);
}
.feature-list .ic svg { width: 20px; height: 20px; }
.feature-list h4 { font-size: 1.05rem; margin-bottom: 2px; }
.feature-list p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Why / values ---------- */
.bg-soft { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.value {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all 0.4s var(--ease);
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value .ic {
  width: 52px; height: 52px; border-radius: 13px; display:grid; place-items:center; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--brass-light), var(--brass-deep)); color:#fff;
}
.value .ic svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.18rem; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 4rem; color: var(--brass-light);
  position: absolute; top: 6px; left: 18px; line-height: 1; opacity: 0.6;
}
.quote p { font-size: 1.02rem; color: var(--ink-soft); font-style: italic; margin: 18px 0 16px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--brass-light), var(--brass-deep)); display:grid; place-items:center; color:#fff; font-weight:700; font-family:var(--serif); }
.quote .who b { font-family: var(--serif); }
.quote .who span { font-size: 0.82rem; color: var(--ink-faint); display:block; }
.stars { color: var(--brass); letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(80% 120% at 90% 10%, rgba(244,221,146,0.26), transparent 60%),
    linear-gradient(135deg, var(--patina), var(--patina-2));
  color: var(--cream); border-radius: 24px; padding: clamp(40px, 6vw, 70px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(247,241,230,0.82); max-width: 56ch; margin: 14px auto 28px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Products page ---------- */
.page-hero {
  padding: calc(150px + 55px) 0 60px; text-align: center;
  background:
    radial-gradient(100% 90% at 50% -10%, rgba(216,182,90,0.18), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0 14px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--brass-deep); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-family: var(--sans);
  font-weight: 600; font-size: 0.9rem; transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--brass); color: var(--brass-deep); }
.filter.active { background: var(--brass); color: #fff; border-color: var(--brass); }

.product { animation: none; }
.product.hide { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  font-family: var(--sans); font-size: 0.96rem; color: var(--ink); background: var(--cream);
  transition: all 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); background: var(--paper); box-shadow: 0 0 0 3px rgba(176,141,46,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 42px; height: 42px; border-radius: 11px; flex:none; display:grid; place-items:center; background: rgba(176,141,46,0.13); color: var(--brass-deep); }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row b { font-family: var(--serif); }
.info-row a, .info-row span { color: var(--ink-soft); font-size: 0.95rem; }
.info-row a:hover { color: var(--brass-deep); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; filter: saturate(0.9); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, var(--patina-2), var(--patina)); color: rgba(247,241,230,0.75); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: var(--cream); font-size: 1rem; margin-bottom: 16px; }
.footer a { color: rgba(247,241,230,0.72); }
.footer a:hover { color: var(--brass-light); }
.footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer .brand__name { color: var(--cream); }
.footer .brand__sub { color: rgba(247,241,230,0.5); }
.footer__about { font-size: 0.92rem; max-width: 34ch; margin-top: 14px; }
.footer__social { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 0.92rem; color: rgba(247,241,230,0.72); }
.footer__social svg { width: 22px; height: 22px; flex: none; color: var(--brass-light); transition: transform .2s ease; }
.footer__social:hover { color: var(--brass-light); }
.footer__social:hover svg { transform: scale(1.08); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.84rem; color: rgba(247,241,230,0.55); }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25925a; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,146,90,0.45);
  transition: transform 0.3s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }
.fab::after { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #25925a; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0%{transform:scale(1); opacity:0.7;} 100%{transform:scale(1.6); opacity:0;} }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1 .shine { animation: none; }
  .hero__plate::after, .fab::after, .hero__art::before,
  .hero__cta--m .btn--primary::after { animation: none; }
}

/* ---------- Bilingual visibility ---------- */
[data-ta] { } /* text swapped by JS */

/* ---------- Mobile nav drawer ---------- */
.nav__drawer { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .nav__phonewrap { display: none; }
  .nav__call { display: inline-flex; align-items: center; margin: 0 auto; }
  .hero__art { width: min(440px, 100%); margin: 0 auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .strip__row { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .strip__row .stat + .stat:nth-child(odd) { border-left: 0; }
}

@media (max-width: 1024px) {
  .nav__links {
    position: fixed; inset: 84px 0 auto 0; z-index: 60; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 14px; gap: 4px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); border-top: 1px solid var(--line);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 18px; border-radius: 10px; }
  .nav__toggle { display: block; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* header CTA is redundant on mobile (menu + floating WhatsApp + hero CTAs cover it) */
  .nav__right .btn--primary { display: none; }
  .hero__trust { gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .strip__row { grid-template-columns: 1fr 1fr; }
  .hero__badge { left: 0; }
  .container { padding: 0 18px; }
  .brand > span:not(.brand__mark) { display: none; } /* logo already shows the brand on small screens */
  .brand__logo { height: 46px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: 0.6rem; }
  /* Tamil words run long — shrink the hero headline so place-names don't clip */
  body.lang-ta .hero h1 { font-size: clamp(1.7rem, 6.6vw, 2.15rem); }
}
@media (max-width: 360px) {
  .brand__sub { display: none; }
}

/* Catalog highlight card (home category grid) */
.card--catalog {
  background:
    radial-gradient(90% 120% at 85% 8%, rgba(244,221,146,0.18), transparent 60%),
    linear-gradient(150deg, var(--patina), var(--patina-2));
  color: var(--cream); border: 0; justify-content: center; text-align: center;
  padding: 30px 24px;
}
.card--catalog h3 { color: #fff; }
.card--catalog p { color: rgba(247,241,230,0.8); }
.card--catalog .card__link { color: var(--brass-light); justify-content: center; }
.card--catalog .catalog-ic {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  display: grid; place-items: center; background: rgba(216,182,90,0.18); color: var(--brass-light);
}
.card--catalog .catalog-ic svg { width: 28px; height: 28px; }

/* =========================================================
   Page transition — a brass pot zooms out from the centre
   until it covers the whole page, then the page changes
   ========================================================= */
.pt {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  pointer-events: none; visibility: hidden;
}
.pt.is-exit, .pt.is-enter { visibility: visible; }
/* Instant pre-cover on arrival (toggled by inline <head> script) so the next
   page never flashes for a frame before the pot's zoom-out begins. It mimics
   the fully-zoomed pot, then is handed off to the real pot at animation start. */
html.pt-pre::before {
  content: ""; position: fixed; inset: 0; z-index: 10000;
  background: var(--silver-light) url("../assets/rolling-pot.png") center / 185vmax 185vmax no-repeat;
}
.pt__pot {
  position: absolute; top: 50%; left: 50%;
  width: 100vmax; height: 100vmax; margin: -50vmax 0 0 -50vmax;
  object-fit: contain; transform-origin: center center;
  transform: scale(0);
  filter: drop-shadow(0 12px 50px rgba(0,0,0,0.4));
  will-change: transform;
}
.pt.is-exit  .pt__pot { animation: ptZoomIn  0.75s cubic-bezier(0.55,0,0.45,1) forwards; }
.pt.is-enter .pt__pot { animation: ptZoomOut 0.70s cubic-bezier(0.55,0,0.45,1) forwards; }
/* No rotation: the covered state is identical across exit-end, pre-cover and
   enter-start, so the page swap is seamless (no visible "break"). */
@keyframes ptZoomIn  { from { transform: scale(0);    } to { transform: scale(1.85); } }
@keyframes ptZoomOut { from { transform: scale(1.85); } to { transform: scale(0);    } }
/* Page-to-page transition: a gentle fade-in on load — same on desktop and mobile */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
.pt { display: none !important; }
html.pt-pre::before { display: none !important; }
/* Fade the page content in — but NOT the loader splash, so it appears instantly on load */
body > *:not(.loader) { animation: pageFadeIn 0.4s ease both; }
@media (prefers-reduced-motion: reduce) { body > *:not(.loader) { animation: none; } }
@media (max-width: 768px) {
  .testi-cue { display: none; } /* no flip-book on mobile, so hide the drag hint */
  .hero { padding-bottom: 88px; } /* room at the bottom so the scroll cue doesn't overlap the stats */
  .scroll-cue { bottom: 20px; }
  .hero__grid { gap: 28px; }
  .hero__head--m { display: block; order: -3; } /* title above the medallion */
  .hero__copy > .eyebrow, .hero__copy > h1 { display: none; } /* shown via the mobile title block instead */
  .hero__art { order: -2; } /* mobile: medallion below the title */
  .hero__cta--m { display: flex; order: -1; justify-content: center; } /* buttons directly below the medallion */
  .hero__copy .hero__cta { display: none; } /* hide the in-text buttons on mobile (kept for desktop) */
  .hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } /* all three stats in one parallel row */
  .hero__trust .stat strong { font-size: 1.3rem; }
  .split__art .stamp { display: none; } /* hide the dashed "VAVR · Tirunelveli Town" stamp on mobile */
  /* Tamil labels run much longer than English — let buttons wrap and long words
     break so nothing is pushed off the right edge on small screens. */
  .btn { white-space: normal; max-width: 100%; }
  h1, h2, h3, h4, p, .lede, .eyebrow, .stat, .card__body { overflow-wrap: break-word; }
}
html { overflow-x: hidden; }
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* =========================================================
   Loading splash — VAVR logo + brass shimmer (all devices)
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 10001;
  display: grid; place-items: center;
  background: var(--cream);
  transition: opacity 0.5s ease;
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader__logo { height: 74px; width: auto; animation: loaderPulse 1.4s ease-in-out infinite; }
.loader__bar { position: relative; width: 132px; height: 3px; border-radius: 99px; background: rgba(131,92,18,0.18); overflow: hidden; }
.loader__bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brass-light), var(--brass-deep));
  animation: loaderSlide 1.05s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: 0.8; } }
@keyframes loaderSlide { 0% { left: -45%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .loader__logo, .loader__bar::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pt { display: none !important; }
}

/* =========================================================
   Tamil on phones — Tamil words run longer than English, so
   shrink the large type and let long words break, keeping
   everything inside the screen. English/desktop unaffected.
   ========================================================= */
@media (max-width: 768px) {
  body.lang-ta .hero h1 { font-size: clamp(1.35rem, 5.4vw, 1.85rem); line-height: 1.3; }
  body.lang-ta h2 { font-size: clamp(1.4rem, 5vw, 1.95rem); line-height: 1.3; }
  body.lang-ta .lede { font-size: 0.95rem; }
  body.lang-ta .eyebrow { font-size: 0.68rem; }
  body.lang-ta .hero__trust .stat strong { font-size: 0.98rem; }
  body.lang-ta .hero__trust .stat span { font-size: 0.68rem; }
  body.lang-ta h1, body.lang-ta h2, body.lang-ta h3, body.lang-ta h4,
  body.lang-ta p, body.lang-ta .lede, body.lang-ta .eyebrow,
  body.lang-ta .stat, body.lang-ta .btn, body.lang-ta .card__body,
  body.lang-ta li, body.lang-ta a, body.lang-ta span {
    overflow-wrap: anywhere; word-break: break-word;
  }
}

/* =========================================================
   Testimonials flip-book (StPageFlip)
   ========================================================= */
.testi-book { margin: 0 auto; }
.testi-book .tpage { background: var(--paper); overflow: hidden; }
.testi-book .tp {
  width: 100%; height: 100%; box-sizing: border-box; padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.testi-book .tpage--cover {
  background: radial-gradient(circle at 35% 25%, var(--brass-glow), var(--brass) 55%, var(--brass-deep));
  color: #2a1d06;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.4), inset 0 -10px 24px rgba(0,0,0,0.28);
}
.tpage--cover .brand__mark { width: 56px; height: 56px; font-size: 0.95rem; }
.tpage--cover h3 { font-family: var(--serif); font-size: 1.8rem; color: #2a1d06; margin-top: 14px; }
.tpage--cover p { color: #3a2a0a; font-size: 0.92rem; margin-top: 6px; }
.tp-rule { width: 62%; height: 2px; background: rgba(42,29,6,0.45); margin: 14px 0 12px; }
.tp-hint { margin-top: 20px; font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(42,29,6,0.7); }
.tpage--back .brand__mark { margin-top: 16px; }
.tp--index { justify-content: flex-start; padding-top: 30px; }
.tp--index h4 { font-family: var(--serif); align-self: flex-start; margin-bottom: 14px; font-size: 1.2rem; }
.ti-list { width: 100%; display: flex; flex-direction: column; gap: 11px; }
.ti-list li { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; cursor: pointer; border-bottom: 1px dashed var(--line); padding-bottom: 9px; transition: color 0.2s; }
.ti-list li:hover { color: var(--brass-deep); }
.ti-list .ti-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-list em { margin-left: auto; font-style: normal; color: var(--brass-deep); font-weight: 600; }
.ti-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 0.82rem; color: #fff;
  background: linear-gradient(140deg, var(--brass-light), var(--brass-deep));
}
.ti-av--lg {
  width: 66px; height: 66px; font-size: 1.6rem; margin-bottom: 12px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.25);
}
.tp--testi b { font-family: var(--serif); font-size: 1.3rem; }
.ti-role { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 14px; }
.ti-quote { font-style: italic; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.ti-stars { margin-top: 18px; letter-spacing: 3px; font-size: 1.25rem; }
.ti-av--lg { width: 78px; height: 78px; font-size: 1.9rem; }
.testi-book .tpage--cover h3 { font-size: 2.1rem; }

/* =========================================================
   Products page — show each product fully on a clean white tile
   ========================================================= */
.card.product .card__media { background: #fff; padding: 14px; }
.card.product .card__photo { object-fit: contain; }
.card.product .card__media.brass,
.card.product .card__media.alu { background: #fff; }

/* Products page */
.products-section { padding-top: calc(150px + 40px); }
.products-section .breadcrumb { display: inline-block; }
#catalogue { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* "Our Product Range" closing block, below the grid */
.products-outro { text-align: center; max-width: 760px; margin: 64px auto 0; padding-top: 44px; border-top: 1px solid var(--line); }
.products-outro h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.products-outro .lede { margin: 0 auto 24px; }
.products-outro .btn { white-space: normal; max-width: 100%; text-align: center; }
.ti-stars .on { color: var(--brass); }
.ti-stars .off { color: var(--silver-light); }
.testi-cue { margin-top: 26px; color: var(--ink-faint); font-size: 0.9rem; }

/* =========================================================
   Product image lightbox — full-screen view + click to zoom
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(10,7,3,0.94);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

/* Desktop: enlarged photo (left) + product details (right) */
.lightbox__inner {
  display: flex; width: 100%; max-width: 1040px; max-height: 86vh;
  background: var(--paper); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.lightbox__media {
  flex: 1 1 58%; min-width: 0; min-height: 0;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #f3ead7, #e7d8bd);
}
.lightbox__img {
  max-width: 100%; max-height: 86vh; object-fit: contain; display: block;
  cursor: zoom-in; transform: scale(1); transition: transform 0.3s ease;
}
.lightbox.zoomed .lightbox__img { transform: scale(2.3); cursor: zoom-out; }
.lightbox__icon { width: 42%; max-width: 220px; height: auto; color: var(--brass-deep); }

.lightbox__panel {
  flex: 1 1 42%; max-width: 380px; align-self: stretch; overflow-y: auto;
  padding: 44px 34px; display: flex; flex-direction: column; gap: 14px;
  justify-content: flex-start;
}
.lightbox__tag {
  align-self: flex-start; font-family: var(--sans); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass-deep); background: rgba(176,141,46,0.13);
  padding: 5px 12px; border-radius: 999px;
}
.lightbox__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.18; color: var(--patina); margin: 0; }
.lightbox__title .card__size { display: block; margin-top: 5px; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--ink-faint); }
.lightbox__desc { font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.lightbox__enquire {
  margin-top: auto; align-self: stretch; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brass); color: #fff; font-weight: 600; text-decoration: none;
  padding: 15px 26px; border-radius: 10px; transition: background 0.25s var(--ease);
}
.lightbox__enquire:hover { background: var(--brass-deep); color: #fff; }
.lightbox__enquire svg { width: 18px; height: 18px; flex: none; }

.lightbox__close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center; transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.28); }

/* Mobile: photo-only full-screen (detail panel is a desktop feature) */
@media (max-width: 768px) {
  .lightbox__inner { flex-direction: column; background: transparent; box-shadow: none; max-height: none; border-radius: 0; }
  .lightbox__media { background: transparent; overflow: visible; }
  .lightbox__img { max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
  .lightbox__panel { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox__img { transition: none; } }

/* =========================================================
   Header product search + recommendations
   ========================================================= */
.search-btn { background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink-soft); display: inline-flex; align-items: center; }
.search-btn:hover { color: var(--brass-deep); }
.search-btn svg { width: 22px; height: 22px; }
.searchbar { background: transparent; position: relative; z-index: 1; }
.searchbar .container { padding-top: 10px; padding-bottom: 12px; }
.search { position: relative; max-width: 620px; margin: 0 auto; }
.search__input {
  width: 100%; padding: 11px 18px; border: 1.5px solid rgba(131,92,18,0.4); border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink);
}
.search__input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,46,0.18); }
.search__results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.search__results:not(:empty) { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; }
.search__item, .search__empty { padding: 11px 16px; border-radius: 10px; }
.search__item { cursor: pointer; color: var(--ink); }
.search__item:hover { background: rgba(176,141,46,0.12); color: var(--brass-deep); }
.search__empty { color: var(--ink-faint); }
.card.product.is-found { animation: foundPulse 2.4s ease; }
@keyframes foundPulse {
  0% { box-shadow: 0 0 0 0 rgba(176,141,46,0); }
  20% { box-shadow: 0 0 0 6px rgba(176,141,46,0.38); }
  100% { box-shadow: 0 0 0 0 rgba(176,141,46,0); }
}
@media (prefers-reduced-motion: reduce) { .card.product.is-found { animation: none; outline: 3px solid var(--brass); outline-offset: 3px; } }
