@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

  :root {
    --bg: #EFE5D9;
    --bg-panel: #FBF7F2;
    --bg-inset: #E6D9C9;
    --bg-pink: #F6E4E4;   /* the nav's pink, solid */
    --bg-nav: #F6E4E4e6;   /* the soft pink the accent is drawn from */
    --nav-border: #E7CBCB;
    --nav-muted: #7C5C5E;
    --text: #2C231C;
    --text-muted: #6B5B4B;
    --border: #DBCBB8;
    --border-strong: #C4AF98;
    --accent: #8E4F55;
    --accent-strong: #6F3A40;
    --accent-soft-bg: #F6E4E4;
    --accent-soft-text: #8E4F55;
    --btn-bg: #B68E8D;
    --btn-text: #2C231C;
    --danger: #A33A3A;
    --ok: #2F7A54;
    --ok-bg: #E4F1E9;
    --danger-bg: #F8E3E3;
    --focus: #8E4F55;
    --shadow: 0 18px 40px -22px rgba(44, 35, 28, 0.4);
    color-scheme: light;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, .display {
    font-family: "Lora", "Noto Sans SC", Georgia, "Times New Roman", serif;
    font-weight: 500;
    color: var(--text);
    text-wrap: balance;
    margin: 0;
  }

  a { color: inherit; }
  button { font-family: inherit; }

  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

  .eyebrow {
    margin-top: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .focusable:focus-visible,
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* ---------- Nav ---------- */
  /* Runs above the nav and scrolls away with the page; the nav keeps the top. */
  .announce-bar {
    background: var(--accent);
    color: #FCF3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 20px;
    text-align: center;
  }
  .announce-bar p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
    transition: opacity 0.26s ease;
  }
  .announce-bar p.is-fading { opacity: 0; }
  .announce-bar a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  .announce-bar a:hover { text-decoration-thickness: 2px; }
  @media (prefers-reduced-motion: reduce) { .announce-bar p { transition: none; } }
  @media (max-width: 480px) {
    .announce-bar { min-height: 36px; padding: 8px 14px; }
    .announce-bar p { font-size: 0.78rem; }
  }

  .site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nav-border);
  }
  /* On pink the neutral border and the muted mauve button both go flat, so the
     bar's own controls take the accent instead. */
  .site-nav .lang-toggle { border-color: var(--nav-border); background: rgba(255, 255, 255, 0.45); }
  .site-nav .lang-btn { color: var(--nav-muted); }
  .site-nav .lang-btn[aria-pressed="true"] { background: var(--accent); color: #FCF3F3; }
  .site-nav .btn-primary { background: var(--accent); color: #FCF3F3; }
  .site-nav .btn-primary:hover { background: var(--accent-strong); opacity: 1; }
  .site-nav .brand-tag { color: var(--nav-muted); }
  .site-nav .nav-links a, .site-nav .nav-dd-btn { color: var(--text); }
  .site-nav .nav-links a:hover, .site-nav .nav-dd-btn:hover,
  .site-nav .nav-links a.is-active, .site-nav .nav-dd-btn.is-active { color: var(--accent); }
  .site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 76px;
  }
  .brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
  }
  .brand-name {
    font-family: "Lora", serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .brand-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--text-muted);
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
  }
  .nav-links a.is-active { color: var(--accent); }
  .nav-links a:hover { color: var(--accent); }

  /* The products entry is a button, not a link, so it has to be dressed to
     match the links it sits between. */
  .nav-dd { position: relative; }
  .nav-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
  }
  .nav-dd-btn:hover, .nav-dd-btn.is-active { color: var(--accent); }
  .nav-dd-caret { font-size: 0.7em; line-height: 1; }
  .nav-dd-btn[aria-expanded="true"] .nav-dd-caret { transform: rotate(180deg); }
  .nav-dd-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav-dd-menu[hidden] { display: none; }
  .nav-dd-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 9px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
  }
  .nav-dd-menu button:hover { background: var(--bg-inset); color: var(--accent); }
  /* It stands apart from the five categories: it is the way to all of them. */
  .nav-dd-all { border-bottom: 1px solid var(--border); margin-bottom: 4px; padding-bottom: 4px; }
  .nav-dd-all button { font-weight: 600; }
  .nav-right { display: flex; align-items: center; gap: 6px; position: relative; }
  /* Three plain icons: search, language, cart. */
  .nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .nav-icon:hover { background: rgba(255, 255, 255, 0.5); color: var(--accent); }
  .nav-icon-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; }
  #lang-toggle-btn { width: auto; padding: 0 10px; }
  .nav-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #FCF3F3;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
  }
  .nav-cart-count[hidden] { display: none; }

  /* The search field drops out of the icon rather than living in the bar. */
  .nav-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(340px, calc(100vw - 32px));
    z-index: 45;
  }
  .nav-search-panel[hidden] { display: none; }
  .nav-search-panel .search-icon { position: absolute; left: 14px; top: 22px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
  .nav-search-panel input {
    width: 100%;
    border: 1px solid var(--border-strong);
    background: var(--bg-panel);
    color: var(--text);
    border-radius: 999px;
    padding: 11px 16px 11px 40px;
    font-family: inherit;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
  }

  .lang-toggle {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
    flex: none;
  }
  .lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
  }
  .lang-btn[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--btn-bg); color: var(--btn-text); }
  .btn-primary:hover { opacity: 0.88; }
  .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
  .btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn-sm { padding: 8px 16px; font-size: 0.85rem; }
  .btn-block { width: 100%; }

  /* ---------- Hero ---------- */
  .hero { padding: 64px 0 40px; }
  .hero-head { max-width: 760px; }
  .hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .hero-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex: none;
  }
  .hero-brand-title {
    font-family: "Lora", serif;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    margin: 0;
  }
  .hero-head h1 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 14px;
    color: var(--text-muted);
  }
  .hero-sub {
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 58ch;
  }
  .hero-head .eyebrow {
    display: block;
    margin-top: 18px;
  }

  .steps {
    /* 40px left the heading stranded; the browse heading sits 12px above its
       tabs, and the cards want only a little more than that. */
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .step-card {
    background: var(--bg-pink);
    border: 1px solid var(--nav-border);
    border-radius: 18px;
    padding: 24px;
  }
  .step-num {
    font-family: "Lora", serif;
    font-size: 1.2rem;
  }
  .step-card h3 { font-size: 1.05rem; margin-top: 10px; font-family: "Inter", "Noto Sans SC"; font-weight: 600; color: var(--text); }
  /* On the pink the muted brown goes murky; the cards take the full text colour. */
  .step-card p { margin: 8px 0 0; color: var(--text); font-size: 0.92rem; }

  /* ---------- Order app ---------- */
  /* A hairline hands the page over from the intro to the menu. */
  .order-app { padding: 48px 0 88px; border-top: 1px solid var(--border); }
  .order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
  }

  .steps-title { margin: 0 0 14px; }
  .browse-title { margin: 0 0 12px; }

  input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
  .search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 6px;
    max-height: 340px;
    overflow-y: auto;
  }
  .search-results[hidden] { display: none; }
  .search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
  }
  .search-result:hover { background: var(--bg-inset); }
  .search-thumb {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--bg-inset);
    overflow: hidden;
  }
  .search-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .search-text { display: flex; flex-direction: column; min-width: 0; }
  .search-name { font-size: 0.92rem; font-weight: 600; }
  .search-where { font-size: 0.78rem; color: var(--text-muted); }
  .search-price { margin-left: auto; font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .search-none { margin: 0; padding: 12px 10px; font-size: 0.88rem; color: var(--text-muted); }

  /* After a jump, the row says "here I am" without shouting. */
  .product-row.is-found { animation: found-flash 2.4s ease; }
  @keyframes found-flash {
    0%, 55% { background: var(--accent-soft-bg); box-shadow: inset 3px 0 0 var(--accent); }
    100% { background: transparent; box-shadow: none; }
  }
  @media (prefers-reduced-motion: reduce) { .product-row.is-found { animation: none; box-shadow: inset 3px 0 0 var(--accent); } }

  .tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .tab {
    border: 1px solid #E4D2BF;
    background: #FFFFFF;
    color: #5C3D2B;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .tab .count {
    font-weight: 600;
    color: #9A7A62;
    font-size: 0.85rem;
  }
  .tab[aria-selected="true"] {
    background: #B68E8D;
    color: #2B211A;
    border-color: #B68E8D;
  }
  .tab[aria-selected="true"] .count { color: #2B211A; opacity: 0.75; }

  /* A glanceable link to the flavour sheet, sized like a row so it reads as
     part of the menu rather than an advert. */
  .poster-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px 10px 10px;
    margin: 0 0 16px;
    cursor: pointer;
    color: inherit;
    font: inherit;
  }
  .poster-btn:hover { border-color: var(--border-strong); }
  .poster-btn img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; }
  .poster-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .poster-label { font-weight: 600; font-size: 0.95rem; }
  .poster-label::after { content: " \203A"; color: var(--accent); }
  .poster-sub { font-size: 0.82rem; color: var(--text-muted); }

  .subtabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 4px 0 22px; }
  .subtab {
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
  }
  .subtab[aria-selected="true"] {
    background: var(--accent-soft-bg);
    color: var(--accent);
    border-color: var(--accent);
  }

  .category-blurb { color: var(--text-muted); font-size: 0.96rem; max-width: 62ch; margin-bottom: 22px; }

  .category-note {
    background: var(--bg-inset);
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: -6px 0 22px;
  }

  .product-list {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
  }
  .product-row {
    display: flex;
    align-items: center;
    gap: 18px;
    /* Tighter than it was (20px): a long list should not cost more scrolling
       than it has to, while the rows stay clearly separate. */
    padding: 13px 22px;
    border-bottom: 1px solid var(--border);
  }
  .product-row:last-child { border-bottom: none; }
  .product-photo {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--bg-inset);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
    overflow: hidden;
  }
  .product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .product-photo-btn {
    position: relative; width: 100%; height: 100%; padding: 0; margin: 0;
    border: none; background: none; cursor: pointer; display: block;
    border-radius: 14px; overflow: hidden;
  }
  .product-photo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .photo-count-badge {
    position: absolute; right: 3px; bottom: 3px;
    background: rgba(20, 14, 10, 0.72); color: #fff;
    font-size: 0.56rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 1px 5px; border-radius: 20px; line-height: 1.4;
  }

  .lightbox-backdrop {
    position: fixed; inset: 0; background: rgba(12, 8, 6, 0.86);
    display: none; align-items: center; justify-content: center;
    padding: 24px; z-index: 200;
  }
  .lightbox-backdrop.open { display: flex; }
  .lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(90vw, 640px); }
  .lightbox-img { max-width: 100%; max-height: 74vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); display: block; }
  .lightbox-counter { color: rgba(255,255,255,0.75); font-size: 0.82rem; letter-spacing: 0.04em; }
  .lightbox-close {
    position: fixed; top: 18px; right: 18px;
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.14); color: #fff;
    font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.14); color: #fff;
    font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,0.24); }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  @media (max-width: 640px) {
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
  }
  .product-info { flex: 1; min-width: 0; }
  .product-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .product-name { font-weight: 600; font-size: 0.98rem; }
  .product-zh { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
  .product-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }
  .product-desc { font-size: 0.9rem; color: var(--text); margin-top: 4px; max-width: 56ch; }

  /* The paragraph is opt-in, so the row stays scannable. */
  .product-more { margin-top: 3px; }
  .product-more summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
  }
  .product-more summary::-webkit-details-marker { display: none; }
  .product-more summary::after { content: " \203A"; }
  .product-more[open] summary::after { content: " \2039"; }
  .product-more p {
    margin: 6px 0 0;
    font-size: 0.89rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 62ch;
  }

  /* Subcategory heading + its note, above each group of cakes. Banded so it
     reads as a divider between groups rather than another row of text. */
  .subcat-head {
    background: var(--bg-inset);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 13px 18px;
    /* One gap above every group: the first sat at 4px and the rest at 30. */
    margin: 20px 0 16px;
  }
  .product-row + .subcat-head { margin-top: 20px; }
  .subcat-title {
    font-family: "Lora", "Noto Sans SC", Georgia, serif;
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
  }
  .subcat-note {
    /* Italic, so it reads as a note about the group rather than another line
       of the heading. */
    margin: 5px 0 0;
    /* Notes may carry a second fact on its own line - Chocolate & Cheese covers
       both the chocolate and the cheesecake. */
    white-space: pre-line;
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 68ch;
  }
  .badge {
    background: var(--accent-soft-bg);
    color: var(--accent-soft-text);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
  }
  .price-block { margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .price-was { font-weight: 500; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; font-size: 0.88rem; }
  .product-action { flex: none; }

  .choose-btn {
    border: 1px solid var(--border-strong);
    background: var(--bg-panel);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
  }
  .choose-btn:hover { border-color: var(--accent); color: var(--accent); }

  .stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 4px;
  }
  .stepper button {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--bg-inset);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .stepper button:hover { background: var(--accent-soft-bg); color: var(--accent-strong); }
  .stepper button:disabled { opacity: 0.35; cursor: not-allowed; background: var(--bg-inset); color: var(--text); }
  .stepper .qty { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

  .cake-row { flex-wrap: wrap; align-items: flex-start; }
  .cake-row .product-info { flex: 1 1 320px; }
  .cake-row .product-action { flex: 1 1 200px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

  .size-pills { display: flex; gap: 6px; margin-top: 8px; }
  /* Priced by the size above it, so it only ever offers the one figure. */
  .packaging-option { margin-top: 10px; }
  .packaging-option label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
  }
  .packaging-option input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
  .packaging-hint { margin: 3px 0 0 24px; font-size: 0.78rem; color: var(--text-muted); }

  .extra-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
  }
  .extra-option input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
  .size-pill {
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
  }
  .size-pill[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }


  .cake-add-btn { border: none; background: var(--btn-bg); color: var(--btn-text); border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.88rem; cursor: pointer; white-space: nowrap; }
  .cake-add-btn:hover { opacity: 0.88; }

  .addon-note-field { margin-top: 10px; max-width: 300px; }
  .addon-note-field label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 5px; }
  .addon-note-field .field-hint { margin: 5px 0 0; font-size: 0.76rem; line-height: 1.4; color: var(--text-muted); }
  .addon-note-field input {
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    width: 100%;
    font-family: inherit;
  }
  .custom-brief-field { margin-top: 12px; max-width: 420px; }
  .custom-brief-field label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 5px; }
  .custom-brief-field textarea {
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.88rem;
    width: 100%;
    font-family: inherit;
    min-height: 56px;
    resize: vertical;
  }
  .photo-attach-btn {
    margin-top: 8px;
    border: 1px dashed var(--border-strong);
    background: var(--bg);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .photo-attach-btn:hover { border-color: var(--accent); color: var(--accent); }
  .photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .photo-thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
  .photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .photo-thumb button {
    position: absolute; top: 2px; right: 2px;
    width: 16px; height: 16px; border-radius: 50%;
    border: none; background: rgba(0,0,0,0.6); color: #fff;
    font-size: 0.6rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
  }

  /* ---------- Order panel ---------- */
  .order-panel {
    position: sticky;
    top: 96px;
    min-width: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--shadow);
  }
  .order-panel h2 { font-size: 1.3rem; }
  .order-empty { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

  .cart-lines { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
  /* Each item is its own tinted card with a coloured edge - a hairline rule
     between rows made a multi-item order read as one run-on block. */
  .cart-line {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
  }
  .cart-line-main { flex: 1; min-width: 0; }
  .cart-line-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
  .cart-line-flavours { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
  .cart-line-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-strong);
  }
  .cart-line-price {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent-strong);
    font-variant-numeric: tabular-nums;
  }
  .remove-btn {
    border: 1px solid var(--border-strong);
    background: var(--bg-panel);
    color: var(--text-muted);
    font-size: 0.74rem;
    border-radius: 999px;
    padding: 3px 10px;
    cursor: pointer;
  }
  .remove-btn:hover { color: var(--danger); border-color: var(--danger); }

  .field { margin-top: 16px; min-width: 0; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--accent); }
  input, select, textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.92rem;
    font-family: inherit;
  }
  textarea { resize: vertical; min-height: 64px; }

  .address-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.1fr;
    gap: 8px;
    margin-top: 8px;
  }
  .address-row > * { min-width: 0; }
  @media (max-width: 520px) {
    .address-row { grid-template-columns: 1fr 1fr; }
    .address-row select { grid-column: 1 / -1; }
  }

  .same-as-above {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
  }
  .same-as-above input { width: auto; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
  .same-as-above:has(input:checked) { border-color: var(--accent); background: var(--accent-soft-bg); }

  .phone-row { display: flex; gap: 8px; align-items: stretch; }
  .phone-row select {
    flex: 0 1 auto;
    width: auto;
    max-width: 58%;
    min-width: 0;
    text-overflow: ellipsis;
  }
  .phone-row input { flex: 1 1 auto; min-width: 0; }

  .fulfil-options { display: flex; flex-direction: column; gap: 8px; }
  .fulfil-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    margin: 0;
  }
  .fulfil-option input { width: auto; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
  .fulfil-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft-bg); }
  .help-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
  .invalid { border-color: var(--danger) !important; }
  .error-text { font-size: 0.78rem; color: var(--danger); margin-top: 6px; display: none; }
  .error-text.show { display: block; }

  .date-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 8px; }
  .date-pill {
    flex: none;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }
  .date-pill[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
  .date-pill:disabled { color: var(--text-muted); text-decoration: line-through; cursor: not-allowed; opacity: 0.55; }

  .calendar { margin-top: 8px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
  .calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .calendar-month-label { font-weight: 600; font-size: 0.86rem; }
  .calendar-nav-btn {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong);
    background: var(--bg); color: var(--text); font-size: 0.92rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
  }
  .calendar-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
  .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
  .calendar-weekday { text-align: center; font-size: 0.68rem; letter-spacing: -0.01em; font-weight: 600; color: var(--text-muted); padding: 2px 0 6px; }
  .calendar-day {
    /* A fixed height rather than a square: the cells stay wide enough to tap
       while the month as a whole takes far less of the panel. */
    height: 34px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text);
    font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit;
  }
  .calendar-day:hover:not(:disabled) { border-color: var(--border-strong); }
  .calendar-day[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); }
  .calendar-day:disabled { color: var(--text-muted); text-decoration: line-through; cursor: not-allowed; opacity: 0.4; }
  .calendar-day-empty { visibility: hidden; cursor: default; }

  .totals { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
  .totals-row { display: flex; justify-content: space-between; font-size: 0.9rem; }
  .totals-row.grand { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
  /* A delivery line that has no number yet - "Calculating…", "Enter address". */
  .totals-note { color: var(--text-muted); font-size: 0.82rem; }

  .addons-only-warning {
    margin: 16px 0 0;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    background: var(--accent-soft-bg);
    color: var(--accent-soft-text);
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .submit-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

  /* ---------- Modal ---------- */
  .modal-backdrop {
    position: fixed; inset: 0; background: rgba(20, 14, 10, 0.5);
    display: none; align-items: flex-start; justify-content: center;
    padding: 40px 20px; z-index: 100; overflow-y: auto;
  }
  .modal-backdrop.open { display: flex; }
  .modal {
    background: var(--bg-panel);
    border-radius: 20px;
    max-width: 640px; width: 100%;
    box-shadow: var(--shadow);
    margin: auto;
  }
  .modal-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--border);
  }
  .modal-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
  .modal-head h3 { font-size: 1.25rem; margin-top: 4px; }
  .modal-head p { margin: 6px 0 0; color: var(--text-muted); font-size: 0.88rem; }
  .modal-close { border: none; background: var(--bg-inset); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; flex: none; }
  .modal-body { padding: 8px 26px 20px; max-height: 58vh; overflow-y: auto; }
  .flavour-group-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 10px; }
  .flavour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .flavour-card {
    text-align: left;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex; gap: 10px; align-items: flex-start;
  }
  .flavour-card .dot {
    flex: none; width: 17px; height: 17px; border-radius: 50%;
    border: 1.5px solid var(--border-strong); margin-top: 2px;
  }
  .flavour-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft-bg); }
  .flavour-card[aria-pressed="true"] .dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft-bg); }
  .flavour-card .fname { font-weight: 600; font-size: 0.9rem; color: var(--text); }
  .flavour-card .ficon { width: 1.5em; height: 1.5em; object-fit: contain; margin-right: 6px; vertical-align: -0.4em; flex-shrink: 0; }
  .flavour-card .fprice { font-weight: 600; color: var(--accent); font-size: 0.72rem; }
  .flavour-card .fdesc { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
  .flavour-card:disabled { opacity: 0.4; cursor: not-allowed; }
  .modal-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 18px 26px; border-top: 1px solid var(--border);
  }
  .modal-foot .picked-count { font-size: 0.85rem; color: var(--text-muted); }

  .qr-box {
    border: 1px solid var(--border);
    background: var(--bg-inset);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
  }
  .qr-image-frame {
    /* The QR card is taller than it is wide: a square frame would letterbox it
       down to a QR too small to scan. */
    width: 300px; aspect-ratio: 1113 / 1210; max-width: 100%; margin: 0 auto;
    border-radius: 12px;
    border: 1px dashed var(--border-strong);
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .qr-image-frame img { width: 100%; height: 100%; object-fit: contain; }
  .qr-image-frame.has-qr { border: none; background: none; }

  /* Bank details, for anyone who would rather transfer than scan. */
  .bank-details {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .bank-title {
    margin: 0 0 8px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }
  .bank-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.86rem;
    padding: 2px 0;
  }
  .bank-row > span:first-child { color: var(--text-muted); flex: none; }
  .bank-row > span:last-child { font-weight: 600; text-align: right; }
  .bank-acct { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; user-select: all; }
  .qr-placeholder-text { font-size: 0.78rem; color: var(--text-muted); padding: 14px; }
  .qr-amount { margin-top: 12px; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

  .receipt-field { margin-top: 20px; }
  .receipt-drop {
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    background: var(--bg);
  }
  .receipt-drop:hover { border-color: var(--accent); }
  .receipt-preview { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
  .receipt-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
  .receipt-preview .fname { font-size: 0.82rem; color: var(--text-muted); word-break: break-all; }

  /* ---------- Add-on suggestions ---------- */
  .addon-suggest {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 14px;
  }
  .addon-suggest[hidden] { display: none; }
  .addon-suggest-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
  }
  /* Scrolls sideways rather than wrapping, so a long list never pushes the
     checkout form down the page. */
  .addon-suggest-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .addon-card {
    flex: 0 0 auto;
    width: 140px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 10px;
  }
  .addon-card-name { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.3; }
  .addon-card-price { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
  .addon-card-add {
    /* Names wrap to one or two lines, so push every button to the card floor
       and they line up across the row. */
    margin-top: auto;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-text);
    border-radius: 999px;
    padding: 6px 0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
  }
  .addon-card-add:hover { opacity: 0.88; }

  /* ---------- Order status ---------- */
  .order-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .order-status p { margin: 0; flex: 1; }
  .order-status .order-status-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
  }
  .order-status.is-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--text); }
  .order-status.is-ok .order-status-dot { background: var(--ok); }
  .order-status.is-err { background: var(--danger-bg); border-color: var(--danger); color: var(--text); }
  .order-status.is-err .order-status-dot { background: var(--danger); }
  .order-status [hidden] { display: none; }

  /* ---------- Invoice ---------- */
  .invoice-sheet {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 10px;
    padding: 20px 18px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #000000;
  }
  #invoice-keep-hint { margin-top: 12px; }
  .invoice-sheet .inv-center { text-align: center; }
  .invoice-sheet .inv-bold { font-weight: 700; }
  .invoice-sheet .inv-rule { border: none; border-top: 1px dashed #999999; margin: 10px 0; }
  .invoice-sheet .inv-row { display: flex; justify-content: space-between; gap: 12px; }
  .invoice-sheet .inv-item-name { flex: 1; }
  .invoice-sheet .inv-item-amt { flex: none; text-align: right; }
  .invoice-sheet .inv-muted { color: #444444; }

  .receipt-save-wrap { margin-top: 14px; }
  .receipt-save-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 8px; }
  .receipt-save-wrap img { width: 100%; max-width: 340px; border: 1px solid var(--border); border-radius: 10px; display: block; }

  .cart-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: none;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
  }
  .cart-fab.show { display: inline-flex; }
  .cart-fab-icon { font-size: 1rem; }
  #cart-fab-count {
    background: var(--btn-text);
    color: var(--btn-bg);
    border-radius: 999px;
    min-width: 20px;
    padding: 1px 6px;
    font-size: 0.78rem;
    text-align: center;
  }
  .cart-modal-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }
  .social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft-bg);
  }

  .recent-orders {
    border: 1px solid var(--border);
    background: var(--bg-inset);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }
  .recent-orders-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 8px;
  }
  .recent-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
  }
  .recent-order-row:first-of-type { border-top: none; }
  .recent-order-meta { color: var(--text-muted); font-size: 0.76rem; }
  .recent-order-view {
    flex: none;
    background: none;
    border: none;
    color: var(--accent);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
  }

  /* ---------- Content sections ---------- */
  /* 48px, the same breath the menu section takes above its heading. */
  .section { padding: 48px 0; border-top: 1px solid var(--border); }
  .section-head p.eyebrow, .about-copy p.eyebrow { font-size: 1.05rem; margin-top: 0; }
  .section-head { max-width: 640px; }
  .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .section-head p { color: var(--text-muted); margin-top: 12px; font-size: 1rem; }

  .offer-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
  .dt-tags { color: var(--text-muted); margin-top: 4px; font-size: 0.9rem; }
  /* The cards stretch to a shared height, so pushing the photos down puts both
     the strip and the button on the same line across all three, however long
     the description runs. */
  .offer-card {
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
  }
  .offer-card .offer-photos { margin-top: auto; }
  .offer-card .btn { align-self: flex-start; }
  .offer-card .eyebrow { font-size: 0.78rem; }
  /* A scrolling row of thumbs, so a card can show its work without growing tall. */
  .offer-photos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 18px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .offer-photos::-webkit-scrollbar { display: none; }
  .offer-photos:empty { display: none; }
  .offer-photos button {
    flex: none;
    width: 86px;
    height: 86px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    background: none;
    cursor: pointer;
  }
  .offer-photos button:hover { border-color: var(--accent); }
  .offer-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .offer-card h3 { font-size: 1.15rem; font-family: "Inter", "Noto Sans SC"; font-weight: 600; }
  .offer-card p { color: var(--text-muted); margin: 10px 0 18px; font-size: 0.92rem; }

  .about-grid { margin-top: 0; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .about-copy h2 { margin-top: 10px; }
  .about-copy p { color: var(--text-muted); font-size: 0.98rem; max-width: 56ch; margin-top: 16px; }

  .info-card { background: var(--bg-inset); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
  .info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
  .info-row:last-child { border-bottom: none; }
  .info-row dt { color: var(--text-muted); font-weight: 500; }
  .info-row dd { margin: 0; text-align: right; font-weight: 500; }
  /* The collection row carries an address and two ways to navigate to it. */
  .info-address {
    display: block;
    margin-top: 3px;
    font-weight: 400;
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 22ch;
    margin-left: auto;
  }
  .info-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
  .info-link:hover { color: var(--accent-strong); }
  .info-hours span { display: block; }
  .info-hours span + span { margin-top: 3px; }
  .map-links { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
  .map-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text);
  }
  .map-links a:hover { border-color: var(--accent); color: var(--accent); }
  .social-row { display: flex; gap: 10px; margin-top: 18px; }

  .read-card { margin-top: 30px; background: var(--bg-inset); border: 1px solid var(--border); border-radius: 20px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .read-card p { color: var(--text-muted); max-width: 44ch; margin: 8px 0 0; font-size: 0.92rem; }
  .read-card h3 { font-family: "Inter", "Noto Sans SC"; font-weight: 600; font-size: 1.05rem; }
  .story-copy { max-width: 70ch; margin-top: 24px; }
  .story-copy p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin: 0 0 18px; }
  .story-copy p:last-child { margin-bottom: 0; }
  .story-photo { max-width: 70ch; margin-top: 28px; }
  .story-photo img { width: 100%; border-radius: 16px; display: block; }
  .story-photo-caption { margin-top: 10px; font-size: 0.95rem; color: var(--text-muted); font-style: italic; }

  /* Two levels: a category opens to reveal its questions, a question opens to
     reveal its answer. Nested <details>, so it works with no script at all. */
  .faq-list { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
  .faq-group-title { margin: 0; }
  .faq-cat {
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: var(--bg-inset);
    overflow: hidden;
  }
  .faq-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 22px;
    cursor: pointer;
    list-style: none;
  }
  .faq-cat-head::-webkit-details-marker { display: none; }
  .faq-cat-head::after { content: "+"; font-size: 1.2rem; color: var(--text-muted); flex: none; }
  .faq-cat[open] .faq-cat-head::after { content: "\2212"; }
  .faq-cat[open] .faq-cat-head { color: var(--accent); }
  .faq-cat[open] .faq-cat-head .faq-group-title { color: inherit; }
  /* Scoped to [open]: a display on a details child overrides the browser's own
     hiding and leaves every question on show. */
  .faq-cat[open] > .faq-cat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 14px 16px;
  }
  .faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-panel); overflow: hidden; }
  .faq-item summary {
    cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 0.98rem;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--text-muted); flex: none; }
  .faq-item[open] summary::after { content: "\2212"; }
  .faq-item p { margin: 0 22px 20px; color: var(--text-muted); font-size: 0.92rem; max-width: 62ch; }
  .faq-tips {
    margin: 0 22px 20px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: 62ch;
  }
  .faq-tips li { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
  .faq-item .faq-action { margin-top: -8px; }
  .faq-item .faq-action .btn { display: inline-flex; }

  footer { border-top: 1px solid var(--border); padding: 48px 0; }
  .footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
  .footer-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
  .footer-links a { text-decoration: none; color: var(--text-muted); }
  .footer-links a:hover { color: var(--accent); }
  .footer-fine { margin-top: 24px; font-size: 0.78rem; color: var(--text-muted); }

  /* The custom-orders label is long; between the two-row phone layout and a
     roomy desktop the row has to tighten rather than overflow. */
  @media (max-width: 1140px) {
    .nav-links { gap: 16px; }
    .nav-links a, .nav-dd-btn { font-size: 0.86rem; }
  }

  /* Below this the row can no longer hold the links beside the brand, so they
     move to their own line rather than vanishing - browsing the page is
     exactly what a phone needs the nav for. */
  @media (max-width: 1000px) {
    .site-nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
    .nav-links {
      order: 3;
      width: 100%;
      gap: 18px;
      overflow-x: auto;
      scrollbar-width: none;
      padding-bottom: 2px;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a, .nav-dd-btn { font-size: 0.86rem; }
    .nav-dd-menu { left: 0; }
  }

  /* On a phone the brand and the two controls have to share one line, or the
     sticky bar takes three rows and a third of the screen. */
  /* Narrow enough and the row cannot hold photo, text and control side by
     side: the button keeps its width and squeezes the name to one letter per
     line. Let the control drop to its own line instead. */
  /* Phones: the footer's three buttons and the receipt's fixed-width monospace
     both need room they haven't got at 375px. */
  @media (max-width: 520px) {
    .modal-foot {
      flex-wrap: wrap;
      justify-content: stretch;
      gap: 10px;
      padding: 14px 16px;
    }
    .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
    .modal-head, .modal-body { padding-left: 16px; padding-right: 16px; }
    .invoice-sheet {
      font-size: 0.72rem;
      padding: 14px 12px;
      /* Keeps the columns lined up; the sheet scrolls rather than rewrapping. */
      white-space: pre;
      word-break: normal;
      overflow-x: auto;
    }
  }

  /* Tablets and phones: the product list carries the shop, so its type steps
     up rather than down as the screen narrows. */
  @media (max-width: 900px) {
    .product-name { font-size: 1.06rem; }
    .product-zh { font-size: 0.88rem; }
    .product-meta { font-size: 0.92rem; }
    .product-desc { font-size: 0.95rem; }
    .price-block { font-size: 1.05rem; }
    .category-blurb { font-size: 1rem; }
    .tab { font-size: 0.95rem; }
    .subtab { font-size: 0.9rem; }
    .subcat-title { font-size: 1.15rem; }
    .subcat-note { font-size: 0.9rem; }

    .step-card { padding: 16px 13px; }
    .step-num { font-size: 1rem; }
    .step-card h3 { font-size: 0.95rem; margin-top: 6px; }
    .step-card p { font-size: 0.82rem; margin-top: 6px; }
  }

  @media (max-width: 430px) {
    .steps { gap: 8px; }
    .step-card { padding: 12px 9px; border-radius: 14px; }
    .step-card h3 { font-size: 0.82rem; }
    .step-card p { font-size: 0.72rem; line-height: 1.4; }
    .step-num { font-size: 0.9rem; }
  }

  /* The control stays beside the item, as it does on a laptop. To leave the
     name room at 390px the photo, gaps, stepper and button all give some back,
     and the button wraps its label rather than holding one nowrap line. */
  @media (max-width: 560px) {
    .product-row {
      flex-wrap: nowrap;
      /* The photo tops out with the name; the control keeps its centre. */
      align-items: flex-start;
      gap: 10px;
      padding: 14px 12px;
    }
    .product-photo { width: 52px; height: 52px; border-radius: 12px; margin-top: 2px; }
    .product-info, .cake-row .product-info { flex: 1 1 auto; min-width: 0; }
    .product-action, .cake-row .product-action {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      align-self: center;
      gap: 8px;
    }
    .choose-btn {
      white-space: normal;
      max-width: 96px;
      text-align: center;
      line-height: 1.25;
      padding: 8px 12px;
      font-size: 0.84rem;
    }
    .stepper { gap: 8px; padding: 3px; }
    .stepper button { width: 28px; height: 28px; }
    .subcat-head { padding: 12px 14px; }
  }

  /* At 320px the control beside the text leaves the name 78px - a word a line.
     Only there does it drop below, where it has the full width. */
  @media (max-width: 360px) {
    .product-row { flex-wrap: wrap; }
    .product-info, .cake-row .product-info { flex: 1 1 100%; }
    .product-action, .cake-row .product-action {
      flex: 1 0 100%;
      flex-direction: row;
      justify-content: flex-end;
      align-self: auto;
    }
    .choose-btn { max-width: none; white-space: nowrap; }
  }

  /* Smallest phones still in use (320px): the KLANG tag is the one thing in
     the bar that can go without losing anything. */
  @media (max-width: 360px) {
    .brand-tag { display: none; }
    .brand-name { font-size: 1.12rem; }
    .site-nav .nav-right .btn-sm { padding: 6px 11px; font-size: 0.76rem; }
    .lang-btn { padding: 5px 8px; font-size: 0.7rem; }
  }

  @media (max-width: 480px) {
    .site-nav .wrap { gap: 10px; }
    .brand-name { font-size: 1.2rem; }
    .brand-tag { font-size: 0.6rem; letter-spacing: 0.12em; }
    .lang-btn { padding: 5px 9px; font-size: 0.72rem; }
    .nav-right { gap: 8px; }
    .site-nav .nav-right .btn-sm { padding: 7px 13px; font-size: 0.8rem; }
  }

  @media (max-width: 900px) {
    /* Stacked, the panel follows the last product row, and a 32px gap is the
       same break the list uses between its own groups - so it read as one more
       group rather than the next thing to do. */
    /* minmax(0, 1fr), not 1fr: a bare 1fr floors the column at the widest
       item's min-content, which is what pushed the whole shop 42px wider than
       a 375px phone. */
    .order-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
    .order-panel { position: static; }
    /* minmax(0, ...) throughout: a bare 1fr keeps the column at its widest
       item's min-content, which overflows a phone rather than fitting it. */
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .about-grid { grid-template-columns: minmax(0, 1fr); }
    .offer-grid { grid-template-columns: minmax(0, 1fr); }
    .flavour-grid { grid-template-columns: minmax(0, 1fr); }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .offer-card, .step-card, .info-card, .offer-photos { min-width: 0; }
  }
