/* ============================================================
   A.N.C. Jewellers — Stylesheet
   ============================================================ */

:root {
  --maroon-dark: #4a0e18;
  --maroon: #6b1420;
  --maroon-light: #8a2233;
  --maroon-tint: #f6e9e9;
  --gold: #c9a24a;
  --gold-light: #e3c988;
  --gold-dark: #9c7a2e;
  --cream: #faf5ec;
  --cream-dark: #f1e6d3;
  --green-dark: #17261f;
  --green-light: #223a2e;
  --header-bg: #4a0e18;
  --header-bg-dark: #350a10;
  --ink: #2a2119;
  --ink-soft: #6d6055;
  --white: #ffffff;
  --line: #e4dccb;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(74, 14, 24, 0.1);
  --shadow-lg: 0 20px 50px rgba(74, 14, 24, 0.18);
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Shared layout wrappers — children act as direct children of <body> */
site-header, site-footer { display: contents; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* frozen top bar (ticker + nav) — sticky on desktop, fixed on mobile (see media query) */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--maroon-dark);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .01em;
}

p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.ic { width: 20px; height: 20px; }
.ic-lg { width: 44px; height: 44px; }

/* ---------- Layout helpers ---------- */
.section-title {
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  position: relative;
  padding-bottom: .5rem;
  overflow-wrap: break-word;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--gold);
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

.eyebrow {
  font-family: var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin: 0 0 .8em;
}
.eyebrow.center { text-align: center; }
.eyebrow-light { color: var(--gold-light); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto 2.4rem;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--maroon);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, gap .2s;
  white-space: nowrap;
}
.link-arrow:hover { border-color: var(--maroon); gap: .65rem; }

.link-underline {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--maroon);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 2.1rem;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-dark);
  box-shadow: 0 10px 24px rgba(201, 162, 74, .35);
}
.btn-gold:hover { box-shadow: 0 14px 30px rgba(201, 162, 74, .45); }
.btn-outline {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.08); }

section { position: relative; }

/* ---------- Ticker ---------- */
.ticker-bar {
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  color: #ffffff;
  font-size: .78rem;
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ticker-track {
  display: inline-flex;
  gap: 1.4rem;
  animation: ticker 28s linear infinite;
  padding-left: 100%;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-item strong { color: #ffffff; font-weight: 700; }
.ticker-dot { color: rgba(255,255,255,.55); }

.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  letter-spacing: .1em;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  display: inline-block;
}
.live-dot.on {
  background: #ffffff;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  50% { box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;        /* the .site-topbar wrapper handles the sticky freeze */
  z-index: 100;
  background: linear-gradient(120deg, var(--header-bg), var(--header-bg-dark));
  border-bottom: 1px solid rgba(230, 200, 150, .18);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(30, 5, 5, .35); }

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: .7rem clamp(1.2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.8rem);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
  flex: 0 0 auto;
}
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--ink);
  position: relative;
  padding: .3rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-dark);
  transition: width .2s;
}
.main-nav a:hover::after { width: 100%; }

@media (min-width: 901px) {
  .main-nav a { color: #f3e6db; }
  .main-nav a::after { background: var(--gold-light); }
  /* stretch the nav row + dropdown trigger to the full header height, closing the
     gap between the "Collections" link and the mega-menu panel below it (desktop
     hover only — in the mobile drawer this would force it full-width and break
     its centering, since the drawer is a column flex, not a row). */
  .main-nav { align-self: stretch; }
  .nav-item--dropdown { align-self: stretch; }
}

/* ---- Collections mega-menu ----
   Positioned relative to .site-header (not the trigger link) so a wide
   5-column menu centers on the page instead of overflowing past the
   viewport edge when the trigger sits left-of-center in the nav. */
.nav-item--dropdown { display: flex; align-items: center; }
.nav-item--dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  width: max-content;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 500;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-drop-col { min-width: 160px; }
.nav-dropdown .nav-drop-heading {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--maroon-dark);
  margin-bottom: .6rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.nav-drop-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.nav-dropdown .nav-drop-col a {
  font-size: .8rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-dropdown .nav-drop-col a:hover { color: var(--gold-dark); }
.nav-dropdown a::after { display: none; }

@media (max-width: 900px) {
  .nav-dropdown { display: none; }
  .nav-caret { display: none; }
}

.header-actions {
  display: flex;
  gap: .3rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--maroon-dark);
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
}
.icon-btn:hover { background: var(--cream-dark); }

.header-actions .icon-btn,
.nav-toggle {
  color: #f3e6db;
}
.header-actions .icon-btn:hover,
.nav-toggle:hover {
  background: rgba(255,255,255,.1);
}

.badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: .62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform .2s;
}
.badge.show { transform: scale(1); }

.nav-toggle { display: none; }

/* ---------- Global site search ---------- */
.site-search {
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(74, 14, 24, .12);
}
.site-search-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: .9rem clamp(1.2rem, 4vw, 3rem) 1rem;
}
.site-search-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .75rem;
  color: var(--ink-soft);
}
.site-search-box .ic { width: 18px; height: 18px; flex-shrink: 0; }
.site-search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
}
.site-search-box input:focus { outline: none; }
.site-search-x { flex-shrink: 0; padding: .2rem; color: var(--ink-soft); }
.site-search-results { margin-top: .5rem; max-height: min(60vh, 440px); overflow-y: auto; }
.ss-hint { margin: .4rem .2rem; font-size: .85rem; color: var(--ink-soft); }
.ss-didyoumean {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .55rem .7rem;
  margin: 0 0 .5rem;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.ss-didyoumean strong { color: var(--maroon); }
.ss-row {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .6rem .55rem;
  border-radius: 6px;
  border-bottom: 1px solid var(--line);
}
.ss-row:last-child { border-bottom: none; }
.ss-row:hover, .ss-row.is-active { background: var(--cream); }
.ss-type {
  flex-shrink: 0;
  width: 74px;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.ss-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ss-label { font-size: .92rem; color: var(--ink); }
.ss-sub { font-size: .74rem; color: var(--ink-soft); }
body.search-open { overflow: hidden; }
@media (max-width: 640px) {
  .site-search-inner { padding: .7rem 14px .8rem; }
  .ss-type { width: 58px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-color: var(--maroon-dark);
  color: var(--cream);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right 25%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(20, 4, 7, .92) 0%,
    rgba(20, 4, 7, .78) 28%,
    rgba(20, 4, 7, .38) 52%,
    rgba(20, 4, 7, .08) 72%,
    transparent 88%);
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1.4rem, 5vw, 5rem);
  max-width: 640px;
}
.hero-text .eyebrow { color: var(--gold-light); }
.hero-text h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 500;
  letter-spacing: .01em;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-copy {
  color: #eaddd2;
  max-width: 460px;
  font-size: 1.02rem;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--white); }

/* ---------- Signature Collections ---------- */
.collections {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.collection-grid {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  margin-top: 2.6rem;
}
.collection-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  width: 130px;
}
.collection-circle {
  width: 108px; height: 108px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: var(--cream-dark);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow);
}
.collection-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.collection-item:hover .collection-circle { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-lg); }
.collection-name {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .05em;
  color: var(--maroon-dark);
}

/* ---------- Products (shared) ---------- */
.trending, .new-arrivals {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 6vw, 6rem);
}
.trending .section-head, .new-arrivals .section-head { padding: 0; margin-bottom: 2.6rem; }

.product-grid, .arrivals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.product-card {
  display: block;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.product-card .product-name { transition: color .2s; }
.product-card:hover .product-name { color: var(--maroon); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, var(--cream-dark), #e5d3b3);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* auto-cycling photo stack for cards with more than one product image */
.product-media-carousel { position: relative; width: 100%; height: 100%; }
.pm-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.pm-slide.is-active { opacity: 1; }

.badge-tag {
  position: absolute;
  z-index: 2;
  top: 12px; left: 12px;
  background: var(--maroon-dark);
  color: var(--gold-light);
  font-size: .62rem;
  letter-spacing: .1em;
  padding: .35em .7em;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.badge-tag.new { background: var(--gold); color: var(--maroon-dark); }

.wish-toggle {
  position: absolute;
  z-index: 2;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.wish-toggle .ic { width: 16px; height: 16px; }
.wish-toggle:hover { transform: scale(1.08); }
.wish-toggle.active { background: var(--maroon); color: var(--gold-light); }
.wish-toggle.active .ic { fill: currentColor; }

.quick-view-btn {
  position: absolute;
  z-index: 2;
  left: 50%; bottom: 14px;
  transform: translate(-50%, 14px);
  opacity: 0;
  background: var(--white);
  color: var(--maroon-dark);
  border: none;
  padding: .55em 1.1em;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  cursor: pointer;
  transition: opacity .22s, transform .22s;
  white-space: nowrap;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translate(-50%, 0); }
.quick-view-btn .ic { width: 14px; height: 14px; }

.product-info { padding: 1.1rem 1.2rem 1.3rem; }
.product-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 .25em;
}
.product-weight { font-size: .78rem; color: var(--ink-soft); margin: 0; }

/* new arrivals variant - simpler card */
.arrival-card { text-align: left; }
.arrival-card .product-info { padding-top: .9rem; padding-bottom: 0; }

/* ---------- Heritage ---------- */
.heritage {
  background: var(--maroon-dark);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
}
.heritage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}
.heritage-media {
  position: relative;
}
.heritage-media::before,
.heritage-media::after {
  content: '';
  position: absolute;
  width: 56px; height: 56px;
  border: 2px solid var(--gold);
  z-index: 0;
  pointer-events: none;
}
.heritage-media::before {
  top: -18px; left: -18px;
  border-right: none;
  border-bottom: none;
}
.heritage-media::after {
  bottom: -18px; right: -18px;
  border-left: none;
  border-top: none;
}
.heritage-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/2;
  background: linear-gradient(160deg, #f0e2c4, #cfa15c 70%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.heritage-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heritage-text .eyebrow { color: var(--gold-light); }
.heritage-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold); }
.heritage-text p { color: #e3d3c9; }
.heritage-text .link-underline { color: var(--gold-light); border-color: var(--gold); }

/* ---------- Exclusive Selection ---------- */
.exclusive {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60vh;
  background-color: var(--maroon-dark);
  background-size: cover;
  background-position: center right 30%;
  background-repeat: no-repeat;
  color: var(--cream);
  overflow: hidden;
}
.exclusive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(20, 4, 7, .92) 0%,
    rgba(20, 4, 7, .78) 32%,
    rgba(20, 4, 7, .35) 58%,
    rgba(20, 4, 7, .05) 78%,
    transparent 92%);
}
.exclusive-text {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.2rem, 5vw, 5rem);
  max-width: 560px;
}
.exclusive-text h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.exclusive-text p { color: #e3d3c9; max-width: 420px; }

/* ---------- Testimonials ---------- */
.testimonials {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 6vw, 6rem) clamp(1.2rem, 4vw, 3rem) 0;
}

.testimonial-runner {
  overflow: hidden;
  padding: 2.8rem 0 clamp(4rem, 6vw, 6rem);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testimonial-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: testimonial-scroll 42s linear infinite;
}
.testimonial-runner:hover .testimonial-track { animation-play-state: paused; }
@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
  width: 340px;
  flex: 0 0 auto;
}
.testimonial-card .icon-quote { width: 30px; height: 30px; color: var(--gold-light); margin-bottom: .8rem; }
.testimonial-card .stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: .9rem; }
.testimonial-card .stars .ic { width: 14px; height: 14px; }
.testimonial-quote { font-style: italic; color: var(--ink); font-size: .95rem; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-light), var(--gold-dark));
  color: var(--maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .85rem;
}
.author-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.author-role { font-size: .76rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 6vw, 6rem);
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: .6rem;
  margin-top: 2.6rem;
}
.gallery-item {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery-item::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(74,14,24,0);
  transition: background .25s;
}
.gallery-item:hover::before { background: rgba(74,14,24,.45); }
.gallery-item .gallery-hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover .gallery-hover { opacity: 1; }

/* ---------- Mobile Experience ---------- */
.mobile-experience {
  display: flex;
  justify-content: center;
  background: var(--green-dark);
  color: var(--cream);
  text-align: center;
}
.mobile-text {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}
.mobile-text h2 { color: var(--white); font-size: clamp(2rem, 3.6vw, 2.8rem); }
.mobile-text p { color: #cfd8d1; max-width: 440px; }
.store-badges { display: flex; justify-content: center; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.store-badge {
  display: flex;
  align-items: center;
  gap: .7rem;
  border-radius: 6px;
  padding: .65rem 1.3rem;
  transition: transform .2s, box-shadow .2s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge .ic { width: 22px; height: 22px; }
.store-badge span { display: flex; flex-direction: column; align-items: flex-start; font-size: .95rem; font-weight: 600; font-family: var(--serif); }
.store-badge small { font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }

.store-badge--solid {
  background: var(--cream);
  color: var(--ink);
}
.store-badge--solid .ic { color: var(--ink); }
.store-badge--solid small { color: var(--ink-soft); }
.store-badge--solid:hover { box-shadow: 0 8px 20px rgba(0,0,0,.25); }

.store-badge--outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.store-badge--outline .ic { color: var(--gold-light); }
.store-badge--outline small { color: var(--gold); }
.store-badge--outline:hover { background: rgba(201,162,74,.1); }

/* ---------- Newsletter (nested in Mobile Experience) ---------- */
.mobile-newsletter {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.14);
  width: 100%;
  max-width: 460px;
}
.mobile-newsletter-label {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1.1rem;
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding: .4rem .1rem;
}
.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--cream);
  padding: .4rem 0;
}
.newsletter-form input::placeholder { color: rgba(250,245,236,.55); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s;
  flex-shrink: 0;
}
.newsletter-form button:hover { transform: translateX(3px); }
.newsletter-msg { margin-top: .9rem; font-size: .8rem; color: var(--gold-light); min-height: 1.2em; }

/* ---------- Contact ---------- */
.contact {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 4vw, 3rem) clamp(4.5rem, 7vw, 6.5rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: 2.6rem;
  align-items: stretch;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-address {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0 0 1.4rem;
  line-height: 1.5;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .95rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.contact-list .ic {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--maroon);
}
.contact-list strong { color: var(--ink); font-weight: 600; }

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 360px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: saturate(.9);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-dark);
  color: #d9c6bd;
}
.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.4rem;
}
.footer-brand p { color: #c9b3aa; font-size: .88rem; max-width: 320px; }
.brand--footer { align-items: flex-start; margin-bottom: 1rem; }
.brand-logo--footer { height: 66px; }
.social-row { display: flex; gap: .5rem; margin-top: .6rem; }
.social-row .icon-btn { color: var(--gold-light); border: 1px solid rgba(230,200,150,.3); }
.social-row .icon-btn:hover { background: rgba(230,200,150,.12); }

.footer-col h3 {
  color: var(--gold-light);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-family: var(--sans);
  font-weight: 600;
}
.footer-col a { display: block; font-size: .88rem; color: #d9c6bd; margin-bottom: .7rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.visit-line { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: #d9c6bd; margin-bottom: .8rem; }
.visit-line .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(230,200,150,.15);
  padding: 1.3rem clamp(1.2rem, 4vw, 3rem);
  text-align: center;
  font-size: .8rem;
  color: #b99b90;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(42, 20, 16, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  padding: 1.5rem;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white);
  max-width: 760px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-box--plans {
  display: block;
  max-width: 480px;
  border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.modal-plans-body h3 { margin: 0 0 .3rem; }
.modal-plans-body .plan-picker { margin-top: 1.2rem; max-height: 62vh; overflow-y: auto; }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,.8);
}
.modal-media {
  background: linear-gradient(150deg, var(--cream-dark), #e5d3b3);
  min-height: 280px;
  overflow: hidden;
}
.modal-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-info { padding: 2.2rem 2rem; }
.modal-info h3 { font-size: 1.5rem; margin-bottom: .2em; }
.modal-weight { font-size: .85rem; color: var(--ink-soft); margin: 0 0 .8em; }
.modal-desc { font-size: .86rem; margin-bottom: 1.2em; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  z-index: 350;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float .ic { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--maroon-dark);
  color: var(--gold-light);
  padding: .8rem 1.6rem;
  border-radius: 4px;
  font-size: .86rem;
  letter-spacing: .02em;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 400;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .product-grid, .arrivals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; order: 3; }
  .brand { order: 1; margin-right: auto; }
  .header-actions { order: 2; margin-left: 0; }
  .heritage-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 62vh; background-position: center right 15%; }
  .hero::before {
    background: linear-gradient(90deg,
      rgba(20, 4, 7, .95) 0%,
      rgba(20, 4, 7, .85) 45%,
      rgba(20, 4, 7, .55) 68%,
      rgba(20, 4, 7, .25) 100%);
  }
  .exclusive { min-height: 48vh; background-position: center right 15%; }
  .exclusive::before {
    background: linear-gradient(90deg,
      rgba(20, 4, 7, .96) 0%,
      rgba(20, 4, 7, .88) 45%,
      rgba(20, 4, 7, .55) 68%,
      rgba(20, 4, 7, .25) 100%);
  }
  .exclusive-text { max-width: 100%; }
  .hero-text { max-width: 100%; }
  .heritage-media { order: -1; }
  .heritage-tag { right: 14px; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-media { min-height: 200px; }
  .contact-map { min-height: 300px; }
  .contact-map iframe { min-height: 300px; }
}

@media (max-width: 640px) {
  .product-grid, .arrivals-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 90px; }
  .footer-grid { grid-template-columns: 1fr; }
  .testimonial-card { width: 260px; padding: 1.6rem 1.4rem; }

  /* ---- mobile: keep every section inside the frame ---- */
  html, body { max-width: 100%; overflow-x: hidden; }
  /* long words / prices / addresses wrap instead of widening the page */
  h1, h2, h3, p, li, dd, a, .plan-amt, .pdp-price-value, .pay-upi-id { overflow-wrap: break-word; }
  .plan-amt { white-space: normal; }
  /* one consistent side gutter for all top-level sections */
  .collections, .trending, .new-arrivals, .catalog-section, .about-story, .values,
  .cta-band, .scheme-how, .scheme-plans, .scheme-fineprint, .policy-hero, .policy-content,
  .policy-nav, .enquiry-wrap, .dash, .page-hero, .heritage-inner, .exclusive-inner,
  .hero-inner, .section-head, .catalog-section .section-head {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .header-inner { padding-left: 16px; padding-right: 16px; gap: 1rem; }
  .trending .section-head, .new-arrivals .section-head { padding-left: 0 !important; padding-right: 0 !important; }

  .collection-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: clamp(1.2rem, 4vw, 3rem);
    padding: .2rem clamp(1.2rem, 4vw, 3rem) 1rem;
    margin: 2.6rem -1.2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .collection-grid::-webkit-scrollbar { display: none; }
  .collection-item { width: 90px; flex: 0 0 auto; scroll-snap-align: start; }
  .collection-circle { width: 78px; height: 78px; }

  /* Smaller section titles on mobile so headings don't wrap 3+ lines */
  .hero-text h1 { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .heritage-text h2 { font-size: 1.6rem; }
  .exclusive-text h2 { font-size: 1.8rem; }
  .mobile-text h2 { font-size: 1.8rem; }
  .policy-hero h1 { font-size: 1.7rem; }
}

/* Mobile nav drawer */
@media (max-width: 900px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    padding: 6rem 2rem 2rem;
    gap: 1.6rem;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
}

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(42,20,16,.4);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   Policy / simple content pages
   ============================================================ */
.policy-hero {
  background: var(--maroon-dark);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem);
  text-align: center;
}
.policy-hero .eyebrow { color: var(--gold-light); }
.policy-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.policy-hero p { color: #e3d3c9; margin: .6rem 0 0; }

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 6vw, 6rem);
}
.policy-content .updated {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}
.policy-content h2 {
  font-size: 1.3rem;
  color: var(--maroon-dark);
  margin: 2.2rem 0 .8rem;
}
.policy-content h2:first-of-type { margin-top: 0; }
.policy-content p { margin-bottom: 1em; }
.policy-content ul, .policy-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--ink-soft);
}
.policy-content li { margin-bottom: .5em; line-height: 1.7; }
.policy-content a { color: var(--maroon); border-bottom: 1px solid var(--gold); }
.policy-content strong { color: var(--ink); }
.policy-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem) 0;
}
.policy-nav a {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.policy-nav .ic { width: 16px; height: 16px; transform: rotate(180deg); }

/* ============================================================
   Multi-page site — shared page furniture (Phase 1)
   ============================================================ */

/* ---------- Sub-page hero ---------- */
.page-hero {
  background: var(--maroon-dark);
  background-size: cover;
  background-position: center;
  color: var(--cream);
  text-align: center;
  padding: clamp(2.8rem, 6vw, 4.6rem) clamp(1.2rem, 4vw, 3rem);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 .5rem;
}
.page-hero p { color: #e9dcd2; margin: .4rem auto 0; max-width: 640px; }
.page-hero .eyebrow { color: var(--gold-light); }

/* ---------- Catalogue sections ---------- */
.catalog-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 7vw, 6rem);
}
.catalog-section .section-head { padding: 0; margin-bottom: 2.4rem; }

/* shop page: products grouped by Category (Rings, Necklace, etc.) */
.catalog-group { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.catalog-group:last-child { margin-bottom: 0; }
.catalog-group-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--maroon-dark);
  margin: 0 0 1.4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.filter-chip {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .62em 1.25em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-chip:hover { border-color: var(--maroon); color: var(--maroon); }
.filter-chip.is-active {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: var(--gold-light);
}

.product-name a { color: inherit; }
.product-name a:hover { color: var(--maroon); }
.empty-note {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}

/* ---------- Catalogue product cards — overlay design (collection page) ---------- */
.catalog-section .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: clamp(.9rem, 2vw, 1.5rem);
}
.pcard {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-dark);
  box-shadow: 0 2px 12px rgba(74, 14, 24, .07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(74, 14, 24, .2); }
.pcard-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.pcard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-noimg { position: absolute; inset: 0; background: linear-gradient(150deg, var(--cream-dark), #e5d3b3); }

.pcard-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, .93);
  color: var(--maroon-dark);
  font-size: .56rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .5em .85em;
  border-radius: 3px;
}
.pcard-badge.is-new { background: var(--gold); color: var(--maroon-dark); }

.pcard-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2rem 1.15rem 1.05rem;
  color: #fff;
  background: linear-gradient(to top, rgba(26, 7, 11, .92) 0%, rgba(26, 7, 11, .55) 42%, rgba(26, 7, 11, 0) 100%);
}
.pcard-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 .18rem;
}
.pcard-spec {
  font-size: .73rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .82);
  margin: 0;
}
.pcard-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-light);
  transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.pcard:hover .pcard-cta,
.pcard:focus-visible .pcard-cta { max-height: 2rem; opacity: 1; margin-top: .8rem; }
.pcard-cta .ic { width: 12px; height: 12px; }

@media (hover: none) {
  .pcard-cta { max-height: 2rem; opacity: 1; margin-top: .7rem; }
}

/* ---------- Product detail (PDP) ---------- */
.pdp {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}

/* Previously the info column was height-constrained to fit "one screen" on
   desktop, scrolling internally with its scrollbar hidden — as more spec rows
   (Size, Category) were added over time, content regularly overflowed that
   box with no visible hint that the action buttons were just a scroll away.
   Removed: the page now scrolls normally, and .pdp-gallery's existing
   position:sticky (below) keeps the image in view without hiding anything. */

/* ---- gallery ---- */
.pdp-gallery { display: flex; flex-direction: column; gap: .9rem; position: sticky; top: 96px; }
.pdp-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--cream-dark), #e7d6b7);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  outline: 1px solid rgba(201, 162, 74, .35);
  outline-offset: -8px;
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-flag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--maroon-dark);
  color: var(--gold-light);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 3px;
}
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: .55rem; }
.pdp-thumb {
  width: 66px; height: 66px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.pdp-thumb:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.pdp-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,74,.3); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- image zoom: click/tap opens a full-screen zoomable view ---- */
@media (hover: hover) and (pointer: fine) {
  .pdp-main { cursor: zoom-in; }
}

/* ---- hover magnifier lens (desktop only) ---- */
.pdp-lens {
  display: none;
  position: absolute;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 10px;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(16,10,6,.25);
  pointer-events: none;
  z-index: 3;
}

.pdp-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 8, .92);
  z-index: 3000;
  display: none;
  touch-action: none;
}
.pdp-zoom-modal.is-open { display: block; }
.pdp-zoom-modal-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-zoom-modal-img {
  max-width: 92vw;
  max-height: 92vh;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.pdp-zoom-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.pdp-zoom-modal-close:hover { background: rgba(255,255,255,.24); }
.pdp-zoom-modal-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.pdp-zoom-modal-nav:hover { background: rgba(255,255,255,.24); }
.pdp-zoom-modal-prev { left: 18px; }
.pdp-zoom-modal-next { right: 18px; }
.pdp-zoom-modal-count {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .pdp-zoom-modal-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .pdp-zoom-modal-prev { left: 8px; }
  .pdp-zoom-modal-next { right: 8px; }
}
.pdp-zoom-modal-hint {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .pdp-zoom-modal-hint { font-size: .7rem; padding: 0 12px; white-space: normal; text-align: center; }
}

/* ---- info column ---- */
.pdp-eyebrow {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0 0 .5rem;
}
.pdp-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--maroon-dark);
  margin: 0 0 .35rem;
}
.pdp-code {
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.pdp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
  margin-bottom: 1.4rem;
}
.pdp-trust span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .74rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: .34rem .72rem;
}
.pdp-trust .ic { width: 14px; height: 14px; color: var(--gold-dark); }

/* ---- price card ---- */
.pdp-price {
  position: relative;
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--cream), #fff 60%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pdp-price::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.pdp-price-head { display: flex; flex-direction: column; gap: .25rem; }
.pdp-price-label {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pdp-price-value {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  color: var(--maroon-dark);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .55rem;
}
.pdp-price-mrp {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
  text-decoration-thickness: 1px;
}
.pdp-price-off {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #2e7d4f;
}
.pdp-price-incl { font-size: .74rem; color: var(--ink-soft); }
.pdp-price-rows li s { color: var(--ink-soft); text-decoration-thickness: 1px; }
.pdp-price--request .pdp-price-label { color: var(--maroon); font-weight: 600; letter-spacing: .1em; }

.pdp-price-toggle {
  margin-top: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-dark);
}
.pdp-price-toggle .ic { width: 14px; height: 14px; transition: transform .2s; }
.pdp-price-toggle[aria-expanded="true"] .ic { transform: rotate(90deg); }

.pdp-price-body { margin-top: .8rem; padding-top: .85rem; border-top: 1px dashed var(--line); }
.pdp-price-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.pdp-price-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
.pdp-price-rows li:nth-last-child(2) {
  border-top: 1px solid var(--line);
  padding-top: .5rem;
  font-weight: 600;
  color: var(--ink);
}
.pdp-price-rows li strong { color: var(--ink); font-weight: 600; }
.pdp-price-rows li em { font-style: normal; opacity: .7; font-size: .78rem; }
.pdp-price-rows li.is-offer span,
.pdp-price-rows li.is-offer strong { color: #2e7d4f; }
.pdp-price-rows li.is-offer em { opacity: 1; font-weight: 600; }
.pdp-price-foot { margin: .9rem 0 0; font-size: .74rem; line-height: 1.6; color: var(--ink-soft); }

/* ---- specs ---- */
.pdp-specs {
  margin: 0 0 1.4rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1.4rem;
}
.pdp-specs div { display: flex; flex-direction: column; gap: .15rem; }
.pdp-specs dt {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pdp-specs dd { margin: 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.pdp-desc { margin: 0 0 1.5rem; line-height: 1.75; color: var(--ink-soft); }

/* ---- actions ---- */
.pdp-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.pdp-cta { flex: 1 1 200px; justify-content: center; }
.pdp-actions .btn-outline { color: var(--maroon); }
.pdp-actions .ic { margin-right: .5em; }
.pdp-assure {
  margin: .9rem 0 0;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---- promise strip ---- */
.pdp-promise {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdp-promise-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 1.8vw, 1.4rem);
}
.pdp-promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 1.5rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pdp-promise-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--gold-dark);
}
.pdp-promise-ico .ic { width: 20px; height: 20px; }
.pdp-promise-item h3 {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--maroon-dark);
  margin: .1rem 0 0;
  min-height: 2.5em;                 /* 1- and 2-line headings keep the same baseline */
  display: flex;
  align-items: center;
}
.pdp-promise-item p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 22ch;
}

@media (max-width: 780px) {
  .pdp-promise-in { grid-template-columns: 1fr 1fr; }
  .pdp-promise-item h3 { min-height: 0; }
}
@media (max-width: 440px) {
  .pdp-promise-in { grid-template-columns: 1fr; gap: .8rem; }
  .pdp-promise-item { padding: 1.15rem 1rem; }
  .pdp-promise-item p { max-width: none; }
}

/* ---------- About page ---------- */
.about-story {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
}
.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-story-media .heritage-frame { margin: 0; }
.about-story-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.values {
  background: var(--cream-dark);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
}
.values .eyebrow.center, .values .section-title.center { margin-bottom: .6rem; }
.values .section-title.center { margin-bottom: 2.8rem; }
.values-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.value-card h3 {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 .7rem;
}
.value-card p { margin: 0; font-size: .92rem; }
.value-card a { color: var(--maroon); border-bottom: 1px solid var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--maroon-dark);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #e9dcd2; max-width: 560px; margin: .6rem auto 1.4rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { color: var(--white); }

/* ---------- Enquiry form (contact) ---------- */
.enquiry-wrap {
  max-width: 820px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}
.enquiry-wrap > p { margin-bottom: 1.6rem; }
.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.enquiry-form .field { display: flex; flex-direction: column; gap: .4rem; }
.enquiry-form .field--full { grid-column: 1 / -1; }
.enquiry-form label {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font-family: var(--sans);
  font-size: .95rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,74,.18);
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form .newsletter-msg { color: var(--maroon); }

/* ---------- Savings scheme page ---------- */
.scheme-how {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.scheme-how .section-title.center { margin-bottom: 2.8rem; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--maroon-dark);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step-card p { margin: 0; font-size: .9rem; }

.scheme-plans {
  background: var(--cream-dark);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
  text-align: center;
}
.scheme-plans .section-title.center { margin-bottom: 2.8rem; }
.plans-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: stretch;
}
/* #schemePlans is a two-step chooser: first 3 Plan Category cards (Silver
   Scheme, Akshaya Bonus Scheme, Swarna Mangalam Gold Scheme), then selecting
   one swaps the grid for that category's amount tiers (₹500..₹25000/month). */
.scheme-tiers-head { grid-column: 1 / -1; text-align: center; margin-bottom: 1.8rem; position: relative; }
.scheme-back-link { position: absolute; left: 0; top: 4px; font-size: .85rem; font-weight: 600; color: var(--maroon); background: none; border: none; cursor: pointer; }
.scheme-back-link:hover { text-decoration: underline; }
.scheme-category-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .5rem; }
.scheme-category-desc { max-width: 640px; margin: 0 auto; color: var(--ink-soft); white-space: pre-line; }
.plans-grid--tiers { display: block; }
.plans-grid--tiers .plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); align-items: stretch; }
@media (max-width: 860px) { .plans-grid--tiers .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan-card-actions { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; }
.plan-card-actions .btn { text-align: center; }
.plan-breakdown { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; font-size: .92rem; }
.plan-breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.plan-breakdown .pb-total { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .7rem; font-size: 1.05rem; font-weight: 700; }
.plan-agree-row { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.plan-agree-row input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.plan-agree-row a { color: var(--maroon); font-weight: 600; }
.scheme-terms-page { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 2rem); }
.scheme-terms-list { list-style: decimal; padding-left: 1.3rem; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .8rem; }
.scheme-terms-list li { font-size: .9rem; line-height: 1.65; color: var(--ink); }
#categoryTermsContinueBtn:disabled { opacity: .45; cursor: default; }
@media (max-width: 600px) { .scheme-tiers-head[data-terms-gate] .scheme-back-link { position: static; display: block; margin-bottom: .6rem; } }

#planAgreeBuyBtn:disabled { opacity: .45; cursor: default; }
.plan-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: left;
}
/* "Plan Category" cards (Silver Scheme / Akshaya Bonus / Swarna Mangalam) —
   just the admin-uploaded "Card background image" (Admin > Schemes >
   category > Edit); no title text. The button sits below the image, not on
   top of it, as its own element in the .plan-category-wrap. The background +
   dark overlay are set as an inline background-image in categoryCard()
   (scheme.js); declared after the base .plan-card rule above so these
   overrides actually win (equal specificity, so source order decides). */
.plan-category-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.plan-category-card {
  width: 100%;
  border: none;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  box-shadow: var(--shadow-lg);
}
.plan-category-wrap .btn { width: auto; min-width: 160px; padding: .85rem 2.2rem; border-radius: 999px; text-align: center; }
.plan-card--featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.plan-flag {
  position: absolute;
  top: -12px; left: 1.8rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-dark);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .4em .9em;
  border-radius: 2px;
}
.plan-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.plan-amount {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--maroon-dark);
  margin: .2rem 0 1rem;
}
.plan-amount span {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.plan-points {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.plan-points li { padding-left: 1.3em; position: relative; }
.plan-points li::before {
  content: '';
  position: absolute;
  left: 0; top: .5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.plan-maturity {
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.plan-card .btn { margin-top: auto; }
.scheme-fineprint {
  max-width: 760px;
  margin: 2.4rem auto 0;
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; top: auto; }
  .pdp-specs { grid-template-columns: 1fr 1fr; }
  .about-story-inner { grid-template-columns: 1fr; }
  .about-story-media .heritage-frame { order: -1; }
  .steps-grid,
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; }
  .plan-card--featured { order: -1; }
}
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
  .enquiry-form { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* ============================================================
   Customer portal — auth + dashboard (Phase 2)
   ============================================================ */
.page-hero--slim { padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem); }

.muted { color: var(--ink-soft); }
.sm { font-size: .8rem; }
.btn-sm { padding: .6rem 1.3rem; font-size: .74rem; }
.inline-msg { font-size: .8rem; margin-left: .6rem; }
.inline-msg.is-ok { color: #2e7d32; }
.inline-msg.is-error { color: #b3453f; }

/* ---- shared vertical form ---- */
.stack-form { display: flex; flex-direction: column; gap: 1rem; }
.stack-form .field { display: flex; flex-direction: column; gap: .35rem; }
.stack-form label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.stack-form input,
.stack-form textarea,
.stack-form select {
  font-family: var(--sans);
  font-size: .95rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.stack-form input:focus,
.stack-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,74,.18);
}
.stack-form input:disabled { background: var(--cream-dark); color: var(--ink-soft); }
.stack-form textarea { resize: vertical; }

/* show/hide password toggle */
.pw-wrap { position: relative; width: 100%; }
.pw-wrap input { padding-right: 2.8rem; }
.pw-toggle {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  line-height: 0;
  padding: .35rem;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.pw-toggle:hover { color: var(--maroon); }

/* ---- auth card ---- */
.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 1.2rem clamp(4rem, 7vw, 6rem);
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.auth-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .8rem .4rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: -1px;
}
.auth-tab.is-active { color: var(--maroon); border-bottom-color: var(--gold); }
.auth-card .btn { margin-top: .4rem; }
.auth-msg { font-size: .84rem; margin: 1rem 0 0; min-height: 1.2em; }
.auth-msg--error { color: #b3453f; }
.auth-msg--ok { color: #2e7d32; }
.auth-foot { margin: 1.2rem 0 0; text-align: center; }
/* Digi Gold: milligrams shown next to grams, e.g. "0.018 g (18 mg)" */
.dg-mg { font-size: .6em; font-weight: 500; opacity: .75; white-space: nowrap; }
td .dg-mg { display: block; font-size: .8em; }   /* own line in the history table, so it stays narrow */
/* WhatsApp green, for "Get my login link on WhatsApp" (account recovery) */
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }
.auth-wa-cta { display: block; text-align: center; margin-top: .8rem; text-decoration: none; }
.auth-wa-cta[hidden] { display: none; }
.auth-foot a { color: var(--maroon); border-bottom: 1px solid var(--gold); }

/* ---- dashboard ---- */
.dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 7vw, 6rem);
}
.dash.is-loading { opacity: .6; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: start; }
.dash-narrow { max-width: 620px; margin: 0 auto; }
.dash-col { display: flex; flex-direction: column; gap: 1.2rem; }
.dash-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .9rem;
  margin-bottom: 1.2rem;
}
.dash-panel-head h2 {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0;
}
.dash-panel-tag { font-size: .74rem; color: var(--ink-soft); }
.dash-signout { align-self: flex-start; }

/* ---- dashboard redesign ---- */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.dash-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.dash-tile-val {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--maroon-dark);
  line-height: 1.15;
}
.dash-tile-val .muted { font-family: var(--sans); font-size: .9rem; }
.dash-tile-lbl {
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--maroon);
  cursor: pointer;
  border-bottom: 1px solid var(--gold);
}
.link-btn:hover { color: var(--maroon-dark); }
.link-btn--danger { color: #b3453f; border-bottom-color: #d99; }
.link-btn--danger:hover { color: #8a2f2b; }
.link-btn:disabled { opacity: .5; cursor: default; }

.plan-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}

.detail-list { margin: 0; display: flex; flex-direction: column; }
.detail-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: .8rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-list > div:last-child { border-bottom: none; }
.detail-list dt {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: .1rem;
}
.detail-list dd { margin: 0; font-size: .92rem; color: var(--ink); word-break: break-word; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.field-hint { font-size: .72rem; }

.dash-links {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: .5rem .4rem;
  display: flex;
  flex-direction: column;
}
.dash-links a {
  padding: .7rem .9rem;
  border-radius: 7px;
  font-size: .88rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.dash-links a:hover { background: var(--cream); color: var(--maroon); }
.dash-links a span { color: var(--maroon); font-weight: 600; }

/* ---- customer portal: profile hero + quick-access grid ---- */
.profile-hero-card { margin-bottom: 1.8rem; }
.profile-hero-top {
  display: flex; align-items: center; gap: 1.1rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.2rem;
}
.profile-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(156, 122, 46, .35);
}
.profile-hero-info { flex: 1; min-width: 0; }
.profile-hero-info h2 {
  font-family: var(--serif); font-size: 1.5rem; color: var(--maroon); margin: 0 0 .15rem;
}
.profile-hero-top .link-btn { flex: none; }

.qa-heading {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin: 0 0 .9rem;
}
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 1.8rem; }
.qa-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 1.1rem 1rem; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--maroon); }
.qa-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--cream);
  color: var(--gold-dark); display: flex; align-items: center; justify-content: center;
}
.qa-icon .ic { width: 20px; height: 20px; }
.qa-label { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.qa-badge {
  position: absolute; top: .8rem; right: .9rem; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--maroon); color: #fff; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qa-badge:empty { display: none; }

@media (max-width: 900px) {
  .dash-tiles { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .qa-grid { grid-template-columns: 1fr; }
}

/* ---- notifications ---- */
.header-actions .icon-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 15px; height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.notif-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; }
.notif-item {
  display: flex;
  gap: .8rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.is-unread { background: linear-gradient(90deg, rgba(201,162,74,.10), transparent 60%); }
.notif-ico {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
}
.notif-ico .ic { width: 15px; height: 15px; }
.notif-body { min-width: 0; }
.notif-title { margin: 0 0 .1rem; font-weight: 600; color: var(--ink); font-size: .9rem; }
.notif-text { margin: 0 0 .2rem; font-size: .85rem; color: var(--ink-soft); }
.notif-time { margin: 0; font-size: .7rem; color: var(--ink-soft); letter-spacing: .02em; }

.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.plan-head h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.plan-amt {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--maroon-dark);
  margin: 0;
  white-space: nowrap;
}
.plan-amt span { font-family: var(--sans); font-size: .72rem; color: var(--ink-soft); }

.progress {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 .5rem;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 999px;
  transition: width .4s ease;
}

/* ---- plan switcher / add-a-plan ---- */
.plan-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.2rem;
}
.plan-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.plan-tab:hover { border-color: var(--maroon); color: var(--maroon); }
.plan-tab.is-active {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: var(--gold-light);
}
.plan-tab--add { color: var(--gold-dark); border-style: dashed; }
.plan-tab--add:hover { color: var(--maroon); border-color: var(--gold-dark); }
.plan-tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); }
.plan-tab-dot--active { background: #2e7d32; }
.plan-tab-dot--completed { background: var(--gold-dark); }
.plan-tab-dot--cancelled { background: #b3453f; }

.plan-picker { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
.plan-pick {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .3rem 1rem;
}
.plan-pick h4 { margin: 0; font-size: 1rem; }
.plan-pick-amt {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--maroon-dark);
  margin: 0;
  grid-column: 1;
}
.plan-pick-amt span { font-family: var(--sans); font-size: .72rem; color: var(--ink-soft); }
.plan-pick .btn { grid-column: 2; grid-row: 1 / span 3; }
.plan-pick .muted.sm { grid-column: 1; }

/* payment-history toolbar (customer dashboard) */
.pay-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.pay-hist-head h4 { margin: 0; }
.pay-tools { display: flex; align-items: center; gap: .6rem; }
#payFilter {
  font-family: var(--sans);
  font-size: .8rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.pay-export { position: relative; }
.pay-export > summary { list-style: none; cursor: pointer; }
.pay-export > summary::-webkit-details-marker { display: none; }
.pay-export > summary::after { content: ' \25BE'; }
.pay-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 168px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 5px;
  display: flex;
  flex-direction: column;
}
.pay-export-menu button {
  text-align: left;
  background: none;
  border: none;
  padding: .55rem .7rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.pay-export-menu button:hover { background: var(--cream-dark); color: var(--ink); }

/* payment history never widens the page — it scrolls inside its own box */
/* history tables scroll sideways inside their card when the card is narrow,
   instead of spilling past its edge (scheme payments + Digi Gold purchases) */
#payHistBody, #dgHistBody { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Digi Gold history: 4 columns (rate sits under the amount) so it fits the card
   without a sideways scroll */
.pay-table.pay-table--dg { min-width: 0; }
.pay-table--dg td, .pay-table--dg th { white-space: nowrap; }
/* dashboard grid / flex children must be free to shrink below their content */
.dash-grid, .dash-col, .dash-panel, #planCard, #profileCard { min-width: 0; max-width: 100%; }

.pay-table { width: 100%; min-width: 480px; border-collapse: collapse; margin-top: .6rem; font-size: .85rem; }
.pay-table th {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .5rem .4rem;
  border-bottom: 1px solid var(--line);
}
.pay-table td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); }
.pay-status {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .2em .6em;
  border-radius: 999px;
}
.pay-status--paid { background: #e6f4ea; color: #2e7d32; }
.pay-status--pending { background: var(--cream-dark); color: var(--gold-dark); }
.pay-status--failed { background: #fdecea; color: #b3453f; }
.pay-status--redeemed { background: #eef0f7; color: #4a5578; }   /* Digi Gold taken at the showroom */

/* ---- direct UPI payment ---- */
.pay-pending {
  margin: 0;
  padding: .9rem 1.1rem;
  background: var(--cream-dark);
  border-radius: 6px;
  font-size: .88rem;
  color: var(--gold-dark);
}
.pay-form {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}
.pay-upi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  margin-bottom: .8rem;
}
.pay-upi-label { font-size: .85rem; color: var(--ink-soft); }
.pay-upi-id {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--maroon-dark);
  letter-spacing: .01em;
  word-break: break-all;
}
.pay-copy {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .35em .8em;
  border-radius: 999px;
  cursor: pointer;
}
.pay-copy:hover { background: var(--gold); color: var(--maroon-dark); }
.pay-qr {
  width: 180px; height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin: 0 0 .8rem;
}
.pay-form .stack-form { margin-top: .8rem; }

@media (max-width: 820px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ---- customer dashboard: fit any narrow screen (phones + small tablets) ---- */
@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .dash { padding: 1.6rem 16px 92px; }
  .dash-grid { grid-template-columns: 1fr; gap: 1rem; }
  .dash-col { gap: 1rem; }
  .dash-panel { padding: 1.15rem 1.05rem; }

  .plan-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .plan-head-right { align-items: flex-start; }

  .plan-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .plan-switch::-webkit-scrollbar { display: none; }
  .plan-tab { flex-shrink: 0; }

  .dash .pdp-actions { flex-direction: column; align-items: stretch; }
  .dash .pdp-actions .btn { width: 100%; }

  .pay-hist-head { flex-direction: column; align-items: stretch; gap: .55rem; }
  .pay-tools { width: 100%; flex-wrap: wrap; }
  #payFilter { flex: 1 1 auto; min-width: 0; }
  .pay-export { flex: 0 0 auto; }
}

/* ---- customer dashboard: tuned for phones ---- */
@media (max-width: 640px) {
  .page-hero--slim { padding: 1.5rem 18px 1.7rem; }
  .page-hero--slim h1 { font-size: 1.5rem; }
  .page-hero--slim p { font-size: .82rem; margin-top: .3rem; }

  .dash { padding: 1.2rem 14px 96px; }
  .dash-grid { gap: 1rem; }
  .dash-col { gap: 1rem; }
  .dash-panel { padding: 1.1rem 1rem; border-radius: 12px; }
  .dash-panel-head { padding-bottom: .7rem; margin-bottom: .9rem; }

  /* stat tiles: compact 2x2 */
  .dash-tiles { gap: .7rem; margin-bottom: 1.1rem; }
  .dash-tile { padding: .85rem .9rem; border-radius: 12px; }
  .dash-tile-val {
    font-size: 1.05rem;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .dash-tile-val .muted { font-size: .82rem; }
  .dash-tile-lbl { font-size: .56rem; letter-spacing: .08em; }

  /* your-details list: label stacked above value */
  .detail-list > div { grid-template-columns: 1fr; gap: .15rem; padding: .65rem 0; }
  .detail-list dt { padding-top: 0; }
  .detail-list dd { font-size: .95rem; }

  /* plan header stacks */
  .plan-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .plan-head-right { align-items: flex-start; }
  .plan-head h3 { font-size: 1.1rem; }
  .plan-amt { font-size: 1.15rem; }

  /* plan tabs: swipe row instead of wrap */
  .plan-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -14px 1.1rem;
    padding: 0 14px;
  }
  .plan-switch::-webkit-scrollbar { display: none; }
  .plan-tab { flex-shrink: 0; }

  /* payment history table scrolls sideways instead of squashing */
  .pay-hist-head { margin-top: 1.2rem; }
  .pay-table { min-width: 480px; font-size: .8rem; }

  /* bigger tap targets in the links list */
  .dash-links a { padding: .9rem 1rem; font-size: .92rem; }
  .dash-signout { width: 100%; }

  /* pay box + UPI block full width, comfy */
  .pay-form { padding: 1rem; }
  .pay-qr { width: 150px; height: 150px; }
  .pdp-actions .btn { flex: 1 1 100%; }
}

/* ============================================================
   Admin panel (Phase 3)
   ============================================================ */
.admin-body { background: var(--cream-dark); }
admin-shell { display: block; }

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--maroon-dark);
  color: var(--cream);
  padding: .7rem clamp(1rem, 3vw, 2rem);
}
.admin-brand { display: flex; align-items: center; gap: .6rem; }
.admin-brand img { height: 30px; width: auto; }
.admin-brand span {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600;
}
.admin-nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.admin-nav a {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: #e9dcd2; padding: .5em .8em; border-radius: 4px;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(201,162,74,.22); color: var(--gold-light); }
.admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.admin-link { font-size: .74rem; letter-spacing: .06em; color: var(--gold-light); }
.admin-topbar-right .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }

.admin-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 3vw, 2rem) 5rem;
}
.admin-main.is-loading { opacity: .55; }
.admin-main h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.admin-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1.6rem;
}
.admin-block h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.admin-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.admin-block-head h1, .admin-block-head h2 { margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.stat-val { font-family: var(--serif); font-size: 1.6rem; color: var(--maroon-dark); }
.stat-lbl { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.stat-sub { font-size: .68rem; color: var(--ink-soft); opacity: .8; }

.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th {
  text-align: left; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); padding: .6rem .5rem; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table .mono, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82em; }
.admin-actions { white-space: nowrap; display: flex; gap: .4rem; }
.pill {
  display: inline-block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--maroon-dark); padding: .15em .5em; border-radius: 3px; font-weight: 700;
}

.admin-notes { list-style: none; margin: 0; padding: 0; }
.admin-notes li {
  display: grid; gap: .15rem; padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.admin-notes li:last-child { border-bottom: none; }
.admin-notes li.is-unread { background: linear-gradient(90deg, rgba(201,162,74,.10), transparent 60%); }
.admin-notes strong { font-size: .9rem; }
.admin-notes span { font-size: .84rem; color: var(--ink-soft); }
.admin-notes time { font-size: .7rem; color: var(--ink-soft); }

.admin-dialog {
  border: none; border-radius: 12px; padding: 1.6rem;
  width: min(460px, 92vw); box-shadow: var(--shadow-lg); color: var(--ink);
}
.admin-dialog::backdrop { background: rgba(42,20,16,.5); }
.admin-dialog h3 { margin: 0 0 .4rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .4rem; }
.field-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.field-check input { width: auto; flex: none; margin-top: .2em; }
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.dg-metal-tabs { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.dg-metal-tab {
  padding: .5rem 1.4rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); font-weight: 600; cursor: pointer;
}
.dg-metal-tab.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.img-upload {
  display: inline-block; margin-top: .4rem; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dark); cursor: pointer;
}
.img-upload input { display: block; margin-top: .3rem; font-size: .8rem; }

.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.admin-login-wrap .auth-card { width: min(400px, 100%); text-align: center; }
.admin-login-logo { height: 46px; width: auto; margin: 0 auto .8rem; }
.admin-login-wrap h1 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.admin-login-wrap .stack-form { text-align: left; }

/* ============================================================
   MOBILE — app-like UI  (public site only; admin has its own CSS)
   ============================================================ */

/* --- bottom tab bar: hidden on desktop --- */
.tabbar { display: none; }

@media (max-width: 900px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  /* header stays pinned to the very top on scroll (JS pads the body to match) */
  .site-topbar { position: fixed; left: 0; right: 0; top: 0; }

  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 250;                 /* below modals (300) + nav drawer (400), above header */
    display: flex;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 24px rgba(74, 14, 24, .10);
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 7px 4px 6px;
    color: var(--ink-soft);
    font-size: .58rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--maroon); }
  .tabbar a[aria-current="page"] .ic { color: var(--gold-dark); }
  .tabbar a:active { background: var(--cream); }

  /* the tab bar's "Chat" tab replaces the floating WhatsApp button on mobile */
  .whatsapp-float { display: none; }

  /* --- compact app top bar --- */
  .ticker-bar { font-size: .68rem; padding: 5px 0; }
  .header-inner { padding: .5rem 14px; gap: .7rem; }
  .brand-logo { height: 46px; }
  .header-actions { gap: .1rem; }
  .header-actions .icon-btn { padding: .45rem; }
  /* profile lives in the bottom "Account" tab on mobile */
  .header-actions a[aria-label="My profile"] { display: none; }

  /* --- big tap targets --- */
  .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.4rem; }

  /* keep the slide-in nav drawer above the tab bar */
  .main-nav { z-index: 400; }
  .nav-scrim { z-index: 390; }
}

/* ============================================================
   Typography system — Cormorant Garamond (display) + Inter (UI)
   One pairing across the whole project: storefront, customer
   portal, admin panel and the printed receipt. Cormorant runs
   light and small, so display text is given real weight here.
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.section-title { font-weight: 700; }
/* text headings / names → Cormorant, with real weight */
.collection-name, .product-name, .pdp-title, .plan-name,
.plan-pick-name, .plan-title, .store-badge span,
.testimonial-card p, .auth-title {
  font-weight: 600;
}
.pdp-title { letter-spacing: .005em; }

/* Numbers, prices and stat figures always use Inter — Cormorant's
   old-style numerals read poorly as data. Never set the display
   serif on numeric values. */
.stat-val, .dash-tile-val, .plan-amount, .plan-amt strong, .plan-pick-amt strong,
.maturity-amount, .price, .price-now, .pdp-price-value, .pdp-price-mrp {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* product detail: sticky action bar above the tab bar. Uses the same 900px
   breakpoint as the tab bar itself (the 60px offset below assumes it's
   present) — the .pdp grid stays 2-column down to 720px otherwise, which
   left the info column too narrow for these buttons between 720–900px. */
@media (max-width: 900px) {
  .pdp { padding: 12px 0 0; grid-template-columns: 1fr; }
  .pdp-gallery, .pdp-info { padding-left: 16px; padding-right: 16px; }
  .pdp-info { padding-bottom: 88px; }
  .pdp .pdp-actions {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    z-index: 249;
    margin: 0;
    gap: 10px;
    padding: 10px 14px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(74, 14, 24, .10);
  }
  .pdp .pdp-actions .btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 .7rem;
    gap: .45rem;
    font-size: .72rem;
    letter-spacing: .04em;
    white-space: nowrap;
    border-radius: 6px;
  }
  .pdp .pdp-actions .btn:hover { transform: none; }
  .pdp .pdp-actions .ic { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
}

@media (max-width: 720px) {
  /* --- sections go edge-to-edge; only headings keep a gutter --- */
  .collections, .trending, .new-arrivals, .catalog-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .collections > .section-title,
  .catalog-section > .section-head,
  .trending > .section-head,
  .new-arrivals > .section-head,
  .gallery > .eyebrow,
  .gallery > .section-title {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* --- collection/category filter chips: one swipeable row, not a wrap --- */
  .catalog-section .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 16px 1.6rem !important;
  }
  .catalog-section .filter-bar::-webkit-scrollbar { display: none; }
  .catalog-section .filter-chip { flex-shrink: 0; }

  /* --- app-style section header: title left, chevron right, on one row --- */
  .section-head {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
  }
  .section-head .section-title { font-size: 1.15rem; padding-bottom: 0; margin: 0; }
  .section-head .section-title::after { display: none; }
  .link-arrow { flex-shrink: 0; font-size: .68rem; }

  /* --- home product rows become swipeable carousels --- */
  .trending .product-grid,
  .new-arrivals .arrivals-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 16px 10px;
    scroll-padding-left: 16px;
  }
  .trending .product-grid::-webkit-scrollbar,
  .new-arrivals .arrivals-grid::-webkit-scrollbar { display: none; }
  .trending .product-card,
  .new-arrivals .product-card {
    flex: 0 0 66%;
    max-width: 300px;
    scroll-snap-align: start;
    border-radius: 14px;
  }

  /* --- catalogue (shop / category): tight 2-up grid, full width --- */
  .catalog-section .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px;
  }
  .pcard { border-radius: 12px; }
  .pcard-info { padding: 1.5rem .8rem .8rem; }
  .pcard-name { font-size: .95rem; }

  /* --- hero: shorter, punchy --- */
  .hero { min-height: 64vh; }
  .hero-text { padding: 2rem 18px 2.4rem; }
  .hero-text h1 { font-size: 1.9rem; }
  .hero-actions { gap: .7rem; }
  .hero-actions .btn { flex: 1; }

  /* --- collections: bigger circles, snappier scroll --- */
  .collection-circle { width: 84px; height: 84px; }
  .collection-item { width: 96px; }

  .pdp-promise-in { grid-template-columns: 1fr 1fr; }

  /* --- gallery: 2-up on phones so images are large --- */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 46vw; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: auto; grid-row: auto; }

  /* --- scheme / about / contact: comfy single column --- */
  .steps-grid, .plans-grid, .values-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .contact-grid { gap: 1.4rem; }

  /* --- customer dashboard: room for the tab bar --- */
  .dash { padding-bottom: 90px; }
}

/* ---- My Scheme History (scheme-history.html): showroom scheme cards ---- */
.sh-note { margin: 1rem 0 0; text-align: center; }
.sh-results { max-width: 980px; margin: 0 auto; padding: 2.5rem 16px 4rem; }
.sh-results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.sh-results-head h2 { font-family: var(--serif); color: var(--maroon-dark); font-size: 1.8rem; margin: 0; }
.sh-results-head .btn-outline { color: var(--maroon); }
.sh-scheme { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 1.3rem; margin-bottom: 1.4rem; }
.sh-scheme-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sh-scheme-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--maroon-dark); margin: 0; }
.sh-scheme-sub { color: var(--ink-soft); font-size: .88rem; margin: .2rem 0 0; }
.sh-pay { white-space: nowrap; text-decoration: none; }
.sh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin: 1.1rem 0; }
.sh-stats div { background: var(--cream); border-radius: 6px; padding: .7rem .85rem; }
.sh-stats span { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.sh-stats b { display: block; font-size: 1.1rem; color: var(--maroon-dark); margin-top: .15rem; }
.sh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sh-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sh-table th { text-align: left; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sh-table td { padding: .6rem; border-bottom: 1px solid var(--cream-dark); white-space: nowrap; }
@media (max-width: 560px) {
  .sh-scheme { padding: 1rem; }
  .sh-pay { width: 100%; text-align: center; }
}