/* OSNIQ storefront and product page styles.
   Sections: tokens → base → buttons → navigation → hero → sections → product cards → reviews
   → panels and modals → footer → cart notice → product page → breakpoints (largest first). */

/* ---------- Fonts ---------- */

/* Self-hosted from Google Fonts (SIL Open Font License, see /fonts/OFL-*.txt). Only the weights the site uses,
   Latin only, plus a two-kilobyte Inter file holding just the rupee sign. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-rupee.woff2") format("woff2");
  unicode-range: U+20B9;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #0b0b0b;
  --bg-soft: #131313;
  --panel: rgba(18, 18, 18, 0.94);
  --text: #f5f1e8;
  --muted: #c6b98d;
  --gold: #d4af37;
  --gold-soft: #f5e6a8;
  --gold-line: rgba(212, 175, 55, 0.26);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  /* Text colours: gold reads well on black but not on cream, so light mode swaps in darker golds (WCAG AA 4.5:1). */
  --gold-text: var(--gold);
  --gold-soft-text: var(--gold-soft);
  --old-price: #9d8f68;
  --success: #9ed6a2;
  --error: #ffb0a0;
  /* Minimum touch target (Apple/Google guidance, WCAG 2.5.5). */
  --tap: 2.75rem;
  /* Compact header controls for mouse users; touch screens get the full --tap size (see pointer: coarse). */
  --control: 2.25rem;

  /* Fluid type scale (1rem = 16px): each step grows smoothly from its 360px size to its 1440px size.
     Body 15→16px, lead 17→18px, card titles 20→22px, section headings 30→36px, hero 48→76px. */
  --step--2: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.9167rem + 0.0926vw, 1rem);
  --step-1: clamp(1.0625rem, 1.0417rem + 0.0926vw, 1.125rem);
  --step-2: clamp(1.25rem, 1.2083rem + 0.185vw, 1.375rem);
  --step-3: clamp(1.5rem, 1.4167rem + 0.37vw, 1.75rem);
  --step-4: clamp(1.875rem, 1.75rem + 0.556vw, 2.25rem);
  --step-hero: clamp(3rem, 2.4167rem + 2.593vw, 4.75rem);
  --step-logo: clamp(1.375rem, 1.25rem + 0.556vw, 1.75rem);
}

body.light {
  --bg: #f8f5ee;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.97);
  --text: #171717;
  --muted: #5a4f34;
  --gold-line: rgba(122, 99, 34, 0.18);
  --gold-text: #6e5410;
  --gold-soft-text: #4a3a0b;
  --old-price: #6b5f3f;
  --success: #2f7a36;
  --error: #a33a22;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
  overflow-wrap: anywhere;
  font-family: "Inter", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 30%),
    linear-gradient(180deg, #090909 0%, var(--bg) 24%, var(--bg) 100%);
}

body.light {
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.18), transparent 30%),
    linear-gradient(180deg, #fff9ea 0%, var(--bg) 28%, var(--bg) 100%);
}

body.auth-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
}

p {
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--muted);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-soft-text);
  outline-offset: 3px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold-text);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.full-width {
  width: 100%;
}

/* ---------- Buttons ---------- */

.nav-action,
.cart-outline,
.primary-cta,
.secondary-cta,
.product-button,
.panel-close,
.link-button {
  min-height: var(--tap);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-action,
.cart-outline,
.secondary-cta,
.panel-close {
  background: transparent;
  color: var(--text);
}

.nav-action:hover,
.cart-outline:hover,
.secondary-cta:hover,
.panel-close:hover,
.link-button:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.12);
}

.nav-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-action.ghost {
  border-color: rgba(255, 255, 255, 0.12);
}

.primary-cta,
.product-button {
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #111;
  font-weight: 700;
}

.secondary-cta {
  border-color: var(--gold-line);
}

.primary-cta,
.secondary-cta,
.product-button {
  font-size: var(--step--1);
}

.link-button {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gold-soft-text);
}

/* ---------- Offer bar and navigation ---------- */

.offer {
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #111;
  text-align: center;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-premium {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.8vw, 1.5rem);
  min-height: 3.5rem;
  padding: 0.5rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

body.light .nav-premium {
  background: rgba(246, 236, 206, 0.92);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  color: var(--gold-text);
  font-family: "Playfair Display", serif;
  font-size: var(--step-logo);
  letter-spacing: 0.16em;
  text-decoration: none;
}

.nav-center {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.625rem);
}

.nav-center a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  color: var(--text);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-center a:hover {
  color: var(--gold-soft-text);
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  min-height: var(--control);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav-action,
.cart-outline {
  min-height: var(--control);
  padding: 0.4rem 0.95rem;
  font-size: var(--step--2);
  white-space: nowrap;
}

/* Light/dark switch: an icon button showing the mode it will switch to. */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: var(--control);
  height: var(--control);
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-soft-text);
  transform: rotate(-15deg);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-icon-moon,
body.light .theme-icon-sun {
  display: none;
}

body.light .theme-icon-moon {
  display: block;
}

/* Secondary pages (product page) use a plain <nav> instead of .nav-premium. */
body > nav:not(.nav-premium) {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.5rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(18px);
}

body > nav:not(.nav-premium) h1 {
  color: var(--gold-text);
  font: 700 var(--step-logo) "Playfair Display", serif;
  letter-spacing: 0.16em;
}

body > nav:not(.nav-premium) a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  margin-left: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--text);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  width: 100%;
  margin-inline: auto;
  padding: clamp(1.25rem, 2.6vw, 2.25rem) clamp(1.25rem, 5vw, 5rem);
}

.hero-shell {
  display: block;
  max-width: 76rem;
  margin: 0 auto;
}

.hero-copy,
.hero-card,
.card,
.ingredient-card,
.testimonial-card,
.cart,
.orders-panel,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(14rem, 22vw, 20rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: clamp(1.25rem, 3vw, 1.875rem);
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.24), transparent 68%);
}

.hero-brand {
  color: var(--gold-soft-text);
  font-family: "Playfair Display", serif;
  font-size: var(--step-hero);
  line-height: 0.95;
  letter-spacing: 0.12em;
}

.hero-tagline {
  max-width: 60ch;
  margin-top: 16px;
  font-size: var(--step-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* ---------- Page sections ---------- */

.brand-story,
.products,
.ingredients-premium,
.testimonials,
.combo-offer,
.footer {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 5rem);
}

.brand-story {
  text-align: center;
}

.brand-story h2,
.products h2,
.ingredients-premium h2,
.testimonials h2,
.combo-offer h2 {
  margin-bottom: clamp(0.75rem, 1.4vw, 1.125rem);
  color: var(--gold-text);
  font-size: var(--step-4);
  line-height: 1.1;
  text-align: center;
}

.brand-story p {
  max-width: 68ch;
  margin: 0 auto 14px;
}

.section-intro {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
}

.combo-wrapper {
  max-width: 620px;
  margin: 36px auto 0;
}

.ingredients-grid,
.testimonial-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.ingredients-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ingredient-card,
.testimonial-card {
  padding: clamp(1.15rem, 2vw, 1.75rem);
  border-radius: 24px;
}

.ingredient-card h3 {
  margin-bottom: 12px;
  color: var(--gold-soft-text);
  font-size: var(--step-2);
  line-height: 1.2;
}

/* ---------- Product cards ---------- */

/* The catalogue is intentionally a two-up ritual: shampoo + oil, then combo. */
.product-grid {
  --product-gap: clamp(0.75rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 60rem;
  margin: clamp(1.75rem, 3vw, 2.75rem) auto 0;
}

.card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.125rem);
  border-radius: clamp(1.25rem, 2.5vw, 1.625rem);
  text-align: center;
}

.product-grid .card {
  padding: clamp(1rem, 2.2vw, 1.75rem);
  cursor: pointer;
}

.product-grid .card:focus-within {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.product-grid .card.combo-card {
  grid-column: 1 / -1;
  width: calc((100% - var(--product-gap)) / 2);
  justify-self: center;
}

.card img {
  width: 100%;
  max-height: 380px;
  margin-bottom: 22px;
  border-radius: 20px;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 8px;
  font-size: var(--step-2);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-grid .card h3 {
  margin-bottom: 0.5rem;
}

.product-card-title {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.product-card-title:hover,
.product-card-title:focus-visible {
  color: var(--gold-soft-text);
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-soft-text);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.badge.big {
  margin-bottom: 16px;
}

.product-grid .badge {
  padding: clamp(0.4rem, 1.5vw, 0.625rem) clamp(0.5rem, 2vw, 1rem);
  letter-spacing: 0.1em;
}

.product-media {
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 22px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(212, 175, 55, 0.09), rgba(0, 0, 0, 0.12));
}

.product-media span {
  color: rgba(245, 230, 168, 0.48);
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0.18em;
}

.product-grid .card > .product-media {
  aspect-ratio: 3 / 4;
  max-height: 26rem;
  margin-bottom: clamp(0.85rem, 2vw, 1.4rem);
}

.product-grid .product-card-gallery {
  position: relative;
  width: 100%;
  margin: 0 0 clamp(0.85rem, 2vw, 1.4rem);
}

.product-grid .product-card-image-frame {
  position: relative;
  width: 100%;
  max-height: 26rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: clamp(0.8rem, 2vw, 1.25rem);
  background: radial-gradient(ellipse at 50% 42%, #24211a 0, #12110e 68%, #090909 100%);
  touch-action: pan-y;
}

.product-grid .product-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: inherit;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.product-grid .product-card-image.is-changing {
  opacity: 0.72;
  transform: scale(0.985);
}

.product-card-image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
}

.product-card-image-link img {
  pointer-events: none;
}

.product-card-image-link:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: -3px;
}

.product-grid .product-card-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-family: "Playfair Display", serif;
  letter-spacing: 0.18em;
  background: radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.16), transparent 42%), #111;
}

.product-grid .product-card-image-fallback[hidden] {
  display: none;
}

.product-grid .product-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(245, 230, 168, 0.72);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.76);
  color: var(--gold-soft);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.product-grid .product-gallery-arrow:hover,
.product-grid .product-gallery-arrow:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: #111;
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.product-grid .product-gallery-previous {
  left: clamp(0.4rem, 1vw, 0.75rem);
}

.product-grid .product-gallery-next {
  right: clamp(0.4rem, 1vw, 0.75rem);
}

.product-grid .product-gallery-arrow[hidden] {
  display: none;
}

.product-grid .product-gallery-count {
  display: block;
  min-height: 1.3em;
  margin-top: 0.35rem;
  color: var(--gold-soft-text);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
}

.product-grid .product-description-wrap {
  min-height: 7.2em;
}

.product-grid .product-description {
  max-height: 5.1em;
  margin: 0.5rem 0 0.15rem;
  overflow: hidden;
  line-height: 1.7;
  transition: max-height 0.28s ease;
}

.product-grid .product-description.is-expanded {
  max-height: 60em;
}

.product-grid .description-toggle {
  display: inline-block;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: var(--gold-soft-text);
  font: inherit;
  font-size: var(--step--1);
  text-decoration: underline;
  text-decoration-color: rgba(245, 230, 168, 0.45);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.product-grid .description-toggle:hover,
.product-grid .description-toggle:focus-visible {
  color: var(--gold-text);
  outline-color: var(--gold-soft-text);
}

.price {
  margin: 0.85rem 0;
  color: var(--gold-text);
  font-size: var(--step-2);
  font-weight: 700;
}

.old {
  margin-left: 10px;
  color: var(--old-price);
  font-size: 0.85em;
  text-decoration: line-through;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 20px;
  padding: 0 0.25rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
}

.qty button {
  min-width: var(--tap);
  min-height: var(--tap);
  border: none;
  background: transparent;
  color: var(--text);
  font-size: var(--step-1);
  cursor: pointer;
}

.product-grid .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-grid .product-button,
.product-grid .secondary-cta,
.product-grid .link-button {
  width: 100%;
  margin-top: 0.5rem;
  padding: clamp(0.55rem, 1.8vw, 0.75rem) clamp(0.4rem, 1vw, 1rem);
  font-size: var(--step--1);
}

/* ---------- Reviews and support guides ---------- */

.review-badge {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-text);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.testimonial-card strong {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-soft-text);
}

.testimonial-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--step--1);
}

.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
}

.review-compose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 980px;
  margin: 42px auto 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background: rgba(212, 175, 55, 0.05);
}

.review-compose h3 {
  margin-bottom: 10px;
  color: var(--gold-soft-text);
  font-size: var(--step-3);
  line-height: 1.15;
}

.review-jump {
  margin-top: 20px;
}

.review-form {
  display: grid;
  gap: 14px;
}

.review-form label,
.review-form fieldset {
  display: grid;
  gap: 7px;
  color: var(--gold-soft-text);
  font-size: var(--step--1);
  font-weight: 600;
}

.review-form fieldset {
  border: 0;
  padding: 0;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.review-form textarea {
  min-height: 120px;
  resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus,
.rating-input input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-input label {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.rating-input input {
  width: auto;
  accent-color: var(--gold);
}

.review-status {
  min-height: 24px;
  color: var(--gold-soft-text);
  font-size: var(--step--1);
}

.review-status.is-success {
  color: var(--success);
}

.review-status.is-error {
  color: var(--error);
}

.support-guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 16px;
  padding: 24px 8% 72px;
}

.support-guides article {
  padding: 22px;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.04);
  scroll-margin-top: 115px;
}

.support-guides h2 {
  margin-bottom: 8px;
  color: var(--gold-soft-text);
  font-size: var(--step-3);
  line-height: 1.15;
}

.support-guides a {
  color: var(--gold-soft-text);
  text-underline-offset: 0.18em;
}

/* ---------- Cart and orders panels ---------- */

.cart,
.orders-panel {
  position: fixed;
  top: 0;
  right: min(-25rem, -100%);
  z-index: 60;
  width: min(25rem, 100vw);
  height: 100vh;
  padding: clamp(1rem, 5vw, 1.75rem);
  backdrop-filter: blur(16px);
  transition: right 0.28s ease;
}

.cart.open,
.orders-panel.open {
  right: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.panel-body {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.cart-line,
.order-card {
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.05);
}

.cart-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.cart-line-right {
  margin-left: auto;
  text-align: right;
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.order-card-top span {
  color: var(--gold-soft-text);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Login modal ---------- */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 4vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.auth-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal.closing {
  opacity: 0;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - 1.5rem);
  padding: clamp(1.25rem, 5vw, 2.375rem);
  overflow-y: auto;
  border-radius: 30px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-modal.open .auth-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--gold-soft-text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.auth-close:hover {
  color: var(--gold-text);
  transform: rotate(90deg);
}

.auth-copy {
  margin: 14px 0 24px;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.auth-benefits div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.07);
}

.auth-benefits strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.google-login-slot {
  display: flex;
  justify-content: center;
}

.guest-continue,
.email-continue,
.email-submit {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.guest-continue {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #111;
  text-align: left;
}

.guest-continue span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
}

.email-continue {
  margin-top: 12px;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}

.email-auth-panel {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
}

.email-auth-panel input {
  width: 100%;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.auth-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-panel-head h3 {
  color: var(--gold-soft-text);
  font-size: var(--step-2);
  line-height: 1.2;
}

.auth-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-text);
  cursor: pointer;
  font: inherit;
}

.email-submit {
  margin-top: 12px;
  border: 0;
  background: var(--gold);
  color: #111;
}

.email-auth-switch {
  margin-top: 14px;
  font-size: var(--step--1);
  text-align: center;
}

.auth-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--gold-soft-text);
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  background: #050505;
}

body.light .footer {
  background: #f1dfaf;
}

.footer h3,
.footer h4 {
  margin-bottom: 14px;
  color: var(--gold-text);
}

.footer h3 {
  font-size: var(--step-2);
  line-height: 1.2;
}

.footer h4 {
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.light .footer h3,
body.light .footer h4 {
  color: #2c2412;
}

.footer p {
  margin-bottom: 8px;
}

.footer a,
.footer-link {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--step-0);
  line-height: 1.65;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.footer a:hover,
.footer-link:hover,
.footer a:focus-visible,
.footer-link:focus-visible {
  color: var(--gold-soft-text);
  text-decoration: underline;
  outline: none;
}

/* ---------- "Added to cart" notice ---------- */

.cart-added-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(440px, calc(100vw - 32px));
  padding: 16px 44px 16px 16px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 18px;
  background: linear-gradient(135deg, #090909, #1a160a);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.52);
  color: #f6f1e3;
  animation: cartNoticeIn 0.32s ease-out both;
}

.cart-added-notice img {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 12px;
  object-fit: contain;
  background: radial-gradient(ellipse at center, #222, #101010);
}

.cart-added-copy {
  min-width: 0;
}

.cart-added-copy strong,
.cart-added-copy span {
  display: block;
}

.cart-added-copy strong {
  color: #f5e6a8;
  font: 600 15px Inter, Arial, sans-serif;
}

.cart-added-copy span {
  margin: 5px 0 12px;
  overflow: hidden;
  color: #d5c995;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-added-copy button {
  min-height: var(--tap);
  padding: 8px 11px;
  border-radius: 999px;
  font: 600 12px Inter, Arial, sans-serif;
  cursor: pointer;
}

.cart-added-continue {
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: transparent;
  color: #f5e6a8;
}

.cart-added-view {
  margin-left: 8px;
  border: 1px solid #d4af37;
  background: #d4af37;
  color: #151106;
}

.cart-added-close {
  position: absolute;
  top: 8px;
  right: 11px;
  border: 0;
  background: transparent;
  color: #f5e6a8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@keyframes cartNoticeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Product page ---------- */

.product-page {
  width: min(100% - 2rem, 70rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.product-page > h2 {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 3rem);
}

.product-gallery {
  min-width: 0;
}

.zoom-container {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 50% 42%, #222 0, #111 64%, #090909 100%);
}

.product-detail-image {
  display: block;
  width: 100%;
  max-height: min(70vh, 42rem);
  aspect-ratio: 4 / 5;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  object-fit: contain;
  object-position: center;
}

.gallery-stage {
  touch-action: pan-y;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border: 1px solid rgba(245, 230, 168, 0.6);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.78);
  color: var(--gold-soft);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--gold);
  color: #111;
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.gallery-arrow:disabled {
  display: none;
}

.gallery-previous {
  left: 0.75rem;
}

.gallery-next {
  right: 0.75rem;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.15rem 0;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.2rem 0.1rem 0.45rem;
  overflow-x: auto;
}

.gallery-thumbnail {
  flex: 0 0 4.5rem;
  padding: 0.15rem;
  border: 1px solid var(--gold-line);
  border-radius: 0.65rem;
  background: #111;
  cursor: pointer;
}

.gallery-thumbnail.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.gallery-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.4rem;
  object-fit: contain;
  background: #151515;
}

.gallery-indicator {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.product-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.product-page > h2,
.product-copy h2 {
  font-size: var(--step-4);
  line-height: 1.1;
}

.product-copy h2 {
  color: var(--gold-soft-text);
}

.product-copy h3 {
  color: var(--gold-text);
  font-family: "Inter", sans-serif;
  font-size: var(--step-3);
  font-weight: 600;
}

.product-meta {
  color: var(--gold-text);
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-benefits,
.product-ingredients {
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold);
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(212, 175, 55, 0.05);
}

.product-benefits strong,
.product-ingredients strong {
  color: var(--gold-soft-text);
}

.product-detail-qty {
  justify-self: start;
  margin: 0.15rem 0 0.25rem;
}

.product-detail-qty output {
  min-width: 1.5em;
  color: var(--text);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-actions button {
  flex: 1 1 10rem;
}

#suggested {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.product-suggestion-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border-radius: 1rem;
  object-fit: contain;
  object-position: center;
  background: radial-gradient(ellipse at center, #222, #0d0d0d 72%);
}

.product-page #suggested .card {
  cursor: pointer;
}

.product-page #suggested .product-suggestion-image {
  display: block;
}

.product-page #suggested .card button {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.5rem;
}

.product-page #suggested .product-card-title {
  color: var(--gold-soft-text);
}

.product-page #suggested .product-card-title:hover,
.product-page #suggested .product-card-title:focus-visible {
  color: var(--gold-text);
}

/* ---------- Order tracking page ---------- */

.track-page {
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.track-page > h2 {
  color: var(--gold-text);
  font-size: var(--step-4);
  line-height: 1.1;
}

.track-intro {
  max-width: 60ch;
  margin-top: 0.75rem;
}

.track-form {
  display: grid;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-soft-text);
  font-size: var(--step--1);
  font-weight: 600;
}

.track-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.track-form input {
  flex: 1 1 14rem;
  min-height: var(--tap);
  padding: 0.75rem 1rem;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.track-form button {
  flex: 0 0 auto;
  padding-inline: 1.75rem;
}

.track-status {
  min-height: 1.65em;
  margin-top: 1rem;
  color: var(--gold-soft-text);
}

.track-result {
  margin-top: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.track-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem 1.5rem;
}

.track-details dt {
  color: var(--muted);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-details dd {
  margin-top: 0.2rem;
  color: var(--text);
  font-weight: 600;
}

.track-result h3 {
  margin: 1.75rem 0 0.75rem;
  color: var(--gold-soft-text);
  font-size: var(--step-2);
}

.track-timeline {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.track-timeline li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted);
}

.track-timeline li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--gold-line);
  border-radius: 50%;
}

.track-timeline li.is-done {
  color: var(--text);
}

.track-timeline li.is-done::before {
  border-color: var(--gold);
  background: var(--gold);
}

.track-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

/* ---------- Light mode form fields ---------- */

body.light .review-form input,
body.light .review-form select,
body.light .review-form textarea,
body.light .email-auth-panel input,
body.light .track-form input {
  border-color: rgba(122, 99, 34, 0.35);
  background: #fff;
}

/* ---------- Breakpoints ---------- */

@media (pointer: coarse) {
  :root {
    --control: var(--tap);
  }
}

@media (min-width: 1500px) {
  .nav-premium {
    padding-inline: max(4rem, calc((100vw - 84rem) / 2));
  }
}

@media (max-width: 900px) {
  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-center {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 20px;
    border-bottom: 1px solid var(--gold-line);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
  }

  .nav-center.open {
    display: flex;
  }

  .nav-center a {
    padding-block: 0.75rem;
    font-size: var(--step--1);
  }

  .product-grid .card.combo-card {
    width: min(100%, 32rem);
  }

  .review-compose {
    max-width: 48rem;
  }
}

@media (max-width: 700px) {
  /* One row on phones: logo, mode switch, cart, menu. Orders and login move into the open menu. */
  .nav-premium {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .nav-left {
    margin-right: auto;
  }

  .nav-right {
    display: contents;
  }

  .theme-toggle {
    order: 1;
  }

  .cart-outline {
    order: 2;
  }

  .nav-menu-toggle {
    order: 3;
  }

  .nav-account {
    display: none;
    order: 4;
    flex: 1 1 8rem;
  }

  .nav-premium.menu-open .nav-account {
    display: block;
  }

  body > nav:not(.nav-premium) {
    padding-inline: 1rem;
  }

  body > nav:not(.nav-premium) a {
    margin-left: 0.7rem;
  }

  .hero,
  .brand-story,
  .products,
  .ingredients-premium,
  .testimonials,
  .combo-offer,
  .footer {
    padding-inline: clamp(1rem, 5vw, 1.5rem);
  }

  .product-page {
    padding-inline: 0;
  }

  .hero-copy {
    padding: clamp(1.5rem, 7vw, 2.25rem);
  }

  .hero-actions > * {
    flex: 1 1 11rem;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }

  .product-grid .card {
    padding: clamp(1rem, 4vw, 1.4rem);
  }

  .product-grid .card.combo-card {
    grid-column: auto;
    width: 100%;
  }

  .product-card-image-link {
    touch-action: manipulation;
  }

  .cart-line-right {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .cart-added-notice {
    align-items: flex-start;
  }

  .cart-added-copy span {
    white-space: normal;
  }

  .product-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-detail-image {
    aspect-ratio: 4 / 4.4;
  }

  .product-actions button {
    min-height: 2.75rem;
  }

  .product-page #suggested {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-page #suggested .card {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .cart-added-notice {
    right: 16px;
    bottom: 16px;
    padding: 14px 38px 14px 14px;
  }

  .cart-added-notice img {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .cart-added-copy button {
    padding: 7px 9px;
  }
}

@media (max-width: 390px) {
  .nav-premium {
    gap: 0.4rem;
  }

  .nav-menu-toggle,
  .cart-outline {
    padding-inline: 0.75rem;
  }

  .hero-actions > * {
    flex-basis: 100%;
  }

  .support-guides {
    padding-inline: 1rem;
  }
}

@media (max-width: 360px) {
  .badge {
    padding: 0.5rem 0.7rem;
    letter-spacing: 0.1em;
  }
}
