:root {
    --paper: #f6f2ea;
    --paper-deep: #ebe3d6;
    --surface: #fffdfa;
    --ink: #181918;
    --ink-soft: #514f49;
    --muted: #8b877e;
    --line: #ded8cd;
    --graphite: #222321;
    --graphite-soft: #3c3b36;
    --accent: #cfc2af;
    --success: #47705a;
    --danger: #a4564d;
    --shadow: 0 18px 50px rgba(30, 31, 29, .08);
    --shadow-small: 0 8px 24px rgba(30, 31, 29, .07);
    --radius: 22px;
    --radius-small: 14px;
    --max-width: 1180px;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.app-shell, .account-shell { width: min(100% - 40px, var(--max-width)); margin: 0 auto; }
.muted-text, .summary-footnote, .auth-hint, .account-card p, .hero-text { color: var(--muted); }
.eyebrow { margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

/* Brand */
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: block; width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border: 1px solid #d7d8d2; border-radius: 50%; background-color: #f0f0ed; background-image: url("Снимок экрана 2026-08-28 204047.png"); background-position: center; background-size: 175px 132px; background-repeat: no-repeat; box-shadow: inset 0 0 0 4px rgba(255,255,255,.34); }
.brand-copy { display: grid; gap: 1px; white-space: nowrap; }
.brand-copy strong { font-size: 12px; font-weight: 800; letter-spacing: .16em; line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.location-button { display: inline-flex; align-items: center; gap: 9px; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.location-button small, .location-button b { display: block; }
.location-button small { color: var(--muted); font-size: 10px; }
.location-button b { font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(71,112,90,.12); }
.chevron { margin-left: 3px; color: var(--muted); font-size: 18px; line-height: 1; }
.account-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.account-avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 800; }

/* Home */
.hero-panel { position: relative; display: flex; min-height: 405px; align-items: flex-end; justify-content: space-between; overflow: hidden; padding: 58px 62px; border: 1px solid #ddd4c7; border-radius: 28px; background: radial-gradient(circle at 83% 18%, rgba(255,255,255,.8) 0 5%, transparent 25%), linear-gradient(135deg, #e6ddcf, #f0ebe2 72%); color: var(--ink); box-shadow: 0 18px 48px rgba(93,77,58,.08); }
.hero-panel::after { position: absolute; right: 10%; top: -42%; width: 430px; height: 430px; border: 1px solid rgba(24,25,24,.13); border-radius: 50%; box-shadow: 0 0 0 34px rgba(24,25,24,.035), 0 0 0 78px rgba(24,25,24,.025); content: ''; animation: hero-float 8s ease-in-out infinite; }
.hero-panel::before { position: absolute; right: 20%; bottom: 44px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 24px -18px 0 -2px #b8a996, 42px 5px 0 -3px #fffdfa; content: ''; }
.hero-copy, .hero-note { position: relative; z-index: 1; }
.hero-panel .eyebrow { color: #777064; }
.hero-panel h1 { max-width: 650px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 6vw, 76px); font-weight: 400; letter-spacing: -.06em; line-height: .92; }
.hero-panel h1 em { color: #776c5e; font-style: italic; font-weight: 400; }
.hero-text { max-width: 410px; margin: 23px 0 28px; color: #6d685f; font-size: 13px; line-height: 1.7; }
.hero-cta { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 800; }
.hero-cta span { font-size: 17px; font-weight: 400; }
.hero-note { display: flex; align-items: center; gap: 14px; padding-bottom: 5px; color: #777064; font-size: 10px; line-height: 1.45; text-transform: uppercase; letter-spacing: .1em; }
.note-line { width: 38px; height: 1px; background: #8c8173; }
.menu-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 72px 0 25px; }
.menu-heading h2, .screen h2, .account-hero h1, .section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.055em; line-height: 1; }
.search-field { display: flex; align-items: center; gap: 9px; width: min(240px, 100%); padding: 11px 14px; border-bottom: 1px solid var(--ink); color: var(--muted); }
.search-field span { font-size: 24px; line-height: .7; transform: rotate(-20deg); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-field input::placeholder { color: var(--muted); }
.category-navbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; background: rgba(244,244,241,.93); scrollbar-width: none; }
.category-navbar::-webkit-scrollbar { display: none; }
.category-btn { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink-soft); font-size: 11px; font-weight: 700; transition: .2s ease; }
.category-btn:hover, .category-btn.active { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.menu-result-label { min-height: 22px; margin: 10px 0; color: var(--muted); font-size: 11px; }
.product-catalog { padding-bottom: 130px; }
.category-section { margin: 36px 0 50px; scroll-margin-top: 72px; content-visibility: auto; contain-intrinsic-size: 520px; }
.category-title { display: flex; align-items: center; gap: 15px; margin: 0 0 19px; font-size: 17px; letter-spacing: -.025em; }
.category-title::after { width: 100%; height: 1px; background: var(--line); content: ''; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; display: flex; min-width: 0; flex-direction: column; min-height: 316px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; animation: card-rise .55s both; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-small); }
.product-image-wrap { position: relative; overflow: hidden; background: #e8e8e3; }
.product-image { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; filter: grayscale(.65) contrast(.95); mix-blend-mode: multiply; transition: transform .35s ease; }
.product-card:hover .product-image { transform: scale(1.04); }
.product-quick-add { position: absolute; right: 11px; bottom: 11px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; font-weight: 400; line-height: 1; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 15px 15px 14px; }
.product-content h3 { margin: 0 0 7px; font-size: 14px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.product-content p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 15px; }
.product-price { font-size: 14px; font-weight: 800; }
.product-tag { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.empty-menu, .empty-state { padding: 55px 24px; border: 1px dashed var(--line); border-radius: var(--radius-small); color: var(--muted); text-align: center; }

/* Shared controls */
.checkout-button, .secondary-button, .telegram-button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 99px; font-size: 12px; font-weight: 800; transition: .2s ease; }
.checkout-button { background: var(--graphite); color: #fff; }
.checkout-button:hover { background: #171817; transform: translateY(-1px); }
.checkout-button:disabled { cursor: not-allowed; opacity: .4; transform: none; }
.secondary-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.secondary-button:hover { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.text-button { padding: 0; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.text-button:hover { color: var(--ink); }
.btn-primary { background: var(--graphite); color: #fff; }
.btn-secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning, .btn-info { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-small); }

/* Cart, modal and confirmation */
.screen { display: none; }
.screen.active { display: block; }
.screen-topbar { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 40px; }
.back-button { padding: 0; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.back-button:hover { color: var(--ink); }
.screen-kicker { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.screen-topbar-spacer { width: 55px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr); gap: 70px; padding-bottom: 110px; }
.cart-items-container { min-height: 140px; }
.cart-item { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cart-item-image { width: 86px; height: 86px; border-radius: 14px; object-fit: cover; filter: grayscale(.8); background: var(--paper-deep); }
.cart-item-name { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 800; }
.cart-item-mods, .order-card-mods { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.cart-item-controls { display: grid; justify-items: end; gap: 10px; }
.cart-item-quantity-controls { display: flex; align-items: center; gap: 9px; }
.cart-quantity-btn { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1; }
.cart-item-quantity-display { min-width: 16px; text-align: center; font-size: 12px; font-weight: 800; }
.cart-item-price { font-size: 13px; font-weight: 800; }
.cart-item-remove { padding: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.cart-tip { display: flex; gap: 9px; margin-top: 25px; color: var(--muted); font-size: 11px; }
.cart-tip span { color: var(--ink); }
.cart-summary { align-self: start; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.cart-summary h2 { margin-bottom: 32px; }
.order-comment-section label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.order-comment-section textarea { display: block; width: 100%; resize: vertical; padding: 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--paper); color: var(--ink); font-size: 12px; }
.order-comment-section textarea:focus, .form-field input:focus { border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(47,48,47,.08); }
.cart-total-section { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cart-total-section strong { color: var(--ink); font-size: 20px; letter-spacing: -.04em; }
.cart-summary .checkout-button { width: 100%; }
.summary-footnote { margin: 14px 0 0; font-size: 10px; line-height: 1.5; text-align: center; }
.cart-fab { position: fixed; right: max(20px, calc((100vw - var(--max-width)) / 2)); bottom: 22px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 172px; padding: 13px 17px 13px 20px; border-radius: 99px; background: var(--graphite); color: #fff; box-shadow: 0 13px 30px rgba(20,21,20,.24); transition: opacity .2s ease, transform .2s ease; }
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab-hidden { pointer-events: none; opacity: 0; transform: translateY(15px); }
.cart-fab-label { font-size: 12px; font-weight: 800; }
.cart-fab-meta { display: flex; align-items: center; gap: 8px; color: #cdd0ca; font-size: 11px; }
.cart-fab-meta b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: 10px; }
.modal-screen { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 20px; background: rgba(25,26,25,.38); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.modal-screen.open { opacity: 1; pointer-events: auto; }
.location-modal-card { width: min(460px, 100%); padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transform: translateY(24px); transition: transform .22s ease; }
.modal-screen.open .location-modal-card { transform: translateY(0); }
.location-modal-card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.055em; }
.location-modal-note { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.location-options { display: grid; gap: 8px; }
.location-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font-size: 12px; text-align: left; transition: .2s ease; }
.location-option:hover, .location-option.active { border-color: var(--graphite); background: var(--paper); }
.location-option .status-dot { flex: 0 0 auto; }
.location-check { margin-left: auto; color: transparent; font-size: 15px; }
.location-option.active .location-check { color: var(--ink); }
.product-modal-card { position: relative; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1fr); width: min(760px, 100%); max-height: min(700px, 92vh); overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transform: translateY(24px); transition: transform .22s ease; }
.modal-screen.open .product-modal-card { transform: translateY(0); }
.modal-image { width: 100%; height: 100%; min-height: 340px; object-fit: cover; filter: grayscale(.8); background: var(--paper-deep); }
.modal-details { overflow-y: auto; padding: 34px; }
.modal-close { position: absolute; right: 15px; top: 15px; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.86); color: var(--ink); font-size: 20px; }
.modal-details h2 { max-width: 330px; margin: 0 0 12px; font-size: 28px; }
.modal-details > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.modal-modifiers { margin: 22px 0; }
.modifier-group { margin: 17px 0; }
.modifier-group-title { margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modifier-options { display: flex; flex-wrap: wrap; gap: 7px; }
.modal-modifier-option { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-soft); font-size: 11px; }
.modal-modifier-option.selected { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.mod-price { color: var(--muted); }
.modal-modifier-option.selected .mod-price { color: #d6d8d2; }
.modal-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.modal-quantity-controls { display: flex; align-items: center; gap: 10px; }
.modal-quantity-btn { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 18px; }
.modal-quantity-display { min-width: 17px; text-align: center; font-size: 12px; font-weight: 800; }
.modal-total-price { margin-left: auto; font-size: 16px; font-weight: 800; }
.modal-add-to-cart { padding-inline: 17px; }
.confirmation-screen { min-height: calc(100vh - 120px); align-items: center; justify-content: center; padding: 50px 0 120px; }
.confirmation-screen.active { display: flex; }
.confirmation-card { width: min(520px, 100%); padding: 55px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.confirmation-symbol { display: grid; width: 58px; height: 58px; margin: 0 auto 26px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 25px; }
.confirmation-card h2 { margin-bottom: 13px; }
.confirmation-text { max-width: 330px; margin: 0 auto 26px; color: var(--muted); font-size: 12px; }
.order-number-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.order-number-card span, .order-number-card small { display: block; color: var(--muted); font-size: 10px; }
.order-number-card strong { display: block; margin: 5px 0; font-size: 36px; letter-spacing: .08em; }
.confirmation-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.confirmation-actions .checkout-button, .confirmation-actions .secondary-button { width: 100%; }
.toast-container { position: fixed; left: 50%; bottom: 23px; z-index: 80; display: grid; gap: 8px; width: min(340px, calc(100% - 40px)); transform: translateX(-50%); }
.toast-notification { padding: 13px 16px; border-radius: 12px; background: var(--graphite); color: #fff; box-shadow: var(--shadow-small); font-size: 12px; text-align: center; animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); transition: opacity .35s ease, visibility .35s ease; }
.preloader.hidden { visibility: hidden; opacity: 0; }
.preloader-mark { width: 82px; height: 82px; border: 1px solid var(--line); border-radius: 50%; background: #f0f0ed url("Снимок экрана 2026-08-28 204047.png") center / 290px 218px no-repeat; animation: preloader-pulse 1.25s ease-in-out infinite; }
@keyframes preloader-pulse { 50% { transform: scale(.92); opacity: .6; } }

/* Auth */
.auth-page { min-height: 100vh; background: radial-gradient(circle at 50% -10%, #fff 0, transparent 47%), var(--paper); }
.auth-layout { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 36px 20px; }
.auth-brand { margin-bottom: 26px; }
.auth-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.auth-card-heading h1 { margin: 0 0 11px; font-size: 34px; letter-spacing: -.06em; }
.auth-card-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 28px 0 20px; padding: 4px; border-radius: 12px; background: var(--paper); }
.auth-tab { padding: 10px 7px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.auth-form { display: grid; gap: 15px; }
.form-field label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.form-field input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--paper); color: var(--ink); font-size: 12px; }
.auth-form .checkout-button { width: 100%; margin-top: 4px; }
.form-error { min-height: 17px; margin: -5px 0 0; color: var(--danger); font-size: 11px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ''; }
.telegram-button { width: 100%; border: 1px solid #c9d5dc; background: #e8f1f5; color: #2d596e; }
.telegram-button:hover { background: #dbeaf0; }
.telegram-icon { display: grid; width: 21px; height: 21px; margin-right: 8px; place-items: center; border-radius: 50%; background: #4b91b4; color: #fff; font-size: 11px; }
.auth-hint { margin: 13px 0 0; font-size: 10px; line-height: 1.5; text-align: center; }
.auth-back { margin-top: 20px; color: var(--muted); font-size: 11px; font-weight: 700; }

/* Account */
.account-header { display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 58px 0 55px; border-top: 1px solid var(--line); }
.account-profile { display: flex; align-items: center; gap: 18px; }
.profile-avatar { display: grid; width: 68px; height: 68px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--graphite); color: #fff; font-size: 24px; font-weight: 800; }
.account-hero h1 { font-size: clamp(30px, 5vw, 48px); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 70px; padding-bottom: 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.counter-pill { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--graphite); color: #fff; font-size: 10px; font-weight: 800; }
.order-card { margin-bottom: 13px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.order-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.order-card-id { font-size: 13px; font-weight: 800; }
.order-card-date { color: var(--muted); font-size: 10px; }
.order-card-items { margin: 0; padding: 4px 0 0; list-style: none; }
.order-card-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 0; }
.order-item-image { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; filter: grayscale(.8); background: var(--paper-deep); }
.order-item-name { margin: 0; font-size: 11px; font-weight: 800; }
.order-item-volume { color: var(--muted); font-size: 10px; font-weight: 600; }
.order-card-mods { margin-top: 3px; font-size: 9px; }
.order-item-price { font-size: 11px; font-weight: 800; }
.order-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); }
.order-status { color: var(--success); font-size: 10px; font-weight: 800; }
.order-card-total { font-size: 15px; font-weight: 800; }
.account-aside { display: grid; align-content: start; gap: 14px; }
.account-card { padding: 27px; border-radius: var(--radius); background: var(--graphite); color: #fff; }
.account-card .eyebrow { color: #bfc1bd; }
.account-card h3 { margin: 0 0 13px; font-size: 25px; letter-spacing: -.05em; line-height: 1.05; }
.account-card p { margin: 0 0 22px; color: #c5c7c2; font-size: 11px; line-height: 1.6; }
.account-card .secondary-button { border-color: rgba(255,255,255,.25); color: #fff; }
.account-card .secondary-button:hover { border-color: #fff; background: #fff; color: var(--ink); }
.account-card.light { background: var(--paper-deep); color: var(--ink); }
.account-card.light .eyebrow { color: var(--muted); }
.account-card.light p { color: var(--muted); }
.account-card-note { min-height: 16px; margin-top: 12px !important; margin-bottom: 0 !important; color: #dce5dc !important; }
.empty-state h3 { margin: 7px 0; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0 0 18px; font-size: 11px; }
.empty-state .checkout-button { display: inline-flex; }
.empty-state-mark { font-size: 25px; }

/* Admin — same brand system, existing admin functionality preserved */
body:has(.admin-container) { background: var(--paper); }
.admin-container { width: min(100% - 40px, 1240px); margin: 0 auto; padding-bottom: 80px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.admin-title-wrap { display: flex; align-items: center; gap: 25px; }
.admin-header h1 { margin: 0; font-size: 25px; letter-spacing: -.05em; }
.admin-title-wrap h1::before { display: block; margin-bottom: 3px; color: var(--muted); content: 'BACK OFFICE'; font-size: 9px; letter-spacing: .16em; }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-actions .btn { min-height: 37px; padding: 8px 13px; font-size: 10px; }
.admin-categories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; padding: 35px 0; }
.admin-categories-grid .category-section { min-width: 0; margin: 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.category-header h3 { margin: 0; font-size: 16px; }
.items-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.item-card { min-height: 210px; border-radius: 13px; }
.item-card .product-image, .item-card > img { aspect-ratio: 1.35; }
.item-card > img { display: block; width: 100%; object-fit: cover; filter: grayscale(.8); background: var(--paper-deep); }
.item-card .product-info { padding: 11px; }
.item-card .name { margin: 0 0 5px; font-size: 11px; }
.item-card .price { margin: 0; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.item-card-actions { display: flex; gap: 5px; padding: 0 11px 11px; }
.btn-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.btn-icon img { width: 13px; height: 13px; }
.tab-content, .admin-section { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.admin-settings-header, .tab-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.admin-settings-header h2, .admin-section h3, .tab-header h3 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.admin-section { margin-top: 14px; }
.admin-section textarea, #broadcast-message { display: block; width: 100%; min-height: 120px; margin: 15px 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; background: var(--paper); outline: 0; }
.modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(25,26,25,.4); }
.modal-overlay .modal-content { width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.modal-overlay.wide .modal-content, .modal-content.wide { width: min(720px, 100%); }
.modal-content h2 { margin: 0 0 22px; font-size: 24px; letter-spacing: -.05em; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); outline: 0; }
.form-group textarea { min-height: 90px; resize: vertical; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-header-tabs { display: flex; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tab-link { padding: 9px 0; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.tab-link.active { border-bottom: 2px solid var(--ink); color: var(--ink); }
.checkbox-list { display: grid; gap: 8px; max-height: 180px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.list-container { display: grid; gap: 8px; }
.user-item, .list-item, .category-list-item, .modifier-list-item, .category-sort-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.user-info, .category-list-info, .modifier-list-info { display: grid; gap: 3px; min-width: 0; }
.username, .category-list-name, .modifier-list-name { font-size: 11px; font-weight: 800; }
.role, .category-list-id, .modifier-list-type { color: var(--muted); font-size: 10px; }
#auth-status { min-height: 100vh; display: grid; place-content: center; background: var(--paper); color: var(--ink); }
#auth-status h2 { margin: 0 0 9px; font-size: 24px; }
#auth-status p { color: var(--muted); font-size: 12px; }
.admin-orders-panel { padding: 35px 0; }
.admin-orders-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-orders-header h2 { margin: 0; font-size: 32px; letter-spacing: -.06em; }
.admin-orders-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-order-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow-small); }
.admin-order-card.is-archived { opacity: .65; box-shadow: none; }
.admin-order-card-top, .admin-order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-order-card-top { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-order-number { margin-right: 10px; font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.admin-order-date, .admin-order-location { color: var(--muted); font-size: 10px; }
.admin-order-card-top > strong { font-size: 15px; }
.admin-order-items { display: grid; gap: 6px; padding: 15px 0; color: var(--ink-soft); font-size: 11px; }
.admin-order-comment { margin: 0 0 14px; padding: 9px 11px; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 10px; }
.admin-order-card-bottom { padding-top: 13px; border-top: 1px solid var(--line); }
.admin-order-status { max-width: 150px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; }
.admin-orders-empty { grid-column: 1 / -1; padding: 50px; border: 1px dashed var(--line); border-radius: var(--radius-small); color: var(--muted); text-align: center; }
.admin-orders-empty strong { color: var(--ink); font-size: 15px; }
.admin-orders-empty p { margin: 6px 0 0; font-size: 11px; }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cart-layout, .account-grid { gap: 35px; }
}
@media (max-width: 680px) {
    .app-shell, .account-shell { width: min(100% - 28px, var(--max-width)); }
    .site-header { min-height: 76px; }
    .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
    .brand-copy strong { font-size: 10px; }
    .brand-copy small { font-size: 8px; }
    .header-actions { gap: 10px; }
    .location-button { display: inline-flex; width: 22px; justify-content: center; gap: 0; }
    .location-button > span:nth-child(2), .location-button .chevron { display: none; }
    .account-label { display: none; }
    .hero-panel { min-height: 440px; align-items: flex-start; flex-direction: column; padding: 38px 26px; }
    .hero-panel h1 { font-size: 48px; }
    .hero-note { margin-top: auto; }
    .menu-heading { align-items: flex-start; flex-direction: column; margin: 50px 0 14px; }
    .search-field { width: 100%; }
    .category-navbar { margin: 0 -14px; padding: 12px 14px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .product-card { min-height: 264px; }
    .product-content { padding: 12px; }
    .product-content h3 { font-size: 12px; }
    .product-content p { font-size: 10px; }
    .product-price { font-size: 12px; }
    .product-tag { display: none; }
    .cart-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-width: 154px; }
    .screen-topbar { padding-top: 22px; padding-bottom: 26px; }
    .cart-layout, .account-grid { grid-template-columns: 1fr; gap: 28px; }
    .cart-summary { order: -1; padding: 23px; }
    .cart-summary h2 { margin-bottom: 22px; }
    .cart-item { grid-template-columns: 62px minmax(0, 1fr); gap: 11px; }
    .cart-item-image { width: 62px; height: 62px; }
    .cart-item-controls { grid-column: 2; grid-template-columns: auto auto; justify-items: start; align-items: center; }
    .cart-item-remove { grid-column: 2; grid-row: 1; justify-self: end; }
    .product-modal-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
    .location-modal-card { padding: 24px; }
    .modal-image { height: 210px; min-height: 0; }
    .modal-details { padding: 25px; }
    .confirmation-card { padding: 37px 21px; }
    .account-header { min-height: 76px; }
    .account-hero { align-items: flex-start; flex-direction: column; padding: 37px 0; }
    .account-profile { gap: 13px; }
    .profile-avatar { width: 56px; height: 56px; font-size: 20px; }
    .account-hero h1 { font-size: 32px; }
    .account-card { padding: 23px; }
    .order-card-header { align-items: flex-start; flex-direction: column; gap: 4px; }
    .admin-container { width: min(100% - 28px, 1240px); }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .admin-title-wrap { align-items: flex-start; flex-direction: column; gap: 14px; }
    .admin-actions { justify-content: flex-start; }
    .admin-categories-grid { grid-template-columns: 1fr; }
    .admin-orders-list { grid-template-columns: 1fr; }
    .admin-orders-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-card { min-height: 252px; }
    .product-content { padding: 10px; }
    .product-content h3 { font-size: 11px; }
    .product-content p { font-size: 9px; }
    .product-quick-add { right: 7px; bottom: 7px; width: 31px; height: 31px; font-size: 18px; }
}

/* Official Pan Kruassan product photography and motion polish */
.brand-mark { background-size: contain; }
.preloader-mark { background-size: contain; }
.product-image.official-product-image { object-fit: contain; padding: 12px 18px; background: linear-gradient(145deg, #eee7dc, #faf7f0); filter: none; mix-blend-mode: normal; }
.modal-image { object-fit: contain; padding: 24px; filter: none; background: linear-gradient(145deg, #eee7dc, #faf7f0); }
.hero-panel.compact-hero { min-height: 228px; align-items: center; padding: 32px 42px; border-radius: 20px; }
.compact-hero::before, .compact-hero::after { display: none; }
.compact-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: .94; }
.compact-hero .hero-text { max-width: none; margin: 13px 0 16px; font-size: 12px; }
.compact-hero .hero-cta { font-size: 11px; }
.cart-item-volume { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 600; }
.volume-group { margin-top: 22px; }
.volume-group-title { margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.volume-options { display: flex; flex-wrap: wrap; gap: 7px; }
.modal-volume-option { min-width: 67px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-soft); font-size: 11px; font-weight: 800; transition: .2s ease; }
.modal-volume-option span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
.modal-volume-option:hover, .modal-volume-option.selected { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.modal-volume-option:hover span, .modal-volume-option.selected span { color: #d2d4ce; }
@keyframes hero-float { 50% { transform: translate(8px, 10px) rotate(3deg); } }
@keyframes card-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 680px) {
    .hero-panel.compact-hero { min-height: 205px; padding: 25px 21px; }
    .compact-hero h1 { font-size: 36px; }
    .compact-hero .hero-text { margin: 10px 0 14px; font-size: 11px; }
    .modal-volume-option { min-width: 62px; padding: 8px 9px; }
}

/* Coffee shop picker */
.location-picker-card { width: min(780px, 100%); max-height: min(90vh, 760px); overflow: hidden; padding: 28px; }
.location-picker-card h2 { margin-bottom: 8px; }
.location-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.location-tools .secondary-button { min-height: 38px; padding: 9px 13px; font-size: 11px; }
.location-tools .secondary-button:disabled { cursor: wait; opacity: .55; }
.location-tools > span { color: var(--muted); font-size: 10px; }
.location-map { position: relative; height: 255px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #e9e8e2; }
.location-map .leaflet-container { height: 100%; width: 100%; background: #e7e6df; font-family: var(--font); }
.location-map .leaflet-control-attribution { font-size: 8px; }
.location-map-loading, .location-map-fallback { display: grid; height: 100%; place-items: center; padding: 25px; color: var(--muted); font-size: 11px; text-align: center; }
.location-map-caption { margin: 9px 0 12px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.location-options { max-height: 220px; overflow-y: auto; padding-right: 3px; }
.location-option-row { display: flex; align-items: stretch; gap: 5px; }
.location-option-row + .location-option-row { margin-top: 6px; }
.location-option { min-width: 0; padding: 10px 11px; text-align: left; }
.location-option-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.location-option-copy strong { overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.location-option-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.location-distance { flex: 0 0 auto; align-self: center; color: var(--muted); font-size: 9px; white-space: nowrap; }
.location-yandex-link { display: grid; width: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); font-size: 16px; }
.location-yandex-link:hover { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.nearby-location-card { width: min(430px, 100%); text-align: center; }
.nearby-location-card .location-modal-note { margin-bottom: 22px; }
.nearby-location-card .checkout-button, .nearby-location-card .secondary-button { width: 100%; }
.nearby-location-card .secondary-button { margin-top: 8px; }
.nearby-location-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: 25px; }
@media (max-width: 680px) {
    .location-picker-card { max-height: 92vh; padding: 22px 17px; }
    .location-map { height: 210px; }
    .location-options { max-height: 195px; }
    .location-tools { margin-top: 16px; }
}
