/* ==========================================================================
   FREEZE FOOD — Frozen Food & More
   ========================================================================== */

:root {
    --color-primary: #0c2340;
    --color-primary-dark: #000d21;
    --color-secondary: #006971;
    --color-accent: #ff5a36;
    --color-citrus: #ffa41c;
    --color-whatsapp: #25d366;
    --color-success: #1f9d55;
    --color-bg: #fbf9fc;
    --color-surface: #ffffff;
    --color-surface-ice: #f4f9fc;
    --color-frost-cyan: #e0f7fa;
    --color-text: #0a192f;
    --color-text-muted: #526b82;
    --color-border: #d8e6f0;
    --color-danger: #ba1a1a;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 6px rgba(12, 35, 64, 0.06);
    --shadow-md: 0 6px 20px rgba(12, 35, 64, 0.10);
    --shadow-lg: 0 16px 40px rgba(12, 35, 64, 0.18);

    --header-height: 84px;
    --topbar-height: 34px;
    --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; width: 100%; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

html[dir="rtl"] body {
    font-family: "Tajawal", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; touch-action: manipulation; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
    min-height: 44px;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

.btn--accent {
    background: var(--color-accent);
    color: #fff;
}
.btn--accent:hover { background: #e04a28; }

.btn--whatsapp {
    position: relative;
    overflow: hidden;
    gap: 12px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.01em;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #14a553 55%, #0e7c3f 100%);
    box-shadow: 0 8px 22px rgba(20, 165, 83, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
/* WhatsApp glyph in a frosted circle, drawn in CSS so any button text works */
.btn--whatsapp::before {
    content: "";
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21h.01c5.46 0 9.91-4.45 9.91-9.91A9.84 9.84 0 0 0 12.04 2Zm0 18.15h-.01a8.2 8.2 0 0 1-4.19-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.21 8.21 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.25-8.24 2.2 0 4.27.86 5.82 2.42a8.18 8.18 0 0 1 2.41 5.83c0 4.54-3.7 8.23-8.23 8.23Zm4.52-6.16c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.12-.17.25-.64.81-.78.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.02-.38.11-.51.11-.11.25-.29.37-.43.12-.14.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.43.06-.66.31-.23.25-.87.85-.87 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.67-1.18.21-.58.21-1.07.14-1.18-.06-.1-.23-.16-.48-.29Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
/* little arrow that nudges toward "send" */
.btn--whatsapp::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);   /* points right (LTR) */
    opacity: 0.9;
    transition: transform 0.2s ease;
}
html[dir="rtl"] .btn--whatsapp::after { transform: rotate(135deg); }   /* points left (RTL) */
.btn--whatsapp:hover {
    background: linear-gradient(135deg, #2be06f 0%, #17b25a 55%, #0f8745 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 165, 83, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--whatsapp:hover::after { transform: translateX(3px) rotate(-45deg); }
html[dir="rtl"] .btn--whatsapp:hover::after { transform: translateX(-3px) rotate(135deg); }
.btn--whatsapp:active { transform: translateY(0) scale(0.98); }
.btn--whatsapp:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
.btn--whatsapp:disabled { box-shadow: none; }
/* soft pulse ring to draw the eye */
.btn--whatsapp:not(:disabled) { animation: wa-pulse 2.8s ease-out infinite; }
@keyframes wa-pulse {
    0% { box-shadow: 0 8px 22px rgba(20, 165, 83, 0.4), inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%, 100% { box-shadow: 0 8px 22px rgba(20, 165, 83, 0.4), inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .btn--whatsapp, .btn--whatsapp:not(:disabled) { animation: none; transition: none; }
    .btn--whatsapp::after { transition: none; }
}

/* "Shop now" style call-to-action (navy pill, citrus bag badge) */
.btn--shop {
    position: relative;
    gap: 12px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.01em;
    border-radius: 999px;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 60%) no-repeat 150% 0 / 250% 100%,
        linear-gradient(135deg, #12335f 0%, #0c2340 55%, #006971 130%);
    box-shadow: 0 8px 22px rgba(12, 35, 64, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: shop-shine 4.5s ease-in-out infinite;
}
.btn--shop:hover {
    background:
        linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 60%) no-repeat 150% 0 / 250% 100%,
        linear-gradient(135deg, #1a4680 0%, #0f2c52 55%, #00858f 130%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(12, 35, 64, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--shop::before {
    content: "";
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230c2340' d='M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2Zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2Zm6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12Z'/%3E%3C/svg%3E") center / 19px 19px no-repeat,
        linear-gradient(135deg, #ffd166, var(--color-citrus) 60%, #ff7a2f);
    box-shadow: 0 0 0 3px rgba(255, 164, 28, 0.25);
    transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.btn--shop:hover::before { transform: rotate(-12deg) scale(1.1); }
.btn--shop::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);   /* points right (LTR) */
    opacity: 0.9;
    transition: transform 0.2s ease;
}
html[dir="rtl"] .btn--shop::after { transform: rotate(135deg); }   /* points left (RTL) */
.btn--shop:hover::after { transform: translateX(3px) rotate(-45deg); }
html[dir="rtl"] .btn--shop:hover::after { transform: translateX(-3px) rotate(135deg); }
.btn--shop:active { transform: translateY(0) scale(0.98); }
.btn--shop:focus-visible { outline: 3px solid var(--color-citrus); outline-offset: 3px; }
@keyframes shop-shine { 0%, 55% { background-position: 150% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
    .btn--shop { animation: none; transition: none; }
    .btn--shop::before, .btn--shop::after { transition: none; }
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn--outline:hover { background: rgba(12, 35, 64, 0.06); }

.btn--full { width: 100%; }
.btn--large { padding: 16px 30px; font-size: 17px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link-btn {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 700;
    padding: 4px;
}
.link-btn:hover { text-decoration: underline; }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}
.topbar .container::-webkit-scrollbar { display: none; }

.topbar__items {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item--whatsapp { color: var(--color-whatsapp); }
.topbar__phone { white-space: nowrap; }

@media (max-width: 700px) {
    /* The phone number is nowrap and won't shrink, so on narrow screens it
       eats the whole topbar and leaves 0px for the rotating messages.
       It's still reachable via the header/footer, so drop it here only. */
    .topbar__phone { display: none; }

    .topbar__items { position: relative; height: 16px; overflow: hidden; flex: 1; }
    .topbar__item {
        position: absolute;
        inset-inline-start: 0;
        top: 0;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    .topbar__item--active { opacity: 1; }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--color-primary);
    min-width: 0;
    flex-shrink: 0;
}

.brand__logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.brand__subtitle {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .brand { font-size: 17px; gap: 8px; }
    .brand__logo-img { width: 46px; height: 46px; }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav__link {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}
.main-nav__link:hover,
.main-nav__link:focus-visible { color: var(--color-primary); background: var(--color-surface-ice); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md, 0 6px 20px rgba(0,0,0,0.15));
    min-height: 44px;
    color: var(--color-primary);
    position: fixed;
    inset-inline-end: 20px;
    bottom: 20px;
    z-index: 1000;
}
.cart-link:hover { background: var(--color-surface-ice); }

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    line-height: 1;
}

.cart-icon-svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

@media (max-width: 480px) {
    .cart-link {
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
        font-size: 26px;
        bottom: 32px;
        inset-inline-end: 18px;
        background: var(--color-primary);
        border-color: var(--color-primary);
    }
    .cart-icon-svg { width: 28px; height: 28px; color: #fff; }
    .cart-link:hover { background: var(--color-primary); }
    .cart-link .cart-count-label { display: none; }
    .cart-badge {
        font-size: 13px;
        min-width: 22px;
        height: 22px;
        top: -6px;
        inset-inline-end: -6px;
    }
}

.cart-badge {
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    position: absolute;
    top: -8px;
    inset-inline-end: -10px;
    border: 2px solid var(--color-surface);
    line-height: 1;
}

.cart-badge--hidden { display: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    padding: 6px 8px;
    color: var(--color-text);
    min-width: 44px;
    min-height: 44px;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 16px 4px 5px;
    border: 2px solid transparent;
    border-radius: 999px;
    /* white pill with a gradient outline */
    background:
        linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
        linear-gradient(135deg, var(--color-citrus), var(--color-accent) 55%, var(--color-secondary)) border-box;
    box-shadow: 0 2px 10px rgba(255, 90, 54, 0.18);
    color: var(--color-primary);
    font: inherit;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
html[dir="rtl"] .lang-switch { padding: 4px 5px 4px 16px; }
.lang-switch__icon {
    box-sizing: content-box;
    flex: none;
    width: 18px;
    height: 18px;
    padding: 6px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.lang-switch__code { direction: ltr; unicode-bidi: isolate; }
.lang-switch:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 90, 54, 0.3); }
.lang-switch:hover .lang-switch__icon { transform: rotate(-14deg) scale(1.12); }
.lang-switch:active { transform: translateY(0) scale(0.97); }
.lang-switch:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .lang-switch, .lang-switch__icon { transition: none; }
}

@media (max-width: 480px) {
    .lang-switch { gap: 6px; padding: 3px 12px 3px 4px; font-size: 13px; }
    html[dir="rtl"] .lang-switch { padding: 3px 4px 3px 12px; }
    .lang-switch__icon { width: 16px; height: 16px; padding: 5px; }
}

@media (max-width: 860px) {
    .header-inner { height: 64px; }
    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 20px 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        display: none;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .main-nav--open { display: flex; }
    .main-nav__link {
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid var(--color-border);
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 0;
    }
    .nav-toggle { display: block; }
    .brand__subtitle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background: var(--color-surface);
    padding: 48px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 340px;
    background: rgba(224, 247, 250, 0.6);
    border-radius: 999px;
    filter: blur(60px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: stretch;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--color-frost-cyan);
    color: var(--color-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}
.hero__title span { color: var(--color-secondary); }

.hero__text {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 28px;
    max-width: none;
}

/* both hero buttons share one column, as wide as the longer of the two */
.hero__actions {
    display: grid;
    grid-template-columns: max-content;
    justify-content: start;
    gap: 14px;
    max-width: 100%;
}
.hero__actions .btn { width: 100%; }

.hero__image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 100%;
    background: var(--color-surface-ice);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero__badge--top-left { top: 16px; left: 16px; }
.hero__badge--top-right { top: 16px; right: 16px; }

@media (max-width: 860px) {
    .hero { padding: 28px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero__title { font-size: 30px; }
    .hero__image-wrap { order: -1; aspect-ratio: 1024 / 545; min-height: 0; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 25px; }
    .hero__text { font-size: 15px; margin-bottom: 20px; }
    .hero__actions { grid-template-columns: 1fr; gap: 10px; }
    .hero__badge { font-size: 11px; padding: 6px 10px; }
}

/* ---- Poster hero: the poster is a full-width picture that fades where the text sits ----
   Desktop: fades toward the text side (right in Arabic, left in English) and softly at the bottom; top and outer edge stay clean.
   Phones: the poster spans the full width and fades at the bottom into the text below it.
   Turn it off by removing class "hero--poster" from the <section class="hero"> in index.html. */
.hero--poster {
    background: linear-gradient(180deg, #eef3f7 0%, #eef3f7 80%, var(--color-bg) 100%);
}
.hero--poster::before { display: none; }
.hero--poster .hero__image-wrap { display: none; }

@media (min-width: 861px) {
    .hero--poster {
        display: flex;
        align-items: center;
        height: clamp(460px, 46vw, 940px);
        padding: 0;
    }
    .hero--poster .hero__bg {
        --fade-dir: to right;               /* text is on the right in Arabic */
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        /* fades toward the text side AND downward, so the poster dissolves into the page */
        -webkit-mask-image:
            linear-gradient(var(--fade-dir), #000 0, #000 56%, transparent 76%),
            linear-gradient(to bottom, #000 0, #000 76%, transparent 100%);
        mask-image:
            linear-gradient(var(--fade-dir), #000 0, #000 56%, transparent 76%),
            linear-gradient(to bottom, #000 0, #000 76%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
    .hero--poster .hero__bg-img {
        position: absolute;
        top: 0;
        left: -10%;                          /* pushes the poster's centre logo away from the text */
        width: 110%;
        height: 100%;
        object-fit: cover;
        object-position: center 14%;         /* keeps the logo and slogan in view */
    }
    html[dir="ltr"] .hero--poster .hero__bg { --fade-dir: to left; }
    html[dir="ltr"] .hero--poster .hero__bg-img { left: auto; right: -10%; }

    .hero--poster .hero-inner {
        width: 100%;
        grid-template-columns: minmax(280px, 400px);
        justify-content: start;
    }
    /* a soft glow of the page colour keeps the text readable where the poster is still fading */
    .hero--poster .hero-inner > div:first-child {
        position: relative;
        padding: 8px 0;
    }
    .hero--poster .hero-inner > div:first-child::before {
        content: "";
        position: absolute;
        inset: -40px -60px;
        z-index: -1;
        background: radial-gradient(closest-side, rgba(238, 243, 247, 0.95) 55%, rgba(238, 243, 247, 0));
    }
}

@media (max-width: 860px) {
    .hero--poster { padding: 0 0 36px; }
    .hero--poster .hero__bg {
        display: block;
        position: relative;
        width: 100%;
        aspect-ratio: 10 / 9;                 /* taller than the banner: the middle (logo + slogan) is kept, the sides are cropped */
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, rgba(0, 0, 0, 0.55) 76%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0, #000 52%, rgba(0, 0, 0, 0.55) 76%, transparent 100%);
    }
    .hero--poster .hero__bg-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
    }
    /* the text starts inside the faded bottom of the poster */
    .hero--poster .hero-inner {
        margin-top: -13vw;
        gap: 0;
    }
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--color-surface-ice); }

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-heading__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--color-primary);
}

.section-heading__subtitle {
    color: var(--color-text-muted);
    font-size: 15px;
}

@media (max-width: 480px) {
    .section { padding: 40px 0; }
    .section--tight { padding: 28px 0; }
    .section-heading__title { font-size: 22px; }
    .section-heading__subtitle { font-size: 13px; }
}

/* ==========================================================================
   Categories
   ========================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.category-card__image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--color-frost-cyan);
}

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* decorations used only by css/categories.css; hidden here so the original cards stay clean without it */
.category-card__go, .category-card__sub { display: none; }

.category-card__name {
    font-weight: 700;
    font-size: 14px;
    padding: 12px 8px;
    color: var(--color-primary);
}

@media (max-width: 860px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-card__name { font-size: 12px; padding: 8px 4px; }
}

/* ==========================================================================
   Product grid + cards
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}

@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 360px) {
    .product-grid { grid-template-columns: 1fr; }
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--color-surface-ice);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Applied when a product/category has no photo and falls back to the shop
   logo: "cover" crops a real food photo nicely but chops up a logo, so the
   fallback needs "contain" instead to show it whole. */
.img-fallback {
    object-fit: contain !important;
    box-sizing: border-box;
    padding: 12%;
    background: #fff;
}

.badge {
    position: absolute;
    top: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.badge--discount { inset-inline-start: 12px; background: var(--color-accent); }
.badge--unavailable { inset-inline-end: 12px; background: var(--color-danger); }
.badge--low-stock { inset-inline-end: 12px; background: var(--color-citrus); color: var(--color-primary-dark); }

.product-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.product-card__brand { font-size: 12px; color: var(--color-text-muted); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.product-card__name { font-size: 16px; font-weight: 700; margin: 0; color: var(--color-primary); }
.product-card__weight { font-size: 13px; color: var(--color-text-muted); margin: 0 0 8px; }

.product-card__description {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    margin-top: auto;
}
.product-card__old-price { text-decoration: line-through; color: var(--color-text-muted); font-size: 13px; }
.product-card__price { font-size: 19px; font-weight: 800; color: var(--color-primary); }

.product-card__unavailable-text {
    color: var(--color-danger);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    margin: 8px 0 0;
}

@media (max-width: 640px) {
    .product-card__body { padding: 12px 14px 14px; gap: 2px; }
    .product-card__name { font-size: 14px; line-height: 1.3; }
    .product-card__brand { font-size: 11px; }
    .product-card__weight { font-size: 12px; margin-bottom: 6px; }
    .product-card__price { font-size: 16px; }
    .product-card__old-price { font-size: 12px; }
    .product-card__price-row { margin-bottom: 10px; }
    .add-to-cart-btn { padding: 10px 12px; font-size: 13px; min-height: 40px; }
    .badge { font-size: 11px; padding: 3px 10px; }
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}
.empty-state__title { font-size: 18px; font-weight: 700; color: var(--color-text); margin: 0 0 6px; }
.empty-state__text { margin: 0; }

/* ==========================================================================
   Catalogue toolbar
   ========================================================================== */

.catalogue-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input,
.sort-select,
.form-input,
.form-textarea {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
}
.search-input:focus, .sort-select:focus, .form-input:focus, .form-textarea:focus {
    border-color: var(--color-secondary);
}

.search-row .search-input { flex: 1; min-width: 200px; }
.search-row .sort-select { width: auto; min-width: 180px; }

@media (max-width: 480px) {
    .search-row { flex-direction: column; }
    .search-row .search-input,
    .search-row .sort-select { width: 100%; min-width: 0; min-height: 44px; }
    .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .chip-row::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.chip:hover { border-color: var(--color-secondary); }
.chip--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.result-count { font-size: 14px; color: var(--color-text-muted); margin: 0 0 16px; }

/* ==========================================================================
   Toasts
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 0 16px;
}

.toast {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
}
.toast--visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-layout {
    max-width: 720px;
    margin: 0 auto;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.cart-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.cart-row__image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--color-surface-ice);
}

.cart-row__name { font-weight: 700; margin: 0; font-size: 15px; color: var(--color-primary); }
.cart-row__weight { color: var(--color-text-muted); font-size: 13px; margin: 2px 0 8px; }
.cart-row__right { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-row__price { font-weight: 800; margin: 0; color: var(--color-primary); }
.cart-row__remove { color: var(--color-danger); padding: 8px 4px; min-height: 36px; }

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-surface-ice);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: var(--color-border); }
.qty-value { min-width: 20px; text-align: center; font-weight: 700; }

.qty-control--full {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
}
.qty-control--full .qty-value { font-size: 16px; }

.product-card__action { min-height: 44px; }

@media (max-width: 480px) {
    .cart-row { grid-template-columns: 60px 1fr auto; gap: 10px; padding: 10px; }
    .cart-row__image { width: 60px; height: 60px; }
    .cart-row__name { font-size: 14px; }
    .cart-row__price { font-size: 14px; }
}

.cart-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.cart-summary__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cart-summary__actions .btn { flex: 1; min-width: 160px; }

@media (max-width: 640px) {
    .cart-summary {
        position: sticky;
        bottom: 0;
        margin: 0 -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: 0 -6px 20px rgba(12, 35, 64, 0.14);
        padding: 14px 20px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
    .cart-summary__row { font-size: 16px; margin-bottom: 10px; }
    .cart-summary__actions { flex-wrap: nowrap; }
    .cart-summary__actions .btn { min-width: 0; }
    .cart-list { padding-bottom: 4px; }
}

@media (max-width: 480px) {
    .cart-summary { margin: 0 -16px; padding: 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

.cart-footer-links {
    text-align: center;
    margin-top: 14px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--color-primary); }
.form-hint { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.form-error { font-size: 13px; color: var(--color-danger); min-height: 18px; margin-top: 4px; }
.input--error { border-color: var(--color-danger); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

@media (max-width: 480px) {
    .form-card { padding: 16px; }
    .form-input, .form-textarea { font-size: 16px; }
}

/* ==========================================================================
   Order review
   ========================================================================== */

.review-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

@media (max-width: 480px) {
    .review-card { padding: 16px; }
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: 14px;
}

.review-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    padding: 16px 0;
    color: var(--color-primary);
}

.review-detail-row { font-size: 14px; margin: 4px 0; }
.review-detail-label { color: var(--color-text-muted); }

.review-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.review-secondary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.review-secondary-actions .btn { flex: 1; }

.order-status {
    background: #e9f7ef;
    border: 1px solid var(--color-success);
    color: #14532d;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    font-weight: 600;
    font-size: 14px;
}

.desktop-fallback {
    margin-top: 24px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}
.desktop-fallback__title { font-weight: 700; margin-bottom: 4px; color: var(--color-primary); }
.desktop-fallback__text { color: var(--color-text-muted); font-size: 13px; margin-bottom: 14px; }
.desktop-fallback__grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
}
#qr-code { background: #fff; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); width: fit-content; }
.desktop-fallback__actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 600px) {
    .desktop-fallback__grid { grid-template-columns: 1fr; text-align: center; }
    #qr-code { margin: 0 auto; }
}

/* ==========================================================================
   Empty cart
   ========================================================================== */

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}
.empty-cart__title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--color-primary); }
.empty-cart__text { color: var(--color-text-muted); margin-bottom: 24px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-primary-dark);
    color: #b7c6d9;
    margin-top: 64px;
    padding: 52px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col__title { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.footer-col p, .footer-col a { font-size: 14px; color: #93a8bd; margin: 0 0 8px; display: block; }
.footer-col a:hover { color: #fff; }

.footer-map {
    width: 100%;
    height: 140px;
    border: 0;
    border-radius: var(--radius-md);
    margin: 4px 0 10px;
    filter: grayscale(0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #6c8199;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .site-footer { padding: 40px 0 20px; margin-top: 44px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}

/* ==========================================================================
   Utility
   ========================================================================== */

[hidden] { display: none !important; }
.text-center { text-align: center; }

/* ---- Branch selector (button in header + modal) ---- */
.branch-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 210px;
    padding: 4px 12px 4px 5px;
    border: 2px solid transparent;
    border-radius: 999px;
    /* soft ice fill with a teal-to-cyan outline */
    background:
        linear-gradient(135deg, #ffffff 0%, var(--color-frost-cyan) 100%) padding-box,
        linear-gradient(135deg, var(--color-secondary), #2fd0dd 60%, var(--color-citrus)) border-box;
    box-shadow: 0 2px 10px rgba(0, 105, 113, 0.16);
    color: var(--color-primary);
    font: inherit;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
html[dir="rtl"] .branch-switch { padding: 4px 5px 4px 12px; }
.branch-switch__badge {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--color-citrus), var(--color-accent));
    transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
/* a little "you are here" pulse */
.branch-switch__badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0;
    animation: branch-ping 2.6s ease-out infinite;
}
.branch-switch--empty .branch-switch__badge::after { animation-duration: 1.2s; }
.branch-switch__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-switch__chev {
    flex: none;
    padding: 4px;
    box-sizing: content-box;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    color: var(--color-secondary);
    background: rgba(0, 105, 113, 0.1);
    transition: transform 0.2s ease;
}
.branch-switch:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 105, 113, 0.28); }
.branch-switch:hover .branch-switch__badge { transform: translateY(-2px) scale(1.1); }
.branch-switch:hover .branch-switch__chev { transform: translateY(2px); }
.branch-switch:active { transform: translateY(0) scale(0.97); }
.branch-switch:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
@keyframes branch-ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .branch-switch, .branch-switch__badge, .branch-switch__chev { transition: none; }
    .branch-switch__badge::after { animation: none; }
}

@media (max-width: 480px) {
    .branch-switch { gap: 6px; padding: 3px 8px 3px 4px; font-size: 13px; max-width: 128px; }
    html[dir="rtl"] .branch-switch { padding: 3px 4px 3px 8px; }
    .branch-switch__badge { width: 26px; height: 26px; }
    .branch-switch__chev { display: none; }
}

.no-scroll { overflow: hidden; }

.branch-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(70% 60% at 85% 10%, rgba(255, 90, 54, 0.28), transparent 70%),
        radial-gradient(60% 60% at 10% 90%, rgba(0, 170, 190, 0.3), transparent 70%),
        rgba(6, 20, 40, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: branch-fade 0.25s ease-out both;
}
.branch-modal__panel {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: var(--color-surface);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
    animation: branch-pop 0.38s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

/* branded header band with the pin badge */
.branch-modal__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    overflow: hidden;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 14px, rgba(255, 255, 255, 0) 14px 34px),
        radial-gradient(90% 160% at 100% 0%, rgba(255, 90, 54, 0.5), transparent 60%),
        linear-gradient(135deg, #06182f 0%, #0c2340 55%, #006971 130%);
}
.branch-modal__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ffd166, var(--color-citrus) 45%, var(--color-accent));
    box-shadow: 0 8px 24px rgba(255, 90, 54, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.branch-modal__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--color-citrus);
    animation: branch-ping 2.4s ease-out infinite;
}
.branch-modal__flake {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    animation: offer-float 6s ease-in-out infinite;
}
.branch-modal__flake--1 { top: 22%; inset-inline-start: 18%; }
.branch-modal__flake--2 { top: 64%; inset-inline-start: 78%; width: 6px; height: 6px; animation-delay: 1.8s; }
.branch-modal__flake--3 { top: 30%; inset-inline-start: 62%; width: 5px; height: 5px; animation-delay: 3.4s; }

.branch-modal__body { padding: 22px 22px 24px; text-align: center; }
.branch-modal__title { margin: 0 0 20px; font-size: 24px; font-weight: 900; color: var(--color-primary); }
.branch-modal__text { margin: 0 0 20px; font-size: 14px; color: var(--color-text-muted); }
.branch-modal__options { display: flex; flex-direction: column; gap: 12px; }

/* one card per branch */
.branch-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 72px;
    padding: 12px 16px;
    text-align: start;
    font: inherit;
    color: var(--color-primary);
    border: 2px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(135deg, #ffffff, var(--color-surface-ice)) padding-box,
        linear-gradient(135deg, var(--color-border), var(--color-border)) border-box;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.branch-option:hover,
.branch-option:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 105, 113, 0.22);
    background:
        linear-gradient(135deg, #ffffff, var(--color-frost-cyan)) padding-box,
        linear-gradient(135deg, var(--color-secondary), #2fd0dd 60%, var(--color-citrus)) border-box;
    outline: none;
}
.branch-option:active { transform: translateY(0) scale(0.98); }
.branch-option--active {
    background:
        linear-gradient(135deg, #ffffff, var(--color-frost-cyan)) padding-box,
        linear-gradient(135deg, var(--color-secondary), #2fd0dd 60%, var(--color-citrus)) border-box;
    box-shadow: 0 6px 18px rgba(0, 105, 113, 0.18);
}
.branch-option__badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--color-citrus), var(--color-accent));
    transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.branch-option:hover .branch-option__badge { transform: translateY(-2px) scale(1.1); }
.branch-option__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.branch-option__name { font-size: 18px; font-weight: 900; line-height: 1.25; }
.branch-option__addr {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.branch-option__tag {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 2px 9px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    vertical-align: middle;
    color: #fff;
    background: var(--color-secondary);
    border-radius: 999px;
}
.branch-option__go {
    flex: none;
    width: 10px;
    height: 10px;
    margin-inline-end: 4px;
    border-right: 3px solid var(--color-secondary);
    border-bottom: 3px solid var(--color-secondary);
    transform: rotate(-45deg);   /* points right (LTR) */
    transition: transform 0.2s ease;
}
html[dir="rtl"] .branch-option__go { transform: rotate(135deg); }   /* points left (RTL) */
.branch-option:hover .branch-option__go { transform: translateX(4px) rotate(-45deg); }
html[dir="rtl"] .branch-option:hover .branch-option__go { transform: translateX(-4px) rotate(135deg); }
.branch-modal__close { margin-top: 18px; font-weight: 700; }

@keyframes branch-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes branch-pop { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .branch-modal, .branch-modal__panel, .branch-modal__icon::after, .branch-modal__flake { animation: none; }
    .branch-option, .branch-option__badge, .branch-option__go { transition: none; }
}
@media (max-width: 480px) {
    .branch-modal { align-items: flex-end; padding: 10px; }
    .branch-modal__top { height: 96px; }
    .branch-modal__body { padding: 18px 16px 20px; }
    .branch-modal__title { font-size: 22px; }
}

/* ---- Delivery fee / total rows on the review card ---- */
.review-fee-row {
    display: flex;
    justify-content: space-between;
    padding: 0 0 10px;
    font-size: 15px;
    color: var(--color-text-muted);
}
.review-total-row { border-top: 1px solid var(--color-border); margin-bottom: 8px; }

/* ---- Payment method radio cards ---- */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.payment-option:hover { border-color: var(--color-secondary); }
.payment-option:has(input:checked) { border-color: var(--color-secondary); background: var(--color-frost-cyan); }
.payment-option input { width: 18px; height: 18px; accent-color: var(--color-secondary); margin: 0; }

/* ---- Footer: one contact block per branch ---- */
.footer-branches {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.footer-branch__name { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.footer-branch p, .footer-branch a { font-size: 14px; color: #93a8bd; margin: 0 0 8px; display: block; }
.footer-branch a:hover { color: #fff; }
.footer-branch--current .footer-branch__name { color: var(--color-citrus); }

@media (max-width: 860px) {
    .footer-branches { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-branches { grid-template-columns: 1fr; }
}

/* ---- "Your cart changed" notice (stock/price re-check) ---- */
.cart-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    font-size: 14px;
    color: #7a4a00;
    background: #fff4dc;
    border: 1px solid var(--color-citrus);
    border-radius: var(--radius-md);
}
.cart-notice ul { margin: 8px 0 0; padding-inline-start: 20px; }
