/* =====================================================================
   चवसम्राट मसाला - main stylesheet (har page pe lagta hai)
   1. Tokens   2. Base   3. Helpers   4. Buttons & forms   5. Header
   6. Mobile menu   7. Footer   8. Product card & visuals   9. Shared UI
   Rang/font badalna ho to sirf section 1 (tokens) badlo.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --color-maroon: #5b0f12;
  --color-maroon-deep: #2c0a0a;
  --color-red: #d0141c;
  --color-red-dark: #a50e15;
  --color-gold: #f5b623;
  --color-gold-light: #ffd970;
  --color-gold-deep: #c4841a;
  --color-cream: #fbf4ea;
  --color-peach: #fdebd3;
  --color-paper: #fffdf9;
  --color-ink: #2a1510;
  --color-muted: #6e5a4e;
  --color-line: #eedfcc;
  --color-green: #1f6b3a;
  --color-green-soft: #e3f1e6;
  --color-warn-soft: #fdecea;
  --color-kraft: #d9bb8f;
  --color-kraft-dark: #b8935f;

  --spice-chilli: #c3161c;
  --spice-chilli-light: #e8432c;
  --spice-turmeric: #e9a514;
  --spice-turmeric-light: #f7cf45;
  --spice-garam: #6a3519;
  --spice-garam-light: #94532a;
  --spice-goda: #4b2614;
  --spice-goda-light: #7a4224;
  --spice-kitchen: #c9541c;
  --spice-kitchen-light: #ec8a37;
  --spice-whole: #7b5131;
  --spice-whole-light: #a8774b;
  --wood: #8a4f26;
  --wood-dark: #5e3216;

  --font-display: 'Baloo 2', 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-body: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem);
  --text-hero: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(48px, 7vw, 88px);
  --header-h: 76px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(60 20 10 / 0.05), 0 10px 28px -14px rgb(60 20 10 / 0.22);
  --shadow-cta: 0 8px 20px -8px rgb(208 20 28 / 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main {
  flex: 1;
}

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

p {
  margin: 0;
}

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

.icon {
  flex: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

body.no-scroll {
  overflow: hidden;
}

/* hidden attribute hamesha chhupaye (chahe class me display ho) */
[hidden] {
  display: none !important;
}

/* ---------- 3. Helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(820px + var(--gutter) * 2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: var(--text-sm);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-maroon);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.page {
  padding-block: clamp(28px, 5vw, 56px) var(--section-space);
}

.page-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-title {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.page-subtitle {
  margin-top: 4px;
  color: var(--color-muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-red-dark);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}

.card {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  box-shadow: var(--shadow-card);
}

.card__title {
  margin-bottom: 14px;
  font-size: var(--text-lg);
}

/* ---------- 4. Buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}

.btn span {
  padding-top: 0.12em; /* Devanagari matra */
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
}

.btn--primary {
  background: linear-gradient(180deg, #e11d25 0%, var(--color-red-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ea2a31 0%, #b5111a 100%);
}

.btn--light {
  background: var(--color-paper);
  color: var(--color-red-dark);
  box-shadow: inset 0 0 0 1.5px var(--color-line);
}

.btn--light:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1.5px var(--color-red);
}

.btn--dark {
  background: var(--color-maroon);
  color: #fff;
}

.btn--green {
  background: var(--color-green);
  color: #fff;
}

.btn--danger {
  background: var(--color-paper);
  color: var(--color-red-dark);
  box-shadow: inset 0 0 0 1.5px var(--color-red);
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn--square {
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  box-shadow: none;
}

.btn.is-added {
  background: var(--color-green);
}

.btn-arrow .icon {
  transition: transform 0.2s var(--ease-out);
}

.btn-arrow:hover .icon:last-child {
  transform: translateX(3px);
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink);
  transition: background-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--color-peach);
  color: var(--color-maroon);
}

.icon-btn--dark {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.icon-btn--dark:hover {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

.link {
  color: var(--color-red-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.field__label {
  font-weight: 600;
  font-size: var(--text-sm);
}

.input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 3px rgb(245 182 35 / 0.35);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-red);
}

.field__error {
  font-size: var(--text-xs);
  color: var(--color-red-dark);
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-maroon);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .span-2 {
  grid-column: span 2;
}

@media (max-width: 639px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: #fff;
}

.qty button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.qty button:hover:not(:disabled) {
  color: var(--color-red);
}

.qty input {
  width: 40px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* ---------- 5. Header ---------- */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px var(--gutter);
  background: #fff4cc;
  color: #6b4b00;
  font-size: var(--text-xs);
  text-align: center;
}

.topbar {
  background: var(--color-maroon);
  color: #fbe9d0;
  font-size: var(--text-xs);
  font-weight: 500;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.topbar__offers,
.topbar__area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .icon {
  color: var(--color-gold);
}

.topbar__extra::before {
  content: '|';
  margin-right: 8px;
  opacity: 0.5;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-paper);
  box-shadow: 0 1px 0 var(--color-line), 0 6px 18px -14px rgb(60 20 10 / 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  height: var(--header-h);
}

.header__logo img {
  width: auto;
  height: calc(var(--header-h) - 8px);
}

.header__nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
}

.header__link {
  position: relative;
  padding: 8px 0 6px;
  font-weight: 600;
  transition: color 0.2s;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.header__link:hover,
.header__link[aria-current='page'] {
  color: var(--color-red);
}

.header__link[aria-current='page']::after {
  transform: scaleX(1);
}

.search {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 16px 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.search:focus-within {
  box-shadow: inset 0 0 0 2px var(--color-gold);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: var(--text-sm);
}

.search__submit {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--color-red-dark);
}

.header__search {
  flex: 1;
  max-width: 340px;
  margin-left: auto;
}

.header__search-row {
  padding: 10px 0 14px;
  border-top: 1px solid var(--color-line);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__lang {
  margin-right: 6px;
}

.header__search-toggle,
.header__menu-toggle {
  display: none;
}

.badge-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--color-paper);
}

.badge-count--soft {
  background: var(--color-maroon);
}

.icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 2px var(--color-paper);
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-peach);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.lang-toggle button {
  min-width: 44px;
  min-height: 34px;
  padding: 2px 12px 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--color-muted);
}

.lang-toggle button[aria-pressed='true'] {
  background: var(--color-maroon);
  color: #fff;
}

.lang-toggle--dark {
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

.lang-toggle--dark button {
  color: rgb(255 255 255 / 0.75);
}

.lang-toggle--dark button[aria-pressed='true'] {
  background: var(--color-gold);
  color: var(--color-maroon-deep);
}

@media (max-width: 1199px) {
  .header__search {
    display: none;
  }
  .header__search-toggle {
    display: inline-grid;
  }
  .header__actions {
    margin-left: auto;
  }
}

@media (max-width: 1023px) {
  .header__nav,
  .header__desktop-only,
  .topbar__extra {
    display: none;
  }
  .header__menu-toggle {
    display: inline-grid;
  }
}

@media (max-width: 639px) {
  .topbar__inner {
    justify-content: center;
  }
  .topbar__area {
    display: none;
  }
}

@media (max-width: 399px) {
  .header__actions {
    gap: 0;
  }
  .header__actions .icon-btn {
    width: 40px;
  }
}

/* ---------- 6. Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.35s;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(30 8 6 / 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(86vw, 360px);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto;
  background: radial-gradient(circle at 100% 0%, rgb(245 182 35 / 0.18), transparent 50%), var(--color-maroon-deep);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: none;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__main a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-menu__main a[aria-current='page'] {
  color: var(--color-gold);
}

.mobile-menu__extra {
  margin-top: 18px;
}

.mobile-menu__extra a,
.mobile-menu__extra button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.82);
  text-align: left;
}

.mobile-menu__extra .icon {
  color: var(--color-gold);
}

.mobile-menu__social {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.mobile-menu__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
}

/* ---------- 7. Footer ---------- */
.footer {
  position: relative;
  margin-top: 56px;
  padding: 24px 0 calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: radial-gradient(circle at 12% 0%, rgb(245 182 35 / 0.08), transparent 40%), var(--color-maroon-deep);
  color: rgb(255 244 228 / 0.82);
}

.footer__wave {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: 48px;
  fill: var(--color-maroon-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 240px;
  font-size: var(--text-sm);
}

.footer__brand img {
  width: 150px;
  height: auto;
}

.footer__heading {
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: var(--color-gold);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--text-sm);
}

.footer__links a:hover {
  color: #fff;
}

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

.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s var(--ease-out);
}

.social:hover {
  transform: translateY(-2px);
}

.social--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social--facebook {
  background: #1877f2;
}
.social--youtube {
  background: #ff0000;
}
.social--whatsapp {
  background: #25d366;
}

.newsletter {
  display: flex;
  height: 50px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--color-gold-deep);
}

.newsletter:focus-within {
  box-shadow: 0 0 0 3px var(--color-gold);
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: none;
  color: var(--color-ink);
  font-size: var(--text-sm);
}

.newsletter button {
  display: grid;
  place-items: center;
  width: 54px;
  border: 0;
  background: var(--color-red);
  color: #fff;
}

.footer__status {
  min-height: 1.5em;
  margin-top: 8px;
  font-size: var(--text-xs);
  color: var(--color-gold-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--text-xs);
}

.footer__bottom strong {
  color: #fff;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__regs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: rgb(255 244 228 / 0.6);
}

.footer__credits {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer__credits p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__heart {
  color: var(--color-red);
}

.footer__credits a {
  color: rgb(255 244 228 / 0.55);
}

.footer__credits a:hover {
  color: var(--color-gold);
}

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__brand,
  .footer__newsletter {
    grid-column: span 3;
    max-width: 480px;
  }
}

@media (max-width: 639px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer__brand,
  .footer__newsletter,
  .footer__follow {
    grid-column: span 2;
  }
  .footer__brand {
    align-items: center;
    max-width: none;
    text-align: center;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__regs {
    justify-content: center;
  }
  .footer__credits {
    align-items: center;
    text-align: center;
  }
}

/* ---------- 8. Product card & spice visuals ---------- */
.bowl {
  --p: var(--spice-chilli);
  --p-light: var(--spice-chilli-light);
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side at 38% 34%, rgb(255 255 255 / 0.32), transparent 45%),
    radial-gradient(circle closest-side, var(--p-light) 0%, var(--p) 42%, color-mix(in srgb, var(--p) 70%, #000) 72%, transparent 74%),
    radial-gradient(circle closest-side, #3e1e0c 0 72%, #6e3a19 76%, #b8743f 85%, var(--wood) 93%, var(--wood-dark) 100%);
  box-shadow: 0 14px 22px -12px rgb(40 15 5 / 0.55), inset 0 -3px 6px rgb(0 0 0 / 0.25);
}

.bowl--turmeric {
  --p: var(--spice-turmeric);
  --p-light: var(--spice-turmeric-light);
}
.bowl--garam {
  --p: var(--spice-garam);
  --p-light: var(--spice-garam-light);
}
.bowl--goda {
  --p: var(--spice-goda);
  --p-light: var(--spice-goda-light);
}
.bowl--kitchenKing {
  --p: var(--spice-kitchen);
  --p-light: var(--spice-kitchen-light);
}
.bowl--whole {
  --p: var(--spice-whole);
  --p-light: var(--spice-whole-light);
}

.bowl--whole::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 7% 11% at 30% 32%, #2e1a10 90%, transparent),
    radial-gradient(ellipse 10% 6% at 62% 26%, #d3ad74 90%, transparent),
    radial-gradient(ellipse 6% 10% at 72% 55%, #2e1a10 90%, transparent),
    radial-gradient(ellipse 12% 6% at 40% 62%, #8c4a22 90%, transparent),
    radial-gradient(ellipse 9% 6% at 22% 58%, #d3ad74 90%, transparent),
    radial-gradient(ellipse 7% 9% at 52% 80%, #2e1a10 90%, transparent),
    radial-gradient(ellipse 10% 6% at 50% 45%, #c79b5e 90%, transparent),
    radial-gradient(ellipse 6% 9% at 80% 34%, #8c4a22 90%, transparent);
}

.bowl--gift {
  width: 78%;
  margin: 11%;
  border-radius: 12%;
  background:
    linear-gradient(90deg, transparent 43%, var(--color-gold) 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, var(--color-gold) 43% 57%, transparent 57%),
    linear-gradient(145deg, #d42a22, #8f0f14);
}

.bowl--gift::before,
.bowl--gift::after {
  content: '';
  position: absolute;
  top: -14%;
  width: 26%;
  height: 22%;
  border: 4px solid var(--color-gold);
  border-radius: 50% 50% 10% 50%;
}

.bowl--gift::before {
  left: 24%;
  transform: rotate(-20deg);
}

.bowl--gift::after {
  right: 24%;
  transform: scaleX(-1) rotate(-20deg);
}

.packshot {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 30%, #fff8ee 0%, #f6e4cc 70%, #efd5b3 100%);
}

.packshot__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo na ho to: pouch thoda bada aur beech me, neeche "lavkarach" line */
.packshot--empty .packshot__pouch {
  top: 12%;
  left: 29%;
  width: 42%;
  height: 60%;
}

.packshot__soon {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgb(255 253 249 / 0.92);
  box-shadow: inset 0 0 0 1px var(--color-line);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-muted);
}

.packshot__pouch {
  position: absolute;
  top: 8%;
  left: 26%;
  width: 48%;
  height: 66%;
  border-radius: 10px 10px 6px 6px;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.08), transparent 18%, transparent 82%, rgb(0 0 0 / 0.1)),
    linear-gradient(180deg, #e5cba2 0%, var(--color-kraft) 40%, var(--color-kraft-dark) 100%);
  box-shadow: 0 16px 24px -14px rgb(60 30 10 / 0.6);
}

.packshot__pouch::before {
  content: '';
  position: absolute;
  inset: 7% 6% auto;
  height: 3px;
  border-radius: 2px;
  background: rgb(120 85 45 / 0.45);
}

.packshot__pouch img {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 82%;
  transform: translateX(-50%);
}

.packshot__bowl {
  position: absolute;
  left: 21%;
  bottom: -4%;
  width: 58%;
}

.packshot__bowl.bowl--gift {
  left: 30%;
  bottom: 4%;
  width: 40%;
  margin: 0;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  box-shadow: var(--shadow-card);
}

.product-card__media {
  position: relative;
}

.product-card__off {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px 1px;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}

.wish-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: var(--color-ink);
  box-shadow: 0 2px 8px -2px rgb(60 20 10 / 0.25);
  transition: color 0.2s, transform 0.2s var(--ease-out);
}

.wish-btn:hover,
.wish-btn[aria-pressed='true'] {
  color: var(--color-red);
}

.product-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 14px 8px 6px;
}

.product-card__name {
  font-size: 1.15rem;
}

.product-card__name a:hover {
  color: var(--color-red-dark);
}

.product-card__qty {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.product-card .btn,
.product-card .cart-ctl {
  margin-top: auto;
}

/* Card pe cart me aane ke baad: [− 2 +] (Flipkart Grocery jaisa) */
.qty-card {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  box-shadow: inset 0 0 0 1.5px var(--color-red);
  color: var(--color-red-dark);
  overflow: hidden;
}

.qty-card button {
  display: grid;
  place-items: center;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
}

.qty-card button:hover:not(:disabled) {
  background: var(--color-warn-soft);
}

.qty-card button:disabled {
  opacity: 0.4;
}

.qty-card span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-gold-deep);
}

.star--off {
  color: #d9c7b2;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.price strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.price s {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

@media (max-width: 559px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    padding: 6px;
  }
  .product-card__body {
    padding: 10px 4px 4px;
  }
  .product-card__name {
    font-size: 1rem;
  }
  .price strong {
    font-size: 1.25rem;
  }
  .product-card .btn {
    gap: 6px;
    padding: 0 8px;
    font-size: 0.9rem;
  }
  .product-card__wish {
    width: 34px;
    height: 34px;
  }
}

.skeleton-card {
  aspect-ratio: 0.62;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #f3e7d6 30%, #faf1e5 50%, #f3e7d6 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}

/* ---------- 9. Shared UI ---------- */
.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-heading__center {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.section-heading h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.section-heading .highlight {
  color: var(--color-red);
}

.section-heading__ornament {
  width: 120px;
  height: 16px;
  color: var(--color-gold-deep);
}

.section-heading__action {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 767px) {
  .section-heading {
    grid-template-columns: 1fr;
  }
  .section-heading__center {
    grid-column: 1;
  }
  .section-heading__action {
    display: none;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px 1px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.badge--new {
  background: #fff1cc;
  color: #7a5200;
}
.badge--info {
  background: #e4eefc;
  color: #1d4f91;
}
.badge--warn {
  background: #ffe6d1;
  color: #9a3d00;
}
.badge--ok {
  background: var(--color-green-soft);
  color: var(--color-green);
}
.badge--danger {
  background: var(--color-warn-soft);
  color: var(--color-red-dark);
}
.badge--muted {
  background: #eee6dd;
  color: var(--color-muted);
}

.note {
  display: flex;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
}

.note .icon {
  margin-top: 2px;
}

.note--ok {
  color: var(--color-green);
}

.note--warn {
  color: var(--color-red-dark);
}

.alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-warn-soft);
  color: var(--color-red-dark);
  font-size: var(--text-sm);
}

.alert--info {
  background: #fff6dc;
  color: #6b4b00;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(40px, 8vw, 80px) 16px;
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-peach);
  color: var(--color-maroon);
}

.empty h2 {
  font-size: var(--text-xl);
}

.empty p {
  max-width: 40ch;
  color: var(--color-muted);
}

.pincode-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  box-shadow: 0 10px 24px -14px rgb(91 15 18 / 0.55), inset 0 0 0 1px var(--color-line);
}

.pincode-form:focus-within {
  box-shadow: 0 0 0 3px var(--color-gold);
}

.pincode-form input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.pincode-form input::placeholder {
  letter-spacing: normal;
}

.pincode-form .btn {
  min-height: 46px;
  box-shadow: none;
}

.pincode-form--compact {
  box-shadow: inset 0 0 0 1.5px var(--color-line);
}

.pincode-form--compact .btn {
  min-height: 40px;
}

.pincode-result {
  min-height: 1.5em;
  margin-top: 10px;
  max-width: 440px;
}

/* Toast */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.5);
  animation: toast-in 0.3s var(--ease-out);
  transition: opacity 0.3s, transform 0.3s;
}

.toast--success .icon {
  color: #7ee2a0;
}

.toast--error {
  background: var(--color-red-dark);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(30 8 6 / 0.55);
}

.modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px 22px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
  animation: toast-in 0.25s var(--ease-out);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__title {
  font-size: var(--text-lg);
}

.modal__body p + p {
  margin-top: 8px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Order view */
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 8px 0 4px;
}

.stepper__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
}

.stepper__step::before {
  content: '';
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--color-line);
}

.stepper__step:first-child::before {
  display: none;
}

.stepper__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--color-line);
  color: #fff;
}

.stepper__step--done::before,
.stepper__step--current::before {
  background: var(--color-green);
}

.stepper__step--done .stepper__dot,
.stepper__step--current .stepper__dot {
  background: var(--color-green);
  box-shadow: none;
}

.stepper__step--current {
  color: var(--color-ink);
}

.stepper__step--current .stepper__dot {
  box-shadow: 0 0 0 5px rgb(31 107 58 / 0.18);
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-line);
}

.order-items small {
  color: var(--color-muted);
}

.totals {
  margin: 12px 0 8px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.totals dt {
  color: var(--color-muted);
}

.totals dd {
  margin: 0;
  font-weight: 600;
}

.totals__grand {
  margin-top: 6px;
  padding-top: 10px !important;
  border-top: 1.5px solid var(--color-line);
  font-size: var(--text-lg);
}

.totals__grand dt {
  color: var(--color-ink);
  font-weight: 700;
}

.totals__grand dd {
  font-family: var(--font-display);
  font-weight: 800;
}

.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 14px 22px;
  border-left: 2px solid var(--color-line);
  margin-left: 6px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-paper);
}

.timeline li:first-child::before {
  background: var(--color-green);
}

.timeline span {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.timeline em {
  font-size: var(--text-sm);
}

.delivery-photo {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (max-width: 559px) {
  .stepper__label {
    font-size: 0.7rem;
    line-height: 1.25;
  }
}

/* ---------- 10. Card ki line, size, search suggestions, mobile menu ---------- */
.product-card__line {
  display: -webkit-box;
  margin: 2px 0 4px;
  overflow: hidden;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--color-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.size-select {
  width: 100%;
  min-height: 38px;
  margin: 4px 0 2px;
  padding: 6px 10px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
}

.size-select:focus {
  outline: none;
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 3px rgb(245 182 35 / 0.35);
}

.search {
  position: relative;
}

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  min-width: 260px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  padding: 10px 0 6px;
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: 0 18px 40px -16px rgb(60 20 10 / 0.45), 0 0 0 1px var(--color-line);
}

.suggest__title {
  padding: 0 14px 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.suggest ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.suggest__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.suggest__item:hover,
.suggest__item:focus-visible {
  background: var(--color-cream);
}

.suggest__thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-peach);
}

.suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggest__thumb .bowl {
  transform: scale(0.42);
}

.suggest__name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest__price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-maroon);
  white-space: nowrap;
}

.suggest__empty {
  padding: 4px 14px 8px;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.suggest__all {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--color-line);
  background: none;
  text-align: left;
  font-weight: 700;
  color: var(--color-red-dark);
}

/* Mobile ka neeche chipka menu */
.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--color-paper);
    box-shadow: 0 -6px 18px -10px rgb(60 20 10 / 0.35);
  }
  .bottom-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 6px 2px;
    border: 0;
    background: none;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-muted);
  }
  .bottom-nav__item[aria-current='page'] {
    color: var(--color-red-dark);
  }
  .bottom-nav__item[aria-current='page']::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28%;
    right: 28%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--color-red);
  }
  .bottom-nav__badge {
    top: 4px;
    right: calc(50% - 22px);
  }
  body.has-bottom-nav {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  body.has-bottom-nav .toast-root {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
