/* Shobha Chi Rasoi — real site visual system
   Cream/brown/saffron, photo-forward, Tailwind CDN utility classes + these
   custom vars/components. Matches the live production site's look. */

:root {
  --scr-cream: #F3E7D6;
  --scr-cream-deep: #EFDFC8;
  --scr-paper: #FFFFFF;
  --scr-brown: #5C3A22;
  --scr-brown-dark: #452A18;
  --scr-saffron: #D9861F;
  --scr-saffron-dark: #B56D14;
  --scr-ink: #2A2118;
  --scr-line: #E8D9BE;
  --scr-green: #2F7D4F;
  --ff-body: 'Mukta', system-ui, -apple-system, sans-serif;
  --ff-head: 'Poppins', 'Mukta', system-ui, sans-serif;

  --ff-body-en: 'Mukta', system-ui, sans-serif;
  --ff-head-en: 'Poppins', sans-serif;

  --ff-body-mr: 'Noto Sans Devanagari', 'Mukta', sans-serif;
  --ff-head-mr: 'Noto Sans Devanagari', 'Mukta', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--scr-cream);
  color: var(--scr-ink);
  -webkit-font-smoothing: antialiased;
}
html:lang(en) body {
    font-family: var(--ff-body-en);
}

html:lang(en) h1,
html:lang(en) h2,
html:lang(en) h3,
html:lang(en) h4,
html:lang(en) .brand-name {
    font-family: var(--ff-head-en);
}

html:lang(mr) body {
    font-family: var(--ff-body-mr);
}

html:lang(mr) h1,
html:lang(mr) h2,
html:lang(mr) h3,
html:lang(mr) h4,
html:lang(mr) .brand-name {
    font-family: var(--ff-head-mr);
}
h1, h2, h3, h4, .brand-name { font-family: var(--ff-head); }

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.btn { transition: background-color .15s, opacity .15s, transform .1s; }
.btn:active { transform: scale(0.98); }

/* photo placeholder — subtly striped, monospace label, swap for real photos */
.photo-placeholder {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #E9D9BE, #E9D9BE 10px, #F3E7D6 10px, #F3E7D6 20px);
  color: var(--scr-brown); text-align: center; padding: 12px;
}
.photo-placeholder span {
  font-family: 'Courier New', monospace; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.82); padding: 5px 9px; border-radius: 6px; line-height: 1.4;
}

.pill-badge {
  display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--scr-green);
  color: var(--scr-green); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700;
}

.stepper-box { width: 40px; height: 40px; text-align: center; border: 1.5px solid var(--scr-saffron); border-radius: 8px; font-weight: 700; font-size: 16px; }
.stepper-btn { width: 40px; height: 40px; border-radius: 8px; background: var(--scr-saffron); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.stepper-btn:hover { background: var(--scr-saffron-dark); }

.faq-item { border: 1px solid var(--scr-line); border-radius: 12px; background: var(--scr-paper); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s; color: var(--scr-saffron); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 16px 16px; color: #4b5563; font-size: 14.5px; line-height: 1.6; }

.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--scr-ink); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1.5px solid var(--scr-saffron); border-radius: 8px; padding: 11px 12px;
  font-size: 16px; background: #fff; min-height: 46px;
}
.form-field textarea { min-height: 90px; resize: vertical; }

.rating-stars { display: flex; gap: 6px; }
.rating-stars button { font-size: 30px; line-height: 1; color: #E8D9BE; width: 42px; height: 42px; }
.rating-stars button.on { color: var(--scr-saffron); }

.form-success { display: none; text-align: center; padding: 28px 12px; }
.form-success.show { display: block; }

.lang-toggle button { padding: 8px 12px; min-height: 38px; font-size: 12px; font-weight: 700; border-radius: 999px; }
.lang-toggle button.active { background: var(--scr-brown); color: #fff; }

.blog-card { background: var(--scr-paper); border: 1px solid var(--scr-line); border-radius: 14px; overflow: hidden; }

.sticky-cart {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(120%);
  bottom: 0; width: 100%; max-width: 640px; z-index: 50; background: var(--scr-brown-dark); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sticky-cart.show { transform: translateX(-50%) translateY(0); }

.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--scr-brown-dark); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

[data-i18n-mr] { display: none; }
html[lang="mr"] [data-i18n-en] { display: none; }
html[lang="mr"] [data-i18n-mr] { display: inline; }

/* Layout */
.scr-container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .scr-container { padding: 0 1.5rem; } }

/* Section helpers */
.scr-section { padding: 3rem 0; }
.scr-section-title { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; color: var(--scr-brown); }

/* Product grid */
.product-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* Section headings */
.section-head { text-align: center; margin-bottom: 2rem; }
.section-eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--scr-saffron); margin-bottom: 0.375rem;
}
.section-note { font-size: 0.9375rem; color: #6b7280; margin-top: 0.5rem; }

/* Form card + submit */
.form-card { background: #fff; border-radius: 1rem; border: 1px solid var(--scr-line); padding: 1.5rem; }
.form-submit {
  width: 100%; background: var(--scr-brown); color: #fff; border: none;
  border-radius: 0.5rem; padding: 0.875rem 1rem; font-size: 1rem; font-weight: 600;
  margin-top: 0.5rem; cursor: pointer;
}
.form-submit:hover { background: var(--scr-brown-dark); }

/* ── Cart lines (generated by cart.js — global so JS-injected HTML picks them up) ── */
.cart-line {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--scr-line);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-img {
  width: 52px; height: 52px;
  border-radius: 8px; object-fit: cover; display: block; flex-shrink: 0;
}
.cart-line-body { min-width: 0; }
.cart-line-name {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  font-weight: 700; color: var(--scr-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-line-unit { font-size: 0.6875rem; color: #9ca3af; margin-top: 1px; }
.mini-stepper { display: flex; align-items: center; gap: 3px; }
.mini-stepper .stepper-btn {
  width: 26px !important; height: 26px !important;
  border-radius: 6px !important;
  background: var(--scr-cream) !important;
  color: var(--scr-brown) !important;
  border: 1.5px solid var(--scr-line) !important;
  font-size: 0.9375rem !important; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.mini-stepper .stepper-btn:hover { background: var(--scr-saffron) !important; color: #fff !important; border-color: var(--scr-saffron) !important; }
.mini-stepper .stepper-box {
  width: 22px; text-align: center;
  font-size: clamp(0.8125rem, 2vw, 0.9375rem); font-weight: 700; color: var(--scr-ink);
}
.cart-line-price {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  font-weight: 700; color: var(--scr-ink);
  white-space: nowrap; text-align: right; min-width: 44px;
}
.cart-empty { text-align: center; padding: 2rem 0; color: #9ca3af; }
.cart-empty-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* Body scroll lock while cart drawer is open */
body.no-scroll { overflow: hidden; }

/* Shared form page layout (FeedbackForm, QueryForm, etc.) */
.form-narrow { max-width: 540px; margin: 0 auto; }
.field-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-page-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.form-back-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--scr-brown); text-decoration: none; }
.form-back-link:hover { text-decoration: underline; }
