/* ============================================================
   Milestone Academy — site styles
   Brand: deep aubergine (#5e1f56), serif display, airy layout
   ============================================================ */

:root {
    --aubergine: #5e1f56;
    --aubergine-dark: #4a1844;
    --ink: #2a2230;
    --muted: #7c7382;
    --line: #e7e2ea;
    --bg: #ffffff;
    --bg-alt: #f4f2f5;
    --accent: #2f7df6;            /* the blue eyebrow / numbering accent */
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
    --maxw: 1180px;
    --shadow: 0 18px 50px rgba(94, 31, 86, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    letter-spacing: .2px;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 28px;
}

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .72rem;
    font-weight: 500;
}

/* ── Top utility bar ─────────────────────────────────────── */
.topbar {
    background: var(--aubergine);
    color: #f3e9f1;
    font-size: .82rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
    height: 44px;
}
.topbar__item { opacity: .92; transition: opacity .2s; }
.topbar__item:hover { opacity: 1; }
.topbar__icon { display: inline-flex; align-items: center; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
    background: var(--aubergine);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 92px;
    gap: 20px;
}
.nav__menu {
    display: flex;
    align-items: center;
    gap: 34px;
}
.nav__menu--left { justify-content: flex-end; }
.nav__menu--right { justify-content: flex-start; }
.nav__link {
    font-size: .96rem;
    font-weight: 400;
    letter-spacing: .02em;
    color: #efe4ee;
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: #fff;
}
.nav__logo { display: flex; justify-content: center; }
.nav__logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer__logo, .nav__logo img { transition: opacity .2s; }
.nav__search { display: inline-flex; color: #efe4ee; cursor: pointer; }
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav__burger span { width: 24px; height: 2px; background: #fff; display: block; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 500;
    padding: 16px 34px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .22s ease;
}
.btn--light { background: #fff; color: var(--aubergine); }
.btn--light:hover { background: var(--aubergine-dark); color: #fff; }
.btn--solid { background: var(--aubergine); color: #fff; }
.btn--solid:hover { background: var(--aubergine-dark); }
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 8px 2px;
}
.btn--ghost:hover { color: var(--aubergine); border-color: var(--aubergine); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(40,20,40,.32), rgba(40,20,40,.42)),
        var(--hero-image, #6a4a64) center/cover no-repeat;
    z-index: 0;
}
.hero__inner { position: relative; z-index: 1; padding: 60px 20px; }
.hero__welcome { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.hero__divider { width: 1px; height: 86px; background: rgba(255,255,255,.7); margin: 14px auto 26px; }
.hero h1 {
    font-size: clamp(3rem, 8vw, 6.4rem);
    font-weight: 500;
    line-height: 1.02;
}

/* compact page hero (interior pages) */
.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(30,15,30,.25), rgba(30,15,30,.55)),
        var(--hero-image, var(--aubergine)) center/cover no-repeat;
}
.page-hero__inner { position: relative; padding-bottom: 56px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-top: 8px; }
.page-hero--center { align-items: center; justify-content: center; text-align: center; }
.page-hero--center h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }

/* ── Section helpers ─────────────────────────────────────── */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 64px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: .04em; }
.section__head p { color: var(--muted); margin-top: 18px; }

/* ── About intro ─────────────────────────────────────────── */
.intro { text-align: center; max-width: 760px; margin: 0 auto; }
.intro h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; letter-spacing: .06em; }
.intro p { color: var(--muted); margin: 24px 0 30px; }

/* ── Program grid ────────────────────────────────────────── */
.programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 48px;
}
.program__media {
    aspect-ratio: 16 / 11;
    background: var(--bg-alt) var(--card-image) center/cover no-repeat;
    overflow: hidden;
}
.program h3 { font-size: 1.5rem; margin: 22px 0 12px; text-transform: uppercase; letter-spacing: .03em; }
.program p { color: var(--muted); }

/* ── CTA band ────────────────────────────────────────────── */
.cta {
    background: var(--aubergine);
    color: #fff;
    text-align: center;
    padding: 96px 0;
}
.cta .eyebrow { color: #d9bcd4; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 38px; }

/* ── Split / feature rows ────────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.split__body p { color: var(--muted); margin-top: 20px; }
.feature-icon { width: 46px; height: 46px; color: var(--aubergine); margin-bottom: 18px; }

/* heading with an accent rule beneath (About page) */
.head-rule h2 { font-size: 2rem; }
.head-rule .rule { width: 220px; height: 3px; background: #2fae6a; margin-top: 16px; }

/* ── Facilities text columns ─────────────────────────────── */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.cols-2 p { color: var(--muted); }
.cols-2 strong { color: var(--ink); font-weight: 500; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.gallery__item {
    aspect-ratio: 1 / 1;
    background: var(--bg-alt) var(--g-image) center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
.gallery__item span {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(74,24,68,.82));
    color: #fff; padding: 28px 14px 12px; font-size: .82rem;
    opacity: 0; transition: opacity .25s;
}
.gallery__item:hover span { opacity: 1; }

/* ── Team grid ───────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 48px;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 48px;
}
.team-role { display: flex; align-items: baseline; gap: 18px; }
.team-role__num {
    font-family: var(--serif);
    font-size: 2.6rem;
    color: var(--accent);
    font-weight: 600;
    line-height: 1;
}
.team-role__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 72px; }
.contact h2 { font-size: 2rem; text-transform: uppercase; letter-spacing: .05em; }
.contact > p, .contact-grid p.lead { color: var(--muted); margin: 18px 0 34px; }
.field { margin-bottom: 18px; }
.field input, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 18px 20px;
    font-family: var(--sans);
    font-size: .98rem;
    color: var(--ink);
    border-radius: 2px;
}
.field input:focus, .field textarea:focus {
    outline: 2px solid var(--aubergine);
    outline-offset: 1px;
    background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field--error input, .field--error textarea { border-color: #c0392b; }
.error-text { color: #c0392b; font-size: .82rem; margin-top: 6px; }
.contact__submit { width: 100%; }
.contact-info h3 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 22px; }
.contact-info p { color: var(--ink); margin: 0 0 18px; }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 4px; margin-top: 8px; }

/* alert / flash */
.alert {
    background: #ecf8f0;
    border: 1px solid #bfe6cd;
    color: #1d6b3c;
    padding: 16px 20px;
    border-radius: 3px;
    margin-bottom: 28px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--aubergine); color: #ecdde9; }
.footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding: 72px 28px 56px;
}
.footer__logo { height: 30px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer__brand p { color: #d6c2d2; max-width: 360px; }
.footer__col h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 18px; color: #fff; }
.footer__col p, .footer__col a { display: block; color: #d6c2d2; margin-bottom: 12px; font-size: .92rem; }
.footer__col a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .82rem; color: #c8b3c4; }

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .nav__inner { grid-template-columns: auto 1fr; min-height: 70px; }
    .nav__burger { display: flex; order: -1; }
    .nav__logo { justify-content: flex-start; }
    .nav__menu {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(300px, 84vw);
        background: var(--aubergine-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        padding: 90px 32px;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 60;
    }
    body.menu-open .nav__menu { transform: translateX(0); }
    body.menu-open .nav__menu--left { padding-top: 90px; }
    body.menu-open .nav__menu--right { padding-top: 320px; }
    .nav__search { display: none; }

    .programs, .split, .cols-2, .contact-grid, .team-grid { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .split { gap: 36px; }
}

@media (max-width: 520px) {
    .topbar__inner { gap: 16px; font-size: .74rem; }
    .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ============================================================
   Bilingual / RTL + Shop additions
   ============================================================ */

/* Arabic typography: swap families when the document is RTL */
body.rtl {
    font-family: "Tajawal", var(--sans);
}
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 {
    font-family: "Amiri", "Tajawal", var(--serif);
}

/* Logical-direction fixes so the aubergine bars and grids mirror cleanly */
.topbar__inner { justify-content: space-between !important; }
.topbar__left  { margin-inline-end: auto; }
.topbar__right { margin-inline-start: auto; }
[dir="rtl"] .topbar__inner { justify-content: space-between !important; }
[dir="rtl"] .head-rule .rule { margin-inline-start: 0; }

.topbar__lang {
    border: 1px solid rgba(255,255,255,.4);
    padding: 3px 12px; border-radius: 2px; font-size: .76rem;
}
.topbar__lang:hover { background: rgba(255,255,255,.12); }

/* Cart icon + badge */
.nav__cart { position: relative; display: inline-flex; color: #efe4ee; }
.nav__cart:hover { color: #fff; }
.nav__cart-count {
    position: absolute; inset-block-start: -8px; inset-inline-end: -10px;
    background: #fff; color: var(--aubergine);
    min-width: 18px; height: 18px; border-radius: 9px;
    font-size: .68rem; font-weight: 600; display: grid; place-items: center; padding: 0 4px;
}

/* ── Shop: category & product grids ─────────────────────── */
.shop-cats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.cat-card {
    position: relative; display: block; aspect-ratio: 4/3; overflow: hidden;
    border-radius: 4px; background: var(--bg-alt) var(--cat-image) center/cover no-repeat;
}
.cat-card__label {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    background: linear-gradient(transparent, rgba(74,24,68,.85));
    color: #fff; padding: 40px 20px 18px; font-family: var(--serif);
    font-size: 1.45rem; font-weight: 500;
}
body.rtl .cat-card__label { font-family: "Amiri", var(--serif); }

.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.product-card { display: flex; flex-direction: column; }
.product-card__media {
    position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 4px;
    background: var(--bg-alt) var(--p-image) center/cover no-repeat;
    display: block;
}
.product-card__badge {
    position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
    background: var(--aubergine); color: #fff; font-size: .72rem;
    padding: 4px 10px; border-radius: 2px; letter-spacing: .04em;
}
.product-card__out {
    position: absolute; inset: 0; background: rgba(255,255,255,.6);
    display: grid; place-items: center; font-weight: 500; color: var(--aubergine);
    text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
}
.product-card__title {
    font-family: var(--serif); font-size: 1.2rem; margin: 16px 0 6px; color: var(--ink);
}
body.rtl .product-card__title { font-family: "Amiri", var(--serif); }
.product-card__price { display: flex; gap: 10px; align-items: baseline; }
.price-now { color: var(--aubergine); font-weight: 500; font-size: 1.05rem; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }

/* breadcrumb */
.crumbs { color: var(--muted); font-size: .85rem; padding: 26px 0 0; }
.crumbs a:hover { color: var(--aubergine); }
.crumbs span { margin-inline: 8px; }

/* sub-category chips */
.subcats { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.subcat-chip {
    border: 1px solid var(--line); padding: 8px 18px; border-radius: 40px;
    font-size: .9rem; transition: all .2s;
}
.subcat-chip:hover { border-color: var(--aubergine); color: var(--aubergine); }

/* ── Product detail ─────────────────────────────────────── */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pd__gallery-main {
    aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; background: var(--bg-alt);
}
.pd__gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd__thumb {
    width: 72px; height: 72px; border-radius: 4px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; background: var(--bg-alt);
}
.pd__thumb.is-active { border-color: var(--aubergine); }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pd__price { display: flex; gap: 14px; align-items: baseline; margin: 18px 0; }
.pd__price .price-now { font-size: 1.6rem; }
.pd__short { color: var(--muted); margin-bottom: 24px; }
.pd__options { margin: 24px 0; }
.opt-group { margin-bottom: 18px; }
.opt-group__label { font-weight: 500; margin-bottom: 10px; display: block; }
.opt-values { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-value {
    border: 1px solid var(--line); padding: 9px 18px; border-radius: 3px;
    cursor: pointer; transition: all .18s; background: #fff; font-size: .92rem;
}
.opt-value:hover { border-color: var(--aubergine); }
.opt-value.is-selected { border-color: var(--aubergine); background: var(--aubergine); color: #fff; }
.opt-value.is-disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.opt-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; vertical-align: middle; margin-inline-end: 6px; }
.pd__stock { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.pd__stock.in { color: #1d6b3c; }
.pd__stock.out { color: #c0392b; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qty-box { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.qty-box button { width: 42px; height: 46px; border: 0; background: var(--bg-alt); font-size: 1.2rem; cursor: pointer; }
.qty-box input { width: 56px; height: 46px; border: 0; text-align: center; font-size: 1rem; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Cart & checkout ────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: start; font-weight: 500; padding: 0 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 16px; align-items: center; }
.cart-item__img { width: 76px; height: 76px; border-radius: 4px; object-fit: cover; background: var(--bg-alt); }
.cart-item__name { font-family: var(--serif); font-size: 1.1rem; }
body.rtl .cart-item__name { font-family: "Amiri", var(--serif); }
.cart-item__variant { color: var(--muted); font-size: .85rem; }
.cart-remove { color: #c0392b; font-size: .85rem; background: none; border: 0; cursor: pointer; padding: 0; }
.cart-summary {
    background: var(--bg-alt); border-radius: 6px; padding: 32px;
}
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 14px; }
.cart-summary__row--total { font-size: 1.2rem; font-weight: 500; color: var(--aubergine); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 56px; align-items: start; }
.checkout-grid .field input, .checkout-grid .field textarea { background: #fff; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.order-line__name { color: var(--ink); }
.order-line__meta { color: var(--muted); font-size: .82rem; }

.status-screen { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 0; }
.status-screen__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 28px; }
.status-screen__icon--ok { background: #ecf8f0; color: #1d6b3c; }
.status-screen__icon--no { background: #fdeceb; color: #c0392b; }
.status-screen h1 { font-size: 2.2rem; margin-bottom: 14px; }
.status-screen p { color: var(--muted); margin-bottom: 8px; }
.status-screen .order-ref { font-weight: 500; color: var(--ink); }

@media (max-width: 900px) {
    .shop-cats { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .pd, .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .shop-cats, .product-grid { grid-template-columns: 1fr; }
}

/* ── Add-to-cart popup toast ────────────────────────────── */
.pd-toast {
    position: fixed;
    inset-block-end: 28px;
    inset-inline: 0;
    margin-inline: auto;
    width: max-content;
    max-width: 90vw;
    background: var(--aubergine-dark, #4a1844);
    color: #fff;
    padding: 14px 26px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    font-size: .95rem;
    z-index: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    text-align: center;
}
.pd-toast.is-show { opacity: 1; transform: translateY(0); }

/* Hide mobile drawer on desktop; show it only on small screens */
.nav__mobile { display: none; }

@media (max-width: 900px) {
    .nav__mobile {
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        width: min(300px, 84vw);
        height: 100vh;
        background: var(--aubergine-dark, #4a1844);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 92px 32px 40px;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 60;
        overflow-y: auto;
    }
    [dir="rtl"] .nav__mobile { inset-inline-end: auto; inset-inline-start: 0; transform: translateX(-100%); }
    body.menu-open .nav__mobile { transform: translateX(0); }
    .nav__mobile .nav__link { font-size: 1.15rem; padding: 12px 0; width: 100%; }
    .nav__mobile .nav__mobile-cart { display: inline-flex; align-items: center; gap: 8px; color: #efe4ee; padding: 14px 0; font-size: 1.05rem; }
}

/* Footer: 4 columns (Brand · Locations · Explore · Customer Support) */
.footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
@media (max-width: 1100px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px)  { .footer__inner { grid-template-columns: 1fr; } }

/* ── Order receipt table (success + failed) ── */
.receipt { max-width: 560px; margin: 30px auto 0; text-align: start; border: 1px solid #c9a9c3; border-radius: 6px; overflow: hidden; font-size: .98rem; }
.receipt__head { background: var(--aubergine); color: #fff; font-weight: 700; text-align: center; padding: 14px 16px; font-size: 1.15rem; }
.receipt__head--failed { background: #b03636; }
.receipt--failed { border-color: #e3b3b3; }
.receipt__row { display: flex; align-items: center; border-top: 1px solid #e4cfe0; }
.receipt__row > span:first-child { flex: 0 0 38%; font-weight: 700; color: #2a2a2a; padding: 13px 18px; background: #f3e3f0; }
.receipt__row > span:last-child { flex: 1 1 auto; padding: 13px 18px; text-align: center; color: #2a2a2a; word-break: break-word; }
.receipt__row:nth-child(even) > span:first-child { background: #ecd2e7; }
.receipt--failed .receipt__row > span:first-child { background: #f6e3e3; }
.receipt--failed .receipt__row:nth-child(even) > span:first-child { background: #efd2d2; }

/* ── Receipt: compact on mobile so the whole table fits one screen ── */
@media (max-width: 600px) {
    .receipt { margin-top: 18px; font-size: .82rem; max-width: 100%; }
    .receipt__head { padding: 9px 12px; font-size: 1rem; }
    .receipt__row > span:first-child { padding: 7px 12px; flex-basis: 42%; }
    .receipt__row > span:last-child { padding: 7px 12px; }
    .status-screen { padding: 16px 0; }
    .status-screen__icon { width: 56px; height: 56px; margin-bottom: 14px; }
    .status-screen__icon svg { width: 28px; height: 28px; }
    .status-screen h1 { font-size: 1.6rem; margin-bottom: 8px; }
    .status-screen p { font-size: .9rem; margin-bottom: 4px; }
}

/* ============================================================
   Checkout v2 — Shopify-style layout (pixel-matched)
   ============================================================ */
.co2-wrap { background: #f5f5f5; min-height: 70vh; padding: 0; }
.co2 {
    max-width: 1100px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: start;
}
.co2-form { padding: 48px 56px 64px; }
.co2-summary { padding: 48px 56px 64px; position: sticky; top: 0; }
.co2-h { font-family: var(--sans); font-weight: 700; font-size: 1.35rem; color: #1a1a1a; margin: 26px 0 16px; }
.co2-h:first-of-type { margin-top: 0; }
.co2-subh { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: #1a1a1a; margin: 24px 0 12px; }
.co2-muted { color: #777; font-size: .9rem; margin: 0 0 14px; }
.co2-field { position: relative; margin-bottom: 12px; }
.co2-field input, .co2-select { width: 100%; border: 1px solid #c9c9c9; background: #fff; padding: 16px; font-family: var(--sans); font-size: .98rem; color: #1a1a1a; border-radius: 6px; outline: none; }
.co2-field input::placeholder { color: #8a8a8a; }
.co2-field input:focus, .co2-select:focus { border-color: #1a1a1a; box-shadow: 0 0 0 1px #1a1a1a; }
.co2-field.is-error input, .co2-field.is-error .co2-select { border-color: #c0392b; }
.co2-err { color: #c0392b; font-size: .8rem; margin-top: 5px; }
.co2-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-top: 22px; padding-bottom: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
[dir="rtl"] .co2-select { background-position: left 16px center; }
.co2-floating { position: absolute; top: 7px; inset-inline-start: 17px; font-size: .68rem; color: #777; pointer-events: none; }
.co2-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c9c9c9; border-radius: 8px; overflow: hidden; margin-bottom: 16px; background: #e6e6e6; }
.co2-toggle__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px; border: 0; background: #e6e6e6; color: #555; font-family: var(--sans); font-size: .96rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.co2-toggle__btn.is-active { background: #fff; color: #1a1a1a; box-shadow: inset 0 0 0 2px #1a1a1a; border-radius: 7px; }
.co2-shipmethod { display: flex; justify-content: space-between; align-items: center; border: 2px solid #1a1a1a; border-radius: 8px; padding: 16px 18px; background: #fafafa; }
.co2-shipmethod strong { display: block; font-family: var(--sans); font-size: .98rem; color: #1a1a1a; }
.co2-shipmethod span { color: #777; font-size: .85rem; }
.co2-shipmethod__fee { font-weight: 700; color: #1a1a1a; }
.co2-pickhead { display: flex; justify-content: space-between; align-items: center; color: #555; font-size: .9rem; margin-bottom: 12px; }
.co2-pickhead__loc { display: inline-flex; align-items: center; gap: 5px; }
.co2-branches { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.co2-branch { display: flex; justify-content: space-between; align-items: flex-start; text-align: start; width: 100%; border: 1px solid #c9c9c9; border-radius: 8px; padding: 16px 18px; background: #fafafa; cursor: pointer; transition: all .15s; }
.co2-branch:hover { border-color: #999; }
.co2-branch.is-selected { border-color: #1a1a1a; box-shadow: inset 0 0 0 1px #1a1a1a; background: #fff; }
.co2-branch__name { display: block; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: #1a1a1a; }
.co2-branch__addr { display: block; color: #666; font-size: .9rem; margin-top: 2px; }
.co2-branch__eta { display: inline-flex; align-items: center; gap: 5px; color: #888; font-size: .82rem; margin-top: 6px; }
.co2-branch__free { font-weight: 700; color: #1a1a1a; font-size: .9rem; }
.co2-pay { border: 1px solid #c9c9c9; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.co2-pay__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #ddd; background: #fff; }
.co2-pay__brand { font-weight: 800; font-style: italic; color: #1a1a1a; letter-spacing: -.5px; }
.co2-pay__body { padding: 18px; text-align: center; color: #555; font-size: .9rem; background: #fafafa; }
.co2-terms { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: .88rem; color: #444; }
.co2-terms input { margin-top: 3px; }
.co2-terms a { color: var(--aubergine); text-decoration: underline; }
.co2-paybtn { width: 100%; border: 0; background: var(--aubergine); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; padding: 18px; border-radius: 8px; cursor: pointer; transition: background .2s; }
.co2-paybtn:hover { background: var(--aubergine-dark); }
.co2-alert { background: #fdeceb; border: 1px solid #f3b9b4; color: #a5281c; padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; }
.co2-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.co2-item__media { position: relative; width: 64px; height: 64px; border-radius: 8px; border: 1px solid #ddd; background: #fff; overflow: hidden; flex: 0 0 auto; }
.co2-item__media img { width: 100%; height: 100%; object-fit: cover; }
.co2-item__qty { position: absolute; top: -8px; inset-inline-end: -8px; background: #4a4a4a; color: #fff; min-width: 20px; height: 20px; border-radius: 10px; font-size: .72rem; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.co2-item__info { flex: 1 1 auto; }
.co2-item__name { font-family: var(--serif); font-size: 1.05rem; color: #1a1a1a; }
body.rtl .co2-item__name { font-family: "Amiri", var(--serif); }
.co2-item__variant { color: #777; font-size: .85rem; margin-top: 2px; }
.co2-item__remove { background: none; border: 0; color: var(--aubergine); font-size: .85rem; cursor: pointer; padding: 4px 0 0; }
.co2-item__price { color: #555; font-size: .92rem; white-space: nowrap; }
.co2-sumrow { display: flex; justify-content: space-between; color: #555; font-size: .95rem; padding: 6px 0; }
.co2-sumrow--total { border-top: 1px solid #ddd; margin-top: 10px; padding-top: 16px; font-size: 1.4rem; font-weight: 700; color: #1a1a1a; }
@media (max-width: 900px) {
    .co2 { grid-template-columns: 1fr; }
    .co2-summary { order: -1; position: static; border-bottom: 1px solid #ddd; padding-bottom: 28px; }
    .co2-form { padding: 32px 24px 48px; }
    .co2-summary { padding: 32px 24px; }
}
