/* =========================================================
   ORGANIC Smile — Warm Ivory & Soft Cocoa Theme (كاكاوي فاتح قريب من الأبيض)
   ========================================================= */
:root {
    --bg: #F9F6F0;
    --surface: #FFFFFF;
    --surface-2: #F2EBE1;
    --line: rgba(184, 151, 112, 0.22);
    --gold: #A8884A;
    --gold-light: #C9A961;
    --gold-dark: #826632;
    --text: #2D241E;
    --muted: #6E5E52;
    --radius: 18px;
    --shadow-gold: 0 10px 30px rgba(168, 136, 74, 0.12);
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }

/* ===== مؤشر الماوس المخصص ===== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 136, 74, 0.05);
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-dark);
    border-radius: 50%;
}
@media (max-width: 991px) {
    .custom-cursor { display: none; }
}

/* ---------- 1. الشريط العلوي للإعلانات ---------- */
.topbar {
    position: relative !important;
    background: #EFE6D8 !important;
    color: #2D241E !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--gold) !important;
    overflow: hidden !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
}
.ads-track {
    direction: ltr !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: max-content !important;
    animation: adsScroll 35s linear infinite;
    will-change: transform;
}
.topbar:hover .ads-track { animation-play-state: paused; }
.ads-group { 
    display: flex !important; 
    flex-shrink: 0 !important; 
    align-items: center !important; 
    min-width: 100vw;
    justify-content: space-around !important; 
}
.ads-item { 
    padding: 0 16px !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
    text-align: center !important; 
    color: #2D241E !important;
    white-space: nowrap !important;
}
.ads-item i { font-size: 11px !important; color: var(--gold) !important; }
html[dir="rtl"] .ads-item { direction: rtl; }
@keyframes adsScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- 2. الهيدر ورابط الملاحة ---------- */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 5% !important;
    gap: 8px !important;
    background: rgba(249, 246, 240, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--line) !important;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
    white-space: nowrap;
}
.logo span { color: var(--gold); }

.nav-links { 
    display: flex !important; 
    align-items: center !important;
    margin-inline: auto !important;
    gap: 16px !important; 
}
.nav-links a {
    position: relative;
    font-weight: 500;
    font-size: 14.5px !important;
    padding: 4px 6px !important;
    color: #4A3C31;
    transition: color 0.3s var(--ease);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.cart-btn { order: 5; }
.lang-toggle { order: 6; }
.nav-cta { order: 7; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px !important;
    padding: 8px 16px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #fff; }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--gold);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}

/* ---------- الأزرار العامة ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s var(--ease);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(168, 136, 74, 0.25); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 14px 32px !important; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- الهيرو ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding: 90px 8% 100px;
    min-height: 620px;
    background:
        radial-gradient(circle at 80% 20%, rgba(201, 169, 97, 0.12), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(184, 151, 112, 0.08), transparent 40%),
        var(--bg);
}
.hero-tag {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid var(--line);
    border-radius: 50px;
    background: rgba(201, 169, 97, 0.08);
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 22px;
}
.hero h1 em {
    display: block;
    font-style: normal;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { max-width: 520px; color: var(--muted); font-size: 18px; margin-bottom: 34px; }
.hero-btns { 
    display: flex !important; 
    align-items: center !important;
    gap: 8px !important; 
    flex-wrap: wrap !important; 
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 380px;
}
.hero-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px dashed var(--line);
    animation: spin 40s linear infinite;
}

/* الشعار الدائري في الهيرو */
.hero-center-logo {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #FFFFFF, #EFE6D8);
    border: 1px solid var(--gold);
    box-shadow: 0 0 50px rgba(168, 136, 74, 0.15), inset 0 0 30px rgba(201, 169, 97, 0.1);
}
.brand-circle-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    animation: float 5s ease-in-out infinite;
}
.hero-badge.b1 { top: 12%; right: 8%; }
.hero-badge.b2 { bottom: 14%; right: 2%; animation-delay: 1.2s; }
.hero-badge.b3 { top: 40%; left: 0; animation-delay: 2.4s; }

/* ---------- شريط المميزات ---------- */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 25px 5%;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.feature { display: flex; align-items: center; gap: 10px; justify-content: center; }
.feature i { font-size: 24px; color: var(--gold); }
.feature h4 { font-size: 15px; font-weight: 700; }
.feature p { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- 3. أزرار الفلترة ---------- */
.featured-products { padding: 80px 5%; }

.toolbar {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-buttons { 
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important; 
    margin-bottom: 30px !important;
}
.filter-btn {
    padding: 7px 16px !important;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50px;
    color: #4A3C31;
    font-weight: 700;
    font-size: 13.5px !important;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

.search-field { position: relative; }
.search-field i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 14px;
    pointer-events: none;
}
.search-field input {
    width: 250px;
    padding: 9px 38px 9px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.3s var(--ease);
}
.search-field input:focus { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.search-field input::placeholder { color: var(--muted); }

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    animation: fadeUp 0.6s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08), var(--shadow-gold);
}
.product-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-2);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.product-body { padding: 16px 16px 6px; text-align: center; flex: 1; }
.product-title { font-size: 17px; font-weight: 700; margin: 4px 0 6px; color: var(--text); }
.product-price { color: var(--muted); font-size: 13px; }
.product-price strong { display: block; color: var(--gold-dark); font-size: 20px; font-weight: 800; }

.btn-details {
    display: block;
    margin: 10px 16px 16px;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s var(--ease);
}
.btn-details:hover { background: var(--gold); color: #fff; }

.skeleton-card {
    height: 380px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}

/* ---------- قصتنا ---------- */
.about {
    padding: 90px 5%;
    background: linear-gradient(180deg, var(--surface), var(--bg));
    border-top: 1px solid var(--line);
    text-align: center;
}
.about-inner { max-width: 760px; margin: 0 auto; }
.about-inner p { color: var(--muted); font-size: 18px; line-height: 2; margin: 10px 0 28px; }
.about-points { display: flex; justify-content: center; gap: 8px !important; flex-wrap: wrap; }
.about-points span {
    padding: 6px 14px !important;
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    background: var(--surface);
}
.about-points i { margin-left: 6px; color: var(--gold); }

/* ---------- تواصل ---------- */
.contact { padding: 80px 5%; text-align: center; border-top: 1px solid var(--line); }
.contact .section-header { margin-bottom: 25px; }

/* ---------- الفوتر ---------- */
.main-footer {
    padding: 45px 5% 20px;
    text-align: center;
    background: #EFE6D8;
    border-top: 1px solid var(--gold);
    color: var(--text);
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.footer-logo span { color: var(--gold); }
.main-footer p { color: var(--muted); margin-bottom: 24px; }
.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

/* ---------- صفحة المنتج ---------- */
.product-page { max-width: 1100px; margin: 0 auto; padding: 40px 5% 90px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--gold);
    font-weight: 700;
    transition: gap 0.3s var(--ease);
}
.back-link:hover { gap: 14px; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.detail-img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    box-shadow: var(--shadow-gold);
}
.detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s var(--ease);
}
.detail-thumbs img:hover, .detail-thumbs img.active { opacity: 1; border-color: var(--gold); }

.detail-info h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 8px 0 12px; line-height: 1.3; }
.detail-price { font-size: 30px; font-weight: 800; color: var(--gold-dark); margin-bottom: 14px; }
.detail-desc { color: var(--muted); line-height: 1.9; margin-bottom: 22px; }
.sizes-label { color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.size-options { display: flex; flex-wrap: wrap; gap: 6px !important; margin-bottom: 25px; }
.size-btn {
    padding: 7px 14px !important;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.size-btn:hover { border-color: var(--gold); }
.size-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- حركات ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- الموبايل والتابلت ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding: 60px 6% 70px; min-height: auto; }
    .hero p { margin-inline: auto; }
    .hero-btns { justify-content: center; }
    .hero-visual { min-height: 300px; }
    .hero-ring { width: 280px; height: 280px; }
    .hero-center-logo { width: 170px; height: 170px; }
    .features-strip { grid-template-columns: repeat(2, 1fr); }
    .feature { justify-content: flex-start; }
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: grid; place-items: center; }
    .nav-cta span { display: none; }
    .nav-cta { padding: 9px 12px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .filter-buttons { justify-content: center; }
    .search-field input { width: 100%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-body { padding: 12px 10px 4px; }
    .product-title { font-size: 15px; }
    .product-price strong { font-size: 17px; }
    .btn-details { margin: 8px 10px 12px; font-size: 13px; }
}

/* ===== زر اللغة والتحكم ===== */
.lang-toggle {
    padding: 7px 14px; border: 1px solid var(--line); border-radius: 50px;
    background: transparent; color: var(--gold); font-weight: 700; font-size: 13px; cursor: pointer;
    transition: all 0.3s var(--ease);
}
.lang-toggle:hover { background: var(--gold); color: #fff; }
html[dir="ltr"] .nav-links a::after { right: auto; left: 0; }
html[dir="ltr"] .search-field i { right: auto; left: 16px; }
html[dir="ltr"] .search-field input { padding-right: 16px; padding-left: 44px; }
html[dir="ltr"] .product-badge { right: auto; left: 12px; }
html[dir="ltr"] .hero-badge.b1 { right: auto; left: 8%; }
html[dir="ltr"] .hero-badge.b2 { right: auto; left: 2%; }
html[dir="ltr"] .hero-badge.b3 { left: auto; right: 0; }
html[dir="ltr"] .about-points i { margin-left: 0; margin-right: 6px; }
html[dir="ltr"] .fa-arrow-left, html[dir="ltr"] .fa-arrow-right { transform: scaleX(-1); }

/* ===== أزرار الكارت والسلة ===== */
.btn-add {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: calc(100% - 32px); margin: 10px 16px 0; padding: 10px;
    border: 1px solid transparent; border-radius: 50px; cursor: pointer;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff; font-weight: 700; font-size: 13.5px;
    transition: all 0.3s var(--ease);
}
.btn-add:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.card-size {
    width: 100%; margin-top: 8px; padding: 7px 9px; border-radius: 10px;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
    font-size: 13px; font-family: inherit;
}
.detail-actions { display: flex; gap: 6px !important; flex-wrap: wrap; margin-top: 8px; }
.detail-actions .btn { flex: 1 1 180px; }

.cart-btn {
    position: relative; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: transparent; border: 1px solid var(--line); color: var(--gold);
    font-size: 16px; cursor: pointer; transition: all 0.3s var(--ease);
}
.cart-btn:hover { background: var(--gold); color: #fff; }
.cart-badge {
    position: absolute; top: -6px; inset-inline-end: -6px;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--gold); color: #fff; font-size: 11px; font-weight: 800;
    display: grid; place-items: center; line-height: 1;
}
.cart-badge[hidden] { display: none; }

.cart-overlay {
    position: fixed; inset: 0; z-index: 1998; background: rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
body.cart-open { overflow: hidden; }

.cart-drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 1999;
    width: min(400px, 100%); display: flex; flex-direction: column;
    background: var(--surface); border-inline-start: 1px solid var(--line);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transform: translateX(105%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
}
html[dir="rtl"] .cart-drawer:not(.open) { transform: translateX(-105%); }
.cart-drawer.open { transform: none; visibility: visible; }

.cart-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 19px; color: var(--gold); }
.cart-close {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
    background: transparent; color: var(--text); cursor: pointer; font-size: 15px;
}
.cart-close:hover { background: var(--gold); color: #fff; }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-empty i { font-size: 40px; color: var(--gold); margin-bottom: 12px; }

.cart-item {
    display: flex; gap: 10px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.cart-item-size { color: var(--muted); font-size: 12.5px; }
.cart-item-price { color: var(--gold-dark); font-weight: 800; font-size: 13.5px; margin-top: 2px; }
.cart-del { background: none; border: none; color: #c77; cursor: pointer; font-size: 14px; }
.cart-del:hover { color: #f99; }
.qty { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 50px; padding: 2px 4px; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.qty-btn {
    width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--surface-2); color: var(--gold); font-size: 10px;
}
.qty-btn:hover { background: var(--gold); color: #fff; }

.cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.cart-total strong { color: var(--gold-dark); font-size: 20px; font-weight: 800; }
.cart-note { color: var(--muted); font-size: 12px; }
.cart-note[hidden] { display: none; }
.cart-clear {
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: 12.5px; text-decoration: underline;
}
.cart-clear:hover { color: var(--text); }

.toast {
    position: fixed; top: 90px; left: 50%; z-index: 3000;
    transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
    background: var(--gold); color: #fff; font-weight: 700; font-size: 13.5px;
    padding: 9px 20px; border-radius: 50px; box-shadow: var(--shadow-gold);
    transition: all 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   القائمة الجانبية على الموبايل
   ========================================================= */
.nav-close, .nav-overlay { display: none; }

@media (max-width: 768px) {
    .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #F9F6F0 !important;
    }
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 900;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }
    .nav-overlay.open { opacity: 1; visibility: visible; }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        right: auto !important;
        inset-inline-start: 0 !important;
        width: min(80vw, 300px) !important;
        margin: 0 !important;
        padding: 70px 22px 24px !important;
        gap: 0 !important;
        background: #FFFFFF !important;
        border: 0 !important;
        border-inline-end: 1px solid var(--line) !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.05);
        overflow-y: auto;
        z-index: 1100;
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
    }
    html[dir="rtl"] .nav-links { transform: translateX(100%); }
    html[dir="ltr"] .nav-links { transform: translateX(-100%); }
    .nav-links.open { visibility: visible; transform: translateX(0) !important; }

    .nav-links a { font-size: 16px !important; padding: 16px 4px !important; border-bottom: 1px solid var(--line); }

    .nav-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 14px;
        inset-inline-end: 14px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: none;
        border: 1px solid var(--line);
        color: var(--gold);
        font-size: 16px;
        cursor: pointer;
    }
    body.menu-open { overflow: hidden; }
}
