/* ═══════════════════════════════════════════════════
   PAYODHARA — Shared design system
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

:root {
  --bg-cream:        #FAF6EE;
  --bg-paper:        #F4EBD9;
  --bg-paper-deep:   #EADBC0;
  --bg-deep:         #1F1A12;

  --primary:         #8B4513;
  --primary-dark:    #5C2E0E;
  --primary-soft:    #B5683B;

  --accent:          #C97B3F;
  --accent-soft:     #E8B98A;

  --green:           #3F5F3B;
  --green-soft:      #6E8A5C;
  --green-pale:      #DCE3CC;

  --gold:            #C9A961;
  --gold-deep:       #A88438;

  --ink:             #2E2419;
  --ink-soft:        #5C4F3F;
  --muted:           #897A66;

  --paper-line:      rgba(139, 69, 19, 0.12);

  --shadow-soft:  0 2px 8px rgba(46, 36, 25, 0.06), 0 8px 24px rgba(46, 36, 25, 0.04);
  --shadow-card:  0 4px 14px rgba(46, 36, 25, 0.08), 0 16px 40px rgba(46, 36, 25, 0.05);
  --shadow-deep:  0 12px 32px rgba(46, 36, 25, 0.18);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --container: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(139,69,19,0.03) 1px, transparent 1px),
    radial-gradient(rgba(139,69,19,0.02) 1px, transparent 1px);
  background-size: 22px 22px, 60px 60px;
  background-position: 0 0, 11px 11px;
  pointer-events: none; z-index: 1;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; }
.devanagari { font-family: 'Tiro Devanagari Hindi', serif; font-weight: 400; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ═══ PROMO BAR ═══════════════════════════════════ */
.promo-bar {
  background: var(--primary-dark); color: var(--bg-cream);
  padding: 12px 0; overflow: hidden;
  position: relative; z-index: 50;
}
.promo-track {
  display: flex; gap: 60px;
  animation: scroll-x 28s linear infinite;
  white-space: nowrap; width: max-content;
}
.promo-track span {
  font-size: 0.84rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.promo-track span::before { content: "✦"; color: var(--gold); font-size: 0.7rem; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══ HEADER ════════════════════════════════════ */
.site-header {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 12px 0; gap: 32px;
}
.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; left: 0; }

.logo {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; line-height: 1;
}
.logo .symbol {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 2rem; color: var(--primary);
  font-style: italic; display: block; margin-bottom: 2px;
}
.logo .wordmark {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 1.55rem; letter-spacing: 0.18em; color: var(--ink);
}
.logo .tagline {
  font-size: 0.62rem; letter-spacing: 0.32em;
  color: var(--muted); text-transform: uppercase; margin-top: 2px;
}

.header-icons {
  display: flex; gap: 18px; justify-content: flex-end; align-items: center;
}
.header-icons button, .header-icons a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft); position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
.header-icons button:hover, .header-icons a:hover {
  background: var(--bg-paper); color: var(--primary);
}
.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: white;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; background: none; border: none; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px 0; transition: 0.3s;
}

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-cream); flex-direction: column; gap: 0;
    padding: 16px 24px; border-bottom: 1px solid var(--paper-line);
    box-shadow: var(--shadow-soft);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--paper-line); }
  .nav a:last-child { border-bottom: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: inline-flex; flex-direction: column; }
}

/* ═══ BUTTONS ══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 32px; border-radius: 60px;
  font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.3s ease; cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); gap: 18px; }

.btn-outline {
  border: 1px solid var(--primary); color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: white; gap: 18px; }

.btn-gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 8px 22px rgba(201,169,97,0.3);
}
.btn-gold:hover { background: var(--bg-cream); transform: translateY(-2px); gap: 18px; }

.btn-block { display: flex; width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══ FORMS ════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-group label .required { color: var(--accent); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  background: white;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.08);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%238B4513' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 4px;
}
.form-help {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ═══ FLASH MESSAGES ═══════════════════════════ */
.flash {
  padding: 14px 20px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  border-left: 4px solid;
}
.flash-success { background: #e8f5e9; color: #2e6b30; border-color: #4caf50; }
.flash-error   { background: #fdecea; color: #b13228; border-color: #d33; }
.flash-info    { background: #e3f2fd; color: #1565c0; border-color: #1976d2; }
.flash-warning { background: #fff8e1; color: #8b6914; border-color: #f4b400; }

/* ═══ PAGE HEADER ══════════════════════════════ */
.page-head {
  text-align: center;
  padding: 60px 24px 50px;
  background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-cream) 100%);
  border-bottom: 1px solid var(--paper-line);
  position: relative;
  overflow: hidden;
}
.page-head::before, .page-head::after {
  content: ""; position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%; opacity: 0.15;
  pointer-events: none;
}
.page-head::before {
  top: -60px; left: -40px;
  background: radial-gradient(circle, var(--accent), transparent);
}
.page-head::after {
  bottom: -80px; right: -40px;
  background: radial-gradient(circle, var(--green), transparent);
}
.page-head .eyebrow {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 14px;
}
.page-head .eyebrow::before, .page-head .eyebrow::after {
  content: ""; width: 28px; height: 1px;
  background: var(--accent); display: inline-block;
}
.page-head h1 {
  font-weight: 400;
  color: var(--primary-dark);
  font-style: italic;
  margin-bottom: 12px;
}
.page-head h1 em { font-style: normal; color: var(--green); }
.page-head .desc {
  color: var(--muted); max-width: 600px;
  margin: 0 auto; font-size: 1.02rem;
}

/* ═══ BREADCRUMBS ══════════════════════════════ */
.breadcrumbs {
  padding: 16px 24px;
  font-size: 0.84rem;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--primary);
  transition: color 0.2s ease;
}
.breadcrumbs a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ═══ PRODUCT CARD ═════════════════════════════ */
.pcard {
  background: white;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.pcard:hover {
  border-color: var(--primary-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.pcard-image {
  position: relative;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-paper);
  margin-bottom: 14px;
  display: block;
}
.pcard-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.pcard:hover .pcard-image img { transform: scale(1.05); }
.pcard-image .ph-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-paper) 0%, var(--bg-paper-deep) 100%);
  color: var(--primary); font-size: 3rem;
  position: relative;
}
.pcard-image .ph-img::before {
  content: "🌾"; opacity: 0.4;
}
.pcard-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: white;
  font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px; border-radius: 30px;
  font-weight: 600; z-index: 2;
  box-shadow: 0 4px 10px rgba(63,95,59,0.25);
}
.pcard-discount {
  position: absolute; top: 12px; right: 12px;
  background: white; color: var(--accent);
  font-size: 0.68rem; font-weight: 700;
  padding: 5px 9px; border-radius: 30px;
  z-index: 2; box-shadow: var(--shadow-soft);
}
.pcard h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem; font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 6px; line-height: 1.25;
}
.pcard h3 a { color: inherit; }
.pcard h3 a:hover { color: var(--primary); }
.pcard .pcard-tag {
  font-size: 0.72rem;
  color: var(--green);
  background: var(--green-pale);
  padding: 2px 10px; border-radius: 30px;
  display: inline-block; font-weight: 500; margin-bottom: 10px;
}
.pcard .stars {
  display: flex; gap: 1px; margin-bottom: 8px; align-items: center;
}
.pcard .stars svg { width: 13px; height: 13px; color: var(--gold-deep); fill: currentColor; }
.pcard .stars span { font-size: 0.72rem; color: var(--muted); margin-left: 4px; }

.pcard select.variant-select {
  width: 100%; padding: 10px 36px 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--paper-line);
  background-color: var(--bg-cream); color: var(--ink);
  font-size: 0.85rem; margin-bottom: 10px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%238B4513' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.pcard .price {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.pcard .price .now {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.pcard .price .was {
  font-size: 0.85rem; color: var(--muted); text-decoration: line-through;
}
.pcard .price .pct {
  font-size: 0.78rem; color: var(--green); font-weight: 600;
}
.btn-add {
  width: 100%; padding: 13px;
  background: var(--primary); color: white;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s ease, transform 0.1s ease;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-add:hover { background: var(--primary-dark); }
.btn-add:active { transform: scale(0.98); }
.btn-add.added { background: var(--green); }
.btn-add.adding { background: var(--accent); }
.btn-add:disabled { background: #aaa; cursor: not-allowed; }

/* ═══ FOOTER ═══════════════════════════════════ */
.footer {
  background: var(--bg-deep); color: var(--bg-paper-deep);
  padding: 80px 24px 32px;
  position: relative; overflow: hidden;
  z-index: 2;
}
.footer::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(201,169,97,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 100% at 100% 100%, rgba(139,69,19,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 56px; position: relative;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px;} }

.footer .logo .symbol { color: var(--gold); }
.footer .logo .wordmark { color: var(--bg-cream); }
.footer .logo .tagline { color: var(--bg-paper-deep); opacity: 0.7; }
.footer-about p {
  margin-top: 16px;
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(244,235,217,0.7);
  max-width: 320px;
}
.footer h4 {
  font-family: 'Fraunces', serif;
  font-size: 0.92rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px; font-weight: 500;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  font-size: 0.88rem;
  color: rgba(244,235,217,0.78);
  transition: color 0.2s ease, padding-left 0.3s ease;
}
.footer ul a:hover { color: var(--gold); padding-left: 6px; }

.newsletter input {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(244,235,217,0.15);
  border-radius: var(--r-sm);
  color: var(--bg-cream);
  font-size: 0.9rem; margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.newsletter input:focus { border-color: var(--gold); background: rgba(255,255,255,0.1); }
.newsletter input::placeholder { color: rgba(244,235,217,0.5); }
.newsletter button {
  width: 100%; padding: 14px;
  background: var(--gold); color: var(--ink);
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: none; cursor: pointer; font-family: inherit;
  transition: background 0.2s ease;
}
.newsletter button:hover { background: var(--bg-cream); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(244,235,217,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-paper-deep);
  transition: all 0.3s ease;
}
.socials a:hover {
  background: var(--gold); color: var(--ink);
  transform: translateY(-2px); border-color: var(--gold);
}
.socials svg { width: 16px; height: 16px; }

.footer-bottom {
  max-width: var(--container);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244,235,217,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 0.78rem;
  color: rgba(244,235,217,0.5);
}
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--gold); }

/* ═══ TOAST ════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--green); color: white;
  padding: 14px 28px;
  border-radius: 60px;
  box-shadow: var(--shadow-deep);
  font-size: 0.9rem; font-weight: 500;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #c0392b; }

/* ═══ SCROLL TO TOP ════════════════════════════ */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  background: var(--primary); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-deep);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 30; border: none; cursor: pointer;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ═══ REVEAL ON SCROLL ═════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══ SECTIONS ═════════════════════════════════ */
.section { padding: 60px 0; position: relative; z-index: 2; }
.section-paper { background: var(--bg-paper); }

/* ═══ EMPTY STATES ═════════════════════════════ */
.empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.empty h3 {
  font-family: 'Fraunces', serif;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-style: italic;
}
.empty p { margin-bottom: 24px; }

/* ═══ LOGO IMAGES ═══════════════════════════════ */

/* Storefront header */
.site-header .logo {
    display: block;
    padding: 4px 0;
}
.site-header .logo img {
    max-height: 173px !important;
    width: auto !important;
    height: auto;
    display: block;
}

/* Storefront footer */
.footer .logo {
    display: block;
    margin-bottom: 18px;
}
.footer .logo img {
    max-width: 220px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto;
    display: block;
    background: rgba(250, 246, 238, 0.06);
    padding: 8px 12px;
    border-radius: 8px;
}

/* Customer login page */
.brand-bit img {
    max-width: 200px !important;
    max-height: 100px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
}



