/* ============================================
   Thonmai — Brand Stylesheet
   Palette drawn from logo & product label
   ============================================ */

:root {
  --brown-950: #2c1a0f;
  --brown-900: #3b2412;
  --brown-800: #4a2d16;
  --brown-700: #6b4a2f;
  --brown-500: #8b6f4e;
  --gold-600: #c9a366;
  --gold-500: #d4b896;
  --gold-300: #e8d9b8;
  --cream-100: #f4ede0;
  --cream-50: #faf6ee;
  --olive-700: #6f6d34;
  --olive-500: #8a8a4a;
  --white: #ffffff;
  --success: #4a7c3f;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, serif;
  --font-script: "Playfair Display", Georgia, serif;

  --max-width: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(44, 26, 15, 0.06);
  --shadow-md: 0 8px 28px rgba(44, 26, 15, 0.1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown-800);
  background: var(--cream-50);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 10px;
}

section { padding: 70px 0; }
@media (max-width: 700px) { section { padding: 46px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--brown-900); color: var(--cream-50); }
.btn-primary:hover { background: var(--brown-950); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: var(--brown-900); color: var(--brown-900); }
.btn-outline:hover { background: var(--brown-900); color: var(--cream-50); }

.btn-amazon { background: #ff9900; color: #111; }
.btn-flipkart { background: #2874f0; color: #fff; }
.btn-disabled { background: var(--gold-300); color: var(--brown-700); cursor: not-allowed; opacity: 0.85; }
.btn-disabled:hover { transform: none; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-500);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brown-900);
}
.brand img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--gold-600); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--brown-900);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gold-500);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
  padding: 64px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--brown-700); max-width: 46ch; }
.hero-art {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  text-align: center;
}
.hero-badges {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-700);
  background: var(--white);
  border: 1px solid var(--gold-500);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-100); }
.product-card .pc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--olive-700); background: var(--cream-100); padding: 4px 10px; border-radius: 999px;
  display: inline-block; width: fit-content;
}
.pc-tag.soon { color: var(--brown-700); background: var(--gold-300); }
.price { font-family: var(--font-display); font-size: 1.3rem; color: var(--brown-900); font-weight: 700; }

/* Dark band section */
.band-dark {
  background: var(--brown-900);
  color: var(--cream-50);
}
.band-dark h2, .band-dark h3 { color: var(--cream-50); }
.band-dark .eyebrow { color: var(--gold-500); }

/* Section divider text */
.divider-note {
  text-align: center;
  font-style: italic;
  color: var(--brown-500);
  border-top: 1px solid var(--gold-500);
  padding-top: 20px;
  margin-top: 10px;
}

/* ---------- Tables ---------- */
table.nutrition { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.nutrition th, table.nutrition td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gold-500);
}
table.nutrition thead th { background: var(--gold-500); color: var(--brown-900); }
table.nutrition tr.total td { background: var(--brown-900); color: var(--cream-50); font-weight: 700; }
table.nutrition td:last-child, table.nutrition th:last-child { text-align: right; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-950);
  color: var(--gold-300);
  padding: 54px 0 26px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--cream-50); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: var(--gold-300); opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(212,184,150,0.25);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gold-500);
}

/* ---------- Breadcrumb / page header ---------- */
.page-hero {
  background: var(--cream-100);
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid var(--gold-500);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.9rem; color: var(--brown-700); }
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  background: var(--cream-100); border: 1px solid var(--gold-500); border-radius: 999px;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--brown-700);
}
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  font-size: 1.6rem;
}

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }
.member-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr auto;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gold-500);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
@media (max-width: 560px) { .member-row { grid-template-columns: 1fr 1fr; } }
.member-row select, .member-row input {
  padding: 8px 10px; border: 1px solid var(--gold-500); border-radius: 8px;
  font-family: var(--font-body); background: var(--cream-50); color: var(--brown-800);
  font-size: 0.92rem; width: 100%;
}
.remove-member {
  background: none; border: none; color: var(--brown-500); cursor: pointer; font-size: 1.2rem;
}
.calc-result {
  background: var(--brown-900); color: var(--cream-50); border-radius: var(--radius);
  padding: 30px; position: sticky; top: 100px;
}
.calc-result .big-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-500); }
.calc-result .unit { font-size: 1rem; opacity: 0.85; }
.calc-note { font-size: 0.85rem; opacity: 0.8; margin-top: 14px; }
.field-label { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; display: block; }

/* Coming soon banner */
.coming-soon-banner {
  background: var(--gold-300); color: var(--brown-800); text-align: center;
  padding: 10px 16px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; margin-bottom: 16px;
}
