:root {
    --bg: #fdf6ef;
    --card: #ffffff;
    --ink: #3a2c2a;
    --muted: #8a7a72;
    --primary: #c98b5e;       /* milk-tea caramel */
    --primary-dark: #a96f45;
    --accent: #7c5cbf;        /* taro purple */
    --line: #ecdfd4;
    --good: #2e7d52;
    --shadow: 0 6px 20px rgba(120, 80, 50, 0.12);
    --radius: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

.container { width: min(1080px, 92%); margin-inline: auto; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / footer ---------- */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 10;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.brand { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-emoji { font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 600; }
.cart-link { position: relative; }
.cart-badge {
    background: var(--accent); color: #fff; font-size: .72rem;
    border-radius: 999px; padding: 1px 7px; margin-left: 4px; font-weight: 700;
}

.site-footer {
    margin-top: 60px; padding: 28px 0; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .9rem; text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; cursor: pointer;
    background: var(--primary); color: #fff; font-weight: 700;
    border: none; border-radius: 999px; padding: 11px 22px;
    font-size: 1rem; transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
    background: transparent; color: var(--primary-dark);
    border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #fff0e3 0%, #f3e7ff 100%);
    padding: 72px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hero h1 { font-size: 3rem; margin: 0 0 12px; line-height: 1.1; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 26px; }
.hero-art { font-size: 11rem; text-align: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.section { padding: 56px 0; }
.section h2 { font-size: 2rem; margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- Cards / menu grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.card .emoji { font-size: 2.6rem; }
.card h3 { margin: 10px 0 4px; font-size: 1.18rem; }
.card .desc { color: var(--muted); font-size: .92rem; flex: 1; }
.card .price { font-weight: 800; color: var(--primary-dark); margin: 12px 0; font-size: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { text-align: center; padding: 20px; }
.feature .ico { font-size: 2.4rem; }
.feature h3 { margin: 10px 0 4px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.panel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 10px; font-size: 1rem; background: #fffdfb;
}
.option-group { display: flex; flex-wrap: wrap; gap: 10px; }
.option-pill {
    border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; cursor: pointer; background: #fffdfb; user-select: none;
}
.option-pill input { display: none; }
.option-pill:has(input:checked) {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.toppings { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 8px; }
.checkbox-pill {
    display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
    border-radius: 10px; padding: 8px 12px; cursor: pointer; background: #fffdfb;
}
.checkbox-pill:has(input:checked) { border-color: var(--accent); background: #f3edff; }

.field-validation-error, .validation-summary-errors { color: #b3261e; font-size: .88rem; }
.text-danger { color: #b3261e; }

/* ---------- Layout helpers ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.flash {
    background: #eafaf0; border: 1px solid #bce8cf; color: var(--good);
    padding: 12px 16px; border-radius: 10px; margin: 18px 0;
}
.muted { color: var(--muted); }
.page-head { margin: 36px 0 22px; }
.page-head h1 { margin: 0 0 4px; }

/* ---------- Cart / receipt table ---------- */
.line-items { width: 100%; border-collapse: collapse; }
.line-items th, .line-items td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.line-items th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.line-items .num { text-align: right; white-space: nowrap; }
.opts { color: var(--muted); font-size: .85rem; }
.summary { margin-top: 8px; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .row.total { font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; }

.badge-status {
    display: inline-block; background: #f3edff; color: var(--accent);
    border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .85rem;
}
.empty { text-align: center; padding: 50px 0; color: var(--muted); }

@media (max-width: 760px) {
    .hero-inner, .two-col { grid-template-columns: 1fr; }
    .hero-art { font-size: 7rem; }
    .features { grid-template-columns: 1fr; }
}
