:root {
  --bg: #f6f2eb;
  --card: #fffaf3;
  --text: #181512;
  --muted: #74685f;
  --black: #0f0f0f;
  --accent: #d98027;
  --accent-dark: #a85714;
  --border: #eadfce;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(20, 15, 10, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); background: var(--black); color: white; box-shadow: var(--shadow); }
.topbar h1 { margin: 0; font-size: clamp(24px, 4vw, 40px); letter-spacing: -.03em; }
.track-link { color: white; border: 1px solid rgba(255,255,255,.3); padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.layout { width: min(1180px, calc(100% - 32px)); margin: 24px auto 64px; display: grid; gap: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.hero { background: linear-gradient(135deg, #fff6e6, #ffffff); }
.hero h2, .section-head h2 { margin: 0; font-size: clamp(24px, 4vw, 38px); letter-spacing: -.04em; }
.hero p { max-width: 650px; color: var(--muted); font-size: 18px; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); font-weight: 800; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px; }
.categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.category, button { border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 800; cursor: pointer; transition: .15s ease; }
.category { background: white; border: 1px solid var(--border); color: var(--text); }
.category.active, .primary { background: var(--black); color: white; }
.secondary { background: var(--accent); color: white; }
.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.danger { color: var(--danger); }
button:hover { transform: translateY(-1px); }
.menu-items { display: grid; gap: 14px; }
.menu-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: white; }
.item-image { width: 120px; height: 120px; object-fit: cover; border-radius: 18px; background: #eee1d0; }
.item-body h3 { margin: 0 0 8px; font-size: 20px; }
.item-body p { margin: 0; color: var(--muted); line-height: 1.4; }
.item-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.cart-panel { position: sticky; top: 104px; }
.cart-items { display: grid; gap: 12px; margin-bottom: 18px; }
.cart-row { display: grid; gap: 8px; padding: 12px; background: white; border-radius: 18px; border: 1px solid var(--border); }
.cart-row-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { padding: 7px 11px; }
.empty { color: var(--muted); }
.field { display: grid; gap: 8px; font-weight: 800; }
.field span { font-size: 13px; color: var(--black); font-weight: 900; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; font: inherit; background: white; color: var(--text); }
.inline-control { display: flex; gap: 10px; }
.inline-control input { min-width: 0; }
.totals { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 8px; }
.total-row { display: flex; justify-content: space-between; gap: 10px; }
.total-row.final { font-size: 20px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wide { grid-column: 1 / -1; }
.hidden { display: none; }
.hero.hidden { display: none; }
.tracking-result { margin-top: 16px; display: grid; gap: 10px; }
.status-pill { display: inline-flex; width: fit-content; padding: 8px 12px; border-radius: 999px; background: #f0e2cc; color: var(--accent-dark); font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--black); color: white; padding: 14px 18px; border-radius: 999px; box-shadow: var(--shadow); transition: .2s ease; z-index: 20; }
.toast.show { transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .cart-panel { position: static; } .menu-item { grid-template-columns: 92px 1fr; } .item-image { width: 92px; height: 92px; } .form-grid { grid-template-columns: 1fr; } }
.cart-details { color: var(--muted); font-size: 13px; line-height: 1.45; }
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(15,15,15,.55); }
.modal.hidden { display: none; }
.modal-card { width: min(620px, 100%); max-height: min(720px, 90vh); overflow: auto; background: var(--card); border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.customizer-body { display: grid; gap: 18px; margin-bottom: 18px; }
.option-group { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: white; border: 1px solid var(--border); }
.option-group h3 { margin: 0 0 4px; }
.option-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); cursor: pointer; }
.option-row:first-of-type { border-top: 0; }
.option-row input { width: auto; }
button:disabled { opacity: .55; cursor: wait; transform: none; }

.site-modal-body { display: grid; gap: 14px; }
.payment-qr { width: min(280px, 100%); justify-self: center; border-radius: 22px; border: 1px solid var(--border); background: white; padding: 10px; }
.payment-note { text-align: center; color: var(--muted); font-weight: 800; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.35; font-weight: 700; }
.field-hint.error { color: var(--danger); }
.field-hint.success { color: #1f7a3f; }
.status-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.status-step { display: grid; gap: 6px; align-content: start; min-height: 76px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: white; color: var(--muted); font-size: 12px; font-weight: 800; }
.status-step::before { content: '○'; font-size: 18px; line-height: 1; color: var(--muted); }
.status-step.done { color: var(--accent-dark); background: #fff4e4; }
.status-step.done::before { content: '✓'; color: var(--accent-dark); }
.status-step.active { color: white; background: var(--black); border-color: var(--black); }
.status-step.active::before { content: '●'; color: var(--accent); }
.receipt-actions { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: #fff4e4; border: 1px solid var(--border); }
.receipt-actions p { margin: 0; font-weight: 900; }
.receipt-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-cart-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 22px; background: var(--black); color: white; box-shadow: var(--shadow); }
.mobile-cart-bar.hidden { display: none; }
.mobile-cart-bar strong, .mobile-cart-bar span { display: block; }
.mobile-cart-bar span { color: rgba(255,255,255,.75); font-weight: 800; }
.modal-card.success { border-color: #9bd4ad; }
.modal-card.payment { border-color: var(--accent); }
.modal-card.error { border-color: var(--danger); }
@media (max-width: 900px) { .mobile-cart-bar:not(.hidden) { display: flex; } body { padding-bottom: 92px; } .status-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .category, button { min-height: 44px; } }
@media (max-width: 600px) { .layout { width: min(100% - 20px, 1180px); margin-top: 14px; } .card { border-radius: 22px; } .menu-item { grid-template-columns: 76px 1fr; gap: 12px; } .item-image { width: 76px; height: 76px; } .item-footer { align-items: stretch; flex-direction: column; } .item-footer button { width: 100%; } .modal { padding: 0; } .modal-card { width: 100%; min-height: 100dvh; border-radius: 0; } }

body { font-size: 18px; }
.category, button { font-size: 16px; }
.item-image { cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.item-image:hover, .item-image:focus-visible { transform: scale(1.03); box-shadow: 0 10px 28px rgba(20, 15, 10, .18); outline: 3px solid rgba(217,128,39,.35); }
.item-body h3 { font-size: 22px; }
.item-body p { font-size: 17px; }
.field span { font-size: 15px; }
.field-hint { font-size: 14px; }
input, textarea, select { font-size: 18px; padding: 15px 16px; }
.dish-modal-image { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 22px; background: white; }
.file-field input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.file-button { display: inline-flex; justify-content: center; align-items: center; width: fit-content; border-radius: 999px; padding: 14px 18px; background: var(--accent); color: white !important; font-size: 16px !important; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); }
.file-field:focus-within .file-button, .file-button:hover { background: var(--accent-dark); }

html { scroll-behavior: smooth; }
.topbar { flex-wrap: wrap; }
.topnav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.topnav a, .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; padding: 10px 14px; font-weight: 900; text-decoration: none; transition: .15s ease; }
.topnav a { color: white; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.topnav a:hover, .button-link:hover { transform: translateY(-1px); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: 22px; background: radial-gradient(circle at top right, rgba(217,128,39,.28), transparent 34%), linear-gradient(135deg, #fff2da, #fffdf8 58%, #ffe6bf); }
.hero::after { content: ''; position: absolute; inset: auto -80px -120px auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(217,128,39,.14); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button-link.primary { background: var(--black); color: white; }
.button-link.secondary { background: var(--accent); color: white; }
.hero-panel { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 24px; border: 1px solid rgba(217,128,39,.28); border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.hero-panel span { font-size: clamp(54px, 8vw, 86px); filter: drop-shadow(0 12px 18px rgba(20,15,10,.16)); }
.hero-panel strong { font-size: 24px; }
.hero-panel small { color: var(--muted); font-weight: 800; line-height: 1.4; }
.order-steps { position: sticky; top: 86px; z-index: 9; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 24px; background: rgba(255,250,243,.9); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.order-steps a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 900; background: white; border: 1px solid var(--border); }
.order-steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: white; font-size: 14px; }
.cart-checkout { margin-top: 14px; width: 100%; }
.payment-steps { margin: 14px 0 18px; padding: 16px 16px 16px 42px; border: 1px solid var(--border); border-radius: 20px; background: white; color: var(--text); font-weight: 800; line-height: 1.45; }
.payment-steps li + li { margin-top: 8px; }
.checkout-payment-panel { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 22px; background: white; }
.checkout-payment-panel.hidden { display: none; }
.payment-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 240px); gap: 16px; align-items: center; }
.payment-preview h3 { margin: 0 0 8px; font-size: 22px; }
.payment-preview .payment-note { text-align: left; margin: 0; }
@media (max-width: 600px) { .payment-preview { grid-template-columns: 1fr; } }
.field:has(.field-hint.error) input, .field:has(.field-hint.error) textarea, .field:has(.field-hint.error) select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
.field:has(.field-hint.success) input { border-color: #1f7a3f; box-shadow: 0 0 0 3px rgba(31,122,63,.08); }
#createdOrderText a { color: var(--accent-dark); font-weight: 900; }
@media (max-width: 900px) { .topbar { align-items: flex-start; } .topnav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; } .hero { grid-template-columns: 1fr; } .hero-panel { justify-items: start; text-align: left; } .order-steps { top: 118px; grid-template-columns: repeat(4, max-content); overflow-x: auto; justify-content: start; } }
@media (max-width: 600px) { .topnav a { padding: 9px 12px; } .hero-actions .button-link { width: 100%; } .order-steps { margin-inline: -2px; } .order-steps a { min-width: 132px; } }

.language-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,.06); color: white; font-weight: 900; }
.language-switch select { width: auto; min-width: 62px; border: 0; border-radius: 999px; padding: 7px 8px; background: white; color: var(--black); font-size: 14px; font-weight: 900; }
.hero-actions, .order-steps { display: none; }
.menu-items { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.menu-item { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
.menu-item .item-image { align-self: center; width: min(100%, 260px); height: 210px; border-radius: 24px; }
.item-body { display: flex; flex-direction: column; flex: 1; text-align: center; }
.item-body p { margin-bottom: 8px; }
.item-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.cart-panel { border: 2px solid rgba(217,128,39,.28); background: linear-gradient(180deg, #fffaf3, #fff4e4); }
.cart-actions { display: grid; gap: 14px; margin-top: 14px; }
.admin-contact { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 20px; background: white; }
.admin-contact p { margin: 0; color: var(--muted); font-weight: 900; }
.admin-contact > div { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; padding: 10px 14px; color: white; text-decoration: none; font-weight: 900; }
.contact-button.whatsapp { background: #1fa855; }
.contact-button.telegram { background: #2584c6; }
.payment-contact { margin-top: 16px; }
.mobile-cart-bar { background: #fffaf3; color: var(--text); border: 2px solid var(--accent); box-shadow: 0 18px 50px rgba(20, 15, 10, .18); }
.mobile-cart-bar span { color: var(--accent-dark); }
.mobile-cart-bar .primary { background: var(--accent); color: white; }
@media (max-width: 900px) { .topnav { align-items: center; } .menu-items { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .menu-item { display: flex; } .menu-item .item-image { width: min(100%, 240px); height: 190px; } }
@media (max-width: 600px) { .topnav { flex-wrap: wrap; } .language-switch { flex: 0 0 auto; } .menu-items { grid-template-columns: 1fr; } .menu-item .item-image { width: 100%; height: 220px; } .item-footer { flex-direction: column; } }

/* Final storefront flow overrides */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.topbar-left { display: flex; justify-content: flex-start; }
.brand-title { text-align: center; }
.topnav { justify-content: flex-end; align-items: center; }
.topbar-button { min-height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,.06); color: white; font-size: 16px; font-weight: 900; }
.hero { display: block; text-align: center; background: radial-gradient(circle at top, rgba(217,128,39,.24), transparent 36%), linear-gradient(135deg, #fff2da, #fffdf8 62%, #ffe6bf); }
.hero p { margin-left: auto; margin-right: auto; }
.menu-panel, .view-card, .status-page { width: min(960px, 100%); margin: 0 auto; }
.status-page { display: grid; gap: 22px; }
.status-page.hidden { display: none; }
.page-back { width: min(960px, 100%); margin: 0 auto -4px; display: flex; justify-content: flex-start; }
.page-back.hidden { display: none; }
.page-back .back-to-menu { background: white; }
.menu-items { grid-template-columns: 1fr; }
.menu-item { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: stretch; gap: 16px; min-height: 168px; padding: 16px; }
.menu-item .item-image { width: 136px; height: 136px; align-self: center; border-radius: 20px; }
.item-body { min-height: 136px; text-align: left; }
.item-body h3 { font-size: 21px; }
.item-body p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 15px; line-height: 1.35; }
.item-footer { flex-direction: row; align-items: center; }
.cart-panel { position: static; }
body[data-view="order"] .mobile-cart-bar, body[data-view="status"] .mobile-cart-bar { display: none !important; }
@media (max-width: 900px) { .topbar { grid-template-columns: 1fr; justify-items: center; } .topbar-left, .topnav { justify-content: center; } .brand-title { order: -1; } .menu-item { grid-template-columns: 128px minmax(0, 1fr); } .menu-item .item-image { width: 128px; height: 128px; } .item-body { min-height: 128px; } }
@media (max-width: 600px) { .menu-item { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; } .menu-item .item-image { width: 108px; height: 108px; } .item-body { min-height: 108px; } .item-body h3 { font-size: 18px; } .item-body p { -webkit-line-clamp: 2; font-size: 14px; } }

/* Compact header and single-hero cleanup */
.topbar { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px clamp(12px, 3vw, 28px); }
.brand-title { min-width: 0; flex: 1 1 auto; text-align: center; }
.brand-title .eyebrow { margin-bottom: 2px; font-size: 10px; letter-spacing: .2em; }
.topbar h1 { font-size: clamp(18px, 5vw, 30px); white-space: nowrap; }
.topnav { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 6px; width: auto; overflow: visible; padding: 0; }
.topbar-button, .language-switch { min-height: 38px; padding: 6px 10px; white-space: nowrap; }
.topbar-button { font-size: 14px; }
.cart-icon { width: 40px; padding-inline: 0; font-size: 18px; }
.language-switch select { min-width: 54px; padding: 5px 6px; font-size: 13px; }
.hero-panel, .hero-actions, .order-steps { display: none !important; }
.hero { grid-template-columns: 1fr !important; }
@media (max-width: 600px) { .topbar { gap: 6px; padding: 8px 8px; } .brand-title { text-align: left; } .brand-title .eyebrow { display: none; } .topbar h1 { font-size: 18px; } .topnav { gap: 4px; } .topbar-button, .language-switch { min-height: 34px; padding: 5px 8px; font-size: 12px; } .cart-icon { width: 34px; font-size: 16px; } .language-switch span { display: none; } .language-switch select { min-width: 48px; font-size: 12px; } }

/* Centered notifications and compact add buttons */
.toast { top: 50%; bottom: auto; transform: translate(-50%, -50%) scale(.94); border-radius: 22px; text-align: center; max-width: min(420px, calc(100% - 32px)); }
.toast.show { transform: translate(-50%, -50%) scale(1); }
.add-button { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 28px; line-height: 1; display: inline-grid; place-items: center; }
.status-contact { margin-top: 12px; }

/* Fix mobile add button sizing and hide inactive centered toast */
.toast { opacity: 0; pointer-events: none; }
.toast.show { opacity: 1; }
.item-footer .add-button { flex: 0 0 46px; width: 46px; min-width: 46px; max-width: 46px; height: 46px; }
@media (max-width: 600px) { .item-footer .add-button { align-self: flex-end; width: 46px; min-width: 46px; max-width: 46px; } }
