:root {
  color-scheme: light;
  --brand: #f45147;
  --brand-deep: #b92f3f;
  --lime: #c9f35a;
  --lime-deep: #7b9f16;
  --cream: #fff8e9;
  --paper: #fffdf8;
  --ink: #22201d;
  --muted: #716b63;
  --line: rgba(50, 42, 34, .11);
  --success: #317558;
  --warning: #975412;
  --danger: #b42318;
  --shadow-soft: 0 18px 48px rgba(75, 43, 28, .09);
  --shadow-float: 0 18px 45px rgba(95, 35, 39, .25);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f4eee2;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { background: #f4eee2; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 8% 4%, #fff0b8 0, transparent 25%), radial-gradient(circle at 92% 16%, #ffd2ce 0, transparent 24%), var(--cream); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #2a64d6; outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; color: white; background: var(--ink); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.ui-icon { width: 24px; height: 24px; }
.app-shell { width: min(100%, 1240px); min-height: 100dvh; margin: 0 auto; padding-bottom: 118px; background: rgba(255,248,233,.82); box-shadow: 0 0 80px rgba(60, 35, 25, .08); }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 10px 18px; background: rgba(255,253,248,.90); border-bottom: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.3); }
.brand { min-height: 48px !important; display: flex; align-items: center; gap: 11px; min-width: 0; padding: 0 !important; color: var(--ink) !important; }
.brand:hover { transform: none !important; background: transparent !important; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 16px rgba(83, 42, 26, .16); }
.brand strong { display: block; font-size: 16px; letter-spacing: -.35px; }
.brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.desktop-nav { display: none; align-items: center; gap: 5px; padding: 4px; background: #f5efe4; border-radius: 18px; }
.desktop-nav-item { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; color: var(--muted); background: transparent; border: 0; border-radius: 14px; font-weight: 800; text-decoration: none; }
.desktop-nav-item.active { color: white; background: var(--brand); box-shadow: 0 8px 18px rgba(244,81,71,.25); }
.staff-nav-item { color: var(--brand-deep); }
.header-cart { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; color: var(--ink); background: var(--lime); border: 0; border-radius: 16px; }
.header-cart > span { position: absolute; right: -5px; top: -5px; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; color: white; background: var(--brand-deep); border: 2px solid white; border-radius: 999px; font-size: 11px; font-weight: 900; }
.test-pill { flex: none; padding: 7px 11px; color: var(--brand-deep); background: #f3dfc2; border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }

main { display: block; }
.page { padding: 24px 18px 12px; }
.home-page { padding-top: 14px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 5px 0 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(32px, 8vw, 48px); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 14px; font-size: 24px; line-height: 1.04; letter-spacing: -.035em; }
h3 { margin-bottom: 6px; font-size: 17px; line-height: 1.18; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.4; }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.section { margin: 34px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 25px; }

.showcase { overflow: hidden; position: relative; min-height: clamp(540px, 76dvh, 670px); display: grid; grid-template-rows: auto 1fr; color: #fff; background: linear-gradient(145deg, #f45147, #cf3346); border-radius: 32px; box-shadow: 0 28px 70px rgba(180, 48, 55, .22); isolation: isolate; }
.showcase::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(43,17,13,.08) 34%, rgba(43,17,13,.70) 100%); }
.showcase::after { content: ""; position: absolute; z-index: 3; width: 220px; height: 220px; right: -95px; top: -90px; border: 44px solid rgba(201,243,90,.55); border-radius: 48% 52% 45% 55%; transform: rotate(24deg); }
.showcase-copy { position: relative; z-index: 5; padding: 28px 24px 18px; background: linear-gradient(180deg, rgba(178,39,55,.96), rgba(217,52,64,.48) 78%, transparent); }
.showcase-copy .eyebrow { color: #ffd7bd; }
.showcase h1 { max-width: 620px; margin: 10px 0 14px; font-size: clamp(38px, 11vw, 68px); line-height: .92; }
.showcase p { max-width: 520px; margin-bottom: 0; color: #ffe8d6; font-size: 16px; line-height: 1.45; }
.showcase-media { position: relative; min-height: 290px; }
.showcase-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.showcase-media span { position: absolute; z-index: 4; right: 14px; bottom: 12px; padding: 6px 9px; color: rgba(255,255,255,.86); background: rgba(28,17,14,.45); border-radius: 999px; backdrop-filter: blur(10px); font-size: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 19px; border: 0; border-radius: 16px; color: white; background: var(--brand); font-weight: 850; text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; box-shadow: 0 10px 24px rgba(244,81,71,.18); }
.button:hover { background: var(--brand-deep); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.light { color: var(--brand-deep); background: #fff8ef; box-shadow: 0 10px 25px rgba(37,20,15,.18); }
.button.light:hover { background: white; }
.button.showcase-link { color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.30); backdrop-filter: blur(10px); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button.secondary:hover { background: #fff8ee; }
.button.ghost { min-height: 44px; padding: 0 8px; color: var(--brand); background: transparent; }
.button.wide { width: 100%; }
.button.danger { color: var(--danger); background: #fff; border: 1px solid #efc7c3; }

.delivery-card { display: flex; align-items: center; gap: 13px; margin: 14px 2px 0; padding: 14px 16px; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-radius: 19px; }
.delivery-card .symbol { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--brand); background: #f3dcc5; border-radius: 15px; }
.delivery-card strong, .delivery-card span { display: block; }
.delivery-card > span:last-child { min-width: 0; }
.delivery-card span span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.promo-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 86%); gap: 14px; overflow-x: auto; padding: 2px 2px 13px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promo-scroll::-webkit-scrollbar, .category-row::-webkit-scrollbar { display: none; }
.promo-card { overflow: hidden; position: relative; min-height: 260px; padding: 0; border: 0; border-radius: 27px; color: white; text-align: left; scroll-snap-align: start; box-shadow: var(--shadow-soft); }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.promo-card:hover img { transform: scale(1.025); }
.promo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,14,11,.05) 22%, rgba(25,14,11,.82) 100%); }
.promo-overlay { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 22px; }
.promo-card .eyebrow { color: #ffe1c8; }
.promo-card h2 { max-width: 260px; margin: 6px 0 8px; font-size: 29px; }
.promo-card p { max-width: 300px; margin-bottom: 15px; color: rgba(255,255,255,.82); line-height: 1.38; }
.promo-action { min-height: 44px; padding: 0 15px; color: var(--brand-deep); background: #fff8ef; border: 0; border-radius: 14px; font-weight: 900; box-shadow: 0 8px 20px rgba(31,17,13,.18); }
.promo-action:hover { background: white; }
.promo-list { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; }

.subscription-hero { overflow: hidden; display: grid; color: white; background: var(--brand-deep); border-radius: 28px; box-shadow: var(--shadow-soft); }
.subscription-copy { padding: 26px 22px; }
.subscription-copy .eyebrow { color: #ffd7bd; }
.subscription-copy h1 { margin: 10px 0 13px; }
.subscription-copy p { margin: 0; color: #ffe8d6; line-height: 1.5; }
.subscription-hero img { width: 100%; height: 290px; object-fit: cover; }
.subscription-card, .payment-card { margin-top: 16px; padding: 21px; background: rgba(255,255,255,.78); border-radius: 25px; box-shadow: var(--shadow-soft); }
.subscription-price { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.subscription-price span, .subscription-price small { color: var(--muted); }
.subscription-price strong { grid-row: span 2; font-size: 32px; letter-spacing: -.04em; }
.benefit-list { display: grid; gap: 11px; margin: 18px 0; }
.benefit-list div { padding: 15px; background: #fff8ef; border-radius: 17px; }
.benefit-list strong, .benefit-list span { display: block; }
.benefit-list span { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.sbp-mark { width: 70px; margin-bottom: 18px; padding: 11px 0; color: white; background: #151515; border-radius: 15px; text-align: center; font-weight: 950; letter-spacing: .08em; }
.payment-flow { display: grid; gap: 10px; margin: 18px 0; }
.payment-flow > div { display: grid; grid-template-columns: 38px 1fr; gap: 2px 11px; align-items: center; padding: 14px; background: #fff8ef; border-radius: 18px; }
.payment-flow > div > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--brand); border-radius: 13px; font-weight: 900; }
.payment-flow strong, .payment-flow small { display: block; }
.payment-flow small { color: var(--muted); line-height: 1.35; }
.payment-wait { display: flex; align-items: center; gap: 13px; margin: 18px 0 12px; padding: 16px; color: #143d2e; background: #e4f3ea; border-radius: 18px; }
.payment-wait strong, .payment-wait small { display: block; }
.payment-wait small { margin-top: 3px; color: #416b59; line-height: 1.35; }
.payment-spinner { width: 30px; height: 30px; flex: none; border: 3px solid #b8d9c7; border-top-color: #236a4c; border-radius: 50%; animation: payment-spin .8s linear infinite; }
.payment-note { margin: 14px 3px 0; text-align: center; }
.payment-modal .button.secondary { margin-top: 9px; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
.subscription-status { padding: 21px; background: rgba(255,255,255,.78); border-radius: 24px; box-shadow: var(--shadow-soft); }
.subscription-status.active { color: #143d2e; background: linear-gradient(145deg, #effaf4, #d9f0e3); }
.subscription-status.expired { background: #f2e5da; }

.menu-intro { overflow: hidden; position: relative; margin-bottom: 18px; padding: 27px 24px; color: white; background: linear-gradient(125deg, #ef4c45 0 68%, #ff7b51 100%); border-radius: 28px; box-shadow: 0 18px 42px rgba(189,52,57,.16); }
.menu-intro::after { content: ""; position: absolute; right: -46px; bottom: -56px; width: 150px; height: 150px; background: var(--lime); border-radius: 44% 56% 63% 37%; transform: rotate(18deg); }
.menu-intro .eyebrow { color: #f1ffc0; }
.menu-intro h1 { position: relative; z-index: 1; margin: 8px 0; font-size: clamp(42px, 10vw, 68px); }
.menu-intro p { position: relative; z-index: 1; max-width: 570px; margin: 0; color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.45; }
.category-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 4px 18px 16px; scrollbar-width: none; scroll-padding-inline: 18px; }
.chip { min-height: 46px; flex: none; padding: 0 18px; color: #544d46; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; }
.chip.active { color: #251f1a; background: var(--lime); border-color: #aedc38; box-shadow: 0 8px 18px rgba(117,151,18,.18); }
.search-box { position: relative; margin-bottom: 14px; }
.search-box span { position: absolute; left: 17px; top: 50%; display: grid; place-items: center; color: var(--muted); transform: translateY(-50%); }
.search-box input { width: 100%; min-height: 58px; padding: 0 16px 0 50px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgba(73,45,31,.06); }
.catalog-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 15px; }
.catalog-result strong { font-size: 17px; }
.catalog-result span { color: var(--muted); font-size: 13px; }
.catalog-note { margin: 24px 0 10px; padding: 15px 17px; color: #655e53; background: #fff4cc; border-radius: 17px; font-size: 13px; line-height: 1.45; }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.product-card { overflow: hidden; display: grid; grid-template-columns: 132px minmax(0, 1fr); min-width: 0; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 12px 30px rgba(76,46,30,.07); }
.product-card.product-unavailable { background: rgba(255,255,255,.48); }
.product-card.product-unavailable .product-visual img { filter: saturate(.68); }
.product-visual { overflow: hidden; position: relative; display: block; width: 100%; height: 100%; min-height: 172px; padding: 0; border: 0; background: #f1dfcf; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-visual:hover img { transform: scale(1.035); }
.image-note { position: absolute; z-index: 2; left: 9px; bottom: 9px; padding: 6px 8px; color: rgba(255,255,255,.96); background: rgba(32,21,17,.62); border-radius: 999px; backdrop-filter: blur(8px); font-size: 11px; line-height: 1.1; }
.product-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 14px; }
.product-category { margin-bottom: 6px; overflow: hidden; color: var(--brand-deep); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-body h3 { min-height: 0; margin-bottom: 8px; font-size: 17px; }
.product-body p { min-height: 0; margin-bottom: 10px; }
.variant-picker { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 3px 0 11px; color: var(--muted); font-size: 12px; font-weight: 800; }
.variant-picker select { min-width: 92px; min-height: 38px; padding: 0 29px 0 11px; color: var(--ink); background: #fff8e8; border: 1px solid #efcfaa; border-radius: 12px; font-weight: 900; }
.availability-pill { align-self: flex-start; margin: -4px 0 10px; padding: 5px 8px; color: #784535; background: #f0ddd1; border-radius: 999px; font-size: 11px; font-weight: 800; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-size: 20px; font-weight: 950; white-space: nowrap; letter-spacing: -.035em; }
.add-button { width: 46px; height: 46px; flex: none; padding: 0; color: white; background: var(--brand); border: 0; border-radius: 15px; box-shadow: 0 8px 17px rgba(244,81,71,.25); font-size: 25px; line-height: 1; }

.info-banner { display: flex; gap: 11px; margin: 14px 0; padding: 14px; color: #603a17; background: #f5e4c9; border-radius: 16px; font-size: 13px; line-height: 1.45; }
.empty-state { padding: 54px 24px; text-align: center; background: rgba(255,255,255,.62); border-radius: 24px; }
.empty-state .empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; color: var(--brand); background: #f1ddc9; border-radius: 50%; }
.empty-state .empty-icon .ui-icon { width: 32px; height: 32px; }

.cart-list { display: grid; gap: 11px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 13px; align-items: center; padding: 11px; background: rgba(255,255,255,.72); border-radius: 21px; }
.cart-image { width: 72px; height: 72px; object-fit: cover; border-radius: 17px; }
.cart-line h3 { margin-bottom: 5px; }
.quantity { display: flex; align-items: center; gap: 4px; }
.quantity button { width: 38px; height: 38px; padding: 0; color: var(--brand); background: #f5e8da; border: 0; border-radius: 12px; font-size: 21px; }
.quantity strong { min-width: 24px; text-align: center; }
.summary { margin-top: 17px; padding: 19px; background: rgba(255,255,255,.78); border-radius: 22px; box-shadow: 0 10px 28px rgba(76,46,30,.05); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0; }
.summary-row.total { padding-top: 15px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 900; }

.field { display: grid; gap: 7px; margin: 15px 0; }
.field label, .field .label { font-size: 14px; font-weight: 850; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 15px; }
.field textarea { min-height: 92px; resize: vertical; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 750; }
.check-row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 17px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.check-row input { width: 20px; height: 20px; margin: 0; }
.fulfillment-options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.fulfillment-options legend { margin-bottom: 10px; font-size: 18px; font-weight: 900; }
.fulfillment-option { display: grid; grid-template-columns: 24px 1fr; gap: 11px; align-items: start; padding: 15px; background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.fulfillment-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(155,61,45,.12); }
.fulfillment-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.fulfillment-option strong, .fulfillment-option small { display: block; }
.fulfillment-option small { margin-top: 4px; color: var(--muted); line-height: 1.35; }

.contact-card { padding: 24px; background: linear-gradient(145deg, #fff8ef, #ecd3b8); border: 1px solid rgba(139,69,19,.12); border-radius: 28px; box-shadow: var(--shadow-soft); }
.contact-card h2 { margin: 8px 0 12px; }
.contact-card-large { max-width: 760px; margin: 0 auto; }
.contact-address { max-width: 560px; font-size: clamp(22px, 5vw, 34px); font-weight: 900; line-height: 1.12; }
.contact-list { display: grid; gap: 1px; margin: 24px 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 18px; }
.contact-list div { display: grid; grid-template-columns: minmax(120px, .6fr) 1fr; gap: 16px; padding: 15px; background: rgba(255,255,255,.82); }
.contact-list dt { font-weight: 850; }
.contact-list dd { margin: 0; color: var(--muted); }

.profile-card { padding: 23px; background: linear-gradient(145deg, #fff, #f2dfca); border-radius: 25px; box-shadow: var(--shadow-soft); }
.avatar { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 15px; color: white; background: var(--brand); border-radius: 21px; font-size: 24px; font-weight: 900; }
.order-card { margin: 10px 0; padding: 17px; background: rgba(255,255,255,.76); border-radius: 20px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; }
.status { color: var(--warning); font-size: 12px; font-weight: 850; }
.order-items { margin: 12px 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.back-button { min-height: 44px; padding: 0 10px 0 0; color: var(--brand); background: transparent; border: 0; font-weight: 850; }
.success-card { padding: 30px 22px; background: rgba(255,255,255,.76); border-radius: 25px; text-align: center; }
.success-card .secondary { margin-top: 10px; }
.success-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 16px; color: white; background: var(--success); border-radius: 50%; font-size: 36px; }

.floating-cart { position: fixed; z-index: 45; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 1140px); min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 19px; color: white; background: linear-gradient(110deg, var(--brand-deep), var(--brand)); border: 0; border-radius: 19px; box-shadow: var(--shadow-float); transform: translateX(-50%); font-weight: 850; }
.floating-cart span:last-child { white-space: nowrap; }
.bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: 0; width: min(100%, 1240px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 9px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,253,248,.96); border-top: 1px solid var(--line); transform: translateX(-50%); backdrop-filter: blur(22px) saturate(1.3); }
.nav-item { min-height: 61px; display: grid; place-items: center; align-content: center; gap: 3px; color: #88766c; background: transparent; border: 0; border-radius: 15px; font-size: 10px; font-weight: 750; text-decoration: none; }
.nav-item .nav-icon { display: grid; place-items: center; }
.nav-item.active { color: var(--brand-deep); background: #fff0ec; }
.nav-item.active .nav-icon { transform: translateY(-1px); }

.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(28,19,15,.58); backdrop-filter: blur(5px); }
.modal { width: min(100%, 620px); max-height: 94dvh; overflow-y: auto; padding: 20px; background: var(--paper); border-radius: 29px 29px 0 0; box-shadow: var(--shadow-float); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; }
.close-button { width: 44px; height: 44px; color: var(--ink); background: rgba(255,255,255,.84); border: 0; border-radius: 50%; box-shadow: 0 6px 18px rgba(37,25,20,.14); font-size: 23px; }
.product-modal { overflow: hidden; padding: 0; }
.detail-visual { overflow: hidden; position: relative; aspect-ratio: 1.45 / 1; background: #e8d9ca; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-visual .close-button { position: absolute; z-index: 3; right: 14px; top: 14px; }
.product-modal-body { padding: 22px; }
.product-modal-body h2 { margin: 8px 0 12px; font-size: clamp(28px, 7vw, 38px); }
.toast { position: fixed; z-index: 80; left: 50%; top: 82px; max-width: calc(100% - 32px); padding: 13px 17px; color: white; background: var(--ink); border-radius: 15px; box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transform: translate(-50%, -12px); transition: opacity .18s, transform .18s; font-size: 14px; font-weight: 750; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.network-status, .update-banner { position: fixed; z-index: 90; left: 50%; width: min(calc(100% - 24px), 880px); padding: 12px 15px; color: white; background: #64271f; border-radius: 14px; box-shadow: var(--shadow-float); transform: translateX(-50%); font-size: 13px; font-weight: 750; }
.network-status { top: calc(8px + env(safe-area-inset-top)); text-align: center; }
.update-banner { bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.update-banner .button { min-height: 40px; padding: 0 14px; background: white; }
.network-status[hidden], .update-banner[hidden] { display: none; }
.offline-body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; margin: 0; padding: 24px; background: var(--paper); }
.offline-card { width: min(100%, 480px); padding: 28px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); }
.offline-card h1 { margin-top: 0; }
.offline-card p { line-height: 1.55; }
.offline-warning { padding: 14px; background: #fff0dc; border-radius: 14px; font-weight: 750; }
.offline-card .button { display: inline-grid; place-items: center; text-decoration: none; }

@media (min-width: 620px) {
  .page { padding-inline: 28px; }
  .topbar { padding-inline: 28px; }
  .showcase { min-height: 560px; grid-template-columns: .92fr 1.08fr; grid-template-rows: 1fr; }
  .showcase-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px 32px; background: linear-gradient(90deg, rgba(190,43,58,.98), rgba(225,61,68,.68) 82%, transparent); }
  .showcase h1 { font-size: clamp(48px, 7vw, 66px); }
  .showcase-media { min-height: 560px; }
  .showcase::before { background: linear-gradient(90deg, transparent 42%, rgba(43,17,13,.18) 100%); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
  .product-card { display: flex; flex-direction: column; }
  .product-visual { aspect-ratio: 1.12 / 1; height: auto; min-height: 0; }
  .promo-scroll { grid-auto-columns: minmax(340px, 55%); }
  .promo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-hero { grid-template-columns: 1fr 1fr; }
  .subscription-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
  .subscription-hero img { height: 100%; min-height: 380px; }
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: 29px; }
}
@media (min-width: 760px) {
  .app-shell { padding-bottom: 48px; }
  .desktop-nav { display: flex; }
  .bottom-nav { display: none; }
  .floating-cart { width: min(calc(100% - 48px), 480px); bottom: 24px; }
  .category-row { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 960px) {
  .page { padding-inline: 40px; }
  .topbar { padding-inline: 40px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-scroll { grid-auto-columns: minmax(360px, 42%); }
}
@media (min-width: 1180px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 370px) {
  .page { padding-inline: 12px; }
  .home-page { padding-inline: 10px; }
  .topbar { padding-inline: 12px; }
  .brand span { display: none; }
  .showcase { min-height: 520px; border-radius: 25px; }
  .showcase-copy { padding: 23px 19px 14px; }
  .showcase h1 { font-size: 36px; }
  .showcase p { font-size: 14px; }
  .product-body { padding: 11px; }
  .product-body h3 { font-size: 15px; }
  .product-body p { font-size: 12px; }
  .image-note { max-width: calc(100% - 18px); font-size: 10px; }
  .contact-list div { grid-template-columns: 1fr; gap: 5px; }
  .cart-line { grid-template-columns: 58px 1fr; }
  .cart-image { width: 58px; height: 58px; }
  .quantity { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
