:root {
    --red: #e53935;
    --red-dark: #c62828;
    --red-soft: #ffebee;
    --red-rgb: 229, 57, 53;
    --accent: #e53935;
    --bg: #f4f4f6;
    --card: #ffffff;
    --text: #1a1a2e;
    --muted: #6b7280;
    --border: #ececf1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --radius: 20px;
    --radius-sm: 14px;
    --max-width: 480px;
    --hero-height: 220px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

.app-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

#view {
    min-height: calc(100vh - 80px);
    padding-bottom: 96px;
}

/* ── Hero ── */
.menu-hero {
    position: relative;
    min-height: var(--hero-height);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.menu-hero--compact {
    min-height: 180px;
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.menu-hero-social {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 24px);
}

.menu-hero-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-hero-social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.menu-hero-social-link--dark {
    color: #111827;
}

.menu-hero-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.menu-hero-social-link--custom {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0 4px;
    text-align: center;
    line-height: 1.1;
}

.menu-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px 20px 24px;
    width: 100%;
    color: #fff;
}

/* Image slider — classic hero and Flix cover */
.flix-slider {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #d1d5db;
    direction: ltr;
}
.menu-hero > .flix-slider {
    position: absolute;
    inset: 0;
    height: 100%;
}
.flix-slider--static {
    direction: inherit;
}
.flix-slider--static .flix-slide {
    width: 100%;
    min-width: 100%;
}
.flix-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .45s ease;
}
.flix-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.flix-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}
.flix-slider-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}
.flix-slider-dots button.is-on {
    background: #fff;
    width: 16px;
    border-radius: 999px;
}

.free-delivery-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 14px 0;
    padding: 12px 14px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--red, #e53935) 14%, #fff), #fff 58%);
    border: 1px solid color-mix(in srgb, var(--red, #e53935) 28%, #fff);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--red, #e53935) 12%, transparent);
    color: #3f2a12;
}
.free-delivery-banner-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--red, #e53935);
    color: #fff;
    font-size: 1.15rem;
}
.free-delivery-banner strong {
    display: block;
    font-size: .95rem;
    font-weight: 800;
}
.free-delivery-banner span {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    font-weight: 700;
    color: #7c5a32;
}
body.theme-flix .free-delivery-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 36px);
    margin: 12px auto 18px;
    padding: 8px 16px 9px;
    gap: 1px;
    text-align: center;
    border: 1px solid #ead7ae;
    border-radius: 999px;
    background: #fffaf1;
    box-shadow: none;
    color: #7a5b24;
}
body.theme-flix .free-delivery-banner-mark {
    display: none;
}
body.theme-flix .free-delivery-banner strong {
    color: #9a6a12;
    font-size: .8rem;
    line-height: 1.35;
}
body.theme-flix .free-delivery-banner span {
    margin: 0;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}
body.theme-flix .free-delivery-banner em {
    font-style: normal;
    font-weight: 800;
    color: #9a6a12;
}
body.theme-flix .free-delivery-banner + .flix-main-tabs {
    padding-top: 10px;
}

.menu-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.menu-hero-logo--placeholder {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 1.75rem;
}

.menu-hero-content h1 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.menu-hero .flix-rating-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 6px 12px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.menu-hero .flix-stars { color: #ffd36a; letter-spacing: 1px; }
.menu-hero .flix-stars .star-empty { color: rgba(255, 255, 255, 0.35); }
.menu-hero .flix-rating-score,
.menu-hero .flix-rating-count { color: #fff; }

.classic-reviews {
    margin: 12px 16px 0;
}

.classic-reviews .flix-panel {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.classic-reviews .flix-panel h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
}

.classic-reviews .flix-review-item {
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
}

.classic-reviews .flix-review-item:first-child { border-top: 0; }

.classic-reviews .flix-review-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 800;
}

.classic-reviews .flix-stars { color: #f5b400; letter-spacing: 1px; }
.classic-reviews .flix-stars .star-empty { color: #d1d5db; }

.classic-reviews .flix-review-item p,
.classic-reviews .flix-rating-count {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: 0.8rem;
    line-height: 1.5;
}

.classic-reviews .flix-review-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.classic-reviews .flix-review-form input,
.classic-reviews .flix-review-form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.88rem;
    background: #f9fafb;
}

.classic-reviews .flix-rating-hint {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
}

.classic-reviews .flix-rating-hint.is-error { color: #dc2626; }

.classic-reviews .flix-star-pick { display: flex; gap: 6px; }

.classic-reviews .flix-star-pick button {
    border: 0;
    background: transparent;
    font-size: 1.55rem;
    color: #d1d5db;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.classic-reviews .flix-star-pick button.is-on { color: #f5b400; }

.product-card .flix-product-rating,
.product-sheet-body .flix-product-rating {
    margin: 2px 0 6px;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-card .flix-product-rating .star,
.product-sheet-body .flix-product-rating .star { color: #f5b400; }

.menu-hero-sub {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.88;
}

.menu-chip {
    display: inline-flex;
    align-items: center;
    background: var(--red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-left: 6px;
    margin-top: 4px;
}

.menu-chip--light {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ── Random pick (اخترلي على ذوقك) ── */
.random-pick {
    padding: 16px;
    background: linear-gradient(180deg, rgba(var(--red-rgb), 0.06) 0%, var(--card) 100%);
    border-bottom: 1px solid var(--border);
    font-family: 'Cairo', sans-serif;
}

.random-pick.hidden {
    display: none;
}

.random-pick-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.random-pick-head-text h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.random-pick-question {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
}

.random-pick-question p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
}

.random-pick-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
}

.random-pick-trigger {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--red);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--red-rgb), 0.35);
    transition: transform 0.15s, opacity 0.15s;
}

.random-pick-trigger:active:not(:disabled) {
    transform: scale(0.96);
}

.random-pick-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.random-pick-card {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, opacity 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.random-pick-card.has-selection {
    border-color: rgba(var(--red-rgb), 0.35);
    background: linear-gradient(135deg, rgba(var(--red-rgb), 0.1), var(--card) 55%);
    box-shadow:
        0 0 0 3px rgba(var(--red-rgb), 0.08),
        var(--shadow-sm);
}

.random-pick-card.is-rolling {
    opacity: 0.88;
    filter: blur(0.4px);
    transform: scale(0.985);
}

.random-pick-card.is-reveal {
    animation: random-pick-reveal 0.55s ease;
}

@keyframes random-pick-reveal {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(var(--red-rgb), 0.35);
    }
    45% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(var(--red-rgb), 0.12);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 3px rgba(var(--red-rgb), 0.08),
            var(--shadow-sm);
    }
}

.random-pick-card-img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.random-pick-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.random-pick-card-body h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text);
}

.random-pick-card-desc {
    margin: 0 0 6px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
}

.random-pick-card-meta {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--red);
}

.random-pick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.random-pick-actions .btn {
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    min-height: 44px;
    border-radius: 14px;
}

.random-pick-actions .btn-outline {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
}

.random-pick-actions .btn-primary {
    background: var(--red);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(var(--red-rgb), 0.28);
}

.random-pick-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Toolbar & search ── */
.menu-toolbar {
    padding: 14px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--shadow-sm);
}

.menu-closed-banner {
    padding: 12px 16px;
    background: #fef3c7;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.menu-closed-note {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.btn-disabled {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    border: none;
    cursor: not-allowed;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 12px 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: rgba(var(--red-rgb), 0.35);
    box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.1);
    background: #fff;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    font: inherit;
    outline: none;
    font-size: 0.95rem;
}

/* ── Section head ── */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 10px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.section-head span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

/* ── Category grid ── */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 16px 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--radius-sm);
    min-height: 130px;
    cursor: pointer;
    text-align: right;
    color: #fff;
    padding: 0;
    background: #222;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:active {
    transform: scale(0.97);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.category-card:hover .category-card-bg {
    transform: scale(1.06);
}

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.category-card-body {
    position: relative;
    z-index: 1;
    padding: 14px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: 'Cairo', sans-serif;
}

.category-card h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.category-arrow {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Category slider (products screen) ── */
.category-slider {
    padding: 14px 0 6px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.category-slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
    direction: ltr;
    padding: 4px 16px 10px;
    scrollbar-width: none;
}

.category-slider-track::-webkit-scrollbar {
    display: none;
}

.category-card--slider {
    flex: 0 0 148px;
    width: 148px;
    min-height: 108px;
    direction: rtl;
    box-shadow: var(--shadow-sm);
}

.category-card--slider .category-card-body {
    min-height: 108px;
    padding: 12px;
}

.category-card--slider h2 {
    font-size: 0.92rem;
}

.category-card.is-active {
    box-shadow: 0 0 0 2px var(--red), var(--shadow-sm);
}

.category-card.is-active .category-card-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.product-list--category {
    padding-top: 12px;
}

/* ── Branch picker ── */
.branch-section {
    padding: 18px 16px 26px;
}

.branch-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.branch-section__title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text);
}

.branch-section__count {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--red);
    background: var(--red-soft);
    padding: 5px 13px;
    border-radius: 999px;
}

.branch-list {
    display: grid;
    gap: 12px;
}

.branch-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    background: var(--card);
    cursor: pointer;
    text-align: right;
    font: inherit;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: branchIn 0.4s ease both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

.branch-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.branch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--red-rgb), 0.42);
    box-shadow: var(--shadow);
}

.branch-card:hover::before,
.branch-card:active::before {
    opacity: 1;
}

.branch-card:active {
    transform: translateY(0) scale(0.99);
    border-color: var(--red);
}

.branch-card__pin {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 6px 16px rgba(var(--red-rgb), 0.32);
}

.branch-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.branch-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.branch-card__name {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}

.branch-badge {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--red);
    background: var(--red-soft);
    padding: 2px 9px;
    border-radius: 999px;
}

.branch-card__city {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.72;
}

.branch-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
    min-width: 0;
}

.branch-card__meta svg {
    flex-shrink: 0;
    color: var(--red);
    opacity: 0.7;
}

.branch-card__meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-card__go {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--red);
    background: var(--red-soft);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.branch-card:hover .branch-card__go {
    background: var(--red);
    color: #fff;
    transform: translateX(-3px);
}

@keyframes branchIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Page header (inner pages) ── */
.page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--card);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.page-header--simple {
    gap: 0;
    padding-block: 14px;
}

.page-header--title-only {
    gap: 0;
    padding-block: 16px;
}

.page-header--title-only h1 {
    font-size: 1.25rem;
}

.page-header h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
}

.back-btn {
    align-self: flex-start;
    border: none;
    background: var(--red-soft);
    font: inherit;
    color: var(--red);
    cursor: pointer;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.15s ease;
}

.back-btn:active {
    transform: scale(0.97);
}

.back-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.back-btn-icon svg {
    width: 18px;
    height: 18px;
}

.back-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.page-header--simple .back-btn {
    font-size: 1rem;
    font-weight: 800;
    padding: 10px 16px 10px 12px;
}

.page {
    padding: 16px;
}

/* ── Products ── */
.product-list {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.product-list--search {
    padding-top: 0;
}

.product-card-category {
    margin: 0 0 4px;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card {
    display: flex;
    flex-direction: row;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    align-items: stretch;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card img {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}

.product-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-card-desc,
.product-card p:not(.product-card-category) {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.product-desc-wrap {
    margin: 0 0 8px;
}

.product-desc-wrap .product-card-desc,
.product-desc-wrap .product-sheet-desc,
.product-desc-wrap .random-pick-card-desc {
    margin: 0;
}

.product-desc-more {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--red);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.product-desc-more:hover {
    text-decoration: underline;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.product-card-hint {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}

.product-card--cart {
    cursor: default;
}

.product-card--cart:active {
    transform: none;
}

.product-card-cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.product-card-cart-head h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.cart-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.cart-item-remove:active {
    transform: scale(0.94);
}

.cart-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 8px;
}

.product-card--cart .product-card-footer {
    margin-top: auto;
    align-items: center;
}

.product-card-add {
    flex-shrink: 0;
}

.product-card-add-icon {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.product-card.out-of-stock {
    opacity: 0.72;
}

.price {
    color: var(--red);
    font-weight: 800;
    font-size: 1rem;
}

.price--discount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.price-old {
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: line-through;
}

.price-new {
    color: var(--red);
    font-weight: 800;
    font-size: 1rem;
}

.price--sheet {
    align-items: flex-end;
    text-align: end;
}

.price--checkout {
    margin-top: 4px;
}

.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.btn:active:not(:disabled) {
    transform: scale(0.95);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--red-rgb), 0.35);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 999px;
}

.btn-add {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--red-rgb), 0.22);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-add:active {
    transform: scale(0.94);
}

.product-card-add:active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--red-rgb), 0.28);
}

.btn-outline {
    background: #fff;
    color: var(--red);
    border: 1px solid var(--red);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border-radius: 16px;
}

/* ── Cart & checkout ── */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.delivery-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.delivery-option.active {
    border-color: var(--red);
    background: var(--red-soft);
}

.delivery-option .icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.delivery-option .icon--image {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    margin: 0 auto 8px;
}

.payment-options {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
}

.form-group-sub-label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 700;
    font-size: 0.92rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.1);
}

.phone-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    direction: ltr;
}

.phone-input-row .phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
}

.phone-input-row input {
    flex: 1;
    text-align: left;
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.section-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
}

.summary-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--muted);
}

.summary-row.total {
    color: var(--text);
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.summary-row.total span:last-child {
    color: var(--red);
}

.summary-row--discount span:last-child {
    color: #16a34a;
}

.coupon-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 8px;
}

.coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.coupon-input-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.95rem;
    text-align-last: right;
}

.coupon-applied-note {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #15803d;
}

.online-payment-note {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.7;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 8px;
}

.qty-controls button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.qty-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-controls--sheet button {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

.qty-controls--sheet span {
    min-width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
}

/* ── Product detail sheet ── */
body.sheet-open {
    overflow: hidden;
}

#product-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

#product-sheet.hidden {
    display: none;
}

.product-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.product-sheet-panel {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: sheet-up 0.28s ease;
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.product-sheet-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.product-sheet-gallery {
    background: #f3f4f6;
    position: relative;
}

.product-sheet-image-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
}

.product-sheet-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.product-sheet-zoom-hint {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    display: grid;
    place-items: center;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.product-sheet-zoom-hint svg {
    width: 18px;
    height: 18px;
}

.product-sheet-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px 12px;
    overflow-x: auto;
}

.product-sheet-thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}

.product-sheet-thumb.active {
    border-color: var(--red);
}

.product-sheet-thumb img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* Product image zoom lightbox (classic + Flix) */
.product-image-zoom {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    animation: product-zoom-in .18s ease;
}

@keyframes product-zoom-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-image-zoom-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
    cursor: default;
    touch-action: pinch-zoom;
}

.product-image-zoom-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    inset-inline-start: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #111827;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    z-index: 1;
}

.product-sheet-body {
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
}

.product-sheet-body h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-sheet-category {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.product-sheet-desc {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.product-sheet-vars {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.product-sheet-vars li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 0.88rem;
}

.product-sheet-vars span {
    color: var(--muted);
}

.product-option-group {
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.product-option-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.product-option-group-head strong {
    font-size: 0.95rem;
}

.product-option-required {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--red);
    background: rgba(229, 57, 53, 0.08);
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.product-option-optional {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.product-option-group-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.product-option-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.product-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.product-option-row:last-child {
    border-bottom: none;
}

.product-option-row.active {
    background: rgba(229, 57, 53, 0.04);
}

.product-option-row-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.product-option-row-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
}

.product-option-row-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--red);
}

.product-option-checkbox {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: var(--red);
    cursor: pointer;
}

.product-option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-option-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: #f9fafb;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.product-option-choice.active {
    border-color: var(--red);
    background: rgba(229, 57, 53, 0.08);
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.12);
}

.product-option-choice-label {
    font-size: 0.88rem;
    font-weight: 700;
}

.product-option-choice-price {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--red);
}

.cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
}

.cart-item-option {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--red-soft);
    border: 1px solid color-mix(in srgb, var(--red) 14%, transparent);
    font-size: 0.72rem;
    line-height: 1.35;
}

.cart-item-option-key {
    font-weight: 800;
    color: #111827;
}

.cart-item-option-key::after {
    content: ':';
    margin-inline-start: 1px;
}

.cart-item-option-value {
    color: var(--muted);
    font-weight: 600;
}

.order-success-item-name .cart-item-options {
    margin-top: 6px;
    justify-content: flex-start;
}

.product-card-cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.product-sheet-price-breakdown {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-sheet-price-row,
.product-sheet-qty,
.product-sheet-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.product-sheet-price-row + .product-sheet-price-row,
.product-sheet-qty,
.product-sheet-total {
    border-top: 1px solid var(--border);
}

.product-sheet-price-row strong,
.product-sheet-total strong {
    color: var(--red);
    font-size: 1.05rem;
}

.cart-item-price-detail,
.checkout-item-prices {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.checkout-item-prices p {
    margin: 0 0 4px;
}

.product-sheet-total strong {
    font-size: 1.2rem;
}

.product-sheet-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.product-sheet-unavailable {
    margin: 12px 0 0;
    color: #b91c1c;
    font-weight: 700;
    text-align: center;
}

.checkout-product {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: var(--card);
}

.checkout-product img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.order-success-page {
    min-height: calc(100dvh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 16px 32px;
}

.order-success-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.order-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    border: 2px solid rgba(5, 150, 105, 0.2);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
}

.order-success-title {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
}

.order-success-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.order-success-number {
    background: var(--red-soft);
    border: 1px dashed rgba(var(--red-rgb), 0.35);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.order-success-number-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.order-success-number strong {
    font-size: 1.8rem;
    color: var(--red);
    letter-spacing: 0.02em;
}

.order-success-total {
    margin: 0 0 20px;
    font-weight: 700;
}

.order-success-summary {
    margin: 0 0 24px;
    text-align: start;
}

.order-success-summary-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text, #111827);
    text-align: center;
}

.order-success-delivery-method {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.order-success-delivery-method strong {
    color: #111827;
}

.order-success-delivery-method strong.order-success-paid {
    color: #059669;
}

.order-success-items {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.order-success-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.order-success-item:last-child {
    border-bottom: none;
}

.order-success-item-name {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    color: #111827;
}

.order-success-item-qty {
    display: inline-block;
    margin-inline-start: 4px;
    color: var(--muted);
    font-weight: 600;
}

.order-success-item-price {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.88rem;
}

.order-success-item-price .price-old {
    font-size: 0.75rem;
}

.order-success-item-price strong {
    color: var(--red);
    font-weight: 800;
}

.order-success-totals {
    margin: 0;
    text-align: start;
}

.order-success-card .btn-block {
    margin-top: 4px;
}

/* ── Bottom nav ── */
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    z-index: 30;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-item {
    border: none;
    background: transparent;
    font: inherit;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    min-width: 96px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.nav-item:active {
    transform: scale(0.96);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    box-shadow: 0 6px 18px rgba(var(--red-rgb), 0.35);
}

.nav-icon-wrap {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.nav-icon-wrap svg {
    width: 22px;
    height: 22px;
    transition: stroke 0.2s ease;
}

.nav-item.active .nav-icon-wrap svg {
    stroke: #fff;
}

.cart-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 14px;
    background: var(--red);
    color: #fff;
    font-size: 0.62rem;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    font-weight: 800;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-item.active .cart-badge {
    background: #fff;
    color: var(--red);
    border-color: var(--red);
}

.nav-item--closed {
    color: #92400e;
    cursor: not-allowed;
    opacity: 0.95;
}

.nav-item--closed .nav-icon-wrap {
    background: #fef3c7;
}

.nav-item--closed .nav-icon-wrap svg {
    stroke: #b45309;
}

.nav-item--closed:disabled {
    pointer-events: none;
}

/* ── Toast & states ── */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    z-index: 100;
    max-width: calc(var(--max-width) - 32px);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    background: #15803d;
}

.toast.error {
    background: var(--red-dark);
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 64px 16px;
    color: var(--muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
    grid-column: 1 / -1;
}

.empty-state--cart {
    padding: 24px 16px 40px;
}

.empty-state-card {
    max-width: 320px;
    margin: 0 auto;
    padding: 32px 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    box-shadow: var(--shadow-sm);
}

.empty-state-card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.empty-state-card p {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.empty-state-card .empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: var(--red-soft);
    box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.12);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.product-card.out-of-stock {
    opacity: 0.75;
}

.stock-badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.stock-badge--closed {
    background: #fef3c7;
    color: #92400e;
}

/* ── Menu background ── */
.menu-bg-layer {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.app-shell.has-menu-bg {
    background: var(--bg);
}

.app-shell.has-menu-bg #view,
.app-shell.has-menu-bg .menu-toolbar {
    position: relative;
    z-index: 1;
}

.app-shell.has-menu-bg .bottom-nav {
    z-index: 30;
}

/* Legacy compat */
.restaurant-list,
.category-list {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.restaurant-card,
.pill,
.restaurant-brand,
.restaurant-logo,
.nav-icon {
    /* kept for any legacy renders */
}

@media (min-width: 481px) {
    body {
        padding: 20px 0;
    }

    .app-shell {
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        min-height: calc(100vh - 40px);
    }
}

/* ── Subscription page ── */
.subscription-page {
    padding: 20px 16px 32px;
    background: var(--card);
    min-height: 100vh;
}

.subscription-hero {
    text-align: center;
    margin-bottom: 24px;
}

.subscription-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fee2e2, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(var(--red-rgb), 0.15);
}

.subscription-hero h1 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.5;
}

.subscription-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.subscription-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subscription-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subscription-form label span {
    font-size: 0.9rem;
    font-weight: 700;
}

.subscription-form input,
.subscription-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.subscription-form input:focus,
.subscription-form textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.12);
}

.subscription-form small {
    color: var(--muted);
    font-size: 0.78rem;
}

.subscription-form .btn-primary.full {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(var(--red-rgb), 0.35);
}

/* ── Checkout info cards: payment card like Toters style ── */
.checkout-info-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 18px;
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
    direction: rtl;
    align-content: center;
}

.payment-info-card {
    min-height: 112px;
}

.checkout-card-change {
    position: absolute;
    top: 33px;
    min-width: 92px;
    height: 44px;
    border: 2px solid var(--red);
    border-radius: 14px;
    background: #fff;
    color: var(--red);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.checkout-card-change:active {
    transform: scale(0.96);
    background: var(--red-soft);
}

.checkout-info-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-inline-start: 112px;
}

.checkout-info-text {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.checkout-info-text h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.checkout-info-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
}

.checkout-info-text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
}

.checkout-info-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.65rem;
    flex: 0 0 auto;
    box-shadow: 0 6px 18px rgba(var(--red-rgb), 0.28);
}

/* ── Payment bottom sheet ── */
.payment-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.payment-sheet.hidden {
    display: none !important;
}

.payment-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.payment-sheet-panel {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    max-height: 80vh;
    overflow-y: auto;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
    animation: payment-sheet-up 0.25s ease;
    direction: rtl;
}

@keyframes payment-sheet-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.payment-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-sheet-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.payment-sheet-head button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.payment-sheet-options {
    display: grid;
    gap: 10px;
}

.payment-sheet-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 14px;
    text-align: right;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.payment-sheet-option:active {
    transform: scale(0.98);
}

.payment-sheet-option.active {
    border-color: var(--red);
    background: var(--red-soft);
}

.payment-sheet-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex: 0 0 auto;
    box-shadow: 0 5px 14px rgba(var(--red-rgb), 0.24);
}

.payment-sheet-option span:last-child {
    flex: 1;
    min-width: 0;
}

.payment-sheet-option strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.45;
}

.payment-sheet-option small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}
.payment-info-card--single .checkout-info-main {
    padding-inline-start: 0;
}


/* ═══════════════════════════════════════════
   Flix theme — Eatix-like (slider / tabs / grid)
   Accent color is controlled by JS --red/--accent
   ═══════════════════════════════════════════ */
body.theme-flix {
    --flix-bg: #f7f8fa;
    --flix-card: #ffffff;
    --flix-text: #1f2937;
    --flix-muted: #6b7280;
    --flix-line: #e5e7eb;
    --flix-star: #f59e0b;
    --bg: var(--flix-bg);
    --card: var(--flix-card);
    --text: var(--flix-text);
    --muted: var(--flix-muted);
    --border: var(--flix-line);
    --radius: 14px;
    --radius-sm: 12px;
}

body.theme-flix .app-shell {
    background: var(--flix-bg);
    /* overflow-x:hidden breaks position:sticky; clip keeps horizontal bleed in check */
    overflow-x: clip;
    overflow-y: visible;
}
body.theme-flix .bottom-nav { display: none !important; }
body.theme-flix #view { padding-bottom: 96px; }
body.theme-flix .menu-toolbar,
body.theme-flix .random-pick,
body.theme-flix .menu-hero-social { display: none !important; }

body.theme-flix .flix-slider {
    height: 210px;
}
body.theme-flix .flix-slider-dots {
    bottom: 84px;
}

/* Header card */
body.theme-flix .flix-header {
    position: relative;
    margin: -28px 12px 0;
    z-index: 3;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
    padding: 18px 14px 12px;
    text-align: center;
}
body.theme-flix .flix-logo {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: -46px auto 8px;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
    background: var(--red);
}
body.theme-flix .flix-logo--ph {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}
body.theme-flix .flix-header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}
body.theme-flix .flix-tagline {
    margin: 4px 0 0;
    font-size: .8rem;
    color: var(--flix-muted);
    font-weight: 600;
}
body.theme-flix .flix-rating-btn {
    margin: 10px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 12px;
    font-family: inherit;
    cursor: pointer;
}
body.theme-flix .flix-stars { color: var(--flix-star); letter-spacing: 1px; font-size: .9rem; }
body.theme-flix .flix-stars .star-empty { color: #d1d5db; }
body.theme-flix .flix-rating-score { font-weight: 800; color: #111827; font-size: .9rem; }
body.theme-flix .flix-rating-count { color: var(--flix-muted); font-size: .78rem; font-weight: 700; }

body.theme-flix .flix-status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 12px;
    font-size: .75rem;
    font-weight: 700;
    color: #4b5563;
}
body.theme-flix .flix-status-row .is-open { color: var(--red); }
body.theme-flix .flix-status-row .is-closed { color: #dc2626; }

body.theme-flix .flix-notice {
    margin-top: 12px;
    text-align: start;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #9a3412;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
}

/* Main tabs: Menu / Info / Reviews (scroll away — not sticky) */
body.theme-flix .flix-main-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 12px 8px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    background: var(--flix-bg);
}
body.theme-flix .flix-main-tab {
    border: 0;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-weight: 800;
    font-size: .88rem;
    padding: 10px 8px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    cursor: pointer;
}
body.theme-flix .flix-main-tab.is-active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--red-rgb), .28);
}

/* Category chips — sticky at top; active chip follows scroll */
body.theme-flix .flix-cat-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 29;
    background: #fff;
    border-bottom: 1px solid var(--flix-line);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
}
body.theme-flix .flix-cat-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
}
body.theme-flix .flix-cat-track::-webkit-scrollbar { display: none; }
body.theme-flix .flix-cat-chip {
    flex: 0 0 auto;
    border: 1px solid var(--flix-line);
    background: #fff;
    color: #4b5563;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
}
body.theme-flix .flix-cat-chip.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

body.theme-flix .flix-catalog-sections {
    padding-bottom: 8px;
}
body.theme-flix .flix-cat-section {
    scroll-margin-top: calc(var(--flix-cat-h, 52px) + 8px);
}
body.theme-flix .flix-section-title {
    position: -webkit-sticky;
    position: sticky;
    top: var(--flix-cat-h, 52px);
    z-index: 7;
    margin: 0;
    padding: 12px 14px 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    background: var(--flix-bg);
    scroll-margin-top: calc(var(--flix-cat-h, 52px) + 8px);
}

/* 2-column product grid */
body.theme-flix .flix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 4px 12px 18px;
}
body.theme-flix .flix-grid-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
    border: 0;
    padding: 0;
    text-align: start;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    display: block;
    width: 100%;
}
body.theme-flix .flix-grid-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--red);
    overflow: hidden;
}
body.theme-flix .flix-grid-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
body.theme-flix .flix-grid-ph {
    width: 100%; height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.92);
}
body.theme-flix .flix-grid-ph svg { width: 42px; height: 42px; fill: currentColor; opacity: .9; }
body.theme-flix .flix-grid-body { padding: 10px 10px 12px; }
body.theme-flix .flix-grid-body h3 {
    margin: 0;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
body.theme-flix .flix-grid-body .price,
body.theme-flix .flix-grid-body .price-new {
    margin-top: 6px;
    color: var(--red);
    font-weight: 800;
    font-size: .92rem;
}
body.theme-flix .flix-grid-body .price-old {
    color: #9ca3af;
    font-size: .75rem;
    text-decoration: line-through;
    margin-inline-end: 6px;
}
body.theme-flix .flix-grid-add {
    position: absolute;
    left: 8px; bottom: 8px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--red);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    cursor: pointer;
    z-index: 2;
}
body.theme-flix .flix-grid-add svg { width: 16px; height: 16px; }

/* Panels */
body.theme-flix .flix-panel {
    margin: 0 12px 16px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
}
body.theme-flix .flix-panel h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
}
body.theme-flix .flix-info-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.theme-flix .flix-info-list li {
    display: grid;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--flix-line);
    font-size: .86rem;
}
body.theme-flix .flix-info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
body.theme-flix .flix-info-list strong { color: #6b7280; font-size: .75rem; font-weight: 700; }
body.theme-flix .flix-info-list span, body.theme-flix .flix-info-list a { color: #111827; font-weight: 700; text-decoration: none; }

body.theme-flix .flix-review-item {
    padding: 10px 0;
    border-top: 1px solid var(--flix-line);
}
body.theme-flix .flix-review-item:first-child { border-top: 0; }
body.theme-flix .flix-review-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: .84rem;
    font-weight: 800;
}
body.theme-flix .flix-review-item p {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: .8rem;
    line-height: 1.5;
}
body.theme-flix .flix-review-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
body.theme-flix .flix-review-form input,
body.theme-flix .flix-review-form textarea {
    width: 100%;
    border: 1px solid var(--flix-line);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: .88rem;
    background: #f9fafb;
}
body.theme-flix .flix-rating-hint {
    margin: 0 0 8px;
    font-size: .8rem;
    font-weight: 700;
    color: #4b5563;
}
body.theme-flix .flix-rating-hint.is-error {
    color: #dc2626;
}
body.theme-flix .flix-star-pick { display: flex; gap: 6px; }
body.theme-flix .flix-star-pick button {
    border: 0; background: transparent; font-size: 1.55rem;
    color: #d1d5db; cursor: pointer; padding: 0; line-height: 1;
    transition: transform .12s ease, color .12s ease;
}
body.theme-flix .flix-star-pick button.is-on { color: var(--flix-star); transform: scale(1.08); }

body.theme-flix .flix-float-cart {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100% - 28px), 452px);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(var(--red-rgb), .35);
    cursor: pointer;
}
body.theme-flix .flix-float-cart.hidden { display: none; }
body.theme-flix .flix-float-cart.is-closed {
    background: #6b7280;
    box-shadow: none;
    cursor: not-allowed;
}
body.theme-flix .flix-float-cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 26px; height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    font-size: .85rem;
}
