/* ============ حلويات يوم مبارك - واجهة الزبون (تصميم The Roof) ============ */
:root {
    --primary: #00BCD4;
    --secondary: #E91E63;
    --chocolate: #5D4037;

    --text: #2C3E50;
    --text-light: #7F8C8D;
    --bg: #FFFFFF;
    --bg-alt: #FDF8F3;
    --border: #E0F7FA;

    --gradient: linear-gradient(135deg, #00BCD4, #E91E63);
    --gradient-alt: linear-gradient(135deg, #E91E63, #00BCD4);

    --shadow-sm: 0 2px 8px rgba(0, 188, 212, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 188, 212, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 188, 212, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Tajawal', 'Tahoma', 'Arial', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Tajawal', sans-serif; font-weight: 700; color: var(--text); }
a { color: inherit; }
button { font-family: 'Tajawal', sans-serif; }

/* ---------- شريط التثبيت ---------- */
.install-banner {
    background: var(--gradient); color: #fff; text-align: center; padding: 8px 16px;
    font-size: 14px; font-weight: 500;
}
.install-content { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ib-actions { display: inline-flex; gap: 8px; align-items: center; }
.ib-actions button, .ib-install-link {
    border: none; cursor: pointer; font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 13px;
    padding: 6px 14px; border-radius: 50px; text-decoration: none;
}
.ib-install-link { background: rgba(255, 255, 255, 0.18); color: #fff; }
.ib-actions button { background: #fff; color: var(--secondary); }
.ib-close { background: transparent !important; color: #fff !important; font-weight: 800; }

/* ---------- Header ---------- */
.header {
    background: var(--gradient);
    color: white;
    padding: 14px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-3d-container {
    perspective: 900px;
    width: 56px;
    height: 56px;
    flex: none;
}
.logo-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateLogo3D 10s linear infinite;
}
.logo-face, .logo-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.logo-back { transform: rotateY(180deg); }
@keyframes rotateLogo3D {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.search-box {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s;
}
.search-box:focus-within { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2); }
.search-input {
    flex: 1;
    padding: 12px 22px;
    border: none;
    outline: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: var(--text);
    background: transparent;
}
.search-btn {
    padding: 12px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    border-radius: 0 0 0 0;
}
.search-btn:hover { color: var(--secondary); }

.nav-menu { display: flex; gap: 10px; align-items: center; }
.nav-menu a, .nav-menu .lang-switch {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 50px;
    transition: all 0.25s;
    white-space: nowrap;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.18); opacity: 1; }
.nav-menu .lang-switch {
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.nav-menu .lang-switch:hover { background: #fff; color: var(--secondary); }
.nav-menu .nav-btn {
    background: #fff; color: var(--primary-dark, #0097A7);
    font-weight: 700;
}
.nav-menu .nav-btn:hover { background: #fff; opacity: 0.9; }

.cart-icon {
    position: relative;
    color: white;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.cart-icon:hover { background: rgba(255, 255, 255, 0.18); }
.cart-count {
    position: absolute;
    top: 0;
    right: -4px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    padding: 0 5px;
}

/* ---------- Hero (صورة + تدرج) ---------- */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 8px;
}
.hero-image-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.hero-section:hover .hero-image { transform: scale(1.05); }
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.72), rgba(233, 30, 99, 0.72));
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 24px;
}
.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 24px;
    margin: 0 0 32px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}
.hero-btn {
    display: inline-block;
    background: white;
    color: var(--secondary);
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ---------- شريط التصنيفات ---------- */
.categories-bar {
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
    position: sticky;
    top: 76px;
    z-index: 900;
    margin-bottom: 24px;
}
.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.categories-container::-webkit-scrollbar { display: none; }
.category-pill {
    padding: 10px 24px;
    background: var(--bg-alt);
    color: var(--text);
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s;
}
.category-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.category-pill.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

/* ---------- المنتجات ---------- */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 64px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}
.shop-count {
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}
.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.product-card:hover .product-image { transform: scale(1.05); }
.img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.p-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.p-avail {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.p-avail.ok { background: #E8FBF5; color: #0E7C55; }
.p-avail.no { background: #FDECEF; color: #C2185B; }
.product-info { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    margin: auto 0 14px;
}
.product-actions { display: flex; gap: 8px; }
.btn-add {
    flex: 1;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-add:hover { background: var(--primary); color: white; }
.btn-add.sold { border-color: #DDE4E8; color: #B0B8BD; cursor: not-allowed; background: #F4F7F9; }
.btn-buy {
    flex: 1;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-buy:hover { background: #D81B60; transform: scale(1.02); }
.btn-buy.sold { background: #DDE4E8; color: #B0B8BD; cursor: not-allowed; transform: none; }
.empty-shop {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    font-size: 22px;
    background: var(--bg-alt);
    border-radius: 16px;
}
.empty-shop .em { font-size: 44px; display: block; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.shop-footer {
    background: linear-gradient(135deg, #5D4037, #3E2723);
    color: #fff;
    text-align: center;
    padding: 48px 24px 32px;
    margin-top: 32px;
}
.ft-logo { height: 52px; filter: brightness(0) invert(1); opacity: 0.95; }
.ft-name { font-size: 22px; font-weight: 800; margin: 12px 0 4px; }
.ft-tag { color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; font-weight: 300; }
.social-links { display: flex; justify-content: center; gap: 16px; margin: 20px 0 22px; }
.social-links a {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    transition: all 0.3s;
}
.social-links a svg { width: 26px; height: 26px; }
.social-links a:hover { transform: translateY(-6px) scale(1.1); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-tiktok { background: linear-gradient(45deg, #000, #25F4EE, #FE2C55); }
.social-whatsapp { background: #25D366; }
.social-linktree { background: #43E660; }
.footer-instructions { max-width: 560px; margin: 0 auto 20px; text-align: right; background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 18px 22px; }
.footer-instructions h4 { color: #fff; margin: 0 0 8px; font-size: 16px; }
.footer-instructions p { margin: 5px 0; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.ft-link { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- الدرجات (سلة + إتمام) ---------- */
.drawer-wrap {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}
.drawer-wrap.show { visibility: visible; pointer-events: auto; }
.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.45);
    opacity: 0;
    transition: opacity 0.3s;
}
.drawer-wrap.show .drawer-overlay { opacity: 1; }
.cart-drawer, .checkout-drawer {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: min(420px, 96vw);
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.drawer-wrap.show .cart-drawer,
.drawer-wrap.show .checkout-drawer { transform: translateX(0); }
.drawer-head {
    padding: 20px 22px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-head h3 { font-size: 20px; margin: 0; }
.drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 10px;
}
.drawer-close:hover { background: var(--bg-alt); color: var(--secondary); }

.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.cl-info { flex: 1; }
.cl-name { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.cl-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
}
.cl-stepper button {
    border: none; background: none;
    width: 34px; height: 30px;
    font-size: 17px;
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
}
.cl-stepper button:hover { background: var(--bg-alt); }
.cl-stepper span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.cl-price { font-weight: 800; color: var(--secondary); font-size: 16px; text-align: left; }
.cl-price small { font-size: 11px; color: var(--text-light); font-weight: 500; }
.cl-del {
    border: none; background: none;
    font-size: 18px; cursor: pointer;
    color: var(--text-light);
    padding: 6px;
}
.cl-del:hover { color: var(--secondary); }
.cart-empty-txt {
    text-align: center;
    color: var(--text-light);
    padding: 60px 10px;
    font-size: 16px;
    line-height: 2;
}

.cart-footer {
    padding: 20px 22px;
    border-top: 2px solid var(--border);
    background: var(--bg-alt);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
}
.cart-total { color: var(--secondary); font-size: 22px; font-weight: 800; }
.checkout-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4); }
.checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- إتمام الطلب ---------- */
.checkout-drawer { width: min(480px, 96vw); }
.checkout-body { flex: 1; overflow-y: auto; padding: 20px 22px 30px; }
.aco-box { margin-bottom: 16px; }
.aco-ok {
    background: #E8FBF5;
    border: 1px solid #A9E8D0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #0E7C55;
    font-weight: 700;
}
.aco-note {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--text);
}
.aco-btns { margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aco-a { color: var(--primary); font-weight: 800; text-decoration: none; }
.aco-a:hover { text-decoration: underline; }
.aco-later { color: var(--text-light); cursor: pointer; font-size: 13px; }

.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.fg input, .fg textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.fg input:focus, .fg textarea:focus { border-color: var(--primary); }
.fg textarea { resize: vertical; }

.order-summary {
    background: var(--bg-alt);
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
}
.summary-total { color: var(--secondary); font-size: 22px; font-weight: 800; }

.pay-choices { display: flex; flex-direction: column; gap: 8px; }
.pay-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    background: #fff;
}
.pay-choice { margin-bottom: 0; }
.pay-choice:has(input:checked) { border-color: var(--primary); background: #EAF7FA; box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.15); }
.pay-choice input { width: auto; margin: 0; padding: 0; accent-color: var(--primary); }
.del-opts { margin-top: 14px; }
.fee-tag {
    background: linear-gradient(135deg, #00BCD4, #E91E63);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    margin-inline-start: 4px;
}
.fee-tag.free { background: #25D366; }
.pay3 .pay-choice.big {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
}
.pay3 .pay-choice.big .pc-title { font-size: 14.5px; }
.pay3 .pay-choice.big small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.4;
}

/* ---------- نافذة تنبيه كاش ---------- */
.cash-modal {
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2950;
    padding: 20px;
}
.cash-modal-card {
    background: #fff;
    border-radius: 18px;
    max-width: 500px;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: cashPop 0.25s ease;
}
@keyframes cashPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.cash-warn-icon { font-size: 56px; }

.cash-modal-card h3 {
    color: var(--secondary);
    margin: 10px 0 12px;
    font-size: 22px;
}
.cash-modal-card p { margin: 6px 0; font-size: 14.5px; color: var(--text); }
.cash-hl {
    background: #FFF3CD;
    border-inline-start: 4px solid #FFC107;
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
    color: #7A5B0A;
    margin: 16px 0;
}
.cash-note { color: #B0413E !important; font-size: 13px !important; }
.cash-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.btn-wa-go {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-wa-go:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }
.btn-wa-back {
    flex: 1;
    min-width: 160px;
    background: #f0f0f0;
    color: #333;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-wa-back:hover { background: #e2e2e2; }
@media (prefers-reduced-motion: reduce) { .cash-modal-card { animation: none; } }

.pay-ok {
    background: #E8FBF5;
    border: 1px solid #A9E8D0;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 800;
    color: #0E7C55;
    margin-bottom: 10px;
}
.pay-hint { font-size: 12.5px; color: var(--text-light); margin-bottom: 12px; }
.pay-done { margin-top: 8px; background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.pay-msg { font-size: 12.5px; margin-top: 10px; font-weight: 700; }
.pay-home { margin-top: 10px; color: var(--secondary); font-weight: 800; text-decoration: none; display: inline-block; }
.btn-submit-order { margin-top: 4px; }
.safe-note {
    text-align: center;
    color: var(--text-light);
    font-size: 11.5px;
    margin-top: 12px;
}

/* ---------- Toast ---------- */
.toast-pos {
    position: fixed;
    bottom: 24px;
    right: 50%;
    transform: translate(50%, 80px);
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(233, 30, 99, 0.35);
    z-index: 3000;
    transition: transform 0.3s ease;
    max-width: 90vw;
    text-align: center;
}
.toast-pos.active { transform: translate(50%, 0); }

/* ---------- زر واتساب عائم ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 2900;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}
.whatsapp-float svg { width: 24px; height: 24px; }
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8); }
}
@media (max-width: 768px) {
    .whatsapp-float { padding: 10px 16px; font-size: 14px; }
    .whatsapp-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { animation: none; }
}

/* ---------- نافذة التثبيت ---------- */
.install-popup {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(44, 62, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ip-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.ip-icon { font-size: 48px; }
.ip-card h3 { margin: 14px 0 8px; font-size: 20px; }
.ip-card p { color: var(--text-light); font-size: 14px; margin: 0 0 18px; line-height: 1.7; }
.ip-link { color: var(--secondary); font-weight: 800; text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 18px; }
.ip-actions { display: flex; gap: 10px; }
.ip-add, .ip-later {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
}
.ip-add { background: var(--gradient); color: #fff; }
.ip-later { background: var(--bg-alt); color: var(--text); }

/* ---------- التجاوب ---------- */
#products { scroll-margin-top: 150px; }
#hero { scroll-margin-top: 76px; }
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .search-box { max-width: 300px; }
    .nav-menu { gap: 6px; }
    .nav-menu a, .nav-menu .lang-switch { padding: 8px 10px; font-size: 14px; }
}

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; gap: 12px; }
    .logo-3d-container { width: 40px; height: 40px; }
    .search-box { order: 3; width: 100%; max-width: 100%; }
    .nav-menu { display: none; }
    .categories-bar { top: 64px; }
    #products { scroll-margin-top: 130px; }
    .hero-section { height: 350px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-btn { padding: 14px 32px; font-size: 16px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .main-container { padding: 12px 16px 48px; }
    .product-name { font-size: 14px; }
    .product-price { font-size: 16px; }
    .btn-add, .btn-buy { padding: 9px; font-size: 13px; }
    .section-title { font-size: 26px; }
    .cart-drawer, .checkout-drawer { width: 100%; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .hero-title { font-size: 24px; }
    .hero-section { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .logo-3d { animation: none !important; }
}