/* =====================================================================
   THE LITTLE CAFE — HYBRID VISUAL SYSTEM
   Grok-inspired editorial calm + Store 3331's real product imagery/data.
   Vanilla CSS only. Loaded after styles.css as a reversible presentation layer.
   ===================================================================== */
:root {
  --canvas: #f3efe6;
  --surface: #fffdf8;
  --surface-soft: #f6f1e8;
  --surface-tint: #ece5d8;
  --ink: #1b2a21;
  --ink-strong: #14261d;
  --muted: #68736a;
  --muted-soft: #8a9188;
  --line: #e5dccd;
  --line-strong: #d6cbb9;
  --forest: #103e30;
  --forest-deep: #0b382b;
  --forest-mid: #286348;
  --forest-soft: #e7eee7;
  --red: #b9362d;
  --orange: #d98a3c;
  --gold: #d4ad69;
  --warning-bg: #fff5e2;
  --warning-line: #e9d7b4;
  --warning-ink: #76531f;
  --success-bg: #eaf2e9;
  --success-ink: #28563b;
  --danger-bg: #fff0ed;
  --danger-ink: #9b342e;
  --shadow-xs: 0 2px 7px rgba(38, 43, 31, .035);
  --shadow-sm: 0 9px 25px rgba(38, 43, 31, .055);
  --shadow-md: 0 20px 48px rgba(24, 39, 29, .12);
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 19px;
  --radius-xl: 24px;
  --radius-2xl: 29px;
  --theme-accent: #286348;
  --theme-accent-soft: #e7eee7;
  --theme-border: #e5dccd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html, body, .app-shell { background: var(--canvas); }
body { color: var(--ink); }
.app-shell { width: min(100%, 1320px); }
.topbar { padding: max(11px, env(safe-area-inset-top)) 28px 11px; background: rgba(248, 244, 235, .94); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.65); }
.topbar-inner { width: min(100%, 1120px); min-height: 58px; }
.brand-mark { border-radius: 13px 13px 6px 13px; background: var(--forest); box-shadow: inset 0 -3px 0 rgba(0,0,0,.13); }
.brand-copy strong { color: var(--ink-strong); font-size: 16px; letter-spacing: -.35px; }
.brand-copy small { color: #7c867c; font-size: 9px; letter-spacing: 1.2px; }
.store-indicator { color: #68736a; }
.language-control select { min-height: 44px; border-color: var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-strong); font-size: 12px; font-weight: 750; }
.main-content { width: min(100%, 1120px); padding: 36px 28px 80px; }
.site-footer { background: rgba(255,253,248,.74); border-top-color: var(--line); color: #838b81; }

/* Editorial hero: preserve the real Store 3331 product photography. */
.home-page { gap: 32px; }
.hero { min-height: 310px; grid-template-columns: minmax(0,1.12fr) minmax(270px,.88fr); gap: 34px; padding: 40px 44px; border-radius: 28px; background: var(--forest-deep); box-shadow: 0 19px 45px rgba(15, 48, 35, .14); }
.hero::before { background: linear-gradient(135deg, rgba(255,255,255,.045), transparent 48%), repeating-linear-gradient(135deg, transparent 0 42px, rgba(255,255,255,.025) 43px 44px, transparent 45px 86px); }
.hero::after { right: -115px; bottom: -240px; width: 470px; height: 470px; border-color: rgba(246, 238, 220, .13); box-shadow: 0 0 0 34px rgba(246,238,220,.025), 0 0 0 76px rgba(246,238,220,.018); }
.hero-content { max-width: 600px; }
.hero h1 { max-width: 630px; margin: 18px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(39px, 4.8vw, 59px); line-height: 1.02; letter-spacing: -1.6px; font-weight: 500; }
.hero p { max-width: 520px; color: #e1e8df; font-size: 15px; line-height: 1.7; }
.eyebrow { color: #e1d4b9; font-size: 10px; letter-spacing: 1.5px; }
.hero-foot { color: #d9e3d9; font-size: 10px; letter-spacing: .55px; }
.hero-help { border-radius: 999px; min-height: 44px; padding: 9px 15px; background: rgba(255,255,255,.08); }
.hero-help:hover { background: rgba(255,255,255,.15); }
.hero-art-orbit { border-color: rgba(244,237,219,.2); box-shadow: 0 0 0 22px rgba(244,237,219,.035), 0 0 0 50px rgba(244,237,219,.02); }
.hero-art-panel { background: #f4eddf; border: 7px solid rgba(255,253,248,.95); box-shadow: 0 18px 35px rgba(0,0,0,.2); }
.hero-art-panel-main { transform: rotate(2deg); border-radius: 20px 20px 8px 20px; }
.hero-art-panel-small { transform: rotate(-5deg); }
.hero-art-note { border-radius: 12px; border-color: rgba(255,255,255,.2); background: rgba(8,39,28,.7); }
.hero-art-note span { color: #e2bd7c; }

/* Promotion cards: generous but still led by accurate existing images. */
.section-head h2, .quick-flow-head h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.55px; }
.section-head h2 { font-size: clamp(24px, 2.5vw, 30px); }
.section-kicker, .mini-eyebrow { letter-spacing: 1.4px; }
.promo-grid { gap: 18px; }
.promo-card { min-height: 258px; grid-template-columns: minmax(158px,.82fr) minmax(0,1.18fr); border-color: #e2d8c9; border-radius: 20px; background: var(--surface); box-shadow: 0 5px 18px rgba(54,45,30,.045); }
.promo-card:hover { transform: translateY(-2px); border-color: #c8cbb8; box-shadow: 0 14px 32px rgba(54,45,30,.085); }
.promo-media { background: #eee7d9; }
.promo-media::after { inset: 64% 0 0; background: linear-gradient(transparent,rgba(25,35,28,.3)); }
.promo-preview { min-height: 258px; }
.promo-media-label { font-size: 9px; letter-spacing: .7px; }
.promo-tag { border-radius: 999px; background: #fae8df; color: #9c392f; font-size: 10px; padding: 7px 10px; }
.promo-body { padding: 22px 21px 18px; }
.promo-title-line h3 { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600; letter-spacing: -.45px; }
.promo-title-line h3 span { font-family: inherit; font-size: 12px; color: #8b9085; font-weight: 500; }
.promo-price-row { margin-top: 19px; }
.promo-price-row > div > small { font-size: 9px; letter-spacing: 1px; }
.promo-price { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 3.5vw, 43px); font-weight: 600; letter-spacing: -1px; }
.promo-includes { font-size: 10px; }
.promo-includes b { background: #eee9df; }
.promo-detail { color: #667066; font-size: 12px; line-height: 1.55; }
.pricing-status-note { border-radius: 10px; font-size: 10px; }
.primary-button, .secondary-button, .ghost-button { min-height: 48px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.primary-button { background: var(--forest); box-shadow: 0 2px 0 #08291e; }
.primary-button:hover { background: #174b39; box-shadow: 0 3px 0 #08291e, 0 8px 18px rgba(15,48,35,.11); }
.secondary-button { border-color: #ddd4c5; background: #fffdf8; color: var(--forest); }
.ghost-button { border-color: #e4dccf; color: var(--forest); }
.poster-link { font-size: 10px; color: var(--theme-accent); }
.quick-flow { padding: 23px 24px 24px; border-color: #e3dbcd; border-radius: 19px; background: rgba(255,253,248,.92); box-shadow: 0 3px 12px rgba(54,45,30,.03); }
.quick-flow-head h2 { font-size: 20px; }
.quick-flow-item { border-color: #e9e3d8; border-radius: 13px; background: #f8f5ee; }
.quick-flow-item > span { border-radius: 10px; background: #e9eee7; }
.home-note { border-color: #e5dccd; border-radius: 13px; background: rgba(255,253,248,.78); }

/* Selection flow — calmer, clearer, larger reading rhythm. */
.back-link { min-height: 44px; color: var(--theme-accent); font-size: 12px; }
.builder-heading { margin-top: 11px; }
.builder-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px,3.7vw,38px); font-weight: 600; letter-spacing: -.9px; }
.builder-heading p { font-size: 12px; }
.price-pill { min-width: 134px; padding: 12px 15px; border-color: #e4dacb; border-radius: 14px; background: var(--surface); box-shadow: 0 3px 10px rgba(54,45,30,.035); }
.price-pill small { letter-spacing: .9px; }
.price-pill strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; letter-spacing: -.4px; }
.help-inline { border-color: #e2d9ca; border-radius: 999px; min-height: 42px; padding: 8px 14px; background: var(--surface); font-size: 11px; }
.stepper { gap: 9px; margin: 22px 0 14px; }
.step-chip { min-height: 48px; gap: 11px; padding: 10px 13px; border-color: #e5dccd; border-radius: 13px; background: var(--surface); }
.step-chip > span { width: 28px; height: 28px; flex-basis: 28px; border-color: #e1dacd; border-radius: 9px; background: #f4f0e8; font-size: 10px; }
.step-chip strong { font-size: 11px; }
.step-chip.active { border-color: var(--forest); background: var(--forest); box-shadow: 0 5px 14px rgba(16,62,48,.13); }
.step-chip.done { border-color: #d4e0d3; background: #edf2e9; }
.tap-guidance { margin-bottom: 16px; padding: 12px 14px; border-color: #e6dfd3; border-radius: 12px; background: #f8f5ee; font-size: 11px; }
.content-panel { padding: 25px; border-color: #e5dccd; border-radius: 20px; background: var(--surface); box-shadow: 0 4px 16px rgba(54,45,30,.035); }
.content-panel h2 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.13; font-weight: 600; letter-spacing: -.45px; }
.panel-hint { margin-bottom: 19px; font-size: 12px; line-height: 1.6; }
.group-label { margin: 20px 0 11px; font-size: 10px; letter-spacing: .9px; }
.group-label small { font-size: 10px; }
.option-grid { gap: 12px; }
.product-card { min-height: 214px; gap: 9px; padding: 11px; border-color: #e5dccd; border-radius: 15px; background: #fffefa; }
.product-card.selected { padding: 10px; background: #f2f6ef; box-shadow: 0 0 0 3px var(--theme-accent-soft); }
.product-card.selected::after { top: 11px; right: 11px; width: 26px; height: 26px; }
.product-thumb { height: 122px; border-radius: 11px; background: #f2eee5; }
.product-name { font-size: 12px; font-weight: 800; line-height: 1.4; }
.product-original { font-size: 10px; }
.product-detail { font-size: 10px; line-height: 1.45; }
.price-tag { border-radius: 999px; padding: 6px 9px; background: #f9eadc; color: #925121; font-size: 10px; }
.list-options { gap: 11px; }
.list-card { min-height: 76px; gap: 12px; padding: 12px 14px; border-color: #e5dccd; border-radius: 13px; background: #fffefa; }
.list-card.selected { padding: 11px 13px; background: #f2f6ef; }
.list-icon { width: 46px; height: 46px; border-radius: 11px; background: #f1ede4; }
.list-copy strong { font-size: 12px; }
.list-copy em, .list-copy small { font-size: 10px; }
.sticky-action { border-top-color: rgba(222,214,201,.95); background: rgba(250,247,240,.97); box-shadow: 0 -9px 26px rgba(39,43,32,.055); }
.sticky-total strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; letter-spacing: -.3px; }
.sticky-selection-state { border-radius: 999px; border-color: #e3dbce; background: #fffefa; padding: 5px 9px; font-size: 9px; }
.sticky-inner .primary-button { min-height: 50px; border-radius: 12px; }

/* Cashier handoff: editorial receipt card with a quiet light body. */
.summary-card { padding: 0 27px 25px; border-color: #e4dacb; border-radius: 21px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 36px rgba(45,42,31,.075); }
.summary-head { margin: 0 -27px; padding: 22px 27px 18px; border: 0; border-radius: 20px 20px 0 0; background: var(--forest-deep); color: #dce5dc; font-size: 10px; letter-spacing: 1.15px; }
.summary-price { margin: 23px 0 6px; color: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px,8vw,66px); font-weight: 600; letter-spacing: -1.3px; }
.summary-caption { margin-bottom: 19px; color: var(--muted); font-size: 12px; }
.summary-line { border-top-color: #e8e0d4; padding: 15px 0; }
.summary-line small { color: #7e877c; font-size: 9px; letter-spacing: .75px; }
.summary-line strong { color: var(--ink-strong); font-size: 14px; }
.summary-line .amount { color: var(--ink-strong); font-size: 14px; }
.summary-line.savings-line .amount, .summary-line.savings-line strong { color: #2c6846; }
.summary-card .pricing-status-note { border-color: #ebd6ae; background: #fff5e2; color: #74531e; }
.cashier-callout { border-color: #e3dacd; border-radius: 13px; background: #f5f1e8; color: var(--ink-strong); text-align: left; }
.cashier-callout strong { font-size: 14px; }
.cashier-callout small { color: #68736a; font-size: 11px; }
.cashier-actions .secondary-button, .cashier-actions .ghost-button { background: var(--surface); }
.price-disclaimer { font-size: 11px; color: #657168; }
body.cashier-mode, body.cashier-mode .app-shell { background: var(--canvas); }
body.cashier-mode .topbar { background: rgba(248,244,235,.96); }

/* Ambient utility stays secondary and never overlaps the key task. */
.ambient-dock { min-width: 46px; min-height: 46px; border: 1px solid #e1d7c8; border-radius: 999px; background: #fffdf8; color: var(--forest); box-shadow: 0 3px 12px rgba(45,42,31,.06); }
.ambient-dock.is-compact { width: 46px; min-width: 46px; }
.ambient-panel { border-color: #e4dacb; border-radius: 17px; background: #fffdf8; box-shadow: 0 18px 46px rgba(36,39,30,.16); }
.ambient-track { border-radius: 11px; }
.ambient-controls button { border-radius: 11px; }
.help-dialog { border-color: #e4dacb; border-radius: 21px; background: #fffdf8; }
.help-sheet h2 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 600; letter-spacing: -.5px; }
.help-step > span { border-radius: 11px; }

/* Locale-specific accents from the existing culture layer remain intact. */
body[data-culture="ms-MY"] .hero { background: linear-gradient(118deg,#103e30 0%,#315b43 100%); }
body[data-culture="zh-CN"] .hero { background: linear-gradient(125deg,#812d2a 0%,#a9362d 70%,#b86f3d 100%); }
body[data-culture="zh-TW"] .hero { background: linear-gradient(125deg,#193e48 0%,#286b6e 72%,#b8785b 100%); }
body[data-culture="ja"] .hero { background: linear-gradient(125deg,#1c3152,#344e78); }
body[data-culture="ko"] .hero { background: linear-gradient(125deg,#40395a,#66577c 72%,#a87578); }
body[data-culture="ms-MY"] .promo-price, body[data-culture="zh-CN"] .promo-price, body[data-culture="zh-TW"] .promo-price, body[data-culture="ja"] .promo-price, body[data-culture="ko"] .promo-price { color: var(--red); }

@media (max-width: 900px) {
  .hero { gap: 22px; padding: 34px 34px; }
  .promo-card { grid-template-columns: minmax(132px,.76fr) minmax(0,1.24fr); }
  .promo-body { padding: 18px 17px 16px; }
}
@media (max-width: 640px) {
  .topbar { padding-right: 16px; padding-left: 16px; }
  .main-content { padding: 20px 16px 62px; }
  .home-page { gap: 25px; }
  .hero { grid-template-columns: minmax(0,1fr) 112px; gap: 4px; padding: 24px 18px 22px; border-radius: 22px; }
  .hero h1 { margin: 13px 0 10px; font-size: clamp(29px,7.2vw,38px); line-height: 1.04; letter-spacing: -.8px; }
  .hero p { font-size: 12px; line-height: 1.6; }
  .hero-foot { margin-top: 15px; font-size: 8px; }
  .hero-help { min-height: 42px; margin-top: 13px; padding: 8px 12px; font-size: 10px; }
  .hero-art { min-height: 178px; }
  .hero-art-orbit { width: 144px; height: 144px; right: -23px; top: 47%; }
  .hero-art-panel-main { top: 32px; right: 0; width: 112px; height: 105px; border-width: 5px; border-radius: 13px; }
  .hero-art-panel-small { right: -7px; bottom: 2px; width: 59px; height: 59px; border-width: 4px; }
  .hero-art-note { left: -13px; bottom: 4px; padding: 6px 8px; border-radius: 8px; }
  .hero-art-note span { font-size: 14px; }
  .hero-art-note small { font-size: 7px; }
  .section-head h2 { font-size: 23px; }
  .promo-grid { grid-template-columns: 1fr; gap: 12px; }
  .promo-card { min-height: 0; grid-template-columns: 118px minmax(0,1fr); border-radius: 17px; }
  .promo-body { padding: 14px 13px 12px; }
  .promo-title-line h3 { font-size: 19px; }
  .promo-title-line h3 span { font-size: 10px; }
  .promo-price-row { margin-top: 11px; }
  .promo-price-row > div > small { font-size: 8px; }
  .promo-price { font-size: 32px; }
  .promo-includes { display: none; }
  .promo-body .primary-button { min-height: 45px; margin-top: 11px; font-size: 11px; }
  .promo-media-label { left: 8px; bottom: 8px; font-size: 7px; }
  .promo-tag { top: 8px; left: 8px; padding: 5px 7px; font-size: 8px; }
  .quick-flow { padding: 18px 15px; border-radius: 16px; }
  .quick-flow-grid { gap: 7px; }
  .quick-flow-item { min-height: 108px; padding: 10px 8px; border-radius: 11px; }
  .quick-flow-item strong { font-size: 10px; }
  .quick-flow-item small { font-size: 9px; }
  .home-note { padding: 12px; }
  .home-note p { font-size: 10px; }
  .builder-heading { align-items: center; gap: 10px; }
  .builder-heading h1 { font-size: 27px; }
  .builder-heading p { font-size: 11px; }
  .price-pill { min-width: 108px; padding: 10px 11px; border-radius: 12px; }
  .price-pill strong { font-size: 22px; }
  .stepper { gap: 6px; margin: 16px 0 12px; }
  .step-chip { min-height: 47px; gap: 6px; padding: 8px 7px; border-radius: 11px; }
  .step-chip > span { width: 23px; height: 23px; flex-basis: 23px; }
  .step-chip strong { font-size: 9px; }
  .tap-guidance { padding: 10px 11px; border-radius: 10px; font-size: 10px; }
  .content-panel { padding: 19px 14px; border-radius: 17px; }
  .content-panel h2 { font-size: 23px; }
  .panel-hint { font-size: 11px; }
  .option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-card { min-height: 183px; padding: 9px; gap: 7px; border-radius: 13px; }
  .product-card.selected { padding: 8px; }
  .product-thumb { height: 99px; border-radius: 10px; }
  .product-name { font-size: 11px; }
  .product-original, .product-detail { font-size: 9px; }
  .list-options { grid-template-columns: 1fr; gap: 8px; }
  .list-card { min-height: 72px; }
  .sticky-action { margin: 12px -16px -62px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .sticky-inner { min-height: 60px; grid-template-columns: 78px minmax(0,1fr) 104px; gap: 8px; }
  .sticky-total strong { font-size: 22px; }
  .sticky-selection-state { font-size: 8px; padding: 4px 6px; }
  .sticky-selection small { font-size: 8px; }
  .sticky-inner .primary-button { min-height: 48px; font-size: 10px; }
  .summary-card { padding: 0 17px 19px; border-radius: 17px; }
  .summary-head { margin: 0 -17px; padding: 18px 17px 15px; border-radius: 16px 16px 0 0; font-size: 8px; }
  .summary-price { margin-top: 21px; font-size: 48px; }
  .summary-line { gap: 12px; padding: 13px 0; }
  .summary-line strong, .summary-line .amount { font-size: 12px; }
  .cashier-callout { padding: 13px; }
  .cashier-actions { gap: 8px; }
  .cashier-actions .primary-button, .cashier-actions .secondary-button, .cashier-actions .ghost-button { min-height: 46px; font-size: 11px; }
  .ambient-player { position: relative; right: auto; bottom: auto; }
}
@media (max-width: 370px) {
  .topbar-inner { gap: 6px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 6px; letter-spacing: .6px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .language-control select { width: 108px; min-width: 102px; max-width: 108px; padding: 7px 22px 7px 9px; font-size: 10px; }
  .ambient-dock, .ambient-dock.is-compact { width: 40px; min-width: 40px; min-height: 40px; }
  .hero { grid-template-columns: minmax(0,1fr) 91px; padding: 20px 14px; }
  .hero h1 { font-size: 27px; }
  .hero-art-panel-main { width: 96px; height: 92px; }
  .hero-art-panel-small { width: 52px; height: 52px; }
  .hero-art-note { left: -18px; padding: 5px 6px; }
  .promo-card { grid-template-columns: 98px minmax(0,1fr); }
  .promo-price { font-size: 29px; }
  .sticky-inner { grid-template-columns: 68px minmax(0,1fr) 90px; gap: 6px; }
  .sticky-inner .primary-button { font-size: 9px; }
  .sticky-total strong { font-size: 19px; }
  .quick-flow-item small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art-panel, .promo-preview, .promo-card, .product-card, .list-card, .primary-button, .secondary-button, .ghost-button { transition: none !important; }
}
/* Small polish: card titles already identify the promotion; avoid duplicate
   overlay labels competing with captions embedded in poster-derived crops. */
.promo-media-label { display: none; }
