
:root {
    --primary: #d93a31;
    --secondary: #6b3429;
    --accent: #d1a564;
    --cream: #fff8ef;
    --paper: #ffffff;
    --ink: #261b18;
    --muted: #766966;
    --line: rgba(69, 43, 35, .12);
    --shadow: 0 18px 50px rgba(73, 34, 25, .14);
    --radius: 24px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% -5%, rgba(217, 58, 49, .16), transparent 30%),
        linear-gradient(180deg, #f4e4cf 0, #fffaf4 320px, #fff 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
body.modal-open { overflow: hidden; }

.app-shell { width: min(100%, 980px); margin: 0 auto; min-height: 100vh; background: rgba(255,255,255,.72); box-shadow: 0 0 70px rgba(61, 28, 21, .1); }
.site-header {
    position: relative;
    overflow: hidden;
    padding: 22px 18px 20px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(77,31,24,.92), rgba(111,52,41,.96)),
        var(--secondary);
    border-radius: 0 0 32px 32px;
}
.header-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: rgba(209,165,100,.25);
    filter: blur(2px);
}
.brand-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; }
.logo-frame {
    width: 94px;
    min-width: 94px;
    height: 74px;
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 16px; background: var(--primary); color: #fff; font-weight: 900; }
.brand-copy { min-width: 0; }
.brand-copy .eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #f5d6a8; }
.brand-copy h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(25px, 6vw, 38px); line-height: 1; letter-spacing: -.03em; }
.brand-copy > p:last-child { margin: 7px 0 0; color: rgba(255,255,255,.78); font-size: 13px; }

.search-box {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
}
.search-box svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; }
.search-box input::placeholder { color: rgba(255,255,255,.72); }
.clear-search { display: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.clear-search.visible { display: grid; place-items: center; }

.category-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: -1px;
    padding: 12px 0 10px;
    background: rgba(255,250,244,.93);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107,52,41,.08);
}
.category-track { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-track::-webkit-scrollbar { display: none; }
.category-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 13px;
    border-radius: 16px;
    border: 1px solid rgba(107,52,41,.1);
    background: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(72,34,25,.06);
    scroll-snap-align: start;
    transition: .2s ease;
}
.category-chip-visual { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border-radius: 10px; background: #f7ebdf; font-size: 20px; }
.category-chip-visual img { width: 100%; height: 100%; object-fit: cover; }
.category-chip strong { max-width: 145px; font-size: 12px; white-space: nowrap; }
.category-chip.active { color: #fff; background: linear-gradient(135deg, var(--primary), #b62322); border-color: transparent; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(217,58,49,.24); }
.category-chip.active .category-chip-visual:not(.has-image) { background: rgba(255,255,255,.16); }

.menu-content { padding: 16px; }
.info-strip {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0 26px;
    padding: 14px 15px;
    color: #5a2b22;
    border: 1px solid rgba(209,165,100,.5);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff6e6, #fffdf9);
}
.info-icon { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--secondary); font-weight: 900; }
.info-strip p { margin: 0; font-size: 12px; line-height: 1.5; }
.menu-section { scroll-margin-top: 84px; margin-bottom: 38px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 2px 15px; }
.section-title-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.section-category-visual { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; overflow: hidden; border: 1px solid rgba(107,52,41,.1); border-radius: 17px; background: linear-gradient(145deg, #f0ddc4, #fff8ed); font-size: 28px; box-shadow: 0 8px 20px rgba(72,34,25,.08); }
.section-category-visual img { width: 100%; height: 100%; object-fit: cover; }
.section-kicker { display: block; margin-bottom: 5px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.section-heading h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(27px, 7vw, 36px); line-height: 1.05; }
.section-heading p { margin: 7px 0 0; max-width: 560px; color: var(--muted); font-size: 12px; }
.item-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #f2e6d8; color: var(--secondary); font-size: 10px; font-weight: 800; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(80,41,30,.08);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:active { transform: scale(.985); }
.product-card:hover { border-color: rgba(217,58,49,.28); box-shadow: 0 15px 34px rgba(80,41,30,.14); transform: translateY(-2px); }
.product-card[hidden] { display: none; }
.product-visual { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.18/1; overflow: hidden; background: linear-gradient(145deg, #f0ddc4, #fff7eb); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-visual img { transform: scale(1.04); }
.product-visual.no-image::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 16px 35px rgba(107,52,41,.1); }
.food-icon { position: relative; z-index: 1; font-size: clamp(43px, 13vw, 72px); filter: drop-shadow(0 12px 14px rgba(85,37,25,.16)); }
.visual-label { position: absolute; z-index: 1; bottom: 11px; color: rgba(83,48,39,.55); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.featured-badge { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 5px 7px; border-radius: 999px; color: #fff; background: var(--primary); font-size: 8px; font-weight: 800; box-shadow: 0 6px 15px rgba(217,58,49,.25); }
.product-body { display: flex; flex-direction: column; min-height: 122px; padding: 12px; }
.product-title { display: -webkit-box; overflow: hidden; color: #30201c; font-size: 14px; font-weight: 800; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-weight { margin-top: 5px; color: var(--muted); font-size: 10px; }
.product-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 7px; margin-top: auto; padding-top: 11px; }
.product-footer .detail-label { color: var(--primary); font-size: 9px; font-weight: 800; }
.product-footer strong { color: var(--secondary); font-size: 12px; text-align: right; }

.empty-state { padding: 70px 20px; text-align: center; }
.empty-state span { font-size: 42px; }
.empty-state h2 { margin: 12px 0 5px; font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 30px 20px calc(36px + var(--safe-bottom)); color: #fff; text-align: center; background: linear-gradient(145deg, #55261f, var(--secondary)); }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-family: "Playfair Display", Georgia, serif; font-size: 25px; }
.footer-brand span { color: #e7c694; font-size: 12px; }
.site-footer p { max-width: 600px; margin: 15px auto; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.5; }
.instagram-footer { display: inline-flex; padding: 10px 14px; border-radius: 999px; color: #fff; border: 1px solid rgba(255,255,255,.3); text-decoration: none; font-size: 12px; font-weight: 700; }
.back-top { position: fixed; right: 16px; bottom: calc(18px + var(--safe-bottom)); z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--primary); box-shadow: 0 12px 26px rgba(217,58,49,.35); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; cursor: pointer; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; padding: 14px 14px calc(14px + var(--safe-bottom)); }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,15,12,.68); backdrop-filter: blur(8px); animation: fadeIn .22s ease; }
.modal-card { position: relative; z-index: 1; width: min(100%, 560px); max-height: min(92vh, 850px); overflow: auto; border-radius: 28px; background: #fff; box-shadow: 0 28px 85px rgba(22,10,8,.35); animation: slideUp .25s ease; }
.modal-close { position: absolute; right: 13px; top: 13px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #2a1a17; font-size: 26px; box-shadow: 0 8px 20px rgba(0,0,0,.14); cursor: pointer; }
.modal-visual { display: grid; place-items: center; min-height: 250px; aspect-ratio: 1.45/1; overflow: hidden; background: linear-gradient(145deg, #edd7bc, #fff8ed); }
.modal-visual img { width: 100%; height: 100%; object-fit: cover; }
.modal-visual .modal-food-icon { font-size: 92px; filter: drop-shadow(0 18px 18px rgba(71,34,26,.18)); }
.modal-content { padding: 21px 20px 24px; }
.modal-category { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal-content h2 { margin: 6px 0 4px; font-family: "Playfair Display", Georgia, serif; font-size: 30px; line-height: 1.1; }
.modal-weight { margin: 0 0 15px; color: var(--secondary); font-size: 12px; font-weight: 700; }
.modal-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.price-list { display: grid; gap: 9px; margin-top: 20px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid rgba(107,52,41,.1); border-radius: 15px; background: #fffaf4; }
.price-row span { color: #594a46; font-size: 12px; }
.price-row strong { flex: 0 0 auto; color: var(--primary); font-size: 16px; }
.modal-note { display: none; margin: 14px 0 0; padding: 11px 12px; border-radius: 13px; color: #69411c; background: #fff1d7; font-size: 11px; line-height: 1.5; }
.modal-note.visible { display: block; }

.intro-modal { align-items: center; }
.intro-card { overflow: visible; padding: 31px 22px 24px; text-align: center; background: radial-gradient(circle at top, #fff8ea, #fff 55%); }
.intro-logo-wrap { width: 134px; height: 94px; margin: -68px auto 13px; padding: 7px; border-radius: 26px; background: #fff; box-shadow: 0 15px 45px rgba(45,19,13,.24); display: grid; place-items: center; }
.intro-logo { max-height: 100%; object-fit: contain; }
.intro-logo-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 20px; color: #fff; background: var(--primary); font-size: 29px; font-weight: 900; }
.intro-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--primary); background: rgba(217,58,49,.09); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.intro-card h2 { margin: 11px auto 8px; max-width: 390px; font-family: "Playfair Display", Georgia, serif; font-size: 28px; line-height: 1.1; }
.intro-card > p { margin: 0 auto; max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.intro-actions { display: grid; gap: 10px; margin-top: 22px; }
.btn { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 16px; text-decoration: none; font-weight: 800; cursor: pointer; }
.btn-instagram { color: #fff; background: linear-gradient(135deg, #9b31d7, #f04763 55%, #f59b34); box-shadow: 0 12px 28px rgba(219,54,103,.25); }
.btn-instagram span { font-size: 22px; }
.btn-menu { color: #fff; background: var(--secondary); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(28px) scale(.985); } }

@media (max-width: 370px) {
    .section-category-visual { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-visual { aspect-ratio: 1.7/1; }
    .product-body { min-height: 105px; }
}

@media (min-width: 700px) {
    .site-header { padding: 28px 32px 24px; }
    .menu-content { padding: 24px 30px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
    .product-body { min-height: 135px; padding: 15px; }
    .product-title { font-size: 15px; }
    .modal { align-items: center; }
}

@media (min-width: 960px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
