:root {
  --market-display: var(--display-hi, "Noto Serif Devanagari", serif);
  --market-paper: #fbf7eb;
  --market-ink: #102e21;
  --market-gold: #f2c85d;
  --market-rule: #e2d7be;
}
:root[lang="en"] { --market-display: var(--serif, "Playfair Display", Georgia, serif); }
body.market-page { background: var(--market-paper); color: var(--market-ink); }
.market-page .market-utility { background: var(--market-ink); }
.market-utility > div { max-width: 1328px; min-height: 34px; }
.market-page .market-header { background: #fffaf1; border-color: #ece4d1; box-shadow: 0 8px 26px #1a2e1910; }
.market-page .market-header-inner { max-width: 1328px; min-height: 74px; }
.market-page .market-header .nav a { color: #314b3b; }
.market-page .market-header .nav a[aria-current] { color: var(--market-ink); }
.market-page .market-search-button { background: #f8f0e0; border-color: #e9ddc3; }
.market-page .market-search-button kbd { background: #fffaf0; border-color: #e4d7b9; }
.market-page .market-cart { background: var(--market-ink); border-color: var(--market-ink); color: #fff6df; }
.market-page .market-cart:hover { background: #25503a; }
.market-page .market-cart [data-count] { background: var(--market-gold); color: var(--market-ink); }
.market-page .market-account { width: 38px; border-radius: 9px; }
.market-quick-actions { display: flex; align-items: center; gap: 7px; }
.market-quick-actions a { white-space: nowrap; }
.market-orders { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 5px 9px; color: var(--market-ink); border: 1px solid var(--market-rule); border-radius: 10px; font-size: 13px; }
.market-orders:hover { background: #f4ead4; }
.market-orders svg { width: 18px; height: 18px; flex: none; }
.market-quick-actions .market-cart { padding-inline: 9px; font-size: 13px; }
.market-page .market-header .nav.open { background: #fffaf1; }
.market-search-dialog, .basket-dialog { border-color: var(--market-rule); background: #fffdf5; }
.market-search-head h2, .basket-dialog .basket-top h2 { font-family: var(--market-display); }
.market-page .basket-dialog[open] {
  position: fixed;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(100%,435px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border-width: 0 0 0 1px;
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  animation: basket-in .25s var(--shop-motion) both;
}
@keyframes basket-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.market-page .basket-dialog::backdrop { background: #10271e70; backdrop-filter: blur(3px); }
.market-page:has(.basket-dialog[open]) { overflow: hidden; }
.market-page .basket-dialog .basket-top { position: static; flex: none; padding: 16px 22px; background: #fff9ec; }
.market-page .basket-dialog [data-close-basket] { width: 44px; height: 44px; }
.market-page .basket-dialog .basket-body { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 0; }
.market-page .basket-dialog .basket-items { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 19px; }
.market-page .basket-dialog .basket-row { padding-block: 16px; gap: 12px; }
.market-page .basket-dialog .basket-end { flex: none; padding: 0 19px max(14px,env(safe-area-inset-bottom)); background: #fff9ec; border-top: 1px solid var(--market-rule); }
.market-page .basket-dialog .basket-summary { padding: 12px 0 8px; }
.market-page .basket-dialog .basket-checkout-actions { margin-top: 8px; }
.market-page .basket-dialog .basket-full-cart { text-align: center; padding: 8px 0; color: var(--market-ink); text-decoration: underline; text-underline-offset: 4px; }
.market-page .basket-dialog .empty { padding: 26px 19px; }
.market-page .toast { border-radius: 10px; }

.market-home .market-hero {
  width: min(1328px,calc(100% - 44px));
  min-height: clamp(445px,42vw,585px);
  margin: 22px auto 0;
  padding: 0 clamp(32px,6vw,88px);
  grid-template-columns: minmax(0,1fr) minmax(0,1.12fr);
  border: 1px solid #9b753b70;
  border-radius: 25px;
  background:
    linear-gradient(90deg,#09291be8 0%,#09291bc9 33%,#09291b35 63%,#09291b18 100%),
    url("/assets/hero-kitchen-backdrop-v2.webp") center/cover no-repeat,
    var(--market-ink);
  box-shadow: 0 22px 50px #302f151e;
}
.market-home .market-hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 9px;
  border: 1px solid #f4db8c38;
  border-radius: 18px;
  pointer-events: none;
}
.market-home .market-hero::after { height: 16%; background: linear-gradient(transparent,#07291b7d); }
.market-home .market-hero-copy { padding: 42px 0; }
.market-home .market-hero-copy h1 {
  font: 650 clamp(44px,5.7vw,88px)/1.16 var(--market-display);
  letter-spacing: -.048em;
  margin-bottom: 16px;
}
:root[lang="hi"] .market-home .market-hero-copy h1 { letter-spacing: -.035em; }
.market-home .market-hero-copy h1 em { color: #ffda79; }
.market-home .market-hero-copy > p:not(.market-hero-kicker) { color: #fffae9; font-weight: 600; font-size: 18px; }
.market-home .market-hero-kicker { color: #f9db8e; margin-bottom: 23px; letter-spacing: .22em; }
.market-home .market-hero-actions { gap: 12px 20px; }
.market-home .market-hero-actions .market-gold-button {
  background: #ffda74;
  color: #153325;
  border-radius: 8px;
  padding-inline: 19px;
  min-height: 51px;
  font-weight: 750;
}
.market-home .market-hero-actions .market-gold-button:hover { background: #ffe59f; }
.market-home .market-hero-actions > a:not(.market-gold-button) { color: #fff4d3; }
.market-home .market-hero-image {
  width: calc(100% + clamp(18px,3.6vw,58px));
  height: min(44vw,579px);
  min-height: 421px;
  align-self: end;
  justify-self: end;
  margin-right: clamp(-50px,-3.2vw,-16px);
}
.market-home .market-hero-image img { object-position: center bottom; filter: drop-shadow(0 16px 17px #0a261b5c); }

.market-page .market-section-head h2, .market-page .page-intro .page-title {
  font-family: var(--market-display);
  color: var(--market-ink);
}
.market-home .market-section-head h2 { font-size: clamp(28px,3.45vw,47px); font-weight: 650; }
.market-home .market-section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 5px 13px;
  background: #fffdf6;
  border: 1px solid var(--market-rule);
  border-radius: 99px;
  color: var(--market-ink);
  white-space: nowrap;
}
.market-home .market-section-head > a:hover { background: #f4e9cf; text-decoration: none; }
.market-home .market-size-section { padding-top: clamp(32px,4.3vw,60px); scroll-margin-top: 6px; }
.market-home .market-size-grid { gap: clamp(10px,1.5vw,21px); }
.market-home .market-size-link {
  grid-template-columns: minmax(0,1fr) minmax(86px,42%) 28px;
  gap: 7px;
  min-height: clamp(108px,11vw,157px);
  border-radius: 18px;
  padding: 11px 17px 11px 22px;
  background: #e9eddb;
  border-color: #d8e1cb;
}
.market-home .market-size-link:first-child { background: #f5e8cc; border-color: #e9d9b8; }
.market-home .market-size-link:last-child { background: #f0e5d5; border-color: #e4d6c2; }
.market-home .market-size-link:hover { border-color: #9a8b60; }
.market-home .market-size-link strong { font: 650 clamp(17px,2vw,29px)/1.23 var(--market-display); }
.market-home .market-size-link > div > span { color: #4e5c49; font-weight: 650; }
.market-home .market-size-link img { width: 100%; height: clamp(80px,9.3vw,130px); }
.market-home .market-size-link .arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #66794b4a;
  border-radius: 50%;
  font-size: 17px;
  color: #244532;
}
.market-home .market-featured { padding: clamp(38px,5.2vw,73px) 0 clamp(35px,5.7vw,80px); }
.market-home .market-grid .market-pack { background: #fffdf6; border-color: var(--market-rule); border-radius: 18px; }
.market-home .market-grid .market-pack:hover { border-color: #bd9c60; }
.market-home .market-pack-image { background: radial-gradient(ellipse at 48% 64%,#fff8e9,#f5e8cd 75%); }
.market-home .market-pack-image img { aspect-ratio: 1.08; }
.market-home .market-pack-copy { padding: clamp(9px,1.35vw,19px); }
.market-home .market-pack-title h3 { font-family: var(--market-display); font-size: clamp(17px,2vw,27px); }
.market-home .market-pack .pack-price strong { color: var(--market-ink); }
.market-home .market-pack .shopping-actions .buy-now { background: var(--market-ink); border-color: var(--market-ink); }
.market-home .market-pack .shopping-actions .add-cart { background: #fcf6e8; border-color: #d9cbae; }

.market-home .market-craft {
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  gap: 0;
  border-radius: 24px;
  background: radial-gradient(ellipse at 0% 100%,#244d34,var(--market-ink) 72%);
  margin-bottom: clamp(28px,4vw,54px);
}
.market-home .market-craft-intro { padding: clamp(21px,4vw,58px); }
.market-home .market-craft h2 { font: 650 clamp(28px,3.7vw,51px)/1.2 var(--market-display); margin-bottom: 21px; }
.market-home .market-craft-controls { display: grid; gap: 0; }
.market-home .market-craft-controls button {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) 21px;
  align-items: center;
  text-align: start;
  gap: 9px;
  min-height: 48px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #f3dc9649;
  background: none;
  font-size: 15px;
}
.market-home .market-craft-controls button[aria-pressed="true"] { background: #f8d77e; border-radius: 8px; }
.market-home .market-craft-controls button > span:first-child { opacity: .85; font-variant-numeric: tabular-nums; font-size: 12px; }
.market-home .market-craft-controls button .arrow { font-size: 17px; }
.market-home .market-craft-stage { min-height: clamp(310px,32vw,460px); }
.market-home .market-craft-stage > div { padding: clamp(18px,3.2vw,44px); }
.market-home .market-craft-stage h3 { font: 650 clamp(24px,2.8vw,36px)/1.24 var(--market-display); }

.market-reading { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(12px,2vw,26px); margin-bottom: clamp(35px,5vw,72px); }
.market-reading-card { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(210px,25vw,345px); overflow: hidden; border-radius: 20px; background: #203d2b; color: #fff8e8; }
.market-reading-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#0b241beb 0%,#0b241b55 39%,transparent 70%); z-index: -1; }
.market-reading-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .46s var(--shop-motion); }
.market-reading-card:hover img { transform: scale(1.04); }
.market-reading-caption { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding: clamp(17px,3vw,36px); }
.market-reading-caption strong { display: block; font: 650 clamp(24px,3.1vw,42px)/1.18 var(--market-display); }
.market-reading-caption small { display: block; color: #ffdf8f; font-weight: 750; margin-bottom: 6px; }
.market-reading-caption .arrow { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 1px solid #fffae77f; border-radius: 50%; }

.market-page .market-footer { background: var(--market-ink); color: #fbf3dc; border-top: 2px solid #c8a35a; }
.market-page .market-footer-main { display: grid; grid-template-columns: minmax(200px,1.15fr) repeat(3,minmax(0,1fr)); align-items: start; gap: 25px; padding-top: 34px; padding-bottom: 32px; }
.market-footer-brand { justify-self: start; display: block; background: #fff7e2; border-radius: 10px; padding: 11px 13px; }
.market-page .market-footer-main nav { display: grid; gap: 6px; }
.market-footer-main nav h2 { margin: 0 0 5px; color: #ffdb86; font: 750 13px/1.5 var(--shop-sans); }
.market-page .market-footer-bottom { border-color: #f4dfaa40; color: #e6ddc3; }
.market-page .market-footer a:focus-visible, .market-reading-card:focus-visible { outline-color: #ffd676; }
.market-page .page-intro .page-title { font-weight: 650; }
.market-page .page-intro { background-color: #f5edda; }

body.page-checkout { background: var(--market-paper); }
.page-checkout .market-header { background: #fffaf1; border-color: #e8dcc3; }
.page-checkout .checkout-intro h1 { font-family: var(--market-display); color: var(--market-ink); }
.page-checkout .checkout-form-card, .page-checkout .checkout-summary,
.page-checkout .order-receipt, .page-checkout .checkout-review-actions {
  background: #fffdf7;
  border-color: var(--market-rule);
  box-shadow: 0 10px 27px #372f1409;
}
.page-checkout .checkout-summary { background: #f8efda; }
.page-checkout .checkout-card-heading h2, .page-checkout .checkout-summary h2 { color: var(--market-ink); }
.page-checkout .checkout-shell .checkout-primary { background: var(--market-ink); border-color: var(--market-ink); }
.page-checkout .checkout-shell .checkout-primary:hover { background: #24513a; }

@media (max-width: 1050px) {
  .market-home .market-hero { padding-inline: 38px; }
  .market-home .market-hero-image { height: 435px; min-height: 0; }
  .market-home .market-size-link { padding-inline: 12px; }
}
@media (max-width: 960px) {
  body.market-page { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .market-page .market-header-inner { min-height: 60px; }
  .market-page .market-quick-actions {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    padding: 8px max(14px,calc((100% - 440px) / 2)) max(9px,env(safe-area-inset-bottom));
    border-top: 1px solid var(--market-rule);
    background: #fffaf1;
    box-shadow: 0 -7px 24px #1b302013;
  }
  .market-page .market-quick-actions a { font-size: 14px; }
  .market-page .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .market-page .basket-dialog[open] { width: min(calc(100% - 12px),435px); }
}
@media (max-width: 800px) {
  .market-page .market-header-inner { min-height: 60px; }
  .market-page .market-footer-main { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 12px; }
  .market-footer-brand { grid-column: 1/-1; }
}
@media (max-width: 760px) {
  .market-home .market-hero {
    width: calc(100% - 24px);
    min-height: 0;
    margin-top: 12px;
    padding: 0 18px;
    grid-template-columns: minmax(0,1fr);
    border-radius: 18px;
    background:
      linear-gradient(180deg,#0a281bef,#0a281bc8 37%,#0a281b28 68%,#09291b18),
      url("/assets/hero-kitchen-backdrop-v2.webp") center/cover no-repeat,
      var(--market-ink);
  }
  .market-home .market-hero::before { inset: 6px; border-radius: 12px; }
  .market-home .market-hero-copy { padding: 25px 4px 0; }
  .market-home .market-hero-copy h1 { font-size: clamp(35px,10.6vw,62px); margin-bottom: 11px; }
  .market-home .market-hero-kicker { margin-bottom: 15px; font-size: 9px; }
  .market-home .market-hero-copy > p:not(.market-hero-kicker) { font-size: 15px; margin-bottom: 12px; }
  .market-home .market-hero-actions { gap: 9px 13px; }
  .market-home .market-hero-actions .market-gold-button { min-height: 44px; padding-inline: 13px; }
  .market-home .market-hero-actions > a:not(.market-gold-button) { font-size: 12px; }
  .market-home .market-hero-image { width: min(calc(100% + 26px),475px); height: auto; margin-right: 0; justify-self: center; }
  .market-home .market-size-section { padding-top: 28px; }
  .market-home .market-size-grid { gap: 7px; }
  .market-home .market-size-link { grid-template-columns: minmax(0,1fr); min-height: 116px; padding: 8px 5px; border-radius: 13px; }
  .market-home .market-size-link img { width: 70px; height: 64px; }
  .market-home .market-size-link strong { font-size: clamp(12px,3.5vw,20px); }
  .market-home .market-size-link .arrow { width: 19px; height: 19px; font-size: 12px; right: 4px; bottom: 4px; }
  .market-home .market-section-head > a { min-height: 34px; padding-inline: 9px; font-size: 11px; }
  .market-home .market-grid .market-pack { border-radius: 13px; }
  .market-home .market-craft { grid-template-columns: minmax(0,1fr); border-radius: 17px; }
  .market-home .market-craft-intro { padding: 21px 17px; }
  .market-home .market-craft h2 { margin-bottom: 12px; }
  .market-home .market-craft-controls { margin-bottom: 14px; }
  .market-home .market-craft-controls button { min-height: 42px; font-size: 14px; }
  .market-home .market-craft-stage { min-height: 226px; }
  .market-reading { grid-template-columns: minmax(0,1fr); }
  .market-reading-card { border-radius: 16px; min-height: 210px; }
}
@media (max-width: 350px) {
  .market-home .market-hero { width: calc(100% - 16px); padding-inline: 14px; }
  .market-home .market-hero-actions .market-gold-button { padding-inline: 10px; gap: 8px; }
  .market-home .market-size-link .arrow { display: none; }
}
@media print {
  body.page-checkout { background: white; }
  .page-checkout .order-receipt { border: 0; box-shadow: none; }
}
