:root {
    --color-bg: #f6efe0;
    --color-surface: #fffdf8;
    --color-ink: #1c2b20;
    --color-ink-soft: #5b5647;
    --color-green: #1e3a2b;
    --color-green-dark: #142a1e;
    --color-gold: #c8a24c;
    --color-gold-light: #e6cf94;
    --color-border: #e4d7b8;
    --radius: 16px;
    --shadow: 0 14px 34px rgba(28, 43, 32, 0.1);
    --font-heading: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.55;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 0.4em;
    color: var(--color-green-dark);
}

p { margin: 0 0 1em; }

a { color: var(--color-green); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--color-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 58, 43, 0.3);
}
.btn-primary:hover { background: var(--color-green-dark); }
.btn-ghost {
    background: transparent;
    color: var(--color-green);
    border-color: var(--color-green);
}
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-wide { width: 100%; text-align: center; }

/* --- Header --- */
.site-header, .admin-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green);
    text-decoration: none;
}
.logo span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 700;
}
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.admin-login-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.admin-login-logo .logo-icon { width: 64px; height: 64px; }

.lang-switcher {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
.lang-switcher .lang-btn {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-ink-soft) !important;
    text-decoration: none;
}
.lang-switcher .lang-btn.active {
    background: var(--color-green);
    color: #fff !important;
}
.lang-switcher .lang-btn:not(.active):hover {
    color: var(--color-green) !important;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a:not(.btn) { color: var(--color-ink); text-decoration: none; font-weight: 600; }
.main-nav a:not(.btn):hover { color: var(--color-green); }

/* --- Hero --- */
.hero {
    padding: 90px 0 70px;
    background:
        radial-gradient(circle at 15% 20%, rgba(200, 162, 76, 0.18), transparent 40%),
        radial-gradient(circle at 85% 0%, rgba(30, 58, 43, 0.12), transparent 45%);
}
.hero-inner { max-width: 720px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-green);
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
}
.hero-sub { font-size: 1.15rem; color: var(--color-ink-soft); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin: 28px 0; flex-wrap: wrap; }
.hero-dates {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--color-ink-soft);
}
.hero-dates strong {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--color-ink);
}

/* --- How it works --- */
.how-it-works { padding: 60px 0; }
.how-it-works h2 { text-align: center; margin-bottom: 40px; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-green-dark);
    font-weight: 700;
    margin-bottom: 14px;
}

/* --- Menu: dish cards, styled after the reference menu posters --- */
.menu-section { padding: 60px 0 90px; }
.menu-section .container { max-width: 1200px; }
.menu-section h2 { text-align: center; margin-bottom: 40px; }
.dish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.dish-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}
.dish-photo {
    position: relative;
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: #cdbb98;
    background-image: linear-gradient(150deg, #d8c8a3, #b8a06f);
}
.dish-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-green-dark);
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.dish-price-medal {
    position: absolute;
    right: 16px;
    bottom: -26px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-green-dark);
    border: 2px solid var(--color-gold);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.05;
    box-shadow: var(--shadow);
}
.dish-price-medal .amount { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.dish-price-medal .unit { font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gold-light); }

.dish-body { padding: 36px 20px 18px; flex: 1; display: flex; flex-direction: column; }
.dish-thai { color: var(--color-gold); font-size: 0.8rem; letter-spacing: 0.04em; margin-bottom: 2px; }
.dish-body h3 { margin-bottom: 8px; font-size: 1.25rem; line-height: 1.25; }
.dish-body p {
    color: var(--color-ink-soft);
    font-size: 0.88rem;
    flex: 1;
}

.dish-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
    column-gap: 14px;
    background: var(--color-green-dark);
    padding: 18px 14px;
}
.dish-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 76px;
    text-align: center;
}
.dish-tag-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dish-tag-icon svg { width: auto; height: 16px; max-width: 20px; }
.dish-tag-label {
    color: var(--color-gold-light);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.25;
}
.menu-cta { text-align: center; margin-top: 44px; }

/* --- Footer --- */
.site-footer {
    background: var(--color-green-dark);
    color: #ede4cf;
    padding: 40px 0;
    margin-top: 40px;
}
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--color-gold); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-meta { text-align: right; font-size: 0.9rem; color: #c8bda0; }
.footer-meta a { color: var(--color-gold-light); text-decoration: underline; }
.footer-meta a:hover { color: var(--color-gold); }
.footer-social { margin-top: 12px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbb9a8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}
.footer-social a:hover { color: var(--color-gold); }
.footer-social svg { width: 19px; height: 19px; }

/* --- Order page --- */
.order-page { padding: 50px 0 90px; }
.order-inner { max-width: 680px; margin: 0 auto; }
.form-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.form-section h2 { font-size: 1.1rem; margin-bottom: 16px; }

.date-options { display: flex; gap: 12px; flex-wrap: wrap; }
.date-option {
    border: 2px solid var(--color-border);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}
.date-option input { margin-right: 8px; }
.date-option:has(input:checked) {
    border-color: var(--color-green);
    background: rgba(30, 58, 43, 0.06);
}

.order-dish-list { display: flex; flex-direction: column; gap: 14px; }
.order-dish-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
}
.order-dish-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.order-dish-row img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: #d8c8a3;
}
.order-dish-info { flex: 1; display: flex; flex-direction: column; }
.order-dish-info span { font-size: 0.85rem; color: var(--color-ink-soft); }
.protein-select {
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 0.82rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-ink);
    align-self: flex-start;
}
.remaining-label { font-size: 0.78rem !important; }
.order-dish-row.sold-out { opacity: 0.5; }

.portion-list { display: flex; flex-direction: column; gap: 8px; }
.portion-config {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: rgba(30, 58, 43, 0.04);
    border-radius: 8px;
}
.portion-label { font-size: 0.78rem; font-weight: 700; color: var(--color-ink-soft); flex-shrink: 0; }

.spice-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
.spice-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.spice-input label {
    display: inline-flex;
    cursor: pointer;
    color: var(--color-border);
    margin: 0;
}
.spice-input label svg { width: 18px; height: 18px; }
.spice-input input:checked ~ label,
.spice-input label:hover,
.spice-input label:hover ~ label {
    color: #c0392b;
}
.spice-input .spice-name {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--color-ink-soft);
    font-weight: 600;
}

.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff; font-size: 1.1rem; cursor: pointer;
}
.qty-input {
    width: 36px; text-align: center; border: none; background: transparent; font-weight: 700;
    color: var(--color-ink) !important;
    -webkit-text-fill-color: var(--color-ink);
    opacity: 1;
    font-size: 1rem;
}

.fulfillment-options { display: flex; flex-direction: column; gap: 10px; }
.fulfillment-option {
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
}
.fulfillment-option:has(input:checked) {
    border-color: var(--color-green);
    background: rgba(30, 58, 43, 0.06);
}
.fulfillment-time { color: var(--color-ink-soft); font-weight: 400; }
.delivery-fields { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.delivery-fields[hidden] { display: none; }

.field-row { display: flex; gap: 12px; }
.field-row label { flex: 1; }
.field-small { flex: 0 0 110px !important; }

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=password], textarea, select {
    font-family: var(--font-body);
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
}

.address-status { font-size: 0.9rem; margin-top: 10px; }
.address-ok { color: #2f7d3c; }
.address-error { color: #a3341e; }

.order-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 12px; }

.form-error { color: #a3341e; font-weight: 700; }
.notice { color: var(--color-ink-soft); }

.confirmation { text-align: center; }
.confirmation-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--color-green);
    color: #fff; font-size: 2rem; line-height: 64px;
    margin: 0 auto 20px;
}

/* --- Star rating input (leave-a-review form) --- */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin: 6px 0 18px;
}
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-border);
    cursor: pointer;
    margin: 0;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: var(--color-gold);
}

/* --- Star rating display (approved reviews) --- */
.star-rating { display: flex; gap: 2px; }
.star-rating svg { width: 15px; height: 15px; }
.star-rating .star-filled { color: var(--color-gold); }
.star-rating .star-empty { color: var(--color-border); }

/* --- Reviews section --- */
.reviews-section { padding: 60px 0 90px; }
.reviews-section h2 { text-align: center; margin-bottom: 6px; }
.reviews-summary { text-align: center; color: var(--color-ink-soft); margin-bottom: 40px; }
.reviews-summary .star-rating { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.review-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.review-card .star-rating { margin-bottom: 10px; }
.review-card p { color: var(--color-ink); font-size: 0.92rem; }
.review-card .review-author { color: var(--color-ink-soft); font-size: 0.82rem; font-weight: 700; }
.review-photos { display: flex; gap: 8px; margin: 10px 0 14px; flex-wrap: wrap; }
.review-photos img {
    width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
    border: 1px solid var(--color-border);
}
.reviews-empty {
    text-align: center;
    color: var(--color-ink-soft);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 40px;
}
.reviews-cta { text-align: center; }

@media (max-width: 980px) {
    .dish-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .steps { grid-template-columns: 1fr; }
    .dish-grid { grid-template-columns: 1fr; }
    .field-row { flex-direction: column; }
    .field-small { flex: 1 !important; }
    .footer-row { flex-direction: column; text-align: left; }
    .footer-meta { text-align: left; }
    .header-row { padding: 14px 16px; }
    .logo { font-size: 1.2rem; }
    .main-nav { gap: 10px; }
    .main-nav a:not(.btn) { display: none; }
    .main-nav .btn { display: none; }
}
