/* Segafredo ordering website */

@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
    --red: #ec1c24;
    --red-dark: #c4121a;
    --red-tint: #fdecec;
    --ink: #1c1c1c;
    --muted: #7a7a7a;
    --line: #e6e6e6;
    --bg: #f6f6f6;
    --panel: #ffffff;
    --green: #1e9e5a;
    --green-tint: #e9f7ef;
    --amber: #b26a00;
    --amber-tint: #fff4e0;
    --radius: 8px;
    --shadow: 0 2px 14px rgba(0, 0, 0, .06);
    --wrap: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(236, 28, 36, .45); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.page { padding-top: 32px; padding-bottom: 56px; }
.narrow { max-width: 480px; }
.narrow-wide { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.red { color: var(--red); }
.green { color: var(--green); }
.d-block { display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em;
    min-height: 44px; padding: .55em 1.3em;
    border: 1px solid transparent; border-radius: 4px;
    font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: .35em .9em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: var(--red-dark); color: #fff; }
.btn-outline { background: #fff; border-color: #cfcfcf; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-red { background: #fff; border-color: var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red-tint); color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: #f0f0f0; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font-weight: 700; cursor: pointer; text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    background: transparent; border: 0; border-radius: 4px; cursor: pointer; font-size: 1.25rem;
}
.icon-btn:hover { background: #eee; }
.icon-btn.dark { background: #000; color: #fff; }
.icon-btn.dark:hover { background: #333; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 86px; }
.brand img { width: 62px; height: auto; }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
    padding: 30px 12px 27px; text-decoration: none; font-weight: 500; font-size: 1.05rem;
    border-bottom: 3px solid transparent;
}
.site-nav a.is-active { border-bottom-color: #000; }
.site-nav a:hover { color: var(--ink); border-bottom-color: #bbb; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; font-size: 1.6rem; text-decoration: none; padding: 4px; }
.cart-badge {
    position: absolute; top: -4px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px; background: #000; color: #fff; font-size: .75rem; font-weight: 700;
    display: grid; place-items: center; border: 2px solid #fff;
}
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.8rem; cursor: pointer; padding: 4px 8px; }
.account-menu { position: relative; }
.account-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff;
    border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .14); padding: 6px; z-index: 60;
}
.account-dropdown a, .account-dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    background: none; border: 0; border-radius: 4px; text-align: left; text-decoration: none; cursor: pointer;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: #f4f4f4; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 44px 0 0; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-logo { width: 80px; height: auto; background: #fff; border-radius: 50%; padding: 4px; }
.social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.social a {
    display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #fff; border-radius: 50%;
    color: #fff; text-decoration: none; font-size: 1.05rem;
}
.social a:hover { background: #fff; color: #000; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: #ccc; }
.copyright {
    width: 100%; margin: 12px 0 0; padding: 16px 0; border-top: 1px solid #444;
    text-align: center; text-transform: uppercase; font-size: .85rem; letter-spacing: .02em;
}

/* ---------- Common blocks ---------- */
.panel { background: var(--panel); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 40px 20px; }
.section { padding-top: 48px; padding-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title { color: var(--red); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; padding-bottom: 16px; position: relative; margin-bottom: 24px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 80px; height: 5px; border-radius: 3px; background: #000; }
.scroller-nav { display: flex; gap: 4px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #999; }
.status-dot.is-open { background: #2ecc71; }
.pill { display: inline-block; padding: .2em .75em; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--green-tint); color: var(--green); }
.pill-bad { background: var(--red-tint); color: var(--red-dark); }
.pill-wait { background: var(--amber-tint); color: var(--amber); }
.pill-info { background: #e8f0fe; color: #1f5fbf; }
.alert { padding: 12px 14px; border-radius: 6px; }
.alert-bad { background: var(--red-tint); color: var(--red-dark); }
.tag { display: inline-block; padding: .2em .7em; margin: 0 6px 6px 0; border-radius: 999px; background: #f1f1f1; font-size: .85rem; }
.back-link { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 16px; text-decoration: none; font-weight: 600; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input[type=text], input[type=tel], input[type=email], input[type=search], input[type=date], input:not([type]), select, textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d6d6d6; border-radius: 4px; background: #fff;
}
textarea { min-height: 70px; resize: vertical; }
input:disabled { background: #f3f3f3; color: var(--muted); }
.field-error, .form-error { color: var(--red-dark); font-size: .9rem; margin: 6px 0 0; min-height: 0; }
.form-error { margin: 10px 0; }
.input-prefix { display: flex; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; background: #f1f1f1; border: 1px solid #d6d6d6; border-right: 0; border-radius: 4px 0 0 4px; font-weight: 600; }
.input-prefix input { border-radius: 0 4px 4px 0; }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Search bar (home hero and menu) */
.search-bar { display: flex; align-items: center; background: #fff; border-radius: 4px; position: relative; }
.search-bar > i { position: absolute; left: 16px; color: var(--muted); font-size: 1.1rem; pointer-events: none; }
.search-bar input { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 4px 0 0 4px; padding-left: 44px; min-height: 50px; }
.search-bar .btn { min-height: 50px; border-radius: 0 4px 4px 0; padding: 0 2em; }
.search-bar.panel { padding: 14px; }

/* ---------- Home ---------- */
.hero {
    position: relative; min-height: 530px; display: grid; align-items: center;
    background: #222 var(--hero) center / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .35)); }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-title { color: var(--red); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: .3em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero-sub { color: var(--red); text-transform: uppercase; font-size: clamp(1rem, 1.8vw, 1.3rem); margin: 0 0 32px; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero-search { width: 100%; max-width: 690px; }
.hero-status { margin: 18px 0 0; color: #fff; background: rgba(0, 0, 0, .45); padding: 6px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.hero-status a { color: #fff; font-weight: 700; }

.quick-list { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 4px 2px 16px; scrollbar-width: thin; }
.quick-list li { flex: 0 0 200px; scroll-snap-align: start; }
.quick-card { display: block; background: #fafafa; text-decoration: none; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.quick-card img { width: 100%; height: 115px; object-fit: cover; }
.quick-card span { display: block; padding: 12px; text-align: center; font-weight: 500; }
.quick-card:hover { color: var(--red); }

.app-promo { padding: 48px 0 24px; }
.app-promo-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; background: #eceef3; border-radius: var(--radius); overflow: hidden; padding: 0; }
.app-promo-inner.no-image { grid-template-columns: 1fr; padding: 40px; }
.app-promo-img { width: 100%; height: 100%; object-fit: cover; }
.app-promo-text { padding: 32px; }
.app-promo-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.app-promo-text p { font-size: 1.1rem; margin-bottom: 24px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none;
    border-radius: 8px; padding: 8px 16px; min-width: 160px; border: 1px solid #555;
}
.store-badge i { font-size: 1.7rem; }
.store-badge span { display: flex; flex-direction: column; font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.store-badge small { font-size: .65rem; font-weight: 500; text-transform: uppercase; }
.store-badge:hover { color: #fff; background: #222; }

/* ---------- Outlet page ---------- */
.cover { height: 350px; background: #444 var(--cover) center / cover no-repeat; }
.outlet-card {
    position: relative; display: flex; gap: 28px; align-items: center;
    margin-top: -70px; background: #fff; border-radius: var(--radius); padding: 16px 100px 16px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}
.outlet-logo { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; flex: none; }
.outlet-info h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.outlet-address { color: var(--muted); margin: 0 0 12px; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ddd; border-radius: 4px; padding: 6px 12px; font-weight: 500; }
.chip a { text-decoration: none; }
.status-badge { position: absolute; top: 16px; right: 16px; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 18px; border-radius: 3px; }
.status-badge.is-open { background: var(--green); }
.status-badge.small { position: static; display: inline-block; margin-top: 6px; padding: 3px 10px; }
.order-title { margin-top: 56px; }

.tabs { display: inline-flex; border: 2px solid #000; border-radius: 999px; overflow: hidden; margin-bottom: 20px; background: #000; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 28px; border: 0; background: #000; color: #fff; font-weight: 600; font-size: 1.05rem; cursor: pointer; border-radius: 999px; }
.tab.is-active { background: #fff; color: #000; }
.tab i { font-size: 1.3rem; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.order-main > div > * + * { margin-top: 20px; }
.order-side { position: sticky; top: 104px; }

.cat-bar { display: flex; align-items: center; gap: 20px; }
.cat-chips { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; padding: 10px 26px; background: #fff; border: 1px solid transparent; border-radius: 4px; box-shadow: var(--shadow); cursor: pointer; font-size: 1rem; white-space: nowrap; }
.cat-chip:hover { border-color: #bbb; }
.cat-chip.is-active { background: #000; color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 14px; }
.filter-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-row input { width: 17px; height: 17px; accent-color: #000; }

.closed-note { text-align: center; margin: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.closed-note span { background: var(--red); color: #fff; padding: 6px 26px; }
.no-results { text-align: center; color: var(--muted); }

.menu-section h3 { font-size: 1.3rem; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.item-open {
    display: flex; gap: 28px; align-items: flex-start; width: 100%; text-align: left;
    background: none; border: 0; padding: 0; cursor: pointer; border-radius: 6px;
}
.item-open:hover .item-name { color: var(--red); }
.item-img { position: relative; flex: none; width: 100px; height: 100px; border-radius: 6px; overflow: hidden; background: #f1f1f1; display: grid; place-items: center; color: #bbb; font-size: 2rem; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.ribbon { position: absolute; top: 12px; left: 0; background: var(--red); color: #fff; font-size: .85rem; font-weight: 600; padding: 2px 10px 2px 8px; }
.item-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; padding-top: 4px; }
.item-name { font-size: 1.15rem; font-weight: 500; }
.item-desc { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-weight: 700; font-size: 1.1rem; }
.item-add { flex: none; align-self: center; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--red); color: var(--red); }
.item-open:hover .item-add { background: var(--red); color: #fff; }
.is-hidden { display: none !important; }

/* Cart */
.cart-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.cart-head h2 { font-size: 1.4rem; font-weight: 700; margin: 0; display: flex; gap: 10px; align-items: center; }
.cart-empty { text-align: center; color: var(--red); padding: 16px 0; }
.cart-empty i { font-size: 2rem; color: #bbb; display: block; margin-bottom: 8px; }
.cart-lines { list-style: none; margin: 0 0 14px; padding: 0; max-height: 46vh; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cart-line-name { font-weight: 600; }
.cart-line small { color: var(--muted); display: block; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; }
.qty-box button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1rem; }
.qty-box button:hover { background: #f1f1f1; }
.qty-box span { min-width: 26px; text-align: center; font-weight: 700; }
.cart-line-price { text-align: right; font-weight: 700; align-self: center; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.mobile-cart-bar { display: none; }

/* Reviews */
.reviews-summary { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.reviews-avg { text-align: center; }
.reviews-avg strong { font-size: 3rem; display: block; line-height: 1; }
.stars { color: #f5a623; letter-spacing: 2px; margin: 4px 0; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 36px; gap: 10px; align-items: center; font-size: .9rem; }
.dist-bar { height: 8px; border-radius: 4px; background: #eee; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: #f5a623; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Modal ---------- */
.modal { border: 0; border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal-body { padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-img { width: calc(100% + 44px); margin: -22px -22px 16px; height: 220px; object-fit: cover; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.opt-group { border: 0; margin: 18px 0 0; padding: 0; }
.opt-group legend { font-weight: 700; display: flex; justify-content: space-between; width: 100%; gap: 8px; padding: 0; margin-bottom: 8px; }
.opt-group legend small { font-weight: 500; color: var(--muted); }
.opt-group legend small.is-required { color: var(--red-dark); }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--red); }
.opt span { flex: 1; }
.opt em { font-style: normal; color: var(--muted); }
.modal-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.modal-foot .btn { flex: 1; justify-content: space-between; }

/* ---------- Auth ---------- */
.auth h1 { font-size: 1.6rem; }
.resend { margin-top: 14px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.checkout-main { display: grid; gap: 18px; }
.checkout-side { position: sticky; top: 104px; }
.step h2, .summary h2, .order-detail h2, .account-grid h2 { font-size: 1.2rem; font-weight: 700; }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-head h2 { margin: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 10px; }
.segmented label, .pay-option {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #d6d6d6; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.segmented label:has(input:checked), .pay-option:has(input:checked) { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.segmented label.is-disabled { opacity: .5; cursor: not-allowed; }
.segmented input, .pay-option input { accent-color: #000; }
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.address-list { display: grid; gap: 10px; }
.address-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #ddd; border-radius: 6px; }
.address-card:has(input:checked) { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.address-card input { margin-top: 4px; accent-color: #000; }
.address-card .addr-text { flex: 1; }
.address-card .addr-actions { display: flex; gap: 4px; }
.summary-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.summary-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary-lines .qty { font-weight: 700; }
.summary-lines .amt { font-weight: 600; text-align: right; }
.totals { margin: 0 0 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.summary .btn + .btn { margin-top: 8px; }

/* Map (address) */
.map-box { position: relative; height: 260px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; background: #e9e9e9; }
.map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 2.4rem; color: var(--red); z-index: 500; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.map-locate { position: absolute; right: 10px; bottom: 10px; z-index: 500; }

/* ---------- Orders ---------- */
.order-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.order-card { display: flex; justify-content: space-between; gap: 16px; text-decoration: none; }
.order-card:hover { color: inherit; box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
.order-card-main, .order-card-side { display: flex; flex-direction: column; gap: 2px; }
.order-card-side { align-items: flex-end; text-align: right; }
.order-detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.order-detail-main, .order-detail-side { display: grid; gap: 18px; }
.order-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.order-head h1 { font-size: 1.6rem; margin-bottom: 4px; }
.steps { list-style: none; margin: 18px 0; padding: 0; }
.steps li { position: relative; display: flex; gap: 14px; align-items: center; padding: 8px 0 8px 0; color: var(--muted); }
.steps li + li::before { content: ""; position: absolute; left: 8px; top: -10px; height: 20px; border-left: 2px solid #ddd; }
.steps .step-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc; background: #fff; flex: none; }
.steps .is-done { color: var(--ink); }
.steps .is-done .step-dot { background: var(--green); border-color: var(--green); }
.steps .is-done + .is-done::before { border-color: var(--green); }
.steps .is-current { font-weight: 700; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0 0 12px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: #ddd; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 3px solid rgba(236, 28, 36, .45); }
.tag-pick button { margin: 0 6px 8px 0; padding: .35em .9em; border-radius: 999px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.tag-pick button[aria-pressed=true] { background: #000; color: #fff; border-color: #000; }
.feedback textarea { margin-bottom: 12px; }

/* ---------- Account / pages ---------- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.danger-zone h2 { color: var(--red-dark); }
.outlet-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.outlet-tile { display: flex; gap: 16px; text-decoration: none; align-items: center; }
.outlet-tile img { border-radius: 6px; object-fit: cover; }
.outlet-tile > span { display: flex; flex-direction: column; }
.text-page { padding: 32px; }
.text-page h1 { color: var(--red); font-size: 2rem; }
.text-page p { margin: 0 0 1em; }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
    background: #000; color: #fff; padding: 12px 20px; border-radius: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); max-width: calc(100vw - 32px);
}

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
    .order-layout, .checkout, .order-detail { grid-template-columns: minmax(0, 1fr); }
    .order-side { display: none; }
    .order-side.is-open { display: block; position: fixed; inset: auto 0 0 0; top: auto; z-index: 70; max-height: 85vh; overflow-y: auto; }
    .order-side.is-open .cart { border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
    .mobile-cart-bar:not([hidden]) {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
        background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 14px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    }
    .checkout-side { position: static; }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); gap: 0; }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .site-nav a.is-active { border-bottom-color: var(--line); color: var(--red); }
    .header-row { gap: 12px; min-height: 70px; position: relative; }
    .brand img { width: 52px; }
    .header-actions { margin-left: 0; }
    .app-promo-inner { grid-template-columns: 1fr; }
    .cover { height: 200px; }
    .outlet-card { flex-direction: column; align-items: flex-start; padding: 16px; margin-top: -50px; gap: 12px; }
    .outlet-logo { width: 80px; height: 80px; }
}
@media (max-width: 600px) {
    .hero { min-height: 420px; }
    .search-bar .btn { padding: 0 1em; }
    .item-open { gap: 14px; }
    .item-img { width: 80px; height: 80px; }
    .tab { padding: 8px 16px; font-size: .95rem; }
    .grid-2, .schedule { grid-template-columns: 1fr; }
    .reviews-summary { grid-template-columns: 1fr; }
    .panel { padding: 16px; }
    .text-page { padding: 20px; }
    .order-card { flex-direction: column; }
    .order-card-side { align-items: flex-start; text-align: left; }
    .header-actions .btn-sm { padding: .35em .7em; }
}

/* Flex / grid children may shrink below their content (stops sideways scrolling on phones) */
.cat-chips, .search-bar input, .order-main, .checkout-main, .outlet-info, .item-text, .app-promo-text { min-width: 0; }
html, body { overflow-x: hidden; }
