:root {
    --faid-app-bar-h: 64px;
    --faid-bottom-nav-h: 68px;
    --faid-safe-top: env(safe-area-inset-top, 0px);
    --faid-safe-bottom: env(safe-area-inset-bottom, 0px);
    --faid-safe-left: env(safe-area-inset-left, 0px);
    --faid-safe-right: env(safe-area-inset-right, 0px);
    --faid-primary: #16a34a;
    --faid-primary-dark: #15803d;
    --faid-accent: #ea580c;
    --faid-radius: 20px;
    --faid-radius-lg: 28px;
    --faid-auth-header-h: 56px;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

@media (max-width: 767px) {
    body.faid-mobile-app {
        padding-top: calc(var(--faid-app-bar-h) + var(--faid-safe-top));
        padding-bottom: calc(var(--faid-bottom-nav-h) + var(--faid-safe-bottom) + 12px);
        background: #f8fafc;
        -webkit-tap-highlight-color: transparent;
    }
    .faid-desktop-only { display: none !important; }
}

@media (min-width: 768px) {
    .faid-mobile-only { display: none !important; }
}

.faid-app-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: calc(var(--faid-app-bar-h) + var(--faid-safe-top));
    padding-top: var(--faid-safe-top);
    padding-left: max(16px, var(--faid-safe-left));
    padding-right: max(16px, var(--faid-safe-right));
    background: #fff; border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}
.faid-app-bar__inner { height: var(--faid-app-bar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faid-app-bar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; }
.faid-app-bar__location { min-width: 0; }
.faid-app-bar__location-label { font-size: 11px; color: #94a3b8; font-weight: 700; }
.faid-app-bar__location-value { font-size: 14px; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faid-app-bar__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.faid-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #475569; background: transparent; border: none; cursor: pointer; transition: background 0.15s, transform 0.1s; text-decoration: none; }
.faid-icon-btn:active { transform: scale(0.94); background: #f1f5f9; }
.faid-icon-btn--account { background: #dcfce7; color: var(--faid-primary); }

.faid-mobile-search-wrap {
    position: sticky; top: calc(var(--faid-app-bar-h) + var(--faid-safe-top)); z-index: 90;
    padding: 10px 16px 12px; padding-left: max(16px, var(--faid-safe-left)); padding-right: max(16px, var(--faid-safe-right));
    background: linear-gradient(#f8fafc 70%, transparent);
}
.faid-mobile-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: var(--faid-radius); box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); }
.faid-mobile-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; font-weight: 600; color: #0f172a; min-width: 0; }
.faid-mobile-search input::placeholder { color: #94a3b8; font-weight: 500; }

.faid-compact-hero { margin: 0 16px 16px; padding: 18px; border-radius: var(--faid-radius-lg); background: linear-gradient(135deg, #15803d, #16a34a 55%, #22c55e); color: #fff; box-shadow: 0 12px 32px rgba(22, 163, 74, 0.25); max-height: 38vh; overflow: hidden; animation: faidFadeIn 0.4s ease; }
.faid-compact-hero__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.2); font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.faid-compact-hero__title { font-size: 1.35rem; font-weight: 900; line-height: 1.35; margin-bottom: 8px; }
.faid-compact-hero__text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.9); margin-bottom: 14px; }
.faid-compact-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.faid-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 14px; font-size: 14px; font-weight: 800; border: none; cursor: pointer; text-decoration: none; transition: transform 0.1s; }
.faid-btn:active { transform: scale(0.97); }
.faid-btn--primary { background: #fff; color: var(--faid-primary-dark); }
.faid-btn--ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }

.faid-categories-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.faid-categories-scroll::-webkit-scrollbar { display: none; }
.faid-category-chip { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #f1f5f9; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.faid-category-chip:active { transform: scale(0.96); }
.faid-category-chip.is-active { border-color: var(--faid-primary); background: #f0fdf4; }
.faid-category-chip__icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #f8fafc; color: #64748b; }
.faid-category-chip.is-active .faid-category-chip__icon { background: #dcfce7; color: var(--faid-primary); }
.faid-category-chip__label { font-size: 12px; font-weight: 800; color: #334155; white-space: nowrap; }

.faid-mobile-section { padding: 0 16px 20px; }
.faid-mobile-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.faid-mobile-section__title { font-size: 18px; font-weight: 900; color: #0f172a; }

.faid-meals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faid-meal-card { background: #fff; border-radius: var(--faid-radius); overflow: hidden; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); border: 1px solid #f1f5f9; }
.faid-meal-card__image-wrap { position: relative; aspect-ratio: 4/3; background: #f1f5f9; }
.faid-meal-card__image { width: 100%; height: 100%; object-fit: cover; }
.faid-meal-card__badge { position: absolute; top: 8px; right: 8px; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 900; color: #fff; background: var(--faid-accent); }
.faid-meal-card__body { padding: 10px; }
.faid-meal-card__title { font-size: 14px; font-weight: 800; color: #0f172a; line-height: 1.35; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.faid-meal-card__meta { font-size: 11px; color: #94a3b8; font-weight: 600; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faid-meal-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.faid-meal-card__price { font-size: 15px; font-weight: 900; color: var(--faid-primary); }
.faid-meal-card__price-old { font-size: 11px; color: #cbd5e1; text-decoration: line-through; margin-right: 4px; }
.faid-meal-card__add { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; border: none; background: #f0fdf4; color: var(--faid-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.faid-meal-card__add:active { transform: scale(0.92); }

.faid-restaurants-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.faid-restaurants-scroll::-webkit-scrollbar { display: none; }
.faid-restaurant-card { flex: 0 0 200px; background: #fff; border-radius: var(--faid-radius); padding: 12px; border: 1px solid #f1f5f9; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05); }
.faid-restaurant-card__logo { width: 48px; height: 48px; border-radius: 14px; background: #dcfce7; color: var(--faid-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; overflow: hidden; }
.faid-restaurant-card__logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faid-restaurant-card__name { font-size: 14px; font-weight: 900; color: #0f172a; margin-bottom: 4px; }
.faid-restaurant-card__meta { font-size: 12px; color: #64748b; font-weight: 600; }
.faid-restaurant-card__verified { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; font-weight: 800; color: var(--faid-primary); background: #f0fdf4; padding: 4px 8px; border-radius: 8px; }

.faid-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: #fff; border-top: 1px solid #f1f5f9; box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06); padding-bottom: var(--faid-safe-bottom); }
.faid-bottom-nav__inner { display: flex; align-items: stretch; justify-content: space-around; height: var(--faid-bottom-nav-h); }
.faid-bottom-nav__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: none; background: transparent; color: #94a3b8; font-size: 11px; font-weight: 800; cursor: pointer; position: relative; min-height: 44px; text-decoration: none; }
.faid-bottom-nav__item.is-active { color: var(--faid-primary); }
.faid-bottom-nav__item i { font-size: 20px; }
.faid-bottom-nav__badge { position: absolute; top: 6px; left: 50%; margin-left: 10px; padding: 1px 5px; border-radius: 6px; background: #fff7ed; color: var(--faid-accent); font-size: 9px; font-weight: 900; border: 1px solid #fed7aa; }

.faid-toast { position: fixed; bottom: calc(var(--faid-bottom-nav-h) + var(--faid-safe-bottom) + 16px); left: max(16px, var(--faid-safe-left)); right: max(16px, var(--faid-safe-right)); z-index: 200; padding: 14px 16px; border-radius: 16px; font-size: 14px; font-weight: 700; color: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2); display: flex; align-items: center; gap: 10px; }
.faid-toast--success { background: #15803d; }
.faid-toast--warning { background: #c2410c; }
.faid-toast--error { background: #b91c1c; }
.faid-toast--info { background: #334155; }
@media (min-width: 768px) { .faid-toast { bottom: 24px; left: auto; right: 24px; max-width: 380px; } }

.faid-sheet-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(15, 23, 42, 0.45); }
.faid-bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 160; max-height: 85vh; background: #fff; border-radius: var(--faid-radius-lg) var(--faid-radius-lg) 0 0; padding-bottom: calc(16px + var(--faid-safe-bottom)); box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.15); animation: faidSheetUp 0.32s cubic-bezier(0.32, 0.72, 0, 1); overflow: hidden; display: flex; flex-direction: column; }
.faid-bottom-sheet__handle { width: 40px; height: 4px; border-radius: 999px; background: #e2e8f0; margin: 10px auto 8px; }
.faid-bottom-sheet__header { padding: 8px 20px 12px; border-bottom: 1px solid #f1f5f9; }
.faid-bottom-sheet__title { font-size: 18px; font-weight: 900; color: #0f172a; }
.faid-bottom-sheet__body { padding: 16px 20px; overflow-y: auto; flex: 1; }
@media (min-width: 768px) {
    .faid-bottom-sheet { left: 50%; right: auto; width: 100%; max-width: 480px; border-radius: var(--faid-radius-lg); bottom: auto; top: 50%; transform: translate(-50%, -50%); max-height: 80vh; animation: faidFadeIn 0.25s ease; }
    .faid-bottom-sheet__handle { display: none; }
}

.faid-how-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.faid-how-compact__step { background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center; border: 1px solid #f1f5f9; }
.faid-how-compact__num { width: 28px; height: 28px; border-radius: 10px; background: #dcfce7; color: var(--faid-primary); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.faid-how-compact__text { font-size: 11px; font-weight: 700; color: #475569; line-height: 1.4; }
.faid-cta-compact { margin: 0 16px 20px; padding: 16px; border-radius: var(--faid-radius-lg); background: #0f172a; color: #fff; }
.faid-cta-compact__title { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.faid-cta-compact__text { font-size: 13px; color: #94a3b8; margin-bottom: 12px; line-height: 1.5; }
.faid-mini-footer { text-align: center; padding: 16px; font-size: 12px; color: #94a3b8; font-weight: 600; }
.faid-mini-footer .footer-credit { margin-top: 8px; }

.footer-credit {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.footer-credit span {
    color: #16a34a;
    font-weight: 800;
    transition: color 0.2s ease;
}

.footer-credit span:hover {
    color: #15803d;
}

.faid-public-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px 16px 28px;
    text-align: center;
    background: #f8fafc;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.faid-public-footer__copy {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.faid-public-footer__contact {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.faid-public-footer__contact a {
    color: #64748b;
    text-decoration: none;
}

.faid-public-footer__contact a:hover {
    color: #16a34a;
}

body.faid-page-auth .faid-public-footer {
    margin-top: auto;
}

.faid-public-footer .footer-credit {
    margin-top: 10px;
}
.faid-empty-state { text-align: center; padding: 32px 16px; background: #fff; border-radius: var(--faid-radius-lg); border: 1px dashed #e2e8f0; }
.faid-empty-state i { font-size: 40px; color: #cbd5e1; margin-bottom: 12px; display: block; }

.faid-btn--solid { background: #16a34a; color: #fff; }
.faid-btn--block { width: 100%; }
.faid-btn--lg { min-height: 52px; font-size: 15px; }

@media (max-width: 767px) {
    body.faid-page-auth.faid-mobile-app {
        padding-top: calc(var(--faid-auth-header-h) + var(--faid-safe-top));
        padding-bottom: calc(var(--faid-safe-bottom) + 16px);
    }
}

/* ---- Auth header (login / register) ---- */
.faid-auth-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}
.faid-auth-header__inner {
    max-width: 80rem;
    margin: 0 auto;
    height: var(--faid-auth-header-h);
    padding: 0 max(16px, var(--faid-safe-left)) 0 max(16px, var(--faid-safe-right));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faid-auth-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #334155;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.faid-auth-header__back:hover { background: #f1f5f9; color: var(--faid-primary); }
.faid-auth-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    min-width: 0;
    flex: 1;
}
.faid-auth-header__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #dcfce7;
    color: var(--faid-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.faid-auth-header__name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}
.faid-auth-header__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}
.faid-auth-header__home:hover {
    border-color: #bbf7d0;
    color: var(--faid-primary-dark);
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}
.faid-auth-header__home:focus-visible,
.faid-auth-header__back:focus-visible,
.faid-auth-header__brand:focus-visible {
    outline: 2px solid var(--faid-primary);
    outline-offset: 2px;
}

/* ---- Back to top (desktop / laptop only) ---- */
.faid-back-to-top {
    display: none;
}
@media (min-width: 1024px) {
    .faid-back-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 32px;
        left: max(32px, var(--faid-safe-left));
        width: 48px;
        height: 48px;
        border-radius: 18px;
        border: none;
        background: var(--faid-primary);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        z-index: 85;
        box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
        transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    }
    .faid-back-to-top:hover {
        background: var(--faid-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
    }
    .faid-back-to-top:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.45);
    }
    .faid-back-to-top:active {
        transform: translateY(0);
    }
}
@media (max-width: 1023px) {
    .faid-back-to-top { display: none !important; }
}

[x-cloak] { display: none !important; }
@keyframes faidFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes faidSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Cart page */
.faid-cart-main {
    min-height: 60vh;
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.06), transparent 28rem),
        #f8fafc;
}

.faid-cart-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
}

.faid-cart-topbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faid-cart-topbar__back,
.faid-cart-topbar__account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 800;
    text-decoration: none;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    transition: background 0.15s, color 0.15s;
}

.faid-cart-topbar__back:hover,
.faid-cart-topbar__account:hover {
    background: #f0fdf4;
    color: var(--faid-primary);
}

.faid-cart-topbar__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
}

.faid-cart-topbar__title i {
    color: var(--faid-primary);
}

.faid-cart-hero {
    background: linear-gradient(135deg, #15803d, #16a34a 58%, #22c55e);
    color: #fff;
    padding: 18px 16px 22px;
    margin-bottom: 8px;
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.18);
}

.faid-cart-hero__content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.faid-cart-hero__back {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.faid-cart-hero h1 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 900;
}

.faid-cart-hero p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.faid-cart-page__body {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 16px calc(120px + var(--faid-bottom-nav-h) + var(--faid-safe-bottom));
}

.faid-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.faid-cart-state__icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #f0fdf4;
    color: var(--faid-primary);
    font-size: 2rem;
}

.faid-cart-state--loading .faid-cart-state__icon {
    background: #eff6ff;
    color: #2563eb;
}

.faid-cart-state h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
}

.faid-cart-state p {
    margin: 0;
    max-width: 320px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.7;
}

.faid-cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.faid-cart-panel,
.faid-cart-summary__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.faid-cart-panel {
    padding: 18px;
}

.faid-cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.faid-cart-panel__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
}

.faid-cart-panel__count {
    font-size: 12px;
    font-weight: 800;
    color: var(--faid-primary);
    background: #f0fdf4;
    padding: 6px 10px;
    border-radius: 999px;
}

.faid-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faid-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.faid-cart-item__media img {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.faid-cart-item__body {
    flex: 1;
    min-width: 0;
}

.faid-cart-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.faid-cart-item__top h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.45;
}

.faid-cart-item__meta {
    margin: 0 0 12px;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.faid-cart-item__meta i {
    color: var(--faid-primary);
}

.faid-cart-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.faid-cart-item__price {
    font-size: 16px;
    font-weight: 900;
    color: var(--faid-primary);
}

.faid-cart-item__remove {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.faid-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.faid-cart-qty button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font-size: 12px;
}

.faid-cart-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 900;
    font-size: 14px;
}

.faid-cart-summary__card {
    padding: 20px;
}

.faid-cart-summary__card h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 900;
    color: #0f172a;
}

.faid-cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #334155;
}

.faid-cart-summary__row--muted strong {
    color: var(--faid-primary);
    font-size: 14px;
}

.faid-cart-summary__row--total {
    margin-top: 4px;
    font-size: 1.05rem;
}

.faid-cart-summary__row--total strong {
    font-size: 1.35rem;
    color: var(--faid-primary);
}

.faid-cart-summary__divider {
    height: 1px;
    background: #e2e8f0;
    margin: 14px 0;
}

.faid-cart-summary__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.faid-cart-payment h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.faid-cart-payment__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faid-cart-payment__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.faid-cart-payment__option.is-selected {
    border-color: var(--faid-primary);
    background: #f0fdf4;
}

.faid-cart-payment__option input {
    accent-color: var(--faid-primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faid-cart-payment__icon {
    width: 28px;
    text-align: center;
    color: #334155;
    font-size: 18px;
}

.faid-cart-payment__label {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.faid-cart-payment__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.faid-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.faid-cart-btn:active {
    transform: scale(0.98);
}

.faid-cart-btn--primary {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: #fff;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.24);
}

.faid-cart-btn--primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

.faid-cart-btn--ghost {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    margin-top: 10px;
}

.faid-cart-btn--block {
    width: 100%;
}

.faid-cart-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--faid-primary);
    font-weight: 800;
    text-decoration: none;
}

.faid-cart-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--faid-bottom-nav-h) + var(--faid-safe-bottom));
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.faid-cart-mobile-bar__clear {
    width: 44px;
    height: 44px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    flex-shrink: 0;
}

.faid-cart-mobile-bar__total span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.faid-cart-mobile-bar__total strong {
    font-size: 1.15rem;
    color: var(--faid-primary);
}

.faid-cart-mobile-bar .faid-cart-btn {
    min-height: 48px;
    min-width: 148px;
    padding-inline: 20px;
}

@media (min-width: 768px) {
    .faid-cart-page__body {
        padding: 28px 24px 64px;
    }

    .faid-cart-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }

    .faid-cart-summary__card {
        position: sticky;
        top: 96px;
    }

    .faid-cart-item__media img {
        width: 96px;
        height: 96px;
    }
}

@media (min-width: 1024px) {
    .faid-cart-main {
        padding-top: 0;
    }

    .faid-cart-page__body {
        padding-top: 32px;
    }
}
