/* ═════════════════════════════════════════════════
   Kava Café — Customer-facing Menu Styles
   الألوان الأساسية مستمدة من اللوجو
   ═════════════════════════════════════════════════ */
:root {
    --k-teal:         #00929C;
    --k-teal-dark:    #006d76;
    --k-teal-light:   #4db8bf;
    --k-burgundy:     #8B3A1E;
    --k-burgundy-dark:#6a2a12;
    --k-beige:        #EDE5D9;
    --k-beige-soft:   #f6f0e7;
    --k-cream:        #FBF7F1;
    --k-text:         #2b2b2b;
    --k-text-muted:   #6b6b6b;
    --k-card:         #ffffff;
    --k-border:       #e5dcc9;
    --k-success:      #198754;
    --k-danger:       #dc3545;
    --k-shadow:       0 4px 14px rgba(0,146,156,0.08);
    --k-shadow-strong:0 8px 24px rgba(0,146,156,0.15);
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--k-cream);
    color: var(--k-text);
    margin: 0; padding: 0;
    min-height: 100vh;
}

body {
    padding-bottom: 80px; /* للـ bottom nav */
}

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

/* ═════════ Header ═════════ */
.menu-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--k-teal) 0%, var(--k-teal-dark) 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.brand-link { display: flex; align-items: center; text-decoration: none; }
.brand-logo {
    height: 48px; width: auto;
    background: white;
    border-radius: 10px;
    padding: 3px 5px;
}
.brand-info { padding: 0 8px; }
.brand-name { font-size: 1.05rem; font-weight: 800; line-height: 1.1; color: white; }
.brand-tagline {
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}
.cart-btn {
    position: relative;
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 50%;
    transition: background 0.15s;
}
.cart-btn:active { background: rgba(255,255,255,0.15); }
.cart-badge {
    position: absolute;
    top: -2px; left: -4px;
    background: var(--k-burgundy);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px; height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
}

/* ═════════ Main ═════════ */
.menu-main { padding: 12px 0; min-height: calc(100vh - 150px); }

/* ═════════ Hero (الرسالة الترحيبية) ═════════ */
.hero-card {
    background: linear-gradient(135deg, var(--k-beige) 0%, var(--k-beige-soft) 100%);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 10px 12px 16px;
    box-shadow: var(--k-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--k-border);
}
.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/kava-logo.png') no-repeat center right -40px;
    background-size: 140px;
    opacity: 0.08;
    pointer-events: none;
}
.hero-title {
    font-size: 1.1rem; font-weight: 800;
    color: var(--k-burgundy);
    margin: 0 0 4px 0;
}
.hero-subtitle {
    font-size: 0.82rem;
    color: var(--k-text-muted);
    margin: 0;
}
.hero-info {
    display: flex; gap: 10px; margin-top: 10px;
    flex-wrap: wrap;
}
.hero-info-pill {
    background: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--k-teal-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--k-teal-light);
}
.hero-info-pill i { color: var(--k-teal); }

/* ═════════ Categories (فلترة أفقية) ═════════ */
.categories-scroll {
    padding: 4px 12px 8px;
    overflow-x: auto;
    display: flex;
    gap: 8px;
    white-space: nowrap;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
    flex-shrink: 0;
    background: white;
    border: 1.5px solid var(--k-border);
    color: var(--k-text);
    padding: 8px 16px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.15s;
    cursor: pointer;
}
.cat-chip.active {
    background: var(--k-teal);
    border-color: var(--k-teal);
    color: white;
    box-shadow: 0 3px 10px rgba(0,146,156,0.3);
}
.cat-chip:active { transform: scale(0.96); }
.cat-chip .count {
    font-size: 0.68rem;
    opacity: 0.7;
    margin-right: 4px;
}

/* ═════════ Product Cards (شبكة المنتجات) ═════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px 12px;
}
@media (min-width: 520px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .products-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
    background: var(--k-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--k-shadow);
    display: flex; flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    border: 1px solid var(--k-border);
}
.product-card:active { transform: scale(0.97); }
.product-image {
    aspect-ratio: 1 / 1;
    background: var(--k-beige);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-image-placeholder {
    font-size: 2.5rem;
    color: var(--k-teal-light);
    opacity: 0.6;
}
.product-body {
    padding: 10px 12px 12px;
    display: flex; flex-direction: column;
    flex: 1;
}
.product-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--k-text);
    margin: 0 0 2px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}
.product-desc {
    font-size: 0.72rem;
    color: var(--k-text-muted);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto;
    gap: 6px;
}
.product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--k-burgundy);
}
.product-price .currency {
    font-size: 0.7rem; opacity: 0.75; font-weight: 600;
}
.add-btn {
    background: var(--k-teal);
    border: none;
    color: white;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,146,156,0.3);
    transition: all 0.15s;
    cursor: pointer;
    font-size: 1.2rem;
}
.add-btn:active {
    transform: scale(0.9);
    background: var(--k-teal-dark);
}

/* Phase 7.18.15 — منتجات مش متاحة للديلفري (متاحة في الكافيه فقط) */
.product-card.not-deliverable {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.4);
    position: relative;
}
.product-card.not-deliverable .product-image {
    position: relative;
}
.not-deliverable-badge {
    position: absolute;
    bottom: 6px;
    inset-inline-start: 6px;
    background: rgba(147, 82, 76, 0.92);  /* burgundy */
    color: white;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}
.not-deliverable-badge i { font-size: 0.75rem; }
.add-btn.add-btn-disabled {
    background: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
    font-size: 1rem;
}

/* ═════════ Bottom Nav ═════════ */
.menu-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 90;
}
.bnav-item {
    color: var(--k-text-muted);
    display: flex; flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    position: relative;
    transition: color 0.15s;
}
.bnav-item i { font-size: 1.3rem; margin-bottom: 2px; }
.bnav-item.active { color: var(--k-teal); }
.bnav-badge {
    position: absolute;
    top: 2px; left: 12px;
    background: var(--k-burgundy);
    color: white;
    font-size: 0.6rem;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 0 4px;
    font-weight: 800;
}

/* ═════════ Toast ═════════ */
.toast-container {
    position: fixed;
    top: 80px; right: 0; left: 0;
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    z-index: 1000;
    pointer-events: none;
}
.toast-msg {
    background: var(--k-burgundy);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--k-shadow-strong);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
}
.toast-msg.success { background: var(--k-success); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-20px); }
}

/* ═════════ Cart ═════════ */
.cart-items { padding: 4px 12px; }
.cart-item {
    background: var(--k-card);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    box-shadow: var(--k-shadow);
    border: 1px solid var(--k-border);
}
.cart-item-img {
    width: 72px; height: 72px;
    border-radius: 10px;
    background: var(--k-beige);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--k-teal-light);
    font-size: 1.8rem;
    overflow: hidden;
}
.cart-item-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.92rem; color: var(--k-text); margin: 0 0 4px 0; }
.cart-item-note {
    font-size: 0.72rem;
    color: var(--k-text-muted);
    background: var(--k-beige-soft);
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    align-self: flex-start;
}
.cart-item-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto;
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--k-beige);
    border-radius: 18px;
    padding: 2px 4px;
}
.qty-btn {
    background: white;
    border: 1px solid var(--k-border);
    color: var(--k-teal);
    width: 28px; height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
}
.qty-btn:active { background: var(--k-teal); color: white; }
.qty-val { font-weight: 800; min-width: 22px; text-align: center; }
.cart-item-price {
    font-weight: 800; color: var(--k-burgundy);
    font-size: 1rem;
}

/* ═════════ Cart Summary ═════════ */
.cart-summary {
    background: var(--k-card);
    margin: 16px 12px;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: var(--k-shadow);
    border: 1px solid var(--k-border);
}
.summary-row {
    display: flex; justify-content: space-between;
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--k-text-muted);
}
.summary-row.total {
    border-top: 2px dashed var(--k-border);
    margin-top: 8px; padding-top: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--k-burgundy);
}
.summary-row .val { font-weight: 700; color: var(--k-text); }

.coupon-row {
    display: flex; gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--k-border);
}
.coupon-row input {
    flex: 1;
    border: 1.5px solid var(--k-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-family: inherit;
}
.coupon-row input:focus { border-color: var(--k-teal); outline: none; }
.coupon-row button {
    background: var(--k-teal);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ═════════ CTAs ═════════ */
.cta-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 10px 12px;
    background: linear-gradient(135deg, var(--k-teal), var(--k-teal-dark));
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0,146,156,0.3);
    transition: all 0.15s;
    text-align: center;
    cursor: pointer;
}
.cta-btn:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(0,146,156,0.4); }
.cta-btn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

.cta-btn.secondary {
    background: white;
    color: var(--k-teal-dark);
    border: 2px solid var(--k-teal);
    box-shadow: none;
}

/* ═════════ Empty State ═════════ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--k-text-muted);
}
.empty-state i {
    font-size: 4rem;
    color: var(--k-teal-light);
    opacity: 0.5;
    margin-bottom: 16px;
}
.empty-state h3 { font-weight: 800; color: var(--k-burgundy); margin-bottom: 4px; }

/* ═════════ Checkout Form ═════════ */
.form-section {
    background: var(--k-card);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 10px 12px;
    box-shadow: var(--k-shadow);
    border: 1px solid var(--k-border);
}
.form-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--k-burgundy);
    margin: 0 0 12px 0;
    display: flex; align-items: center; gap: 8px;
}
.form-section-title i { color: var(--k-teal); }
.form-field {
    display: flex; flex-direction: column;
    margin-bottom: 12px;
}
.form-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--k-text);
    margin-bottom: 4px;
}
.form-field input, .form-field select, .form-field textarea {
    border: 1.5px solid var(--k-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    background: white;
    transition: border-color 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--k-teal); outline: none;
    box-shadow: 0 0 0 3px rgba(0,146,156,0.1);
}

.payment-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.payment-option {
    border: 2px solid var(--k-border);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    background: white;
    font-weight: 700;
    color: var(--k-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.payment-option i { font-size: 1.8rem; display: block; margin-bottom: 4px; color: var(--k-teal-light); }
.payment-option.active {
    border-color: var(--k-teal);
    background: linear-gradient(135deg, rgba(0,146,156,0.05), rgba(0,146,156,0.1));
    color: var(--k-teal-dark);
}
.payment-option.active i { color: var(--k-teal); }
.payment-option:active { transform: scale(0.97); }

/* ═════════ Order Confirmation ═════════ */
.success-icon {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--k-success), #13aa52);
    display: flex; align-items: center; justify-content: center;
    margin: 20px auto;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 24px rgba(25,135,84,0.3);
    animation: bounce 0.6s ease;
}
@keyframes bounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.order-token {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--k-burgundy);
    background: var(--k-beige-soft);
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-block;
    letter-spacing: 2px;
    border: 2px dashed var(--k-burgundy);
}

/* ═════════ Modifier / Note Modal ═════════ */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.modal-backdrop-custom.show { display: flex; animation: fadeIn 0.2s; }
.modal-sheet {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ═════════ Utility ═════════ */
.text-burgundy { color: var(--k-burgundy); }
.text-teal { color: var(--k-teal); }
.bg-beige { background: var(--k-beige-soft); }

/* ═════════════════════════════════════════════════
   📱 Tablet (768px - 991px)
   تصميم محصور في عمود واحد عريض
   ═════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {
    body { max-width: 700px; margin: 0 auto; box-shadow: 0 0 40px rgba(0,0,0,0.08); background: white; }
    .menu-bottom-nav { max-width: 700px; left: 50%; transform: translateX(-50%); }
}

/* ═════════════════════════════════════════════════
   🖥️ Desktop (≥992px) — Layout بـ 3 أعمدة
   - يسار: Categories Sidebar (sticky)
   - وسط: Hero + Products Grid
   - يمين: Cart Sidebar (sticky)
   ═════════════════════════════════════════════════ */
@media (min-width: 992px) {

    /* الـ body بيوسع للشاشة كاملة */
    body {
        background: var(--k-cream);
        padding-bottom: 0;
    }

    /* الـ Header يبقى بـ container أوسع */
    .menu-header > .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    .menu-header { padding: 14px 0; }
    .brand-info { padding: 0 16px; }
    .brand-name { font-size: 1.3rem; }
    .brand-tagline { font-size: 0.7rem; }

    /* إخفاء الـ Bottom Nav (مش لازم في الديسكتوب) */
    .menu-bottom-nav { display: none !important; }

    /* الـ Main يصبح Grid بـ 3 أعمدة */
    .menu-main {
        max-width: 1400px;
        margin: 0 auto;
        padding: 24px 20px;
        display: grid;
        grid-template-columns: 240px 1fr 320px;
        gap: 20px;
        align-items: start;
    }

    /* ═════════ Categories Sidebar (يسار) ═════════ */
    .desktop-categories {
        position: sticky;
        top: 90px;
        background: white;
        border-radius: 14px;
        padding: 16px;
        box-shadow: var(--k-shadow);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .desktop-categories h3 {
        font-size: 0.85rem;
        color: var(--k-text-muted);
        font-weight: 700;
        margin: 0 0 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--k-border);
    }
    .desktop-cat-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        margin-bottom: 4px;
        border-radius: 10px;
        color: var(--k-text);
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.15s;
        cursor: pointer;
    }
    .desktop-cat-link:hover {
        background: var(--k-beige-soft);
        color: var(--k-teal-dark);
    }
    .desktop-cat-link.active {
        background: var(--k-teal);
        color: white;
        box-shadow: 0 2px 8px rgba(0,146,156,0.25);
    }
    .desktop-cat-link .count {
        background: rgba(255,255,255,0.2);
        color: inherit;
        opacity: 0.9;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 0.75rem;
        font-weight: 700;
    }
    .desktop-cat-link.active .count { background: rgba(255,255,255,0.25); }

    /* إخفاء الـ horizontal categories (للموبايل) — لأنها بقت موجودة في الـ sidebar */
    .categories-scroll { display: none !important; }

    /* ═════════ Main Content (وسط) ═════════ */
    .desktop-main-col { min-width: 0; }   /* يمنع overflow */

    /* الـ Hero بياخد الـ width الكامل */
    .hero-card {
        margin: 0 0 20px;
        padding: 24px 28px;
    }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1rem; }

    /* Products Grid: 3-4 أعمدة */
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 0;
        gap: 16px;
    }
    .product-card { transition: transform 0.18s, box-shadow 0.18s; }
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--k-shadow-strong);
        border-color: var(--k-teal-light);
    }

    /* ═════════ Cart Sidebar (يمين) ═════════ */
    .desktop-cart-sidebar {
        position: sticky;
        top: 90px;
        background: white;
        border-radius: 14px;
        padding: 18px;
        box-shadow: var(--k-shadow);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .desktop-cart-sidebar h3 {
        font-size: 1rem;
        font-weight: 800;
        color: var(--k-burgundy);
        margin: 0 0 12px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--k-beige);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .desktop-cart-empty {
        text-align: center;
        padding: 30px 10px;
        color: var(--k-text-muted);
    }
    .desktop-cart-empty i {
        font-size: 2.5rem;
        opacity: 0.4;
        display: block;
        margin-bottom: 8px;
    }
    .desktop-cart-empty .small {
        font-size: 0.82rem;
    }

    .dc-item {
        display: flex;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid var(--k-border);
    }
    .dc-item:last-child { border-bottom: none; }
    .dc-item-img {
        width: 48px; height: 48px;
        border-radius: 8px;
        background: var(--k-beige);
        flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        overflow: hidden;
    }
    .dc-item-img img { width: 100%; height: 100%; object-fit: cover; }
    .dc-item-img i { color: var(--k-text-muted); font-size: 1.2rem; }
    .dc-item-body { flex: 1; min-width: 0; }
    .dc-item-name {
        font-weight: 700;
        font-size: 0.88rem;
        color: var(--k-text);
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .dc-item-mods {
        font-size: 0.72rem;
        color: var(--k-teal-dark);
        margin-bottom: 2px;
    }
    .dc-item-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .dc-qty-controls {
        display: flex; align-items: center; gap: 4px;
    }
    .dc-qty-btn {
        width: 24px; height: 24px;
        border: 1px solid var(--k-border);
        background: white;
        border-radius: 6px;
        color: var(--k-teal-dark);
        font-weight: 700;
        font-size: 0.85rem;
        cursor: pointer;
    }
    .dc-qty-btn:hover { background: var(--k-beige-soft); }
    .dc-qty-val {
        min-width: 22px; text-align: center;
        font-weight: 700; font-size: 0.85rem;
    }
    .dc-item-price {
        font-weight: 700;
        color: var(--k-burgundy);
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .dc-totals {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 2px dashed var(--k-border);
    }
    .dc-total-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
        font-size: 0.85rem;
        color: var(--k-text-muted);
    }
    .dc-total-row.final {
        margin-top: 8px;
        font-size: 1rem;
        font-weight: 800;
        color: var(--k-burgundy);
    }
    .dc-checkout-btn {
        display: block;
        width: 100%;
        margin-top: 14px;
        padding: 12px;
        background: linear-gradient(135deg, var(--k-teal), var(--k-teal-dark));
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 800;
        font-size: 0.95rem;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,146,156,0.3);
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .dc-checkout-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,146,156,0.4);
        color: white;
    }
    .dc-checkout-btn i { margin-left: 6px; }

    /* PWA install banner لا يلزم على ديسكتوب */
    .install-banner { display: none !important; }

    /* الـ Cart page نفسها لو فتحها مباشرة على ديسكتوب */
    .menu-main:has(> .single-page) {
        display: block;
        max-width: 800px;
    }
}

/* ═════════════════════════════════════════════════
   🖥️ Wide Desktop (≥1280px) — مزيد من العرض
   ═════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    .products-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ═════════════════════════════════════════════════
   صفحات بدون sidebars (Cart, Track, Checkout, Profile,
   Login, Rate, ...) — عمود واحد متمركز على الديسكتوب
   ═════════════════════════════════════════════════ */
@media (min-width: 992px) {
    .menu-main.no-sidebar {
        display: block !important;
        max-width: 720px;
        margin: 0 auto;
        padding: 24px 16px;
    }
    /* في الصفحات دي، نخفي sidebars المنيو حتى لو موجودة */
    .menu-main.no-sidebar .desktop-categories,
    .menu-main.no-sidebar .desktop-cart-sidebar { display: none !important; }
}

/* تأكيد: الـ form-section في صفحات الأوردر (Cart, Track, etc.) متمركزة */
@media (min-width: 992px) {
    .menu-main.no-sidebar .form-section,
    .menu-main.no-sidebar .hero-card,
    .menu-main.no-sidebar .empty-state,
    .menu-main.no-sidebar .cart-list,
    .menu-main.no-sidebar > div {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* الـ desktop sidebars: hide على الموبايل/التابلت */
.desktop-categories,
.desktop-cart-sidebar { display: none; }

@media (min-width: 992px) {
    .desktop-categories,
    .desktop-cart-sidebar { display: block; }
}
