:root {
    color-scheme: light;
    --font-body: "Almarai", system-ui, sans-serif;
    --font-display: "Cairo", system-ui, sans-serif;
    --page-width: 1180px;
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-solid: #ffffff;
    --surface-2: #f3f3f3;
    --text: #111111;
    --text-soft: #5f5f5f;
    --muted: #8a8a8a;
    --brand: #070707;
    --brand-strong: #000000;
    --brand-soft: #e8e8e8;
    --accent: #f4f4f4;
    --border: rgba(0, 0, 0, 0.11);
    --shadow-sm: 0 10px 30px rgba(12, 12, 12, 0.08);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.14);
    --shadow-lg: 0 35px 100px rgba(0, 0, 0, 0.26);
    --ease-premium: cubic-bezier(.2, .8, .2, 1);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 34px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #040404;
    --bg-soft: #0e0e0e;
    --surface: rgba(16, 16, 16, 0.9);
    --surface-solid: #101010;
    --surface-2: #080808;
    --text: #ffffff;
    --text-soft: #c7c7c7;
    --muted: #8e8e8e;
    --brand: #f2f2f2;
    --brand-strong: #0a0a0a;
    --brand-soft: #090909;
    --accent: #e7e7e7;
    --border: rgba(255, 255, 255, 0.09);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 35px 100px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--brand) transparent;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 18%, rgba(0, 0, 0, 0.06), transparent 24rem),
        radial-gradient(circle at 90% 65%, rgba(0, 0, 0, 0.035), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    transition: background-color .45s ease, color .45s ease;
    -webkit-tap-highlight-color: transparent;
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.page-shell {
    width: min(calc(100% - 32px), var(--page-width));
    margin-inline: auto;
}

.horizontal-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.ambient {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .22;
    pointer-events: none;
}

.ambient-one {
    width: 290px;
    height: 290px;
    inset: 18% auto auto -130px;
    background: var(--brand-soft);
}

.ambient-two {
    width: 360px;
    height: 360px;
    inset: auto -170px 18% auto;
    background: var(--accent);
}

.icon-button,
.language-button,
.primary-button,
.secondary-button,
.category-button,
.quick-tag,
.variant-button,
.branch-tab,
.social-link,
.product-card,
.featured-card {
    border: 0;
    cursor: pointer;
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: inline-grid;
    place-items: center;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    transition: transform .25s var(--ease-premium), background-color .25s ease, border-color .25s ease;
}

.icon-button:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 40%, transparent);
}

.icon-button svg {
    width: 19px;
    height: 19px;
}

.glass-button {
    color: #fff;
    background: rgba(0, 0, 0, .34);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.language-button {
    min-width: 48px;
    height: 44px;
    padding-inline: 15px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.primary-button,
.secondary-button {
    min-height: 54px;
    padding: 14px 20px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    transition: transform .25s var(--ease-premium), box-shadow .25s ease, background-color .25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 16px 32px color-mix(in srgb, var(--brand) 30%, transparent);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px color-mix(in srgb, var(--brand) 38%, transparent);
}

.primary-button:active,
.secondary-button:active {
    transform: scale(.985);
}

.primary-button svg,
.secondary-button svg {
    width: 18px;
    height: 18px;
}

.secondary-button {
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--border);
}

.directional-icon {
    margin-inline-start: auto;
}

html[dir="ltr"] .directional-icon {
    transform: scaleX(-1);
}

.hero {
    position: relative;
    min-height: clamp(470px, 73vh, 790px);
    overflow: hidden;
    isolation: isolate;
    background: #000000;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 60% 100%, 0 96%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    z-index: 2;
    background: linear-gradient(to top, #000000, transparent);
    pointer-events: none;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18) 55%, rgba(0, 0, 0, .34)),
        linear-gradient(to top, rgba(0, 0, 0, .82), transparent 65%);
}

html[dir="rtl"] .hero__shade {
    background:
        linear-gradient(270deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18) 55%, rgba(0, 0, 0, .34)),
        linear-gradient(to top, rgba(0, 0, 0, .82), transparent 65%);
}

.hero__noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: .08;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.hero__actions {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: max(24px, env(safe-area-inset-top));
}

.hero__copy {
    position: absolute;
    inset-inline: 0;
    bottom: clamp(90px, 16vh, 165px);
    z-index: 4;
    color: #fff;
}

.hero__eyebrow,
.section-heading__eyebrow,
.brand-card__kicker,
.product-sheet__title-row p,
.branch-sheet__header p {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero__eyebrow {
    color: #ffffff;
}

.hero__title {
    max-width: 720px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(42px, 9vw, 92px);
    font-weight: 900;
    line-height: .97;
    letter-spacing: -.05em;
    text-wrap: balance;
    text-shadow: 0 15px 40px rgba(0, 0, 0, .26);
}

.hero__subtitle {
    max-width: 610px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(13px, 1.7vw, 17px);
    line-height: 1.9;
}

.brand-card {
    position: relative;
    z-index: 8;
    margin-top: -62px;
    padding: 26px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(24px) saturate(145%);
}

html[data-theme="dark"] .brand-card {
    border-color: rgba(255, 255, 255, .07);
}

.brand-card__logo-wrap {
    width: 98px;
    height: 98px;
    padding: 9px;
    border-radius: 28px;
    background: linear-gradient(145deg, var(--surface-solid), var(--surface-2));
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.brand-card__logo {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.brand-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.brand-card__identity h2,
.section-heading h2,
.product-sheet__title-row h2,
.branch-sheet__header h2,
.footer__brand h2,
.empty-state h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.2;
}

.brand-card__identity h2 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
}

.brand-card__identity p:last-child {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 12px;
}

.brand-card__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform .25s var(--ease-premium), color .25s ease, border-color .25s ease;
}

.social-link:hover {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 38%, transparent);
    transform: translateY(-3px) rotate(-2deg);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.brand-card .primary-button {
    grid-column: 1 / -1;
    width: 100%;
}

.search-section,
.featured-section,
.menu-section {
    margin-top: clamp(52px, 7vw, 90px);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading--compact {
    margin-bottom: 16px;
}

.section-heading h2 {
    font-size: clamp(25px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -.035em;
}

.section-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 12px;
}

.search-box {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 0 18px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-premium);
}

.search-box:focus-within {
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    box-shadow: 0 16px 44px color-mix(in srgb, var(--brand) 14%, transparent);
    transform: translateY(-1px);
}

.search-box > svg {
    width: 19px;
    height: 19px;
    color: var(--muted);
}

.search-box input {
    width: 100%;
    padding: 19px 0;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
    font-weight: 700;
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-box__clear {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--text-soft);
    background: var(--surface-2);
    cursor: pointer;
}

.search-box__clear svg {
    width: 16px;
    height: 16px;
}

.quick-tags {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 1px 4px;
    scroll-snap-type: x proximity;
}

.quick-tag {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: transform .2s var(--ease-premium), color .2s ease, border-color .2s ease, background-color .2s ease;
}

.quick-tag:hover,
.quick-tag.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #cc3240;
    background: rgba(204, 50, 64, .08);
    border: 1px solid rgba(204, 50, 64, .16);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.live-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #e23846;
    animation: livePulse 1.6s ease-out infinite;
}

.featured-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 31%);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
}

.featured-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    padding: 0;
    text-align: start;
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    isolation: isolate;
    transform: translateZ(0);
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .94), rgba(0, 0, 0, .12) 62%);
}

.featured-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-premium), filter .5s ease;
}

.featured-card:hover img {
    transform: scale(1.07);
    filter: saturate(1.08);
}

.featured-card__rank {
    position: absolute;
    z-index: 3;
    inset: 17px 17px auto auto;
    min-width: 38px;
    height: 38px;
    padding-inline: 11px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: rgba(0, 0, 0, .48);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 900;
}

html[dir="ltr"] .featured-card__rank {
    inset: 17px auto auto 17px;
}

.featured-card__content {
    position: absolute;
    inset: auto 20px 20px;
    z-index: 3;
    color: #fff;
}

.featured-card__category {
    color: #f1f1f1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.featured-card h3 {
    margin: 6px 0 10px;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.25;
}

.featured-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, .76);
    font-size: 10px;
}

.featured-card__price {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.category-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-top: clamp(44px, 6vw, 74px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-block: 1px solid var(--border);
    backdrop-filter: blur(22px) saturate(160%);
}

.category-nav__track {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-block: 12px;
    scroll-snap-type: x proximity;
}

.category-button {
    flex: 0 0 auto;
    min-width: 116px;
    padding: 11px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 16px;
    color: var(--text-soft);
    background: transparent;
    border: 1px solid transparent;
    scroll-snap-align: center;
    transition: all .28s var(--ease-premium);
}

.category-button svg {
    width: 18px;
    height: 18px;
}

.category-button span {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.category-button:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.category-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    border-color: transparent;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 28%, transparent);
}

.menu-heading {
    align-items: flex-start;
}

.result-count {
    flex: 0 0 auto;
    min-width: 46px;
    padding: 9px 12px;
    border-radius: 14px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 13px;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    text-align: start;
    border-radius: 25px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(15px);
    transition: transform .3s var(--ease-premium), border-color .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--brand) 28%, transparent);
    box-shadow: var(--shadow-md);
}

.product-card__media {
    position: relative;
    min-height: 145px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-2);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s var(--ease-premium);
}

.product-card:hover .product-card__media img {
    transform: scale(1.055);
}

.product-card__badge {
    position: absolute;
    inset: 10px auto auto 10px;
    padding: 7px 9px;
    border-radius: 10px;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    font-size: 8px;
    font-weight: 900;
}

html[dir="ltr"] .product-card__badge {
    inset: 10px 10px auto auto;
}

.product-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-block: 5px;
}

.product-card__category {
    margin-bottom: 7px;
    color: var(--brand);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.35;
}

.product-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 14px;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.75;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card__footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.product-card__price {
    color: var(--text);
    font-size: 19px;
    font-weight: 900;
}

.product-card__price small {
    color: var(--text-soft);
    font-size: 9px;
}

.product-card__calories {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.product-card__calories svg {
    width: 13px;
    height: 13px;
}

.empty-state {
    max-width: 460px;
    margin: 40px auto 0;
    padding: 44px 28px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.empty-state__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.empty-state__icon svg {
    width: 30px;
    height: 30px;
}

.empty-state h3 {
    font-size: 25px;
}

.empty-state p {
    margin: 10px 0 22px;
    color: var(--text-soft);
    font-size: 12px;
}

.footer {
    margin-top: clamp(80px, 10vw, 130px);
    padding: 70px 0 calc(30px + var(--safe-bottom));
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .08), transparent 25rem),
        linear-gradient(135deg, #111111, #000000);
    border-radius: 48px 48px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 50px;
    align-items: end;
}

.footer__brand > p:first-child {
    margin: 0 0 14px;
    color: #f2f2f2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em;
}

.footer__brand h2 {
    max-width: 680px;
    font-size: clamp(32px, 6vw, 66px);
    font-weight: 900;
    letter-spacing: -.05em;
}

.footer__brand > p:last-child {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.footer__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
}

.footer__apps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-app {
    min-width: 116px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    text-decoration: none;
}

.footer-app svg {
    width: 18px;
    height: 18px;
}

.footer-app span {
    font-size: 9px;
    font-weight: 800;
}

.footer__meta > p {
    margin: 0;
    color: rgba(255, 255, 255, .38);
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: end;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .78);
    border: 0;
    backdrop-filter: blur(16px) saturate(115%);
}

.product-sheet,
.branch-sheet {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    max-height: min(92vh, 860px);
    overflow: hidden;
    border-radius: 34px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(24px) scale(.97);
    transition: transform .38s var(--ease-premium);
}

.modal.is-open .product-sheet,
.modal.is-open .branch-sheet {
    transform: translateY(0) scale(1);
}

.product-sheet {
    display: grid;
    grid-template-rows: minmax(265px, 42vh) minmax(0, 1fr);
}

.product-sheet__media {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.product-sheet__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-sheet__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-soft), transparent 45%);
}

.product-sheet__close {
    position: absolute;
    top: 18px;
    left: 18px;
    color: #fff;
    background: rgba(0, 0, 0, .46);
    border-color: rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
}

html[dir="ltr"] .product-sheet__close {
    left: auto;
    right: 18px;
}

.product-sheet__badges {
    position: absolute;
    inset: auto 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-sheet__badges > span {
    min-height: 36px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 13px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    font-size: 9px;
    font-weight: 900;
}

.product-sheet__badges svg {
    width: 14px;
    height: 14px;
}

.product-sheet__content {
    overflow-y: auto;
    padding: 20px 24px calc(24px + var(--safe-bottom));
    scrollbar-width: none;
}

.product-sheet__content::-webkit-scrollbar {
    display: none;
}

.product-sheet__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.product-sheet__title-row h2 {
    font-size: clamp(27px, 5vw, 40px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.price-display {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--brand);
}

.price-display span {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.price-display small {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 800;
}

.product-sheet__description {
    margin: 14px 0 24px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.9;
}

.detail-block {
    padding: 18px;
    margin-top: 13px;
    border-radius: 20px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
}

.detail-block__heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.detail-block__heading svg {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

.detail-block__heading h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 900;
}

.variant-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.variant-button {
    min-height: 45px;
    padding: 10px;
    border-radius: 13px;
    color: var(--text-soft);
    background: var(--surface-2);
    border: 1px solid transparent;
    font-size: 9px;
    font-weight: 800;
    transition: all .22s ease;
}

.variant-button:hover {
    color: var(--text);
    border-color: var(--border);
}

.variant-button.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.allergen-item {
    min-width: 76px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 13px;
    color: var(--text-soft);
    background: var(--surface-2);
    font-size: 9px;
    font-weight: 800;
}

.allergen-item svg {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.product-sheet__done {
    width: 100%;
    margin-top: 18px;
}

.branch-sheet {
    padding: 26px;
}

.branch-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.branch-sheet__header h2 {
    font-size: 30px;
    font-weight: 900;
}

.branch-tabs {
    display: flex;
    gap: 8px;
    margin: 24px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.branch-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 13px;
    color: var(--text-soft);
    background: var(--surface-2);
    border: 1px solid transparent;
    font-size: 9px;
    font-weight: 800;
}

.branch-tab.is-active {
    color: #fff;
    background: var(--brand);
}

.branch-list {
    max-height: 50vh;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    scrollbar-width: none;
}

.branch-list::-webkit-scrollbar {
    display: none;
}

.branch-item {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 17px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
}

.branch-item__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.branch-item__icon {
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--brand);
}

.branch-item__icon svg {
    width: 16px;
    height: 16px;
}

.branch-item h3 {
    margin: 0 0 3px;
    font-size: 11px;
}

.branch-item p {
    margin: 0;
    color: var(--muted);
    font-size: 8px;
}

.branch-item a,
.branch-item span.status {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    font-size: 8px;
    font-weight: 900;
    text-decoration: none;
}

.toast {
    position: fixed;
    z-index: 160;
    inset: auto 50% calc(22px + var(--safe-bottom)) auto;
    max-width: min(420px, calc(100% - 32px));
    padding: 12px 16px;
    border-radius: 14px;
    color: #fff;
    background: rgba(0, 0, 0, .92);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 800;
    transform: translate(50%, 18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s var(--ease-premium);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(50%, 0);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s var(--ease-premium);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-enter {
    animation: cardEnter .48s both var(--ease-premium);
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.1); }
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(226, 56, 70, .48); }
    75% { box-shadow: 0 0 0 9px rgba(226, 56, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 56, 70, 0); }
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 920px) {
    .brand-card__body {
        grid-template-columns: 1fr;
    }

    .brand-card__links {
        justify-content: flex-start;
    }

    .featured-track {
        grid-auto-columns: minmax(250px, 55%);
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .footer__meta {
        align-items: flex-start;
    }

    .footer__apps {
        justify-content: flex-start;
    }

    .footer__meta > p {
        text-align: start;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(calc(100% - 24px), var(--page-width));
    }

    .hero {
        min-height: 560px;
        clip-path: polygon(0 0, 100% 0, 100% 96%, 62% 100%, 0 97%);
    }

    .hero__copy {
        bottom: 125px;
    }

    .hero__title {
        max-width: 94%;
        font-size: clamp(43px, 14vw, 66px);
    }

    .hero__subtitle {
        max-width: 92%;
        font-size: 11px;
    }

    .brand-card {
        margin-top: -72px;
        padding: 18px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-card__logo-wrap {
        width: 86px;
        height: 86px;
        margin: -60px auto 0;
        border: 4px solid var(--bg);
    }

    .brand-card__links {
        justify-content: center;
    }

    .brand-card__identity p:last-child {
        margin-inline: auto;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .featured-track {
        grid-auto-columns: minmax(244px, 82%);
        gap: 12px;
    }

    .featured-card {
        min-height: 330px;
    }

    .category-nav__track {
        width: 100%;
        padding-inline: 12px;
    }

    .category-button {
        min-width: 102px;
    }

    .menu-heading {
        flex-direction: row;
    }

    .product-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 13px;
        border-radius: 21px;
    }

    .product-card__media {
        min-height: 132px;
    }

    .product-card h3 {
        font-size: 16px;
    }

    .product-card__description {
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }

    .footer {
        border-radius: 36px 36px 0 0;
    }

    .product-sheet {
        width: 100%;
        max-height: 94vh;
        grid-template-rows: minmax(235px, 36vh) minmax(0, 1fr);
        border-radius: 30px;
    }

    .modal {
        align-items: end;
        padding: 8px;
    }

    .modal.is-open .product-sheet,
    .modal.is-open .branch-sheet {
        transform: translateY(0) scale(1);
    }

    .product-sheet__title-row {
        gap: 10px;
    }

    .product-sheet__title-row h2 {
        font-size: 28px;
    }

    .variant-list {
        grid-template-columns: 1fr;
    }

    .branch-sheet {
        width: 100%;
        border-radius: 28px;
    }
}

@media (max-width: 390px) {
    .product-card {
        grid-template-columns: 98px minmax(0, 1fr);
        padding: 10px;
    }

    .product-card__media {
        min-height: 124px;
    }

    .product-card__calories {
        display: none;
    }
}

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

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}