:root {
    --success: #2f7d54;
    --danger: #b7443e;
    --shadow: 0 18px 50px rgba(86, 53, 32, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--page);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 max(22px, 6vw);
    background: color-mix(in srgb, var(--page) 94%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 10%, transparent);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 600;
}

.site-nav a {
    position: relative;
    color: var(--muted);
}

.site-nav a:hover {
    color: var(--brand);
}

.cart-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
}

.site-main {
    min-height: calc(100vh - 200px);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 42px max(22px, 6vw);
    background: var(--ink);
    color: var(--page);
}

.site-footer strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
}

.site-footer p {
    margin: 8px 0 0;
    color: color-mix(in srgb, var(--page) 72%, transparent);
    max-width: 560px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    color: color-mix(in srgb, var(--page) 84%, transparent);
}

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.primary-button,
.ghost-button {
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 160ms ease;
}

.primary-button {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(95, 45, 24, 0.18);
}

.primary-button:hover {
    transform: translateY(-1px);
    background: var(--brand-dark);
}

.primary-button:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.ghost-button {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--line);
}

.ghost-button:hover {
    background: var(--accent-soft);
}

.primary-button.small,
.ghost-button.small {
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
}

.full-width {
    width: 100%;
}

.home-hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 52px;
    padding: 72px max(22px, 7vw);
    background:
        radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 32%),
        linear-gradient(180deg, var(--page) 0%, var(--page-2) 100%);
}

.hero-copy h1 {
    margin: 14px 0 18px;
    max-width: 720px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.hero-copy > p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hero-points span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--success);
}

.hero-visual {
    display: grid;
    place-items: center;
}

.hero-image-shell {
    width: min(520px, 100%);
    aspect-ratio: 1 / 1;
    padding: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 30px 80px rgba(86, 53, 32, 0.14);
}

.hero-image-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.home-section {
    padding: 82px max(22px, 7vw);
}

.home-section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.5);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading.centered {
    display: block;
    text-align: center;
    margin-bottom: 36px;
}

.section-heading.compact {
    margin-bottom: 20px;
}

.section-heading h2,
.menu-page-head h1,
.checkout-title h1,
.track-lookup-card h1,
.tracking-hero-card h1 {
    margin: 8px 0 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
}

.section-heading p,
.checkout-title p,
.track-lookup-card p,
.menu-page-head p {
    margin: 6px 0 0;
    color: var(--muted);
}


.food-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.food-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(86, 53, 32, 0.11);
}

.food-card-image {
    position: relative;
    height: 240px;
    background: #f5ede5;
}

.food-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.food-card-body {
    padding: 20px;
}

.food-card-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.food-card-body p {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    white-space: pre-line;
}

.food-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.food-card-bottom strong {
    color: var(--brand);
}

.round-add-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(86, 53, 32, 0.05);
}

.category-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f3ebe3;
}

.category-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px;
}

.category-card span {
    color: var(--muted);
    font-size: 12px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.review-card {
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.review-card p {
    color: #65584f;
    line-height: 1.7;
}

.stars {
    color: #d99237;
    letter-spacing: 2px;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.branch-card {
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.branch-pin {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--brand);
    font-size: 20px;
}

.branch-card h3 {
    margin: 0 0 8px;
}

.branch-card p {
    min-height: 42px;
    color: var(--muted);
}

.branch-card a {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.branch-map-link {
    color: var(--brand);
    font-weight: 800;
}

.menu-page-head {
    padding: 62px max(22px, 7vw) 28px;
    text-align: center;
}

.category-tabs {
    position: sticky;
    top: 76px;
    z-index: 70;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px max(22px, 7vw);
    background: rgba(255, 250, 243, 0.96);
    backdrop-filter: blur(10px);
    border-block: 1px solid rgba(95, 45, 24, 0.08);
}

.category-tabs a {
    white-space: nowrap;
    padding: 10px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: #65584f;
    font-size: 13px;
    font-weight: 700;
}

.category-tabs a.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.menu-list {
    display: grid;
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 38px max(22px, 5vw) 80px;
}

.menu-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 190px;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(86, 53, 32, 0.055);
}

.menu-row > img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    background: #f3ebe3;
}

.menu-row-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.menu-row-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.menu-row-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    white-space: pre-line;
}

.menu-row-action {
    min-width: 130px;
    display: grid;
    justify-items: end;
    gap: 18px;
}

.menu-row-action strong {
    color: var(--brand);
}

.empty-customer-state,
.customer-alert {
    padding: 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}

.customer-alert.danger {
    border-color: #efc6c2;
    background: #fff2f0;
    color: var(--danger);
}

.app-modal[hidden] {
    display: none;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(38, 26, 18, 0.55);
    backdrop-filter: blur(4px);
}

.app-modal-card {
    position: relative;
    z-index: 1;
    width: min(700px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(45, 30, 19, 0.25);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff7ef;
    color: var(--brand);
    font-size: 22px;
    cursor: pointer;
}

.item-modal-card {
    padding: 24px;
}

.item-modal-top {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding-right: 36px;
}

.item-modal-top img {
    width: 160px;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
    background: #f4ece4;
}

.item-modal-top h2 {
    margin: 6px 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 30px;
}

.item-modal-top p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
}

.item-options-scroll {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.item-option-group {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    transition: 140ms ease;
}

.item-option-group.has-error {
    border-color: #d96860;
    box-shadow: 0 0 0 3px rgba(217, 104, 96, 0.1);
}

.item-option-group legend {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 0 3px;
    font-weight: 800;
}

.item-option-group legend small {
    color: var(--muted);
    font-weight: 600;
}

.choice-list {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 11px;
    background: #fffaf6;
    cursor: pointer;
}

.choice-row input {
    accent-color: var(--brand);
}

.choice-row span {
    flex: 1;
}

.choice-row small {
    color: var(--brand);
    font-weight: 700;
}

.option-error {
    margin-top: 9px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

.item-note-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    font-weight: 700;
}

.item-note-field small,
.cart-item-note small,
.customer-grid small {
    color: var(--muted);
    font-weight: 500;
}

.item-note-field textarea,
.customer-grid input,
.customer-grid textarea,
.promo-input-row input,
.track-lookup-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    padding: 12px 13px;
    color: var(--ink);
}

.item-note-field textarea,
.customer-grid textarea {
    min-height: 90px;
    resize: vertical;
}

.item-modal-footer {
    position: sticky;
    bottom: -24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px -24px -24px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 5px;
    border-radius: 12px;
    background: #f5ede6;
}

.qty-control button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: var(--brand);
    font-size: 19px;
    cursor: pointer;
}

.qty-control button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.qty-control strong {
    min-width: 22px;
    text-align: center;
}

.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px max(20px, 4vw) 80px;
}

.checkout-main {
    min-width: 0;
}

.checkout-title {
    margin-bottom: 26px;
}

.checkout-items {
    display: grid;
    gap: 14px;
}

.checkout-item,
.checkout-card,
.order-summary-card,
.tracking-hero-card,
.track-lookup-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.checkout-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 14px;
}

.checkout-item > img {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    object-fit: cover;
    background: #f4ece4;
}

.checkout-item-info h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.item-options-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.cart-item-note {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: #574940;
    font-size: 12px;
    font-weight: 700;
}

.cart-item-note input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid var(--line);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.checkout-card {
    margin-top: 18px;
    padding: 22px;
}

.promo-card {
    display: grid;
    grid-template-columns: 1fr minmax(250px, 0.8fr);
    gap: 18px;
    align-items: center;
}

.promo-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.promo-input-row {
    display: flex;
    gap: 8px;
}

.fulfillment-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    border-radius: 13px;
    background: #f4ece4;
}

.fulfillment-toggle button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #675950;
    font-weight: 800;
    cursor: pointer;
}

.fulfillment-toggle button.active {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 6px 16px rgba(86, 53, 32, 0.08);
}

.fulfillment-panel {
    margin-top: 18px;
}

.location-status {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.location-status small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.location-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.delivery-map {
    height: 320px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #eee5dc;
}

.delivery-quote {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.delivery-quote > div {
    padding: 12px;
    border-radius: 11px;
    background: #fff8f1;
}

.delivery-quote span,
.tracking-meta span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pickup-branches {
    display: grid;
    gap: 10px;
}

.pickup-branch {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf6;
    cursor: pointer;
}

.pickup-branch.closed {
    opacity: 0.5;
    cursor: not-allowed;
}

.pickup-branch small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.pickup-branch em {
    color: var(--success);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.pickup-branch.closed em {
    color: var(--danger);
}

.customer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.customer-grid label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.customer-grid .wide {
    grid-column: 1 / -1;
}

.otp-panel {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 15px;
    border-radius: 13px;
    background: #fff8f1;
    border: 1px solid var(--line);
}

.otp-panel small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.otp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.otp-actions input {
    flex: 1 1 160px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.order-summary-card {
    position: sticky;
    top: 98px;
    align-self: start;
    padding: 24px;
}

.order-summary-card h2 {
    margin: 7px 0 22px;
    font-family: "Fraunces", Georgia, serif;
}

.summary-lines {
    display: grid;
    gap: 13px;
}

.summary-lines > div,
.summary-total,
.tracking-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.summary-lines span {
    color: var(--muted);
}

.summary-total {
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 20px;
}

.summary-total strong {
    color: var(--brand);
}

.secure-note {
    margin-top: 13px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.inline-message {
    min-height: 18px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.inline-message.error {
    color: var(--danger);
}

.inline-message.success {
    color: var(--success);
}

.link-danger,
.table-link {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.link-danger {
    color: var(--danger);
}

.table-link {
    color: var(--brand);
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gap-sm {
    gap: 12px;
}

.track-lookup-shell {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 60px 20px;
}

.track-lookup-card {
    width: min(500px, 100%);
    padding: 30px;
}

.stack {
    display: grid;
    gap: 14px;
}

.track-lookup-card label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.tracking-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px max(20px, 4vw) 80px;
}

.tracking-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
}

.tracking-status {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--brand);
    font-weight: 800;
}

.tracking-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 28px 0;
}

.tracking-step {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #a99a8f;
    font-size: 12px;
}

.tracking-step span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #dfd2c8;
    background: #fff;
}

.tracking-step.done {
    color: var(--brand);
}

.tracking-step.done span {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.tracking-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
}

.tracking-grid .checkout-card {
    margin-top: 0;
}

.tracking-items {
    display: grid;
    gap: 12px;
}

.tracking-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.tracking-item p,
.tracking-item small {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
}

.tracking-meta {
    display: grid;
    gap: 11px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .home-hero,
    .checkout-shell,
    .tracking-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-shell {
        width: min(380px, 86vw);
    }

    .review-grid,
    .branch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-summary-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        min-height: 68px;
        padding: 0 16px;
    }

    .site-brand span:last-child {
        display: none;
    }

    .site-nav {
        gap: 13px;
        font-size: 12px;
    }

    .site-nav a:first-child {
        display: none;
    }

    .home-hero {
        min-height: auto;
        padding: 38px 18px 52px;
        gap: 30px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-points {
        display: grid;
        gap: 10px;
    }

    .home-section {
        padding: 58px 18px;
    }

    .review-grid,
    .branch-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .menu-row {
        grid-template-columns: 115px 1fr;
        min-height: 150px;
    }

    .menu-row > img {
        min-height: 150px;
    }

    .menu-row-body {
        display: grid;
        gap: 14px;
        padding: 16px;
    }

    .menu-row-copy h2 {
        font-size: 17px;
    }

    .menu-row-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 13px;
    }

    .menu-row-action {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .item-modal-card {
        padding: 18px;
    }

    .item-modal-top {
        grid-template-columns: 94px 1fr;
        padding-right: 26px;
    }

    .item-modal-top img {
        width: 94px;
        height: 94px;
    }

    .item-modal-top h2 {
        font-size: 23px;
    }

    .item-modal-footer {
        margin: 20px -18px -18px;
        padding: 14px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .qty-control {
        justify-content: center;
    }

    .checkout-shell {
        padding: 34px 14px 60px;
    }

    .checkout-item {
        grid-template-columns: 82px 1fr;
    }

    .checkout-item > img {
        width: 82px;
        height: 82px;
    }

    .promo-card,
    .customer-grid,
    .delivery-quote {
        grid-template-columns: 1fr;
    }

    .location-status {
        grid-template-columns: auto 1fr;
    }

    .location-status button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .delivery-map {
        height: 280px;
    }

    .tracking-hero-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracking-progress {
        grid-template-columns: repeat(5, minmax(70px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .site-footer {
        flex-direction: column;
    }
}

/* Reviews */
.review-form {
    max-width: 920px;
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.review-form > div,
.review-form .review-comment,
.review-form .primary-button {
    grid-column: 1 / -1;
}

.review-form h3 {
    margin: 6px 0 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 26px;
}

.review-form label,
.auth-card label {
    display: grid;
    gap: 7px;
    color: #5f5148;
    font-size: 13px;
    font-weight: 700;
}

.review-form input,
.review-form select,
.review-form textarea,
.auth-card input {
    width: 100%;
    border: 1px solid #dfd1c5;
    border-radius: 12px;
    padding: 12px 13px;
    outline: 0;
    background: #fff;
    color: var(--ink);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus,
.auth-card input:focus {
    border-color: #b97d58;
    box-shadow: 0 0 0 3px rgba(185, 125, 88, 0.12);
}

/* Admin authentication pages */
.auth-wrap {
    min-height: calc(100vh - 210px);
    display: grid;
    place-items: center;
    padding: 54px 18px;
    background:
        radial-gradient(circle at 20% 20%, rgba(241, 201, 167, 0.35), transparent 30%),
        var(--page);
}

.auth-card {
    width: min(100%, 440px);
    display: grid;
    gap: 14px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-card > img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    justify-self: center;
}

.auth-card h1 {
    margin: 2px 0 0;
    font-family: "Fraunces", Georgia, serif;
    text-align: center;
}

.auth-card p,
.auth-card small,
.auth-card > a {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.auth-card > a {
    color: var(--brand);
    font-weight: 700;
}

.btn.primary,
.auth-card button {
    border: 0;
    border-radius: 12px;
    padding: 13px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.btn.wide {
    width: 100%;
}

.form-error,
.auth-card [data-valmsg-for]:not(:empty) {
    color: var(--danger);
    font-size: 12px;
}

.section {
    width: min(1100px, calc(100% - 36px));
    margin: 46px auto;
}

.card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

@media (max-width: 680px) {
    .review-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .review-form > * {
        grid-column: 1 / -1;
    }

    .auth-card {
        padding: 24px 18px;
    }
}

/* ===== Dynamic branding, language and compact home refinements ===== */
html[dir="rtl"] body {
    font-family: "Cairo", "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-points,
html[dir="rtl"] .food-card-bottom,
html[dir="rtl"] .menu-row-action,
html[dir="rtl"] .row-between,
html[dir="rtl"] .cart-item-bottom,
html[dir="rtl"] .summary-lines > div,
html[dir="rtl"] .summary-total,
html[dir="rtl"] .branch-card-links {
    direction: rtl;
}

.site-brand {
    min-width: 0;
}

.site-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
}

.language-switch {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
    background: #fff;
    color: var(--brand) !important;
    white-space: nowrap;
}

.language-switch:hover {
    background: var(--accent-soft);
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 22px;
    width: calc(100% - 44px) !important;
    height: calc(100% - 44px) !important;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 450ms ease, transform 700ms ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slider-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.hero-slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.hero-slider-dots button.active {
    width: 24px;
    border-radius: 999px;
    background: var(--brand);
}

.branches-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.compact-branch-grid {
    max-width: 1040px;
    margin: 0 auto;
}

.compact-branch-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 14px;
    padding: 17px 18px;
    min-height: 0;
}

.compact-branch-card .branch-pin {
    width: 36px;
    height: 36px;
    margin: 0;
    font-size: 16px;
}

.compact-branch-card h3 {
    margin-bottom: 4px;
    font-size: 17px;
}

.compact-branch-card p {
    min-height: 0;
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.55;
}

.branch-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.compact-branch-card .branch-card-links a {
    display: inline-flex;
    margin: 0;
}

.logo-only-footer {
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 26px;
}

.footer-logo {
    width: min(130px, 38vw);
    max-height: 64px;
    object-fit: contain;
}

body {
    background: var(--page);
    color: var(--ink);
}

@media (max-width: 720px) {
    .site-brand span:last-child {
        display: none;
    }

    .site-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .site-nav {
        gap: 8px;
    }

    .language-switch {
        padding: 7px 9px;
    }

    .hero-slide {
        inset: 16px;
        width: calc(100% - 32px) !important;
        height: calc(100% - 32px) !important;
    }

    .compact-branch-grid {
        max-width: 520px;
    }
}

/* ===== Map rendering safeguards ===== */
.delivery-map .leaflet-container,
.delivery-map.leaflet-container {
    width: 100%;
    height: 100%;
}

.delivery-map .leaflet-tile,
.delivery-map .leaflet-marker-icon,
.delivery-map .leaflet-marker-shadow,
.delivery-map .leaflet-pane img {
    max-width: none !important;
    max-height: none !important;
}

.customer-map-marker {
    background: transparent;
    border: 0;
}

.customer-map-marker-pin {
    position: relative;
    width: 30px;
    height: 30px;
    display: block;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--brand);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
    transform: rotate(-45deg);
}

.customer-map-marker-pin::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* ===== Order confirmation ===== */
.confirmation-shell {
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 56px 20px 80px;
}

.confirmation-card {
    width: min(760px, 100%);
    padding: clamp(26px, 5vw, 46px);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--success) 14%, white);
    color: var(--success);
    font-size: 30px;
    font-weight: 900;
}

.confirmation-card h1 {
    margin: 8px 0 10px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
}

.confirmation-card > p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.confirmation-number {
    margin: 28px auto 18px;
    padding: 16px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--brand);
}

.confirmation-number span {
    font-size: 13px;
    font-weight: 700;
}

.confirmation-number strong {
    font-size: 22px;
}

.confirmation-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    text-align: start;
}

.confirmation-details > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--page) 65%, white);
}

.confirmation-details span,
.confirmation-note span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.confirmation-items {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-align: start;
}

.confirmation-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.confirmation-item:last-child {
    border-bottom: 0;
}

.confirmation-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.confirmation-note {
    margin-top: 16px;
    padding: 14px 16px;
    text-align: start;
    border-radius: 12px;
    background: var(--accent-soft);
}

.confirmation-note p {
    margin: 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.confirmation-track-hint {
    display: block;
    margin-top: 18px;
    color: var(--muted);
}

@media (max-width: 620px) {
    .confirmation-details {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }
}


/* ===== Leaflet local safety styles =====
   Keeps the map usable even if the external Leaflet stylesheet is blocked. */
.delivery-map {
    position: relative;
    width: 100%;
    height: 340px !important;
    min-height: 340px;
    max-height: 340px;
    overflow: hidden !important;
    isolation: isolate;
}

.delivery-map.leaflet-container {
    position: relative;
    overflow: hidden;
    outline: 0;
    background: #ddd;
}

.delivery-map .leaflet-pane,
.delivery-map .leaflet-tile,
.delivery-map .leaflet-marker-icon,
.delivery-map .leaflet-marker-shadow,
.delivery-map .leaflet-tile-container,
.delivery-map .leaflet-pane > svg,
.delivery-map .leaflet-pane > canvas,
.delivery-map .leaflet-zoom-box,
.delivery-map .leaflet-image-layer,
.delivery-map .leaflet-layer {
    position: absolute !important;
    left: 0;
    top: 0;
}

.delivery-map .leaflet-map-pane,
.delivery-map .leaflet-tile-pane,
.delivery-map .leaflet-overlay-pane,
.delivery-map .leaflet-shadow-pane,
.delivery-map .leaflet-marker-pane,
.delivery-map .leaflet-tooltip-pane,
.delivery-map .leaflet-popup-pane {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.delivery-map .leaflet-tile {
    width: 256px !important;
    height: 256px !important;
    max-width: none !important;
    max-height: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.delivery-map .leaflet-tile-loaded {
    visibility: inherit;
}

.delivery-map .leaflet-marker-icon,
.delivery-map .leaflet-marker-shadow {
    display: block;
    max-width: none !important;
}

.delivery-map .leaflet-control-container {
    position: relative;
    z-index: 1000;
}

.delivery-map .leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
}

.delivery-map .leaflet-top,
.delivery-map .leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.delivery-map .leaflet-top { top: 0; }
.delivery-map .leaflet-bottom { bottom: 0; }
.delivery-map .leaflet-left { left: 0; }
.delivery-map .leaflet-right { right: 0; }
.delivery-map .leaflet-top .leaflet-control { margin-top: 10px; }
.delivery-map .leaflet-left .leaflet-control { margin-left: 10px; }
.delivery-map .leaflet-right .leaflet-control { margin-right: 10px; }
.delivery-map .leaflet-bottom .leaflet-control { margin-bottom: 10px; }

@media (max-width: 720px) {
    .delivery-map {
        height: 290px !important;
        min-height: 290px;
        max-height: 290px;
    }
}


/* ===== Delivery map final layout ===== */
.delivery-map {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    overflow: hidden !important;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #e8e2dc;
    isolation: isolate;
}

.delivery-map.leaflet-container {
    position: relative !important;
    overflow: hidden !important;
    font: 12px/1.5 Arial, Helvetica, sans-serif;
    touch-action: none;
}

.delivery-map .leaflet-pane,
.delivery-map .leaflet-tile,
.delivery-map .leaflet-marker-icon,
.delivery-map .leaflet-marker-shadow,
.delivery-map .leaflet-tile-container,
.delivery-map .leaflet-pane > svg,
.delivery-map .leaflet-pane > canvas,
.delivery-map .leaflet-image-layer,
.delivery-map .leaflet-layer {
    position: absolute !important;
    left: 0;
    top: 0;
}

.delivery-map .leaflet-map-pane { z-index: 200; }
.delivery-map .leaflet-tile-pane { z-index: 200; }
.delivery-map .leaflet-overlay-pane { z-index: 400; }
.delivery-map .leaflet-shadow-pane { z-index: 500; }
.delivery-map .leaflet-marker-pane { z-index: 600; }
.delivery-map .leaflet-tooltip-pane { z-index: 650; }
.delivery-map .leaflet-popup-pane { z-index: 700; }

.delivery-map .leaflet-tile {
    width: 256px !important;
    height: 256px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    user-select: none;
    -webkit-user-drag: none;
}

.delivery-map .leaflet-marker-icon,
.delivery-map .leaflet-marker-shadow {
    display: block;
    max-width: none !important;
    max-height: none !important;
}

.delivery-map .leaflet-control-container {
    position: absolute;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.delivery-map .leaflet-top,
.delivery-map .leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.delivery-map .leaflet-top { top: 0; }
.delivery-map .leaflet-bottom { bottom: 0; }
.delivery-map .leaflet-left { left: 0; }
.delivery-map .leaflet-right { right: 0; }
.delivery-map .leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
.delivery-map .leaflet-top .leaflet-control { margin-top: 10px; }
.delivery-map .leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.delivery-map .leaflet-left .leaflet-control { margin-left: 10px; }
.delivery-map .leaflet-right .leaflet-control { margin-right: 10px; }

.delivery-map .leaflet-bar {
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,.25);
    overflow: hidden;
}

.delivery-map .leaflet-bar a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font: bold 18px/30px Arial, sans-serif;
}

.delivery-map .leaflet-control-attribution {
    margin: 0 !important;
    padding: 2px 5px;
    background: rgba(255,255,255,.82);
    color: #333;
    font-size: 10px;
}

.customer-map-marker {
    position: absolute !important;
    width: 30px !important;
    height: 38px !important;
    background: transparent !important;
    border: 0 !important;
}

.customer-map-marker-pin {
    position: relative;
    width: 30px;
    height: 30px;
    display: block;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--brand);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .28);
    transform: rotate(-45deg);
}

.customer-map-marker-pin::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

@media (max-width: 720px) {
    .delivery-map {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
}

/* ===== Final customer UX polish ===== */
.site-nav a.active {
    color: var(--brand);
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
}

/* Menu rows keep the action area in the same place even when copy length changes. */
.menu-row {
    grid-template-columns: 210px minmax(0, 1fr);
}

.menu-row-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 190px;
    overflow: hidden;
    background: #f3ebe3;
}

.menu-row-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: block;
    object-fit: cover;
}

.menu-row-body {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 18px;
}

.menu-row-copy {
    min-width: 0;
}

.menu-row-copy h2,
.menu-row-copy p {
    overflow-wrap: anywhere;
}

.menu-row-action {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    align-self: end;
}

.menu-row-action strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

.menu-add-button {
    width: 92px;
    min-width: 92px;
    min-height: 46px;
    padding-inline: 12px;
    white-space: nowrap;
}

.menu-list {
    transition: opacity 150ms ease;
}

.menu-list.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.category-tabs a {
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.category-tabs a:active {
    transform: scale(0.98);
}

/* Delivery map: fixed center pin. The map moves underneath it. */
.delivery-map-wrap {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #e8e2dc;
    isolation: isolate;
}

.delivery-map-wrap .delivery-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.delivery-center-pin {
    position: absolute;
    z-index: 1400;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 50px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.24));
}

.delivery-center-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 18px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    transform: translateX(-50%);
}

.delivery-center-pin span {
    position: absolute;
    left: 5px;
    top: 3px;
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--brand);
    transform: rotate(-45deg);
}

.delivery-center-pin span::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* Footer intentionally contains the restaurant logo only. */
.site-footer.logo-only-footer {
    min-height: 92px;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--page);
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.site-footer.logo-only-footer a {
    display: inline-grid;
    place-items: center;
}

.site-footer.logo-only-footer .footer-logo {
    width: min(100px, 30vw);
    max-height: 54px;
}

@media (max-width: 720px) {
    .site-header {
        gap: 10px;
        padding-inline: 12px;
    }

    .site-nav {
        min-width: 0;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    /* Home remains available now that Track Order was removed. */
    .site-nav a:first-child {
        display: inline-flex;
    }

    .site-nav a {
        flex: 0 0 auto;
        padding: 8px 5px;
    }

    .site-nav a.active::after {
        bottom: 1px;
    }

    .menu-row {
        grid-template-columns: 128px minmax(0, 1fr);
        min-height: 176px;
    }

    .menu-row-image-wrap,
    .menu-row-image-wrap img {
        min-height: 176px;
        height: 100%;
    }

    .menu-row-body {
        gap: 12px;
        padding: 16px;
    }

    .menu-row-action {
        gap: 10px;
    }

    .menu-add-button {
        width: 84px;
        min-width: 84px;
        min-height: 44px;
    }

    .delivery-map-wrap {
        height: 290px;
    }
}

@media (max-width: 430px) {
    .site-nav {
        font-size: 11px;
    }

    .language-switch {
        padding: 7px 8px;
    }

    .menu-row {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .menu-row-copy h2 {
        font-size: 16px;
    }

    .menu-row-action strong {
        font-size: 14px;
    }

    .menu-add-button {
        width: 76px;
        min-width: 76px;
        padding-inline: 8px;
        font-size: 13px;
    }
}

/* ===== Mobile polish: compact menu cards, centered footer logo, icon-only cart ===== */
.cart-icon-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 12px;
}

.cart-icon-link .cart-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-icon-link .cart-count {
    position: absolute;
    top: 1px;
    inset-inline-end: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
    font-size: 10px;
    font-weight: 800;
}

.site-footer.logo-only-footer {
    width: 100%;
    justify-items: center;
    text-align: center;
}

.site-footer.logo-only-footer > a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.site-footer.logo-only-footer .footer-logo {
    display: block;
    margin-inline: auto;
}

@media (max-width: 720px) {
    .menu-row {
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 158px;
        height: 158px;
        overflow: hidden;
    }

    .menu-row-image-wrap {
        width: 118px;
        min-width: 118px;
        height: 158px;
        min-height: 158px;
        align-self: stretch;
    }

    .menu-row-image-wrap img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center;
    }

    .menu-row-body {
        height: 100%;
        min-height: 0;
        padding: 13px 14px;
        gap: 8px;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .menu-row-copy {
        min-height: 0;
        overflow: hidden;
    }

    .menu-row-copy h2 {
        margin: 0 0 5px;
        font-size: 16px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .menu-row-copy p {
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .menu-row-action {
        margin-top: auto;
        gap: 8px;
    }

    .menu-row-action strong {
        font-size: 13px;
    }

    .menu-add-button {
        width: 72px;
        min-width: 72px;
        min-height: 38px;
        padding-inline: 8px;
        font-size: 12px;
    }

    .site-footer.logo-only-footer,
    .site-footer.logo-only-footer > a {
        justify-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .menu-row {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 150px;
        height: 150px;
    }

    .menu-row-image-wrap {
        width: 104px;
        min-width: 104px;
        height: 150px;
        min-height: 150px;
    }

    .menu-row-body {
        padding: 12px;
    }

    .menu-row-copy h2 {
        font-size: 15px;
    }

    .menu-row-action strong {
        font-size: 12.5px;
    }

    .menu-add-button {
        width: 66px;
        min-width: 66px;
        min-height: 36px;
        font-size: 11.5px;
    }
}

/* ===== Mobile menu card compactness fix ===== */
@media (max-width: 720px) {
    .menu-list {
        gap: 12px;
        padding: 24px 12px 64px;
    }

    .menu-row {
        grid-template-columns: 108px minmax(0, 1fr);
        height: 132px;
        min-height: 132px;
        border-radius: 17px;
    }

    .menu-row-image-wrap {
        width: 108px;
        min-width: 108px;
        height: 132px;
        min-height: 132px;
        background: #fff;
    }

    .menu-row-image-wrap img {
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 4px;
        object-fit: contain;
        object-position: center;
        background: #fff;
    }

    .menu-row-body {
        height: 132px;
        min-height: 132px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 9px;
        padding: 11px 12px;
    }

    .menu-row-copy {
        flex: 0 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .menu-row-copy h2 {
        margin: 0 0 4px;
        font-size: 15px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .menu-row-copy p {
        margin: 0;
        font-size: 11.5px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .menu-row-action {
        margin-top: 0;
        gap: 8px;
        align-self: stretch;
    }

    .menu-row-action strong {
        font-size: 12.5px;
    }

    .menu-add-button {
        width: 68px;
        min-width: 68px;
        min-height: 36px;
        padding-inline: 8px;
        font-size: 11.5px;
        border-radius: 10px;
    }
}

@media (max-width: 430px) {
    .menu-row {
        grid-template-columns: 96px minmax(0, 1fr);
        height: 126px;
        min-height: 126px;
    }

    .menu-row-image-wrap {
        width: 96px;
        min-width: 96px;
        height: 126px;
        min-height: 126px;
    }

    .menu-row-body {
        height: 126px;
        min-height: 126px;
        padding: 10px 11px;
        gap: 8px;
    }

    .menu-row-copy h2 {
        font-size: 14.5px;
    }

    .menu-row-copy p {
        font-size: 11px;
    }

    .menu-row-action strong {
        font-size: 12px;
    }

    .menu-add-button {
        width: 64px;
        min-width: 64px;
        min-height: 34px;
        font-size: 11px;
    }
}

/* Shared password visibility control */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field > input {
    width: 100%;
    padding-inline-end: 48px !important;
}
.password-toggle {
    position: absolute;
    inset-inline-end: 10px;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 8px 20px rgba(17, 24, 32, 0.08);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 28%, transparent);
}
.password-toggle:focus-visible {
    outline: 0;
}
.password-toggle:active {
    transform: translateY(1px);
}
.auth-lang-row { display:flex; justify-content:flex-end; font-size:13px; font-weight:800; }

/* 2026-09 visual refresh: Alexandria + Fraunces */
body,
button,
input,
select,
textarea {
    font-family: "Alexandria", "Segoe UI", Arial, sans-serif;
}

.is-english .hero-copy h1,
.is-english .section-heading h2,
.is-english .menu-page-head h1,
.is-english .checkout-title h1,
.is-english .track-lookup-card h1,
.is-english .tracking-hero-card h1,
.is-english .item-modal-top h2,
.is-english .order-summary-card h2 {
    font-family: "Fraunces", Georgia, serif;
}

.is-arabic .hero-copy h1,
.is-arabic .section-heading h2,
.is-arabic .menu-page-head h1,
.is-arabic .checkout-title h1,
.is-arabic .track-lookup-card h1,
.is-arabic .tracking-hero-card h1,
.is-arabic .item-modal-top h2,
.is-arabic .order-summary-card h2,
.site-brand,
.site-footer strong {
    font-family: "Alexandria", "Segoe UI", Arial, sans-serif;
}

/* Hero product replaces the old circular image shell. */
.hero-product-visual {
    position: relative;
    width: min(640px, 100%);
    min-height: 460px;
    display: grid;
    place-items: center;
}

.hero-product-visual::before {
    content: "";
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 68%);
    filter: blur(8px);
    opacity: .75;
}

.hero-product-visual img {
    position: relative;
    z-index: 1;
    width: 112%;
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 28px 34px rgba(74, 43, 24, .18));
    transform: translateY(4px);
}

/* Lightweight homepage image/video slider. */
.home-media-section {
    padding: 26px max(22px, 7vw) 58px;
    background: var(--page);
}

.home-media-slider {
    position: relative;
    width: min(1280px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.home-media-track {
    position: relative;
    aspect-ratio: 16 / 6.2;
    min-height: 260px;
}

.home-media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}

.home-media-slide.active {
    opacity: 1;
    visibility: visible;
}

.home-media-slide img,
.home-media-slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #f4ece4;
}

.home-media-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--brand);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}
.home-media-nav.previous { inset-inline-start: 16px; }
.home-media-nav.next { inset-inline-end: 16px; }

.home-media-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 15px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 7px;
}
.home-media-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
    cursor: pointer;
}
.home-media-dots button.active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
}

/* Fixed restaurant rights + Wajibna credit. */
.site-footer.logo-only-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-brand-block {
    display: grid;
    justify-items: center;
    gap: 9px;
}

.footer-rights {
    margin: 0 !important;
    max-width: none !important;
    font-size: 12px;
    color: var(--brand) !important;
    font-weight: 700;
}

.wajibna-credit {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 0 !important;
    color: var(--brand) !important;
    font-size: 12px !important;
    font-weight: 800;
}

.wajibna-credit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 980px) {
    .hero-product-visual { min-height: 380px; }
    .hero-product-visual img { width: min(620px, 100%); }
    .home-media-track { aspect-ratio: 16 / 8; }
}

@media (max-width: 720px) {
    .home-hero {
        min-height: auto;
        gap: 24px;
    }
    .hero-product-visual {
        min-height: 300px;
        width: 100%;
    }
    .hero-product-visual img {
        width: 108%;
        max-height: 360px;
    }
    .home-media-section { padding: 12px 16px 38px; }
    .home-media-slider { border-radius: 17px; }
    .home-media-track {
        aspect-ratio: 4 / 3;
        min-height: 220px;
    }
    .home-media-nav {
        width: 36px;
        height: 36px;
        font-size: 25px;
    }
}


.post-order-review {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--page) 72%, white);
    text-align: start;
}
.post-order-review h2 { margin: 6px 0 8px; font-size: 24px; }
.post-order-review p { margin: 0 0 16px; color: var(--muted); }
.post-order-review-form { display:grid; gap: 13px; }
.post-order-review-form label { display:grid; gap:7px; font-size:13px; font-weight:700; }
.post-order-review-form select,
.post-order-review-form textarea {
    width:100%;
    padding: 11px 12px;
    border:1px solid var(--line);
    border-radius:11px;
    background:#fff;
    color:var(--ink);
    font:inherit;
}
.post-order-review-form textarea { resize:vertical; min-height:90px; }


/* ===== Final homepage + menu cleanup ===== */
.simple-home-hero {
    padding: 34px max(20px, 5vw) 42px;
    display: grid;
    justify-items: center;
    gap: 20px;
    background: var(--page);
}

.simple-home-hero-media {
    width: min(900px, 100%);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(70, 44, 28, .09);
}

.simple-home-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.simple-home-hero-line {
    margin: 0;
    max-width: min(900px, 94vw);
    text-align: center;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.25;
    font-weight: 800;
}

/* Home media stays intentionally narrower than the phone viewport. */
.home-media-slider {
    width: min(760px, 100%);
}

.home-media-track {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

/* Promotional artwork should stay complete; the slider frame supplies the breathing room. */
.home-media-slide img {
    object-fit: contain;
    background: #fff;
}

.home-media-slide video {
    object-fit: contain;
    background: #111;
}

.home-media-slide iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #111;
}

@media (max-width: 720px) {
    .simple-home-hero {
        padding: 18px 16px 28px;
        gap: 14px;
    }

    .simple-home-hero-media {
        width: min(92%, 460px);
        aspect-ratio: 16 / 10;
        border-radius: 18px;
    }

 .simple-home-hero-line {
    max-width: 92%;
    font-size: clamp(18px, 5vw, 24px);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

    .home-media-section {
        padding: 14px 0 34px;
    }

    .home-media-slider {
        width: min(420px, 86vw);
        border-radius: 18px;
    }

    .home-media-track {
        aspect-ratio: 4 / 5;
        min-height: 0;
    }

    .home-media-nav.previous { inset-inline-start: 10px; }
    .home-media-nav.next { inset-inline-end: 10px; }

    .menu-row {
        height: auto;
        min-height: 132px;
        overflow: visible;
    }

    .menu-row-image-wrap {
        height: auto;
        min-height: 132px;
        align-self: stretch;
    }

    .menu-row-body {
        height: auto;
        min-height: 132px;
    }
}

@media (max-width: 430px) {
    .simple-home-hero-media {
        width: min(92%, 390px);
        border-radius: 16px;
    }

    .home-media-slider {
        width: min(380px, 86vw);
    }

    .menu-row {
        height: auto;
        min-height: 126px;
    }

    .menu-row-image-wrap,
    .menu-row-body {
        height: auto;
        min-height: 126px;
    }
}


/* Final mobile identity fix: keep the dynamic restaurant name visible beside the logo. */
@media (max-width: 720px) {
    .site-brand {
        gap: 7px;
        max-width: min(44vw, 180px);
        flex: 0 1 auto;
    }

    .site-brand span:last-child {
        display: inline-block !important;
        max-width: 125px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.2;
    }
}
