/* App-style navigation on phones and small tablets. Desktop keeps its existing identity. */
:root {
  --mobile-header-h: 72px;
  --mobile-tabs-h: calc(68px + env(safe-area-inset-bottom, 0px));
  --mobile-surface: #f5f7f3;
  --mobile-muted: #56605a;
  --mobile-radius: 18px;
  --sheet-height: 100dvh;
}
.mobile-menu-button, .mobile-tabs, .product-card__details { display: none; }
.mobile-dock-handle { display: none; }
.hero__scene { display: contents; }
.search-status { margin: 0; font-size: 14px; color: var(--muted); }
.search-status:not(:empty) { margin-bottom: 16px; }
.search-empty { padding: 32px 16px; text-align: center; border-radius: 16px; background: var(--surface); }
.search-empty[hidden] { display: none; }
.search-empty h3 { margin: 0; }
.search-empty p { color: var(--muted); line-height: 1.5; }
.product-card__allergen { color: #8a321b !important; font-weight: 600; }
.cart:not([open]) { display: none; }
.cart[open] { inset: 0 0 0 auto; max-width: none; max-height: none; margin: 0; border: 0; color: var(--text); transform: none; }
.cart::backdrop { background: rgba(12, 24, 16, .48); }
.cart__items { min-height: 0; flex: 1; }
.cart__summary { flex-shrink: 0; }
.cart__empty[hidden], .cart__summary[hidden] { display: none; }
.cart-open .scrim { display: none; }
body.sheet-open { overflow: hidden; }
.modal:not([open]) { display: none; }
.sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-heading .icon-button { flex: none; }
.sheet-heading .kicker { margin-bottom: 8px; }
.sheet-links { display: grid; margin-top: 20px; }
.sheet-links a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--soft-line); font-weight: 600; }
.sheet-links a::after { content: "›"; font-size: 24px; color: var(--green); }
.sheet-legal { display: grid; gap: 4px; margin-top: 20px; }
.sheet-legal a { min-height: 44px; display: flex; align-items: center; color: var(--mobile-muted); font-size: 14px; }
.product-sheet__content { overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding-top: 16px; }
.product-sheet__content > img { width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 12px; background: var(--surface); }
.product-sheet__content p { line-height: 1.5; }
.product-sheet__content ul { padding-left: 20px; columns: 2; font-size: 14px; line-height: 1.7; }
.product-sheet__content li { break-inside: avoid; }
.product-sheet__content h3 { margin: 20px 0 8px; font-size: 16px; }
.product-sheet__base, .product-sheet__meta { font-size: 14px; color: var(--mobile-muted); }
.product-sheet__allergen { color: #8a321b; font-weight: 600; }
.product-sheet__buy { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--soft-line); }
.product-sheet__buy > strong { font-size: 24px; }
.product-sheet[open] { display: flex; flex-direction: column; max-height: calc(var(--sheet-height) - 32px); overflow: hidden; }

@media (max-width: 900px) {
  html { scroll-padding-top: var(--mobile-header-h); scroll-padding-bottom: calc(var(--mobile-tabs-h) + 16px); }
  body { background: var(--mobile-surface); padding-bottom: var(--mobile-tabs-h); }
  .shell { width: min(100% - 32px, 760px); }
  .site-header { position: sticky; top: 0; z-index: 40; padding: calc(6px + env(safe-area-inset-top, 0px)) 0 6px; background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 1px solid #e6ebe5; pointer-events: auto; }
  .header-main { display: grid; grid-template-columns: 80px minmax(0, 1fr) 44px; grid-template-rows: auto; align-items: center; gap: 12px; min-height: 56px; padding: 0; }
  .brand { grid-column: 1; grid-row: 1; min-height: 48px; padding: 0; }
  .brand img { width: 78px; height: auto; }
  .header-actions { display: contents; }
  .category-nav, .header-main > .search, .header-actions > .cart-button, .header-actions > .account-button { display: none; }
  .header-actions > .location-button:not(.account-button) { grid-column: 2; grid-row: 1; min-width: 0; min-height: 48px; max-width: 100%; padding: 0 6px; gap: 6px; color: var(--text); background: transparent !important; border: 0; border-radius: 10px; box-shadow: none !important; backdrop-filter: none; }
  .location-button:not(.account-button) span { display: grid; min-width: 0; }
  .location-button small { color: var(--mobile-muted) !important; font-size: 11px; }
  .location-button strong { max-width: 100%; color: var(--green-dark) !important; font-size: 13px; }
  .location-button svg { width: 18px; height: 18px; color: var(--green) !important; flex: none; }
  .mobile-menu-button { grid-column: 3; grid-row: 1; display: grid; place-items: center; width: 44px; height: 48px; padding: 0; border: 1px solid #e0e7df; border-radius: 14px; background: #fff; color: var(--green-dark); cursor: pointer; }
  .mobile-menu-button svg { width: 22px; height: 22px; }
  .mobile-tabs { position: fixed; inset: auto 0 0; z-index: 45; min-height: var(--mobile-tabs-h); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 5px max(8px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: #fff; border-top: 1px solid #e1e7df; box-shadow: 0 -4px 18px rgba(12, 40, 21, .04); }
  .mobile-tabs > a, .mobile-tabs > button { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--mobile-muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
  .mobile-tabs svg { width: 23px; height: 23px; stroke-width: 1.8; }
  .mobile-tabs [aria-current], .mobile-tabs [aria-expanded="true"] { background: #edf4e9; color: var(--green-dark); }
  .mobile-tabs__icon { position: relative; }
  .mobile-tabs strong { position: absolute; top: -7px; right: -12px; min-width: 20px; padding: 2px 5px; color: white; background: var(--green); border: 2px solid white; border-radius: 999px; font-size: 10px; line-height: 1; }
  .mobile-tabs strong[hidden] { display: none; }
  .mobile-tabs a:active, .mobile-tabs button:active, .mobile-menu-button:active { background: #e3eedf; }
  .sheet-open .mobile-tabs, .keyboard-open .mobile-tabs { visibility: hidden; pointer-events: none; }

  /* A framed, naturally scrolling hero: no pinned stage or fading text on phones. */
  .hero { height: auto !important; margin: 16px 16px 0; border-radius: 22px; overflow: hidden; background: #251b0f; }
  .hero__stage { position: relative !important; top: auto; height: auto !important; min-height: 0 !important; display: flex; flex-direction: column; padding: 0; background: #251b0f; }
  .hero__stage::before { display: none; }
  .hero__inner { order: 1; flex: none; width: 100%; padding: 28px 22px 20px; align-items: center; }
  .hero__content { width: 100%; opacity: 1 !important; transform: none !important; filter: none !important; pointer-events: auto !important; animation: none !important; }
  .hero__content > * { animation: none !important; }
  .hero .kicker { margin-bottom: 12px; font-size: 10px; line-height: 1.5; letter-spacing: .12em; color: #e5ecac; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 46px); line-height: 1.05; letter-spacing: -.04em; text-shadow: none; color: #fff; }
  .hero__content > p:not(.kicker) { margin: 14px auto 0; font-size: 14px; line-height: 1.5; color: #eee8df; }
  .hero__actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__actions .button { min-width: 0; min-height: 48px; padding: 10px 8px; border-radius: 12px; font-size: 13px; }
  .hero__actions .button--primary { color: #143320; background: #e4edba; box-shadow: none; }
  .hero__actions .button--secondary { color: #fff; border-color: #8c8578; background: transparent; }
  .hero__media { order: 2; position: relative; inset: auto; flex: none; width: 100%; min-height: 0; }
  .hero__media picture img { width: 100%; max-width: 100%; height: auto; margin: 0; object-fit: contain; transform: none !important; filter: none; animation: none !important; }
  .hero__scroll { display: none; }
  .hero__content.is-faded { pointer-events: auto; }

  .product-section { margin-top: 0 !important; padding: 32px 0 40px; background: var(--mobile-surface); box-shadow: none; scroll-margin-top: 0; }
  .section-heading { margin-bottom: 20px; gap: 8px; }
  .section-heading h2 { font-size: clamp(25px, 6.5vw, 34px); line-height: 1.15; }
  .section-heading > p { font-size: 14px; line-height: 1.5; }
  .section-heading .kicker { font-size: 11px; }
  .shop-controls { position: sticky; top: var(--mobile-header-h); z-index: 20; padding: 8px 0 6px; margin: -8px 0 16px; background: var(--mobile-surface); }
  .shop-controls .search { display: flex; width: 100%; height: 48px; margin: 0 0 12px; padding: 0 14px; border: 1px solid #d6ded3; border-radius: 14px; background: #fff; box-shadow: none; backdrop-filter: none; }
  .shop-controls .search svg { color: var(--mobile-muted); }
  .shop-controls .search input { color: var(--text); font-size: 16px; }
  .shop-controls .search input::placeholder { color: var(--mobile-muted); }
  .product-filters { margin: 0; gap: 8px; padding: 0 0 6px; scroll-padding: 4px; }
  .product-filters button { min-height: 44px; padding: 8px 16px; font-size: 13px; background: #fff; border-color: #d6ded3; }
  .product-filters button.active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px 12px; }
  .product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0e6dd; border-radius: 16px; background: #fff; }
  .product-card[hidden] { display: none; }
  .product-card__visual { height: auto; aspect-ratio: 1; border-radius: 0; }
  .product-card__visual img { width: 100%; height: 100%; object-fit: cover; }
  .product-card__badge { top: 10px; left: 10px; padding: 5px 8px; color: #384539; font-size: 10px; background: #fff; border-color: #e0e6dd; }
  .product-card__info { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 12px; }
  .product-card__info h3 { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
  .product-card__info > p { margin: 7px 0 10px; color: var(--mobile-muted); font-size: 12px; line-height: 1.45; }
  .product-card__ingredients, .product-card__certs { display: none; }
  .product-card__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 12px; font-size: 11px; color: var(--mobile-muted); }
  .product-card__meta span + span::before { margin-right: 5px; }
  .product-card__buy { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .product-card__price small { display: none; }
  .product-card__buy strong { font-size: 18px; }
  .buy-control, .buy-add, .stepper { width: 100%; }
  .buy-add { min-height: 48px; border-radius: 12px; color: white; background: var(--green); box-shadow: none; font-size: 13px; }
  .buy-add:hover, .buy-add:active { background: var(--green-dark); }
  .stepper { min-height: 48px; grid-template-columns: 44px minmax(0, 1fr) 44px; border-radius: 12px; background: var(--green); box-shadow: none; }
  .stepper button { min-width: 44px; height: 48px; font-size: 20px; }
  .stepper__count { font-size: 15px; }
  .product-card__details { display: flex; align-items: center; justify-content: space-between; min-height: 44px; width: 100%; gap: 4px; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--green-dark); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
  .product-card__details span { font-size: 17px; }
  .reveal, .how-grid article > span, .how-grid article h3, .how-grid article p { opacity: 1; transform: none; transition: none; }
  .buy-control.is-swapping, .stepper__count.is-bumped { animation: none; }

  .cart[open] { width: min(100%, 620px); height: var(--sheet-height); inset: auto 0 var(--keyboard-offset, 0px) auto; padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); border-radius: 0; box-shadow: none; }
  .drawer-head { flex-shrink: 0; align-items: center; padding-bottom: 16px; }
  .drawer-head h2 { font-size: 24px; }
  .cart-line { grid-template-columns: 68px minmax(0, 1fr); gap: 10px 12px; padding: 16px 0; }
  .cart-line__image { width: 68px; height: 68px; grid-row: span 2; }
  .cart-line__details { min-width: 0; }
  .cart-line__details h3 { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
  .cart-line__details p { font-size: 12px; line-height: 1.5; }
  .cart-line__details strong { font-size: 15px; }
  .quantity { grid-column: 2; justify-self: start; grid-template-columns: 44px 36px 44px; border-radius: 10px; }
  .quantity button { width: 44px; height: 44px; font-size: 20px; }
  .quantity span { font-size: 14px; }
  .cart__summary { padding-top: 16px; }
  .cart__summary p { font-size: 13px; line-height: 1.5; }
  .cart__summary .button { min-height: 52px; border-radius: 14px; background: var(--green); color: #fff; font-size: 16px; }
  .cart__empty a { display: inline-flex; align-items: center; min-height: 48px; }
  .cart-bar { display: none !important; }
  .icon-button { width: 44px; height: 44px; flex: none; }

  .modal[open] { position: fixed; inset: auto 0 var(--keyboard-offset, 0px); width: min(100%, 620px); max-width: 100%; max-height: calc(var(--sheet-height) - 16px); margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); border-radius: 24px 24px 0 0; overflow-y: auto; overscroll-behavior: contain; }
  .modal__close { top: 14px; right: 14px; }
  .modal h2 { max-width: calc(100% - 42px); font-size: 24px; line-height: 1.2; }
  .sheet-heading h2 { max-width: 100%; }
  .modal .kicker { margin-bottom: 10px; font-size: 11px; }
  .modal > p:not(.kicker) { margin: 12px 0 20px; font-size: 15px; line-height: 1.5; }
  .modal label, .inline-pincode label { font-size: 14px; }
  .modal input, .inline-pincode input { min-height: 50px; font-size: 16px; border-radius: 12px; }
  .modal .button { min-height: 50px; border-radius: 12px; }
  .modal output { font-size: 14px; line-height: 1.5; }
  #addressModal[open] { width: min(100%, 620px); height: calc(var(--sheet-height) - 16px); max-height: calc(var(--sheet-height) - 16px); margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  #addressModal .kicker { color: var(--green); }
  .keyboard-open #addressModal > p { display: none; }
  .keyboard-open #addressModal[open] { padding-top: 18px; }
  .address-form__fields { padding-right: 4px; scroll-padding-block: 12px; overscroll-behavior: contain; }
  .address-form label { margin-top: 12px; color: var(--green-dark); font-size: 13px; letter-spacing: 0; text-transform: none; }
  .address-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,85,47,.12); }
  .address-form__submit { padding-top: 10px; margin-top: 10px; }
  .address-form__submit .button { background: var(--green); box-shadow: none; }
  .address-form__submit .button:hover { background: var(--green-dark); }
  .auth-link, .deliver-change { min-height: 44px; }
  .auth-code { max-width: 100%; }
  .deliver-pay { background: var(--green); box-shadow: none; }
  .deliver-card { overflow-wrap: anywhere; }
  .product-sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
  .product-sheet__buy .buy-control { width: 160px; max-width: 65%; }
  .navigation-sheet .sheet-heading { padding-right: 0; }

  .service-strip { background: #fff; }
  .service-strip__grid { grid-template-columns: 1fr; }
  .service-strip__grid > div { border-right: 0; padding: 16px 0 !important; min-height: 76px; justify-content: flex-start; }
  .about-section, .how-section, .delivery-section { padding: 40px 0; }
  .about-section, .delivery-section { background: #fff; }
  .about-lead { grid-template-columns: 1fr; gap: 20px; }
  .about-lead h2 { font-size: 30px; }
  .about-lead__copy { padding: 0; }
  .about-lead__copy p { font-size: 16px; line-height: 1.6; }
  .benefit-grid { margin-top: 24px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .benefit-grid article { min-height: 0; padding: 20px; border-radius: 16px; }
  .benefit-grid h3 { font-size: 16px; }
  .benefit-grid p { font-size: 14px; }
  .how-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .how-grid article { min-height: 0; padding: 20px 0 !important; border-right: 0; }
  .how-grid p { font-size: 15px; }
  .delivery-card { padding: 24px; grid-template-columns: 1fr; gap: 20px; border-radius: 20px; }
  .delivery-card h2 { font-size: 28px; }
  .inline-pincode > div { grid-template-columns: 1fr; }
  .inline-pincode button { min-height: 50px; }
  .legal, .track { padding: 28px 0 48px; background: var(--mobile-surface); }
  .legal__inner, .track__inner { width: min(100% - 32px, 680px); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .legal h1, .track h1 { font-size: 32px; }
  .legal__body { overflow-wrap: anywhere; }
  .legal__body p, .legal__body li { font-size: 16px; }
  .track__sub { font-size: 16px; line-height: 1.5; }
  .track__summary, .track__porter, .account__me, .account__order { background: #fff; border-radius: 18px; }
  .track__address, .account__me, .account__order { overflow-wrap: anywhere; }
  .account__me { align-items: flex-start; }
  .account__me span { font-size: 14px; }
  .account__order-foot { flex-wrap: wrap; }
  .account__order-foot a { min-height: 44px; }
  .track__back, .track__signin { min-height: 50px; }
  footer, .has-cart-bar footer { padding: 32px 0 24px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-bottom: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main a { min-height: 44px; padding: 10px 0; margin: 0; font-size: 13px; }
  .footer-bottom { flex-wrap: wrap; gap: 8px; font-size: 12px; }
  .toast, .has-cart-bar .toast { bottom: calc(var(--mobile-tabs-h) + 12px); max-width: calc(100% - 32px); font-size: 14px; }
  .cart-open .toast { top: auto; bottom: calc(144px + env(safe-area-inset-bottom)); }
  button, a { touch-action: manipulation; }
  button:active { filter: brightness(.95); }
  .modal :focus-visible, .mobile-tabs :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
}
@media (max-width: 480px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .header-main { gap: 8px; }
}
@media (max-width: 360px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; }
  .product-card__visual { margin: 12px 0 0 12px; border-radius: 10px; }
  .product-card__info { padding: 12px 12px 6px; }
  .product-card__info h3 { font-size: 16px; }
  .product-card__details { font-size: 12px; }
  .hero__inner { padding: 24px 16px 18px; }
  .hero__actions { grid-template-columns: 1fr; }
  .product-sheet__content ul { columns: 1; }
}
@media (max-width: 900px) and (max-height: 500px) {
  .hero__stage { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .hero__inner { padding: 20px; }
  .hero h1 { font-size: 30px; }
  .hero .kicker { font-size: 9px; }
  .hero__actions { margin-top: 14px; }
  .hero__media { align-self: stretch; height: 100%; }
  .hero__media picture, .hero__media picture img { height: 100%; object-fit: contain; }
  .mobile-tabs { min-height: calc(56px + env(safe-area-inset-bottom)); }
  .mobile-tabs > a, .mobile-tabs > button { min-height: 46px; gap: 2px; }
  :root { --mobile-tabs-h: calc(56px + env(safe-area-inset-bottom)); }
  .modal[open] { max-height: calc(var(--sheet-height) - 8px); padding-top: 18px; border-radius: 16px 16px 0 0; }
  #addressModal[open] { height: calc(var(--sheet-height) - 8px); max-height: calc(var(--sheet-height) - 8px); }
  #addressModal > p:not(.kicker) { display: none; }
  .product-sheet__content > img { max-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-tabs, .modal, .cart, .product-card { scroll-behavior: auto; animation: none; transition: none; }
}

/* ---------- Kuttappan on phones: around the tab bar ---------- */
/* :is(body, .has-cart-bar) outranks styles.css's cart-bar lifts, which don't apply here (the tab bar replaces the cart bar). */
.hero__kp, .hero__steam, .flavour-ribbon { display: none; }
@media (max-width: 900px) {
  :is(body, .has-cart-bar) .kp__avatar { left: 14px; bottom: calc(var(--mobile-tabs-h) + 12px); }
  :is(body, .has-cart-bar) .kp__emote { left: 52px; bottom: calc(var(--mobile-tabs-h) + 56px); }
  :is(body, .has-cart-bar) .kp[data-state="talk"] .kp__bubble { left: 80px; bottom: calc(var(--mobile-tabs-h) + 14px); }
  /* In full he rises from behind the tab bar, which hides his legs. */
  :is(body, .has-cart-bar) .kp__body { bottom: calc(var(--mobile-tabs-h) - 92px); clip-path: none; }
  :is(body, .has-cart-bar) .kp[data-state="peek"] .kp__bubble { bottom: calc(var(--mobile-tabs-h) + 112px); }
  :is(body, .has-cart-bar) .kp[data-state="peek"] .kp__emote { bottom: calc(var(--mobile-tabs-h) + 196px); }
  /* The quiz opens as a sheet over the tabs. */
  .kp[data-state="quiz"] { z-index: 50; }
  .sheet-open .kp:not([data-state="quiz"]) { visibility: hidden; }

  /* Hero: "Hi, I'm Kuttappan" chip → his quiz. */
  .hero__kp:not([hidden]) { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
  .hero__kp img { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid #e8f45d; object-fit: cover; background: #d8d4cc; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
  .hero__kp-tag { padding: 5px 10px; border-radius: 999px 999px 4px 999px; color: #143320; background: #e8f45d; font-size: 12px; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

  /* Steam off the tubs. */
  .hero__media { position: relative; overflow: hidden; }
  .hero__steam { position: absolute; inset: 0; display: block; pointer-events: none; }
  .hero__steam i { position: absolute; bottom: 38%; width: 46px; height: 130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,250,240,.55), rgba(255,250,240,0)); filter: blur(7px); opacity: 0; }
  .hero__steam i:nth-child(1) { left: 18%; }
  .hero__steam i:nth-child(2) { left: 46%; }
  .hero__steam i:nth-child(3) { left: 74%; }

  /* Ribbon of the range. */
  .flavour-ribbon { display: block; margin: 14px 0 0; padding: 11px 0; overflow: hidden; background: var(--green); }
  .flavour-ribbon > div { width: max-content; display: flex; }
  .flavour-ribbon span { padding: 0 14px; color: #e8f45d; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
  .flavour-ribbon span::after { content: "✦"; margin-left: 28px; color: rgba(255,255,255,.55); }

  /* Heat at a glance. */
  .product-card__badge[data-heat="mild"] { color: #1d5a32; background: #e7f3e4; border-color: #cfe5c9; }
  .product-card__badge[data-heat="medium"] { color: #7a4700; background: #fff2d9; border-color: #f3dcab; }
  .product-card__badge[data-heat="hot"] { color: #a1210f; background: #ffe5de; border-color: #f5c2b6; }
  .product-card__badge[data-heat="hot"]::before { content: "🌶 "; }

  .fly-to-cart { position: fixed; z-index: 60; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
}

@media (max-width: 620px) {
  :is(body, .has-cart-bar) .kp__body { bottom: calc(var(--mobile-tabs-h) - 68px); }
  :is(body, .has-cart-bar) .kp[data-state="peek"] .kp__bubble { bottom: calc(var(--mobile-tabs-h) + 92px); }
  :is(body, .has-cart-bar) .kp[data-state="peek"] .kp__emote { bottom: calc(var(--mobile-tabs-h) + 140px); }
}

/* ---------- Motion (phones) ---------- */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* Hero comes in line by line; the photo drifts slowly and steams. */
  .hero .hero__content > .kicker { animation: gg-rise .7s .05s both cubic-bezier(.2,.8,.2,1) !important; }
  .hero h1 span { display: block; animation: gg-rise .8s both cubic-bezier(.2,.8,.2,1); }
  .hero h1 span:nth-child(1) { animation-delay: .15s; }
  .hero h1 span:nth-child(2) { animation-delay: .3s; }
  .hero .hero__content > p:not(.kicker) { animation: gg-rise .7s .45s both cubic-bezier(.2,.8,.2,1) !important; }
  .hero .hero__content > .hero__actions { animation: gg-rise .6s .6s both cubic-bezier(.2,.8,.2,1) !important; }
  .hero .hero__kp:not([hidden]) { animation: gg-pop .6s 1s both cubic-bezier(.34,1.45,.64,1); }
  .hero .hero__kp img { animation: gg-wave 2.6s 1.8s ease-in-out infinite; }
  .hero__steam i { animation: gg-steam 4.8s ease-out infinite; }
  .hero__steam i:nth-child(2) { animation-delay: 1.6s; }
  .hero__steam i:nth-child(3) { animation-delay: 3.2s; }
  .hero__steam i:nth-child(4) { animation-delay: .8s; }
  .hero__steam i:nth-child(5) { animation-delay: 2.4s; }
  .flavour-ribbon > div { animation: gg-marquee 32s linear infinite; }

  /* Sections and cards rise in as they scroll into view; cards alternate left/right. */
  main .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .7s cubic-bezier(.2,.8,.2,1); }
  main .reveal.is-visible { opacity: 1; translate: 0 0; }
  /* Controls are never held back waiting for a scroll effect (the chips also live in the sticky bar). */
  main .product-filters.reveal { opacity: 1; translate: 0 0; transition: none; }
  .product-grid .product-card.reveal { scale: .96; transition: opacity .55s ease, translate .7s cubic-bezier(.2,.8,.2,1), scale .7s cubic-bezier(.2,.8,.2,1); }
  .product-grid .product-card.reveal.is-visible { scale: 1; }
  .product-grid .product-card:nth-child(even).reveal { transition-delay: .09s; }
  .product-card .product-card__visual img { transition: scale .5s cubic-bezier(.2,.8,.2,1); }
  .product-card:active .product-card__visual img { scale: 1.04; }
  .product-card:active { scale: .985; transition: scale .15s ease; }
  .buy-add:active, .stepper button:active, .hero__actions .button:active { scale: .96; }

  /* Sheets slide up; the cart count bumps when something lands in it. */
  .modal[open], .cart[open] { animation: gg-sheet .34s cubic-bezier(.2,.8,.2,1); }
  .modal[open]::backdrop, .cart[open]::backdrop { animation: gg-fade .3s ease; }
  .mobile-tabs__icon.is-bumped { animation: gg-bump .5s cubic-bezier(.34,1.56,.64,1); }
  .mobile-tabs > a, .mobile-tabs > button { transition: background .2s ease, color .2s ease; }
}
@keyframes gg-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes gg-pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes gg-wave { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -10deg; } 86% { rotate: 8deg; } 94% { rotate: -4deg; } }
@keyframes gg-drift { from { scale: 1; translate: 0 0; } to { scale: 1.07; translate: -2% -1.5%; } }
@keyframes gg-steam { 0% { opacity: 0; translate: 0 30px; scale: .55; } 30% { opacity: .75; } 100% { opacity: 0; translate: 12px -95px; scale: 1.5; } }
@keyframes gg-marquee { to { translate: -50% 0; } }
@keyframes gg-sheet { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes gg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gg-bump { 0% { scale: 1; } 40% { scale: 1.35; } 100% { scale: 1; } }

/* ---------- Depth (phones): floating dock, raised selectors, gliding pills ---------- */
@media (max-width: 900px) {
  /* The tab bar floats as a raised dock; the space everything else keeps clear grows to match. */
  :root { --mobile-tabs-h: calc(68px + max(8px, env(safe-area-inset-bottom, 0px))); }
  .mobile-tabs { inset: auto max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); min-height: 0; padding: 6px; gap: 2px; border: 1px solid rgba(255,255,255,.95); border-radius: 26px; background: linear-gradient(180deg, #ffffff 0%, #f1f6ef 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(15,61,34,.05), 0 14px 30px rgba(15,61,34,.20), 0 4px 10px rgba(15,61,34,.10); }
  .mobile-tabs > a, .mobile-tabs > button { position: relative; z-index: 1; min-height: 50px; border-radius: 18px; }
  .mobile-tabs [aria-current] { color: #fff; background: transparent; }
  .mobile-tabs [aria-current] svg { translate: 0 -2px; scale: 1.14; filter: drop-shadow(0 3px 3px rgba(0,0,0,.28)); }
  .mobile-tabs svg { transition: translate .35s cubic-bezier(.34,1.45,.64,1), scale .35s cubic-bezier(.34,1.45,.64,1), filter .3s; }
  .mobile-tabs [aria-current] strong { border-color: #1d6338; }
  .mobile-tabs__pill, .filter-pill { position: absolute; z-index: 0; left: 0; top: 0; width: var(--w, 0); height: var(--h, 0); translate: var(--x, 0) var(--y, 0); opacity: 0; pointer-events: none;
    background: linear-gradient(180deg, #2f8550 0%, #19552f 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18), 0 3px 0 #0f3d22, 0 10px 18px rgba(25,85,47,.32); }
  .mobile-tabs__pill { border-radius: 20px; }
  .mobile-tabs__pill.is-shown, .filter-pill.is-shown { opacity: 1; }

  /* Category chips as 3D keys; the selected one is carried by the pill. */
  .product-filters { position: relative; padding: 4px 4px 10px; }
  .product-filters button { position: relative; z-index: 1; border: 1px solid #d6ded3; background: #fff; box-shadow: 0 3px 0 #d6ded3, 0 8px 14px rgba(15,61,34,.06); }
  .product-filters button.active { color: #fff; background: transparent; border-color: transparent; box-shadow: none; }
  .filter-pill { border-radius: 999px; }

  /* Cards stand off the page. */
  .product-grid { perspective: 1100px; }
  .product-card { transform-origin: 50% 100%; box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgba(15,61,34,.08), 0 2px 6px rgba(15,61,34,.05); }

  /* The ribbon cuts across at a slight angle. */
  .flavour-ribbon { margin: 18px 0 0; rotate: 0deg; box-shadow: 0 10px 22px rgba(15,61,34,.12); }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .mobile-tabs__pill, .filter-pill { transition: translate .5s cubic-bezier(.34,1.32,.64,1), width .5s cubic-bezier(.34,1.32,.64,1), height .3s ease, opacity .25s ease; }
  .mobile-tabs [aria-current] svg { animation: gg-tab-pop .5s cubic-bezier(.34,1.56,.64,1); }
  .mobile-tabs > a:active, .mobile-tabs > button:active { translate: 0 1px; }
  .product-filters button { transition: translate .14s ease, box-shadow .14s ease, color .3s ease; }
  .product-filters button:active { translate: 0 2px; box-shadow: 0 1px 0 #d6ded3, 0 3px 6px rgba(15,61,34,.05); }

  /* Cards tip up from flat as they arrive, and re-deal in turn on a category change. */
  .product-grid .product-card.reveal { rotate: x 16deg; transition: opacity .55s ease, translate .7s cubic-bezier(.2,.8,.2,1), scale .7s cubic-bezier(.2,.8,.2,1), rotate .8s cubic-bezier(.2,.8,.2,1); }
  .product-grid .product-card.reveal.is-visible { rotate: x 0deg; }
  .product-grid .product-card.is-dealt { animation: gg-deal .6s calc(var(--n, 0) * 60ms) both cubic-bezier(.2,.8,.2,1); }

}
@keyframes gg-tab-pop { 0% { scale: 1; translate: 0 0; } 45% { scale: 1.3; translate: 0 -5px; } 100% { scale: 1.14; translate: 0 -2px; } }
@keyframes gg-deal { from { opacity: 0; translate: 0 28px; rotate: x 24deg; scale: .93; } to { opacity: 1; translate: 0 0; rotate: x 0deg; scale: 1; } }

/* ---------- Framed 3D photo stage: preserve every tub and keep actions still ---------- */
@media (max-width: 900px) {
  /* No card edge: full-bleed brown that flows into the page at the bottom only (fading the
     sides and top too read as a halo of light around a dark card). */
  .hero { margin: 0; border: 0; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 130px), rgba(0,0,0,.86) calc(100% - 104px), rgba(0,0,0,.6) calc(100% - 76px), rgba(0,0,0,.32) calc(100% - 48px), rgba(0,0,0,.1) calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 130px), rgba(0,0,0,.86) calc(100% - 104px), rgba(0,0,0,.6) calc(100% - 76px), rgba(0,0,0,.32) calc(100% - 48px), rgba(0,0,0,.1) calc(100% - 22px), transparent 100%); }
  /* Room for the fades, so text, photo and Kuttappan stay clear of them. */
  .hero__stage { padding-bottom: 96px; }
  .hero .hero__inner { padding-top: 26px; }
  .hero__stage { background: radial-gradient(ellipse at 50% 75%, #44351d 0%, #251b0f 65%); }
  .hero__inner { position: relative; z-index: 2; padding: 22px 20px 16px; }
  .hero .kicker { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .hero h1 span:nth-child(2) { color: #e8f45d; }
  .hero__content > p:not(.kicker) { margin-top: 10px; }
  .hero__actions { margin-top: 16px; }
  .hero__actions .button--primary { box-shadow: 0 3px 0 #a9b45a, 0 10px 18px rgba(0,0,0,.28) !important; }
  /* Not clipped: the steam rises off the lids past the photo's top edge into the brown. */
  .hero__media { z-index: 1; margin: -6px 0 0; padding: 0 0 4px; overflow: visible; }
  .hero__media::before, .hero__media::after { display: none; }
  .hero__scene { position: relative; display: block; }
  .hero__scene picture { display: block; }
  .hero .hero__media picture img { display: block; width: 100%; height: auto; object-fit: contain; scale: 1; translate: none; animation: none !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-composite: intersect; }
  /* Steam rises from the lids of the top row. */
  .hero__steam { z-index: 2; }
  .hero__steam i { bottom: 79%; width: 44px; height: 104px; margin-left: -22px; background: radial-gradient(closest-side, rgba(255,250,240,.75), rgba(255,250,240,0)); filter: blur(6px); }
  .hero__steam i:nth-child(1) { left: 34%; }
  .hero__steam i:nth-child(2) { left: 49%; }
  .hero__steam i:nth-child(3) { left: 65%; }
  .hero__steam i:nth-child(4) { left: 26%; bottom: 46%; scale: .8; }
  .hero__steam i:nth-child(5) { left: 73%; bottom: 46%; scale: .8; }
}
/* Shorter phones: drop the longer line so the whole line-up stays on the first screen. */
@media (max-width: 900px) and (max-height: 760px) {
  .hero .hero__content > p:not(.kicker) { display: none; }
}

/* Contact-driven dock. Its reserved space remains stable while it tucks away. */
@media (max-width: 900px) {
  .mobile-tabs { transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility 0s; }
  .mobile-tabs.is-idle { transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .18s ease-in, opacity .14s ease, visibility 0s .18s; }
  .mobile-dock-handle { position: fixed; z-index: 46; bottom: max(8px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 72px; height: 44px; padding: 0; border: 1px solid #d5ded1; border-radius: 24px; color: var(--green-dark); background: #f8fcf6; box-shadow: 0 4px 14px rgba(15,61,34,.16); cursor: pointer; }
  .mobile-dock-handle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-dock-handle[hidden], .sheet-open .mobile-dock-handle, .keyboard-open .mobile-dock-handle { display: none; }
  .mobile-dock-handle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
  /* Only his resting corner face makes way for the hero and the tucked-away dock; never Kuttappan mid-sentence. */
  .hero-in-view .kp[data-state="docked"], .dock-idle .kp[data-state="docked"] { display: none; }
}
@media (max-width: 900px) and (max-height: 640px) and (orientation: portrait) {
  .hero__inner { padding: 16px 16px 12px; }
  .hero .kicker { margin-bottom: 8px; font-size: 8.5px; letter-spacing: .07em; }
  .hero h1 { font-size: 27px; }
  .hero__actions { margin-top: 12px; }
  .hero__actions .button { min-height: 44px; }
}
@media (max-width: 900px) and (max-height: 500px) {
  .hero__inner { padding: 14px 16px; }
  .hero .kicker { margin-bottom: 8px; font-size: 8.5px; letter-spacing: .07em; }
  .hero h1 { font-size: 28px; }
  .hero__actions { margin-top: 10px; }
  .hero__actions .button { min-height: 44px; }
  .hero__media { align-self: center; justify-self: center; width: 100%; height: auto; padding: 0; }
  .hero__scene picture, .hero__scene img { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-tabs, .mobile-tabs.is-idle, .mobile-tabs svg { transition: none; }
  .hero__steam i, .hero__kp img, .hero__kp, .flavour-ribbon > div { animation: none !important; }
}

/* ---------- Shop the range (phones) ---------- */
@media (max-width: 900px) {
  /* Only the chips stay pinned: the search slides up under the header (60px = search + its gap). */
  .shop-controls { top: calc(var(--mobile-header-h) - 60px); }
  /* ...but stays in view while someone is searching, so they can see what they type. */
  .shop-controls:focus-within, .shop-controls.is-searching { top: var(--mobile-header-h); }
  #productGrid, #searchEmpty { scroll-margin-top: calc(var(--mobile-header-h) + 72px); }
  /* The chip row scrolls sideways; a fade shows there is more. */
  .product-filters.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
  .product-filters.has-more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
  .product-filters.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
  /* Card text a phone can read. */
  .product-card__info > p { font-size: 13px; }
  .product-card__meta { font-size: 12px; }
  .product-card__badge { font-size: 11px; }
  .product-card__details { font-size: 12.5px; }
  .product-card__details span { font-size: 20px; line-height: 1; }
  .search-empty { margin-top: 8px; }
}

/* Hero: one button now, centred under the headline. */
@media (max-width: 900px) {
  .hero__actions, .hero .hero__actions { display: flex; flex-direction: column; align-items: center; grid-template-columns: none; }
  .hero__actions .button--primary { width: min(100%, 260px); }
}

/* Header hides on scroll down, returns on scroll up (mobile.js); the pinned chips follow it. */
@media (max-width: 900px) {
  .site-header { transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease; }
  .header-hidden .site-header { transform: translateY(-100%); box-shadow: none; }
  .shop-controls { transition: top .26s cubic-bezier(.2,.8,.2,1); }
  .header-hidden .shop-controls { top: -60px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .header-hidden .shop-controls:focus-within, .header-hidden .shop-controls.is-searching { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .shop-controls { transition: none; }
}
