:root {
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --primary-color: #111111;
    --primary-hover: #333333;
    --text-light: #111111;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.08);
    --star-color: #ffb400;
    --glass-bg: rgba(255, 255, 255, 0.92);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ============================================
   1. شريط الإعلانات العلوي
   ============================================ */
.announcement-bar {
    background: #111111;
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    position: relative;
    z-index: 1001;
    letter-spacing: 0.5px;
}

/* ============================================
   2. الناف بار الجديد
   ============================================ */
.navbar {
    background: #000000 !important;
    padding: 0.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222222;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* ===== اللوجو ===== */
.nav-logo {
    flex-shrink: 0;
}

.nav-logo .logo-img-wide {
    width: 200px !important;
    height: auto;
    max-height: 55px;
    object-fit: contain;
    display: block;
}

/* ===== القائمة ===== */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    border-radius: 6px;
}

.nav-item > a:hover {
    color: #ffc107 !important;
}

.nav-item > a i {
    font-size: 0.9rem;
}

/* ===== Dropdown ===== */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
    list-style: none;
    margin: 0;
    z-index: 1001;
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dddddd !important;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.dropdown li a:hover {
    background: #2a2a2a;
    color: #ffc107 !important;
}

.dropdown li a i {
    width: 18px;
    color: #888;
}

.has-dropdown:hover .dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== أيقونة الكارت ===== */
.nav-cart {
    flex-shrink: 0;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ffffff !important;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ffc107 !important;
    color: #000000 !important;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* ===== Menu Toggle (للجوال) ===== */
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

/* ============================================
   3. قسم البانر الرئيسي (Hero)
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('IMG-20260812-WA0009.jpg') center/cover no-repeat #111111;
    color: #ffffff;
    padding: 2rem 5%;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    padding: 1rem 2.8rem;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-weight: 900;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   4. قسم المنتجات والشبكة (Products Section)
   ============================================ */
.products-section {
    padding: 2rem 5% 5rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 900;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card {
    background: transparent !important;
    border: 1px solid #333333 !important;
    border-radius: 12px;
    padding: 14px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    touch-action: manipulation;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #111111 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

.product-clickable-area {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.product-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #555555;
}

.product-price {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.25rem;
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
}

.btn-add {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    width: 100%;
    margin: 0 auto;
    display: block;
    font-weight: bold;
    font-size: 0.95rem;
}

.btn-add:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-add:active {
    transform: translateY(0);
}

/* ============================================
   5. قسم من نحن (About Us)
   ============================================ */
.about-section {
    padding: 5rem 5%;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 2rem auto;
}

.about-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #ffffff;
    padding: 2.2rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   6. سلة المشتريات (Cart Sidebar) - مصغرة من اليمين
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid rgba(0,0,0,0.08);
    z-index: 5000;
    padding: 1.2rem 1rem;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 25px rgba(0,0,0,0.08);
    font-size: 0.85rem;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cart-header h3 {
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 5px 8px;
}

.close-cart:hover {
    color: #111;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin: 0.8rem 0;
    padding-right: 4px;
}

.cart-items::-webkit-scrollbar {
    width: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 45px !important;
    height: 45px !important;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item .item-details {
    flex: 1;
    min-width: 0;
}

.cart-item .item-details h4 {
    font-size: 0.78rem !important;
    margin: 0 0 2px 0 !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item .item-details p {
    font-size: 0.65rem !important;
    color: #666;
    margin: 0 0 2px 0 !important;
}

.cart-item .item-details .item-price {
    font-weight: 700;
    font-size: 0.75rem !important;
    color: #111;
}

.cart-item .item-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 6px;
}

.cart-item .item-remove:hover {
    color: #e60000;
}

.cart-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 0.8rem;
}

.cart-footer .total {
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
}

.cart-footer .total span {
    color: #111;
}

.btn-checkout {
    width: 100%;
    padding: 0.7rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-checkout:first-of-type {
    margin-bottom: 6px;
}

.btn-checkout:hover {
    opacity: 0.9;
}

/* ============================================
   7. النافذة المنبثقة للمنتجات (Modal)
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.product-modal-card {
    background: #ffffff;
    color: #111111;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlide 0.3s ease-out;
    box-sizing: border-box;
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f0f0f0;
    color: #111111;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.modal-main-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thumb-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb-img.active,
.thumb-img:hover {
    border-color: #111111;
    opacity: 1;
}

.modal-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #111111;
    margin-bottom: 0.8rem;
}

.modal-desc {
    color: #555555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.option-group {
    margin-bottom: 1.2rem;
}

.option-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover,
.size-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--primary-color);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: fit-content;
    overflow: hidden;
}

.qty-btn {
    background: #f4f4f5;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e4e4e7;
}

#modalQty {
    width: 45px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
}

.modal-btn-add {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ============================================
   8. زر الواتساب العائم
   ============================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 4000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ============================================
   9. الفوتر الجديد
   ============================================ */
.footer-section {
    background: #0a0a0c !important;
    padding: 3rem 5% 1.5rem 5%;
    border-top: 1px solid #222222;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .footer-logo-img {
    width: 140px !important;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    mix-blend-mode: screen;
}

.footer-brand p {
    color: #b0b0ba !important;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social h3 {
    color: #ffffff !important;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #16161a;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #2a2a32;
}

.social-links a:hover {
    background: #ffffff;
    color: #000000 !important;
    transform: translateY(-3px);
}

.social-links a:hover .fa-instagram { color: #E4405F; }
.social-links a:hover .fa-facebook-f { color: #1877f2; }
.social-links a:hover .fa-tiktok { color: #000000; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #222222;
    color: #888888 !important;
    font-size: 0.8rem;
}

/* ============================================
   10. تأثيرات الموبايل واللمس
   ============================================ */
.touch-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle 140px at var(--touch-x, -500px) var(--touch-y, -500px), rgba(0, 0, 0, 0.04), transparent 80%);
}

.mobile-nav-bar {
    display: none;
}

/* ============================================
   11. التجاوب مع الشاشات
   ============================================ */

/* ===== للجوال ===== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111111;
        padding: 1rem 5%;
        border-bottom: 1px solid #222;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item > a {
        padding: 10px 12px;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown {
        position: static;
        display: none;
        background: #1a1a1a;
        border-radius: 6px;
        margin-top: 4px;
        box-shadow: none;
        border: none;
    }
    
    .dropdown li a {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .has-dropdown.open .dropdown {
        display: block;
    }
    
    .has-dropdown > a .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-cart {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .logo-img-wide,
    .nav-logo .logo-img-wide {
        width: 110px !important;
        max-height: 35px;
    }

    .navbar {
        padding: 0.4rem 3%;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .products-section {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }

    .product-card {
        border-radius: 12px;
        width: 100%;
    }

    .product-img {
        height: 320px;
    }

    /* ===== كارت الموبايل ===== */
    .cart-sidebar {
        width: 300px;
        right: -320px;
        padding: 1rem 0.8rem;
    }
    .cart-sidebar.active {
        right: 0;
    }
    .cart-item img {
        width: 40px !important;
        height: 40px !important;
    }
    .cart-item .item-details h4 {
        font-size: 0.7rem !important;
    }
    .cart-item .item-details p {
        font-size: 0.6rem !important;
    }
    .cart-footer .total {
        font-size: 0.85rem;
    }
    .btn-checkout {
        font-size: 0.7rem !important;
        padding: 0.6rem !important;
    }

    /* ===== الموبايل ناف بار ===== */
    .mobile-nav-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 15px;
        left: 5%;
        right: 5%;
        width: 90%;
        height: 60px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 30px;
        z-index: 3900;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-item {
        color: #666666;
        font-size: 1.1rem;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .mobile-nav-item span {
        font-size: 0.65rem;
        font-weight: bold;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:active {
        color: #111111;
        transform: translateY(-2px);
    }

    .floating-whatsapp {
        bottom: 85px !important;
        left: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .modal-main-img {
        height: 250px;
    }

    .nav-bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.75rem;
    }
    .user-links {
        gap: 0.8rem;
    }
    .user-links a {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .logo-img-wide,
    .nav-logo .logo-img-wide {
        width: 100px !important;
        max-height: 30px;
    }
    
    .cart-sidebar {
        width: 280px;
        right: -300px;
        padding: 0.8rem 0.6rem;
    }
    .cart-sidebar.active {
        right: 0;
    }
    
    .nav-links {
        gap: 0.7rem;
    }
    .nav-links a {
        font-size: 0.65rem;
    }
    .user-links {
        gap: 0.5rem;
    }
    .user-links a {
        font-size: 0.6rem;
    }
    .cart-icon {
        font-size: 1rem;
    }
    #cart-count {
        font-size: 0.55rem;
        min-width: 16px;
        padding: 1px 5px;
    }
}


/* =========================================================
   GRIFFWear MODERN UI REFRESH
   ========================================================= */

/* Header: menu LEFT / logo CENTER / bag RIGHT */
.modern-navbar {
    background: rgba(0,0,0,.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 18px !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.modern-nav-container {
    width: 100%;
    max-width: 1180px;
    min-height: 58px;
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
}
.modern-nav-left { justify-self: start; display:flex; align-items:center; }
.modern-nav-logo { justify-self:center; position:relative; z-index:2; }
.modern-nav-logo .logo-img-wide { width: 150px !important; max-height: 42px; }
.modern-nav-right { justify-self:end; display:flex; align-items:center; }
.modern-nav-left .nav-menu { display:block; flex:none; }
.modern-nav-left .nav-list { gap: 5px; }
.modern-nav-left .nav-item > a { padding: 8px 10px; font-size:.76rem; }
.modern-nav-left .menu-toggle { display:none; }
.modern-nav-right .cart-icon {
    width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1);
    margin:0 !important;
}
.modern-nav-right #cart-count { top:-3px; right:-3px; }

/* Modern cart drawer */
.cart-sidebar {
    top: 50%; !important;
    right: -420px;
    transform: translateY(-50%);
    width: min(360px, 88vw) !important;
    max-width: 88vw !important;
    height: min(680px, 86vh) !important;
    max-height: 86vh !important;
    border-radius: 22px 0 0 22px;
    padding: 18px !important;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: -18px 20px 55px rgba(0,0,0,.22);
    transition: right .3s ease, transform .3s ease;
}
.cart-sidebar.active { right: 0 !important; }
.cart-header { padding-bottom:12px; }
.cart-header h3 { font-size:1.08rem !important; letter-spacing:.2px; }
.close-cart { width:34px; height:34px; border-radius:50%; background:#f5f5f5; display:grid; place-items:center; padding:0; }
.cart-items { margin:12px 0; }
.cart-item { background:#fafafa; border:1px solid #eee; border-radius:12px; padding:8px; margin-bottom:8px; }
.cart-item img { width:48px !important; height:48px !important; object-fit:fill; border-radius:9px; }
.cart-footer { padding-top:12px; }
.btn-checkout { border-radius:11px !important; padding:10px !important; }
.overlay { background:rgba(0,0,0,.35) !important; backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }

/* Modern product modal / order panel */
.product-modal-card {
    width:min(900px, 94vw) !important;
    max-width:900px !important;
    max-height:88vh !important;
    border-radius:24px !important;
    padding:22px !important;
    box-shadow:0 28px 80px rgba(0,0,0,.28) !important;
}
.modal-body { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) !important; gap:24px !important; padding:0 !important; }
.modal-gallery { background:#f7f7f7; border-radius:18px; padding:10px; }
.modal-main-img { height:auto !important; aspect-ratio:8/7 !important; object-fit:fill !important; border-radius:14px !important; background:#fff; }
.modal-thumbs { padding:4px 2px 0; overflow-x:auto; scrollbar-width:none; }
.modal-thumbs::-webkit-scrollbar { display:none; }
.thumb-img { width:56px !important; height:56px !important; min-width:56px !important; object-fit:fill !important; border-radius:9px !important; }
.modal-info { padding:8px 4px; }
.modal-info h2 { font-size:1.55rem; line-height:1.25; margin-bottom:8px; }
.modal-price { font-size:1.25rem; margin-bottom:10px; }
.modal-desc { background:#f8f8f8; padding:10px 12px; border-radius:12px; margin-bottom:14px; }
.option-group { margin-bottom:13px; }
.option-label { font-weight:800; display:block; margin-bottom:7px; }
.size-btn,.color-btn { transition:.2s ease; }
.size-btn { border-radius:9px !important; }
.color-btn { width:34px !important; height:34px !important; border-radius:50% !important; }
.quantity-selector { display:flex; align-items:center; gap:8px; }
.qty-btn { width:34px; height:34px; border-radius:9px; }
.modal-btn-add { border-radius:12px !important; padding:12px !important; margin-top:5px; }

/* Modern checkout */
.checkout-navbar { position:sticky; top:0; z-index:1000; }
.checkout-nav-inner { max-width:1100px; margin:auto; min-height:58px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; }
.checkout-logo { justify-self:center; }
.checkout-logo img { width:145px; max-height:42px; object-fit:contain; }
.checkout-nav-side { color:#fff; text-decoration:none; display:flex; gap:8px; align-items:center; font-weight:800; font-size:.8rem; }
.menu-side { justify-self:start; }
.cart-side { justify-self:end; }
.checkout-container { max-width:920px !important; margin:28px auto !important; }
.checkout-card { border-radius:22px !important; padding:24px !important; box-shadow:0 18px 50px rgba(0,0,0,.08) !important; }
.checkout-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.checkout-card input,.checkout-card textarea { background:#fafafa; }

@media (max-width: 768px) {
    .modern-navbar { padding:8px 12px !important; }
    .modern-nav-container { min-height:52px; }
    .modern-nav-logo .logo-img-wide { width:110px !important; max-height:32px; }
    .modern-nav-left .menu-toggle { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); color:#fff; cursor:pointer; margin-right:8px; }
    .modern-nav-left .nav-menu { display:none; position:absolute; top:58px; left:10px; right:auto; width:min(260px,82vw); background:#101010; border:1px solid #252525; border-radius:16px; padding:10px; box-shadow:0 20px 45px rgba(0,0,0,.4); }
    .modern-nav-left .nav-menu.active { display:block; }
    .modern-nav-left .nav-list { flex-direction:column; align-items:stretch; gap:2px; }
    .modern-nav-left .nav-item > a { width:100%; justify-content:flex-start; border-radius:10px; }
    .modern-nav-right .cart-icon { width:38px; height:38px; }
    .cart-sidebar { width:80vw !important; max-width:290px !important; height:72vh !important; max-height:72vh !important; padding:12px !important; border-radius:18px 0 0 18px; }
    .cart-item img { width:40px !important; height:40px !important; }
    .product-modal-card { width:96vw !important; max-height:92vh !important; border-radius:18px !important; padding:12px !important; }
    .modal-body { grid-template-columns:1fr !important; gap:10px !important; }
    .modal-gallery { padding:7px; border-radius:14px; }
    .modal-main-img { aspect-ratio:8/7 !important; }
    .modal-info { padding:2px; }
    .modal-info h2 { font-size:1.05rem; }
    .modal-desc { font-size:.75rem; padding:8px 10px; margin-bottom:8px; }
    .option-group { margin-bottom:8px; }
    .modal-btn-add { padding:9px !important; }
    .checkout-container { margin:14px auto !important; padding:0 10px !important; }
    .checkout-card { padding:16px !important; border-radius:16px !important; }
    .checkout-contact-grid { grid-template-columns:1fr; gap:0; }
    .checkout-logo img { width:105px; }
    .checkout-nav-inner { padding:0 12px; }
}

@media (max-width:480px) {
    .cart-sidebar { width:82vw !important; max-width:270px !important; height:70vh !important; max-height:70vh !important; }
    .product-modal-card { width:97vw !important; padding:9px !important; }
    .modal-main-img { aspect-ratio:8/7 !important; }
    .checkout-nav-side span { display:none; }
}

/* Mobile: keep the new top header clean; the old floating bottom nav is redundant. */
@media (max-width: 768px) {
    .mobile-nav-bar { display: none !important; }
}


/* =========================================================
   RESTORED MOBILE MENU
   SHOP / ACCOUNT / ABOUT
   ========================================================= */

.mobile-menu-section-title {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 12px;
    font: inherit;
    font-weight: 800;
}

.mobile-menu-section-icon {
    width: 28px;
    text-align: left;
    flex: 0 0 28px;
}

.mobile-menu-section-name {
    flex: 1;
    text-align: center;
    letter-spacing: .5px;
}

.mobile-menu-arrow {
    width: 28px;
    text-align: right;
    transition: transform .25s ease;
}

.mobile-menu-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #1a1a1a;
    border-radius: 10px;
    margin: 0 0 8px;
}

.mobile-menu-section.open .mobile-menu-section-content {
    max-height: 500px;
}

.mobile-menu-section-content a {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #ddd !important;
    text-decoration: none;

    padding: 16px 20px;
    font-weight: 700;
    font-size: .9rem;
}

.mobile-menu-section-content a:hover {
    background: #242424;
    color: #fff !important;
}

.mobile-menu-section-content a i {
    width: 20px;
    color: #999;
}

.mobile-menu-about > a {
    width: 100%;
    color: #fff !important;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 12px;
    font-weight: 800;
}

.mobile-menu-about > a i {
    width: 28px;
    color: #fff;
}

@media (min-width: 993px) {
    /* Desktop keeps the clean header navigation. */
    .mobile-menu-section-title {
        display: flex;
    }

    .mobile-menu-section-content {
        max-height: none !important;
        overflow: visible;
    }
}

@media (max-width: 992px) {
    .nav-menu .nav-list {
        gap: 8px !important;
    }

    .nav-menu .nav-item {
        width: 100%;
    }

    .mobile-menu-section-content {
        width: 100%;
    }
}



/* =========================================================
   MOBILE BOTTOM NAV - RESTORED + FULLY CLICKABLE
   Home / Collection / About Us / Cart
   ========================================================= */

@media (max-width: 768px) {
    .mobile-nav-bar {
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        position: fixed !important;
        bottom: 15px !important;
        left: 5% !important;
        width: 90% !important;
        height: 60px !important;

        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;

        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 30px !important;

        z-index: 99999 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;

        pointer-events: auto !important;
    }

    .mobile-nav-item {
        color: #666 !important;
        font-size: 1.1rem !important;
        text-decoration: none !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 3px !important;
        min-width: 55px !important;
        height: 100% !important;

        cursor: pointer !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item span {
        font-size: 0.65rem !important;
        font-weight: bold !important;
        line-height: 1 !important;
        pointer-events: none !important;
    }

    .mobile-nav-item i {
        pointer-events: none !important;
    }

    .mobile-nav-item.active {
        color: #111 !important;
    }

    .mobile-nav-item:active {
        transform: scale(0.96);
    }
}

@media (max-width: 480px) {
    .mobile-nav-bar {
        bottom: 12px !important;
        left: 4% !important;
        width: 92% !important;
        height: 58px !important;
        border-radius: 29px !important;
    }

    .mobile-nav-item span {
        font-size: 0.62rem !important;
    }
}

/* لا تسمح لأي overlay عام بتعطيل الشريط السفلي */
.mobile-nav-bar,
.mobile-nav-bar * {
    pointer-events: auto !important;
}


/* =========================================================
   FOLLOW US - داخل القائمة تحت ABOUT
   ========================================================= */
.mobile-menu-follow {
    width: 100% !important;
}

.mobile-menu-follow > a {
    width: 100% !important;
    color: #fff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    font-weight: 800 !important;
    font-size: .8rem !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
}

.mobile-menu-follow > a i {
    width: 28px !important;
    text-align: left !important;
}

.mobile-menu-follow > a:hover {
    background: #1f1f1f !important;
}

/* =========================================================
   PER-PIECE SIZE/COLOR SELECTION
   يظهر فقط عندما الكمية أكبر من 1
   ========================================================= */
.unit-selections {
    width: 100% !important;
    margin: 8px 0 !important;
    max-height: 230px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.unit-selection-row {
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 10px !important;
    padding: 8px !important;
    margin-bottom: 7px !important;
}

.unit-selection-title {
    font-size: .72rem !important;
    font-weight: 800 !important;
    margin-bottom: 5px !important;
}

.unit-option-group {
    margin-bottom: 5px !important;
}

.unit-option-label {
    display: block !important;
    font-size: .62rem !important;
    margin-bottom: 3px !important;
    opacity: .75 !important;
}

.unit-size-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.unit-size-btn {
    border: 1px solid rgba(255,255,255,.25) !important;
    background: transparent !important;
    color: inherit !important;
    border-radius: 5px !important;
    padding: 3px 7px !important;
    font-size: .62rem !important;
    cursor: pointer !important;
}

.unit-size-btn.active {
    background: #fff !important;
    color: #111 !important;
}

.unit-color-options {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.unit-color-btn {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
}

.unit-color-btn.active {
    outline: 2px solid #fff !important;
    outline-offset: 2px !important;
}

@media (max-width: 480px) {
    .unit-selections {
        max-height: 190px !important;
    }

    .unit-selection-row {
        padding: 6px !important;
        margin-bottom: 5px !important;
    }

    .unit-selection-title {
        font-size: .66rem !important;
    }

    .unit-color-btn {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }
}


/* =========================================================
   FINAL FIX - Follow Us + independent piece selections
   ========================================================= */

/* Follow Us تحت About */
.mobile-menu-follow {
    width: 100% !important;
}

.mobile-menu-follow > a {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    color: #fff !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* كل قطعة لها اختياراتها الخاصة */
.unit-selections {
    width: 100% !important;
    margin-top: 10px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px !important;
    box-sizing: border-box !important;
}

.unit-selection-row {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 9px 10px !important;
    margin: 0 0 8px 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    background: rgba(0,0,0,.035) !important;
}

.unit-selection-title {
    font-size: .78rem !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.unit-option-group {
    margin-bottom: 7px !important;
}

.unit-option-label {
    display: block !important;
    font-size: .66rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.unit-size-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.unit-size-btn {
    min-width: 38px !important;
    height: 32px !important;
    padding: 4px 8px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
}

.unit-size-btn.active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

.unit-color-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.unit-color-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
}

.unit-color-btn.active {
    outline: 2px solid #111 !important;
    outline-offset: 2px !important;
}

@media (max-width: 480px) {
    .unit-selections {
        max-height: 250px !important;
    }

    .unit-selection-row {
        padding: 7px 8px !important;
        margin-bottom: 6px !important;
    }

    .unit-size-btn {
        min-width: 35px !important;
        height: 29px !important;
        padding: 3px 7px !important;
        font-size: .62rem !important;
    }

    .unit-color-btn {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }
}


/* =========================================================
   FINAL PIECE LOGIC UI
   القطعة الأولى = الاختيارات الأصلية
   القطع التالية = إضافية فقط
   ========================================================= */
#unitSelections {
    width: 100% !important;
    margin-top: 10px !important;
}

#unitSelections:empty {
    display: none !important;
}

.unit-selection-row {
    margin-bottom: 8px !important;
}

.unit-selection-row:last-child {
    margin-bottom: 4px !important;
}


/* =========================================================
   FINAL GRIFF FIXES
   ========================================================= */

/* Original image ratio - no crop / no stretch */
.product-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}
.product-clickable-area,
.product-card {
    height: auto !important;
}
.modal-main-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}
.thumb-img {
    object-fit: contain !important;
}

/* Two products side-by-side on mobile */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .product-card {
        min-width: 0 !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .product-title {
        font-size: .82rem !important;
        line-height: 1.25 !important;
    }

    .product-price {
        font-size: .95rem !important;
    }

    .btn-add {
        font-size: .68rem !important;
        padding: .55rem .3rem !important;
    }

    .product-badge {
        font-size: .58rem !important;
        padding: 4px 7px !important;
    }
}

/* Bottom Cart */
.mobile-nav-bar {
    z-index: 99999 !important;
    pointer-events: auto !important;
}
.mobile-nav-item.cart-trigger {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}
.mobile-nav-item.cart-trigger i,
.mobile-nav-item.cart-trigger span {
    pointer-events: none !important;
}

/* Larger cart */
.cart-sidebar {
    width: 380px !important;
    max-width: 92vw !important;
}
.cart-sidebar.active {
    right: 0 !important;
}
.item-remove {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 20 !important;
}
@media (max-width: 480px) {
    .cart-sidebar {
        width: 88vw !important;
        max-width: 88vw !important;
    }
}


/* =========================================================
   REQUESTED FINAL ADJUSTMENT
   ========================================================= */

/* رجوع المنتجات لشكلها القديم: منتج واحد بالطول في كل صف */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .product-card {
        width: 100% !important;
        min-width: 0 !important;
    }

    .product-title {
        font-size: 1rem !important;
    }

    .product-price {
        font-size: 1.1rem !important;
    }

    .btn-add {
        font-size: .8rem !important;
        padding: .65rem .5rem !important;
    }
}

/* تكبير السلة الجانبية */
.cart-sidebar {
    width: 430px !important;
    max-width: 94vw !important;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 94vw !important;
        max-width: 94vw !important;
    }
}


/* =========================================================
   GRIFF CART V4 — LARGER + ORDER SUMMARY + GROUPED PRODUCTS
   ========================================================= */

.cart-sidebar {
    width: 500px !important;
    max-width: 96vw !important;
    background: #0b0b0b !important;
    border-left: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: -24px 0 70px rgba(0,0,0,.50) !important;
}

.cart-sidebar .cart-items,
.cart-items {
    padding: 18px !important;
}

/* Larger product card */
.cart-sidebar .cart-item,
.cart-item.cart-grouped-item {
    grid-template-columns: 112px minmax(0,1fr) 38px !important;
    gap: 15px !important;
    min-height: 132px !important;
    padding: 13px !important;
    margin-bottom: 12px !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg,#1c1c1c,#141414) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
}

.cart-sidebar .cart-item img,
.cart-item.cart-grouped-item img {
    width: 112px !important;
    height: 130px !important;
    border-radius: 14px !important;
    object-fit: cover !important;
    background: #242424 !important;
}

/* Product name + x2 badge */
.cart-product-top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.cart-product-top h4 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.04rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.cart-qty-badge {
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
}

/* Variants */
.cart-unit-price {
    margin-top: 4px !important;
    color: #aaa !important;
    font-size: .74rem !important;
}

.cart-variants {
    margin-top: 7px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.cart-variant-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 4px 7px !important;
    border-radius: 6px !important;
    background: rgba(255,255,255,.045) !important;
    color: #bdbdbd !important;
    font-size: .68rem !important;
}

.cart-variant-row b {
    color: #fff !important;
}

.cart-line-total {
    margin-top: 7px !important;
    color: #aaa !important;
    font-size: .7rem !important;
}

.cart-line-total strong {
    color: #fff !important;
    margin-left: 3px !important;
}

/* Delete */
.cart-group-remove {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    align-self: flex-start !important;
}

/* Summary */
.cart-summary {
    padding: 14px 16px 4px !important;
    margin-bottom: 10px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
}

.cart-summary-line,
.cart-summary-total {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.cart-summary-line {
    padding: 5px 0 !important;
    color: #aaa !important;
    font-size: .8rem !important;
}

.cart-summary-line strong {
    color: #fff !important;
}

.cart-summary-total {
    margin-top: 8px !important;
    padding: 11px 0 12px !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
}

.cart-summary-total strong {
    font-size: 1.28rem !important;
}

/* Footer more spacious */
.cart-sidebar .cart-footer,
.cart-footer {
    padding: 16px 18px 18px !important;
    background: #101010 !important;
}

/* Empty state */
.cart-empty i {
    font-size: 2.2rem !important;
    margin-bottom: 5px !important;
    color: #777 !important;
}

.cart-empty strong {
    color: #fff !important;
    font-size: 1rem !important;
}

.cart-empty span {
    color: #777 !important;
    font-size: .78rem !important;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 97vw !important;
        max-width: 97vw !important;
    }

    .cart-sidebar .cart-items,
    .cart-items {
        padding: 11px !important;
    }

    .cart-sidebar .cart-item,
    .cart-item.cart-grouped-item {
        grid-template-columns: 88px minmax(0,1fr) 34px !important;
        gap: 10px !important;
        min-height: 110px !important;
        padding: 10px !important;
    }

    .cart-sidebar .cart-item img,
    .cart-item.cart-grouped-item img {
        width: 88px !important;
        height: 108px !important;
    }

    .cart-product-top h4 {
        font-size: .88rem !important;
    }

    .cart-variant-row {
        font-size: .62rem !important;
    }

    .cart-summary-total strong {
        font-size: 1.15rem !important;
    }
}


/* =========================================================
   GRIFF CART V5 — COMPACT TOTAL / SIZE TUNING ONLY
   ========================================================= */

/* Reduce the summary block height significantly */
.cart-summary {
    padding: 7px 11px 3px !important;
    margin-bottom: 7px !important;
    border-radius: 10px !important;
}

.cart-summary-line {
    padding: 2px 0 !important;
    font-size: .70rem !important;
    line-height: 1.2 !important;
}

.cart-summary-total {
    margin-top: 4px !important;
    padding: 6px 0 7px !important;
    font-size: .82rem !important;
}

.cart-summary-total strong {
    font-size: .98rem !important;
}

/* Slightly reduce footer spacing so the cart has more room for products */
.cart-sidebar .cart-footer,
.cart-footer {
    padding: 10px 13px 12px !important;
}

.cart-sidebar .checkout-btn,
.cart-sidebar .btn-checkout,
.cart-sidebar .cart-checkout,
.cart-footer button {
    min-height: 46px !important;
    font-size: .88rem !important;
}

/* Small screen tuning */
@media (max-width: 480px) {
    .cart-summary {
        padding: 6px 10px 2px !important;
        margin-bottom: 6px !important;
    }

    .cart-summary-line {
        font-size: .66rem !important;
    }

    .cart-summary-total {
        padding: 5px 0 6px !important;
        font-size: .78rem !important;
    }

    .cart-summary-total strong {
        font-size: .92rem !important;
    }

    .cart-sidebar .cart-footer,
    .cart-footer {
        padding: 9px 11px 10px !important;
    }
}


/* =========================================================
   CONFIRM ONLY — FINAL CHECKOUT BUTTON
   ========================================================= */

.cart-sidebar .checkout-btn,
.cart-sidebar .btn-checkout,
.cart-sidebar .cart-checkout,
.cart-footer button[type="submit"],
.cart-footer .confirm-order,
.cart-footer .confirm-btn {
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
}

.cart-sidebar .checkout-btn *,
.cart-sidebar .btn-checkout *,
.cart-sidebar .cart-checkout *,
.cart-footer button[type="submit"] *,
.cart-footer .confirm-order *,
.cart-footer .confirm-btn * {
    color: #000000 !important;
}

.cart-sidebar .checkout-btn:hover,
.cart-sidebar .btn-checkout:hover,
.cart-sidebar .cart-checkout:hover,
.cart-footer button[type="submit"]:hover,
.cart-footer .confirm-order:hover,
.cart-footer .confirm-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    opacity: .9 !important;
}


/* =========================================================
   GRIFF CART — MODERN BAG REDESIGN
   Original GRIFF styling, not a copy of any reference.
   ========================================================= */

.cart-sidebar {
    width: 480px !important;
    max-width: 95vw !important;
    height: 100vh !important;
    top: 0 !important;
    right: -520px !important;

    background: #f7f7f5 !important;
    color: #111 !important;
    border: 0 !important;
    border-left: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 24px 0 0 24px !important;
    box-shadow: -24px 0 70px rgba(0,0,0,.20) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.cart-sidebar.active {
    right: 0 !important;
}

/* Header */
.cart-modern-header {
    min-height: 92px !important;
    padding: 20px 22px !important;
    background: #111 !important;
    color: #fff !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.cart-heading-label {
    display: block !important;
    margin-bottom: 4px !important;
    color: #999 !important;
    font-size: .62rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
}

.cart-modern-header h3 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
}

.cart-dot {
    color: #888 !important;
    margin: 0 2px !important;
}

.cart-modern-header .close-cart {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #242424 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    font-size: 1rem !important;
    padding: 0 !important;
}

/* Items area */
.cart-sidebar .cart-items {
    margin: 0 !important;
    padding: 14px 14px 10px !important;
    background: #f7f7f5 !important;
    overflow-y: auto !important;
}

/* Product card */
.cart-sidebar .cart-item.cart-grouped-item {
    display: grid !important;
    grid-template-columns: 104px minmax(0,1fr) 36px !important;
    gap: 13px !important;
    min-height: 150px !important;
    margin: 0 0 10px !important;
    padding: 11px !important;

    background: #fff !important;
    border: 1px solid #e7e7e4 !important;
    border-radius: 17px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.055) !important;
}

.cart-sidebar .cart-item.cart-grouped-item img {
    width: 104px !important;
    height: 126px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    background: #eee !important;
}

/* Product title */
.cart-sidebar .cart-product-top h4 {
    color: #111 !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.cart-qty-badge {
    background: #111 !important;
    color: #fff !important;
    border-radius: 7px !important;
    padding: 4px 7px !important;
    font-size: .68rem !important;
    font-weight: 900 !important;
}

/* Price */
.cart-sidebar .cart-unit-price {
    color: #777 !important;
    font-size: .72rem !important;
    margin-top: 4px !important;
}

/* Quantity row */
.cart-mini-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 7px !important;
}

.cart-mini-qty {
    display: inline-flex !important;
    align-items: center !important;
    height: 31px !important;
    overflow: hidden !important;
    border: 1px solid #dededb !important;
    border-radius: 8px !important;
    background: #fafafa !important;
}

.cart-mini-qty button {
    width: 30px !important;
    height: 31px !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fafafa !important;
    color: #111 !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.cart-mini-qty span {
    min-width: 28px !important;
    text-align: center !important;
    color: #111 !important;
    font-size: .75rem !important;
    font-weight: 900 !important;
}

.cart-piece-label {
    color: #999 !important;
    font-size: .64rem !important;
    white-space: nowrap !important;
}

/* Variants */
.cart-sidebar .cart-variants {
    margin-top: 7px !important;
    gap: 4px !important;
}

.cart-sidebar .cart-variant-row {
    background: #f4f4f2 !important;
    color: #777 !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 4px 6px !important;
    font-size: .63rem !important;
}

.cart-sidebar .cart-variant-row b {
    color: #222 !important;
}

/* Product total */
.cart-sidebar .cart-line-total {
    color: #888 !important;
    font-size: .67rem !important;
    margin-top: 6px !important;
}

.cart-sidebar .cart-line-total strong {
    color: #111 !important;
}

/* Delete */
.cart-sidebar .cart-group-remove {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    background: #f3f3f1 !important;
    color: #777 !important;
    border: 0 !important;
}

/* Footer */
.cart-sidebar .cart-footer {
    flex: 0 0 auto !important;
    padding: 12px 15px 15px !important;
    background: #fff !important;
    border-top: 1px solid #e6e6e3 !important;
}

/* Compact summary */
.cart-sidebar .cart-summary {
    margin: 0 0 10px !important;
    padding: 8px 10px !important;
    background: #f7f7f5 !important;
    border: 1px solid #e8e8e5 !important;
    border-radius: 11px !important;
}

.cart-sidebar .cart-summary-line {
    padding: 2px 0 !important;
    color: #777 !important;
    font-size: .68rem !important;
}

.cart-sidebar .cart-summary-line strong {
    color: #111 !important;
}

.cart-sidebar .cart-summary-total {
    margin-top: 5px !important;
    padding: 7px 0 2px !important;
    border-top: 1px solid #e2e2df !important;
    color: #111 !important;
    font-size: .82rem !important;
}

.cart-sidebar .cart-summary-total strong {
    color: #111 !important;
    font-size: 1.02rem !important;
}

/* Confirm — standalone white button with black text */
.cart-sidebar .btn-checkout {
    min-height: 52px !important;
    width: 100% !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #111 !important;
    font-size: .94rem !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.cart-sidebar .btn-checkout i {
    color: #000 !important;
}

/* Empty state */
.cart-sidebar .cart-empty {
    min-height: 280px !important;
    color: #888 !important;
}

.cart-sidebar .cart-empty strong {
    color: #111 !important;
}

/* Mobile */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 96vw !important;
        max-width: 96vw !important;
        border-radius: 22px 0 0 22px !important;
    }

    .cart-modern-header {
        min-height: 82px !important;
        padding: 17px 18px !important;
    }

    .cart-modern-header h3 {
        font-size: 1.2rem !important;
    }

    .cart-sidebar .cart-items {
        padding: 10px !important;
    }

    .cart-sidebar .cart-item.cart-grouped-item {
        grid-template-columns: 88px minmax(0,1fr) 32px !important;
        gap: 10px !important;
        min-height: 132px !important;
        padding: 9px !important;
        border-radius: 14px !important;
    }

    .cart-sidebar .cart-item.cart-grouped-item img {
        width: 88px !important;
        height: 112px !important;
        border-radius: 10px !important;
    }

    .cart-sidebar .cart-product-top h4 {
        font-size: .88rem !important;
    }

    .cart-sidebar .cart-unit-price {
        font-size: .66rem !important;
    }

    .cart-sidebar .cart-variant-row {
        font-size: .58rem !important;
    }

    .cart-sidebar .cart-footer {
        padding: 9px 11px 11px !important;
    }

    .cart-sidebar .btn-checkout {
        min-height: 48px !important;
        font-size: .86rem !important;
    }
}


/* =========================================================
   GRIFF CART V6 — FULL SCREEN MOBILE CART + DISCOUNT CODE
   ========================================================= */

.cart-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    top: 0 !important;
    right: -100vw !important;
    bottom: 0 !important;

    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.cart-sidebar.active {
    right: 0 !important;
}

.cart-modern-header {
    flex: 0 0 auto !important;
    min-height: 84px !important;
    padding: 18px 22px !important;
}

.cart-sidebar .cart-items {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 16px 18px 12px !important;
}

.cart-sidebar .cart-footer {
    flex: 0 0 auto !important;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom)) !important;
}

/* Coupon like the reference, but styled for GRIFF */
.cart-discount-box {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 110px !important;
    gap: 10px !important;
    margin: 0 0 9px !important;
}

.cart-discount-box input {
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    padding: 0 15px !important;
    border: 1px solid #dededb !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: .92rem !important;
    outline: none !important;
}

.cart-discount-box input::placeholder {
    color: #aaa !important;
}

.cart-discount-box button {
    height: 50px !important;
    border: 1px solid #111 !important;
    border-radius: 10px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: .88rem !important;
    font-weight: 900 !important;
}

.cart-discount-message {
    min-height: 0 !important;
    margin: 0 2px 5px !important;
    font-size: .68rem !important;
}

.cart-discount-message.error {
    color: #a00000 !important;
}

.cart-discount-message.success {
    color: #176b3a !important;
}

/* Bigger summary area at the bottom */
.cart-sidebar .cart-summary {
    margin: 0 0 9px !important;
    padding: 9px 12px !important;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw !important;
        height: 100dvh !important;
    }

    .cart-sidebar.active {
        right: 0 !important;
    }

    .cart-modern-header {
        min-height: 76px !important;
        padding: 15px 17px !important;
    }

    .cart-sidebar .cart-items {
        padding: 12px 12px 8px !important;
    }

    .cart-sidebar .cart-footer {
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom)) !important;
    }

    .cart-discount-box {
        grid-template-columns: minmax(0,1fr) 88px !important;
        gap: 8px !important;
    }

    .cart-discount-box input,
    .cart-discount-box button {
        height: 46px !important;
    }
}


/* =========================================================
   FINAL CART FIX — TRUE FULLSCREEN + VISIBLE PRODUCTS
   ========================================================= */
.cart-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -100vw !important;
    bottom: 0 !important;
    left: auto !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    z-index: 99999 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.cart-sidebar.active { right: 0 !important; }
.cart-sidebar .cart-modern-header { flex: 0 0 auto !important; }
.cart-sidebar .cart-items {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.cart-sidebar .cart-footer { flex: 0 0 auto !important; }
.cart-sidebar .cart-item.cart-grouped-item { visibility: visible !important; opacity: 1 !important; }
.cart-discount-box { display:grid !important; grid-template-columns:minmax(0,1fr) 110px !important; gap:10px !important; }
.cart-discount-box input { height:50px !important; background:#fff !important; color:#111 !important; border:1px solid #ddd !important; border-radius:10px !important; }
.cart-discount-box button { height:50px !important; background:#111 !important; color:#fff !important; border:1px solid #111 !important; border-radius:10px !important; font-weight:900 !important; }
.cart-discount-message { min-height:16px !important; margin:3px 2px 5px !important; font-size:.68rem !important; }
.cart-sidebar .btn-checkout { background:#fff !important; color:#000 !important; border:1px solid #111 !important; min-height:52px !important; width:100% !important; border-radius:11px !important; }
.cart-sidebar .btn-checkout i { color:#000 !important; }
@media (max-width:480px) {
    .cart-sidebar { width:100vw !important; max-width:100vw !important; }
    .cart-discount-box { grid-template-columns:minmax(0,1fr) 88px !important; gap:8px !important; }
    .cart-discount-box input,.cart-discount-box button { height:46px !important; }
}

/* Admin discount card */
.discount-admin-card { border-right:4px solid #111 !important; }
.discount-admin-card h2 i { color:#111 !important; }


/* ==========================================
   OUT OF STOCK - PRODUCTS / OPTIONS
   ========================================== */

.product-card.product-is-out {
    position: relative;
}

.product-card.product-is-out .product-img {
    filter: grayscale(.55);
    opacity: .72;
}

.stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 8;

    padding: 6px 10px;

    border-radius: 999px;

    background: #dc3545;
    color: #fff;

    font-size: .68rem;
    font-weight: 900;

    box-shadow: 0 5px 14px rgba(220,53,69,.25);
}

.product-card.product-is-out .btn-add {
    background: #777 !important;
    cursor: not-allowed !important;
}

.out-of-stock-option {
    position: relative !important;
    opacity: .42 !important;
    cursor: not-allowed !important;
    filter: grayscale(.65);
}

.size-btn.out-of-stock-option {
    text-decoration: line-through;
}

.color-btn.out-of-stock-option::after {
    content: "×";

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #dc3545;
    font-size: 26px;
    font-weight: 900;

    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.color-btn {
    position: relative;
}

.modal-btn-add.disabled-stock {
    background: #777 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: .85;
}

.modal-btn-add:disabled {
    pointer-events: none;
}

.product-is-out .product-clickable-area {
    cursor: pointer;
}

@media (max-width: 768px) {
    .stock-badge {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: .6rem;
    }
}


/* رسالة Out of Stock للعميل */
.out-of-stock-message {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) scale(.96);
    z-index: 2147483647;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 18px;
    min-width: 190px;
    justify-content: center;

    background: rgba(18, 18, 18, .96);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;

    box-shadow: 0 14px 35px rgba(0,0,0,.25);

    font-size: 13px;
    font-weight: 800;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .25s ease;
}

.out-of-stock-message i {
    color: #ff4d4d;
    font-size: 17px;
}

.out-of-stock-message.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 480px) {
    .out-of-stock-message {
        top: 50%;
        bottom: auto;
        width: max-content;
        max-width: 88%;
    }
}
