/* ==========================================================================
   1. المتغيرات وإعدادات الخطوط والألوان (هوية لوميّير الفاخرة)
   ========================================================================== */
:root {
    --primary-red: #A80015;       /* الأحمر المخملي الفاخر المأخوذ من شعارك */
    --dark-red: #54000A;          /* الأحمر الداكن الفاخر للعناوين والفوتر */
    --soft-pink: #fde2e4;         /* الوردي الناعم جداً كخلفية مريحة للمتجر */
    --white: #ffffff;
    --dark-text: #1a1a1a;         /* لون النصوص الأساسية */
    --gray-border: #f0f0f0;       /* لون الحدود والخطوط الفاصلة */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --primary-color: #54000a; /* البنفسجي */
            --bg-color: #ffffff;
            --category-color: #707087; /* لون الصنف */
}

/* تصغير وتوحيد الهوامش */
* {
    margin: 0;
    padding: 0;
    box-shadow: none;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent; /* إزالة اللون الأزرق عند الضغط في الجوال */
}

body {
    background-color: var(--soft-pink);
    color: var(--dark-text);
    overflow-x: hidden;
}

a
{
    text-decoration: none;
}

/* ==========================================================================
   2. شاشة التحميل الذكية (Loading Screen)
   ========================================================================== */
.loading-screen {
    position: fixed;
    inset: 0;
   
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen img {
    position: fixed;
     width: 150px;
    height: 150px;
  justify-content: center;
    align-items: center;
}


.spinner {
    width: 130px;
    height: 130px;
    border: 3px solid rgba(168, 0, 21, 0.1);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
     
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   3. شريط الإعلانات العلوى المتحرك (Marquee)
   ========================================================================== */
.marquee-bar {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    padding-right: 60px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(100%, 0, 0); }
}

/* ==========================================================================
   4. الهيدر وشريط التنقل المتجاوب (Navbar)
   ========================================================================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
     transition:
        transform .35s ease,
        box-shadow .35s ease;
}

/* عند الإخفاء */
.main-header.nav-hidden{
    transform: translateY(-100%);
}

/* عند النزول قليلًا لإضافة ظل */
.main-header.scrolled{
    box-shadow: 0 5px 20px rgba(0,0,0,.12);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100px;

}

     .menu-wrapper {
            position: relative;
            top:3px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

        /* ========== الزر الجديد ========== */
         .menu-btn {
            width: 30px;
            height: 30px;
            border: none;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 2px solid rgba(255, 255, 255, 0.15);
            cursor: pointer;
            position: relative;
            top:30px;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* الخطوط الثلاثة (هامبرغر) */
        .hamburger-lines {
            width: 32px;
            height: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.4s ease;
        }

       .hamburger-lines span {
            display: block;
            height: 5px;
            width: 70%;
            margin-right:3px;
            background: #a80015;
            border-radius: 10px;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            transform-origin: center;
            box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
        }

        /* تحويل الخطوط إلى X */
        .menu-btn.active .hamburger-lines span:first-child {
            transform: translateY(7px) rotate(45deg);
            background: #a80015;
        }

        .menu-btn.active .hamburger-lines span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .menu-btn.active .hamburger-lines span:last-child {
            transform: translateY(-7px) rotate(-45deg);
            background: #a80015;
        }

        /* تأثيرات الزر عند الفتح */
        .menu-btn.active {
            border-color: rgba(255, 107, 107, 0.5);
            box-shadow: 0 8px 40px rgba(255, 107, 107, 0.3);
            transform: scale(1.05) rotate(180deg);
            background: rgba(255, 255, 255, 0.15);
        }

        /* جزيئات متوهجة حول الزر */
        .menu-btn::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 24px;
            padding: 2px;
            background: conic-gradient(from 0deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: all 0.6s ease;
            animation: rotate-gradient 3s linear infinite;
        }

        .menu-btn.active::before {
            opacity: 1;
        }

        @keyframes rotate-gradient {
            to {
                transform: rotate(360deg);
            }
        }

        /* ========== القائمة ========== */
        .menu-dropdown {
            position: absolute;
top: 90px;
            right: 50%;
            transform: translateX(50%) scale(0.8) translateY(-20px);
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 28px;
            padding: 12px;
            min-width: 260px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
            list-style: none;
            transform-origin: top center;
        }

        .menu-dropdown.open {
            opacity: 1;
            visibility: visible;
            transform: translateX(50%) scale(1) translateY(0);
        }

        /* عناصر القائمة */
        .menu-dropdown li {
            padding: 16px 24px;
            color: rgba(255, 255, 255, 0.85);
            font-size: 17px;
            font-weight: 500;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 14px;
            letter-spacing: 0.3px;
            position: relative;
            overflow: hidden;
        }

        /* تأثير الخلفية المتدرجة عند hover */
        .menu-dropdown li::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(255, 107, 107, 0.15), rgba(72, 219, 251, 0.15));
            opacity: 0;
            transition: all 0.4s ease;
            border-radius: 16px;
        }

        .menu-dropdown li:hover::before {
            opacity: 1;
        }

        .menu-dropdown li:hover {
            color: white;
            transform: translateX(-6px);
            padding-right: 30px;
        }

        /* أيقونات */
        .menu-dropdown li .icon {
            font-size: 22px;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .menu-dropdown li:hover .icon {
            transform: scale(1.2) rotate(-10deg);
        }

        .menu-dropdown li .text {
            z-index: 1;
        }

        /* خط فاصل */
        .menu-dropdown .divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            margin: 6px 16px;
        }

        /* ========== مؤشر دائري حول الزر ========== */
        .pulse-ring {
            position: absolute;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 2px solid rgba(255, 107, 107, 0.2);
            animation: pulse-ring 2s ease-in-out infinite;
            pointer-events: none;
            top: 28px;
            right: -2px;
        }

        .menu-btn.active ~ .pulse-ring {
            opacity: 0;
        }

        @keyframes pulse-ring {
            0%, 100% {
                transform: scale(1);
                opacity: 0.6;
            }
            50% {
                transform: scale(1.3);
                opacity: 0;
            }
        }

        /* ========== نص توضيحي ========== */
        .status-text {
            color: rgba(255, 255, 255, 0.4);
            font-size: 14px;
            font-weight: 300;
            letter-spacing: 2px;
            transition: all 0.4s ease;
            margin-top: 10px;
        }

        .status-text.active {
            color: rgba(255, 107, 107, 0.8);
            letter-spacing: 3px;
        }

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
}

.logoimg
{
    width:200px;
    height:150px;
    margin-top:10px;
}

.logoimg img
{
    width:250px;
    height:150px; 
}


/* قائمة التصفح لشاشات الكمبيوتر */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
      display: flex;
            align-items: center;
          
            border: 1px solid #e0e0e0;
            border-radius: 50px; /* حواف دائرية بالكامل لشكل عصري */
          
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box input {
     padding-right:10px;
     flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            color: #333;
            background: transparent;
    border: 2px solid #e0e0e0
            padding: 10px 0;
    width: 200px;
    transition: var(--transition-smooth);
}


.search-box input:focus {
    width: 250px;
    border-color: var(--primary-red);
}

.search-box i {
    position: absolute;
    right: 12px;
    color: #888;
}

.search-button {
            background-color: #54000a;
            color: white;
            border: none;
            outline: none;
            margin-left:11px;
            margin-top:3px;
            margin-bottom:3px;
            padding: 10px 4px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px; /* مسافة بين الأيقونة والنص */
            transition: background-color 0.2s ease, transform 0.1s ease;
        }

      
      

        /* تأثير خفيف عند النقر على الزر */
        .search-button:active {
            transform: scale(0.98);
        }

        /* أيقونة البحث */
        .search-button i {
            font-size: 14px;
        }

.cart-btn {
    font-size: 24px;
    color: var(--dark-text);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -8px;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* ===== Dropdown للشاشات الكبيرة (hover) ===== */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* تصحيح ارتفاع كلمة المكياج لتكون مثل بقية الكلمات */
#makeupLink {
    display: inline-block !important;
    padding: 5px 0 !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid #eee;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #54000a;
}

.arrow-icon {
    display: none; /* مخفي افتراضيًا */
    font-size: 14px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.2s;
    user-select: none;
}

.arrow-icon:hover {
    background: #f0f0f0;
}



/* ==========================================================================
   5. البانر الرئيسي (Hero Section)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

/* كل سلايد */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: all 0.9s ease;
}

/* السلايد النشط */
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
   
}


@keyframes kenburns {
    0% {
        transform: scale(1) translateX(0px);
    }
    50% {
        transform: scale(1.08) translateX(-10px);
    }
    100% {
        transform: scale(1.12) translateX(10px);
    }
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease-in-out;
    z-index: 1;
     animation: kenburns 6s ease-in-out infinite alternate;
}


/* النص فوق الجميع */
.hero-content {
    position: relative;
    z-index: 3;
}

/* طبقة التظليل */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(84,0,10,0.45));
     z-index: 2;
}

/* المحتوى */
.hero-content {
    position: relative;
    z-index: 5;
    color: #fff;
    max-width: 600px;
    padding: 0 8%;
    top: 50%;
    transform: translateY(-50%);
}

/* النصوص */
.hero-content h1 {
    font-size: 46px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* النقاط */
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    width: 14px;
    height: 14px;
    background: #fff;
    transform: scale(1.2);
}

.hero-section{
    touch-action: pan-y;
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(168,0,21,0.35);
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-3px);
}

.section-title {
    text-align: center;
    font-size: 30px;
    color: var(--dark-red);
    margin: 60px 0 35px;
    font-weight: 700;
    position: relative;
}

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

/* ==========================================================================
   6. قسم التصنيفات المميزة (Featured Categories)
   ========================================================================== */
.categories-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.categories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
}

.category-card {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.category-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
}

.category-card:hover .category-img {
    transform: scale(1.08);
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(168,0,21,0.15);
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 16px;
    margin-top: 12px;
    color: var(--dark-text);
    font-weight: 600;
}

/* ==========================================================================
   7. شريط الأكثر مبيعاً المطور (توسيط مغناطيسي لجميع الشاشات)
   ========================================================================== */
.products-section {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-wrapper {
    width: 100%;
    padding: 30px 0;
    overflow: hidden;
}

.products-track {
    display: flex;
}

/* كرت المنتج بتأثير التركيز الدقيق */
.product-card {
    background-color: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-border);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    
    /* تأثير التصغير والشفافية للكروت الجانبية */
    transform: scale(0.90);
    opacity: 0.5;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

/* الكرت الموسط النشط تلقائياً من المكتبة */
.product-card.swiper-slide-active {
    transform: scale(1) !important;
    opacity: 1 !important;
    box-shadow: 0 12px 30px rgba(168,0,21,0.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
    z-index: 5;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    color: #aaa;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img-holder {
    height: 280px;
    overflow: hidden;
    background: #fafafa;
}

.product-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.prod-cat {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.prod-title {
    font-size: 16px;
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 15px;
}

.price-box {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.price-new {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 18px;
}

.price-old {
    color: #bbb;
    text-decoration: line-through;
    font-size: 14px;
}

.add-to-cart-action {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 0;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.add-to-cart-action:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-right { right: -20px; }
.arrow-left { left: -20px; }


/* ==========================================================================
   8. الفوتر الاحترافي (Footer)
   ========================================================================== */
.main-footer {
    background-color: #f5b8bf;
    color: #a72f35;
    padding: 60px 5% 25px;
      font-weight:900;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-col h3 {
    font-size: 28px;
    margin-bottom: 18px;
    color: var(--white);
    font-weight: 700;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.7;

    width:110%;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #000;
    text-decoration: none;
    opacity: 0.8;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--soft-pink);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 24px;
}

.social-links a {
    color:#000;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-4px);
     color: var(--soft-pink);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    opacity: 0.65;
}

.footer-bottom  a{
    color: black;
    font-weight:900;
}


.testimonials {
    padding: 80px 0;
    direction: rtl;
    overflow: hidden; /* لمنع ظهور شريط التمرير الأفقي للموقع */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background-color: rgba(255, 153, 0, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.testimonials-header h2 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.testimonials-header p {
    color: var(--text-muted);
    font-size: 20px;
    font-weight:900;
    max-width: 600px;
    margin: 0 auto;
}

/* Container of the slider */
.testimonial-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    cursor: grab; /* شكل الماوس يوحي بإمكانية السحب */
    user-select: none; /* منع تحديد النصوص أثناء السحب */
   mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
  webkit-mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.testimonial-slider:active {
    cursor: grabbing;
}

/* The Track that holds cards */
.testimonial-track {
    display: flex;
    gap: var(--gap);
    width: max-content;
    will-change: transform;
}

/* Individual Card Design */
.testimonial-card {
   background-color: #f5b8bf;
    width: 350px; /* عرض الكارت الثابت */
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    flex-shrink: 0; /* منع الكروت من الانضغاط */
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease;
    color: #a72f35;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.customer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.customer img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee; /* افتراضي حتى تضع الصور */
}

.customer h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-main);
}

.customer span {
    font-size: 13px;
    color: var(--text-muted);
}

.stars {
    color: var(--primary-color);
    font-size: 18px;
    letter-spacing: 2px;
   color: #f9c724;
}

.testimonial-card p {
    margin: 0;
    font-size: 15px;
    color: #a72f35;
    line-height: 1.6;
   
}
   
.footer_logo
{

     width: 250px;
  height:200px;
    
}

/* ==========================================================================
   9. خاص بصفحة عرض المنتجات 
   ========================================================================== */
  .container {
     max-width: 1300px;
      margin-top: 10px;
        }

        /* ===== الهيدر مع السلة ===== */
        .header-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
        }

        .page-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #666;
            flex-wrap: wrap;
        }

        .page-header a {
            color: #666;
            text-decoration: none;
            transition: color 0.2s;
        }

        .page-header a:hover {
            color: #c0392b;
        }

        .page-header .separator {
            color: #ccc;
        }

        .page-header .current {
            font-weight: 600;
            color: #1a1a1a;
        }

        /* ===== أيقونة السلة ===== */
        .cart-icon-wrapper {
            position: relative;
            display: inline-block;
            cursor: pointer;
            background: #fff;
            padding: 10px 16px;
            border-radius: 50px;
            border: 1px solid #e8e3db;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
            text-decoration: none;
            color: #1a1a1a;
        }

        .cart-icon-wrapper:hover {
            border-color: #c0392b;
            box-shadow: 0 4px 20px rgba(192, 57, 43, 0.1);
        }

        .cart-icon-wrapper i {
            font-size: 22px;
        }

        .cart-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #c0392b;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            min-width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #f7f5f0;
            transition: all 0.3s ease;
        }

        .cart-badge.empty {
            background: #ccc;
        }

        .cart-badge.pop {
            animation: pop 0.3s ease;
        }

        @keyframes pop {
            0% { transform: scale(1); }
            50% { transform: scale(1.4); }
            100% { transform: scale(1); }
        }

        /* ===== إشعارات ===== */
        .notification {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            padding: 16px 28px;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 500;
            z-index: 9999;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            max-width: 90%;
            text-align: center;
            animation: slideUp 0.4s ease;
            direction: rtl;
        }

        .notification.success {
            background: #54000a;
            color: #fff;
        }

        .notification.warning {
            background: #d4a017;
            color: #fff;
        }

        .notification.info {
            background: #2c6b9e;
            color: #fff;
        }

        .notification.error {
            background: #c0392b;
            color: #fff;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateX(-50%) translateY(30px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        @keyframes slideDown {
            from { opacity: 1; transform: translateX(-50%) translateY(0); }
            to { opacity: 0; transform: translateX(-50%) translateY(30px); }
        }

        /* ===== باقي التنسيقات ===== */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 28px;
            border-bottom: 8px solid #54000a;
            border-radius:5px;
            padding-bottom: 18px;
        }

        .section-title-wrapper h1 {
            font-size: 32px;
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: -0.5px;
        }

        .section-title-wrapper .sub {
            font-size: 15px;
            color: #888;
            margin-top: 2px;
        }

        .filter-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #fff;
            padding: 6px 16px 6px 6px;
            border-radius: 50px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #e8e3db;
        }

        .filter-wrapper i {
            color: #888;
            font-size: 16px;
            background: #f5f3ef;
            padding: 8px 12px;
            border-radius: 40px;
        }

        .filter-wrapper select {
            border: none;
            background: transparent;
            font-size: 15px;
            font-weight: 500;
            color: #1a1a1a;
            outline: none;
            cursor: pointer;
            padding: 8px 4px;
            min-width: 170px;
            font-family: inherit;
        }

        .filter-wrapper select option {
            padding: 8px;
            font-weight: 400;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 28px 22px;
            min-height: 200px;
        }

        .products-card {
            background: #ffffff;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
            transition: transform 0.25s ease, box-shadow 0.3s ease;
            border: 1px solid #f0ece6;
            display: flex;
            flex-direction: column;
        }

        .products-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
            border-color: #ddd8d0;
        }

        .products-image {
            width: 100%;
            aspect-ratio: 1 / 1;
            background: #f8f6f2;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .products-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .products-card:hover .products-image img {
            transform: scale(1.04);
        }

        .products-badge {
            position: absolute;
            top: 14px;
            right: 14px;
            background: #c0392b;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 14px;
            border-radius: 30px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .products-badge.bestseller {
            background: #2d7d46;
        }

        .products-badge.new {
            background: #2c6b9e;
        }

        .products-info {
            padding: 16px 18px 18px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .products-brand {
            font-size: 13px;
            font-weight: 700;
            color: #c0392b;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            margin-bottom: 2px;
        }

        .products-name {
            font-size: 15px;
            font-weight: 500;
            color: #1a1a1a;
            line-height: 1.4;
            min-height: 42px;
            margin-bottom: 8px;
        }

        .products-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 4px 0 12px;
            flex-wrap: wrap;
            gap: 6px;
        }

        .products-price {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a1a;
        }

        .products-price .currency {
            font-size: 14px;
            font-weight: 400;
            color: #888;
            margin-left: 2px;
        }

        .products-price .old-price {
            font-size: 15px;
            font-weight: 400;
            color: #aaa;
            text-decoration: line-through;
            margin-right: 8px;
        }

        .products-rating {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            font-weight: 600;
            color: #333;
        }

        .products-rating i {
            color: #f5b342;
            font-size: 13px;
        }

        .products-rating .count {
            font-weight: 400;
            color: #999;
            font-size: 12px;
            margin-right: 2px;
        }

        .add-to-cart-btn {
            background: #a72f35;
            color: #fff;
            border: none;
            padding: 13px 0;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            margin-top: 6px;
            width: 100%;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-family: inherit;
        }

        .add-to-cart-btn:hover:not(:disabled) {
            background: #333;
            transform: scale(1.02);
        }

        .add-to-cart-btn:active:not(:disabled) {
            transform: scale(0.97);
        }

        .add-to-cart-btn i {
            font-size: 15px;
        }

        .add-to-cart-btn.in-cart {
            background: #1a1a1a;
            cursor: default;
        }

        .add-to-cart-btn.in-cart:hover {
            background: #1a1a1a;
            transform: none;
        }

        .add-to-cart-btn:disabled {
            opacity: 0.8;
            cursor: not-allowed;
        }

        /* ===== Pagination ===== */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 40px 0 20px;
            flex-wrap: wrap;
        }

        .pagination a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            height: 44px;
            padding: 0 16px;
            background: #fff;
            color: #333;
            border: 1px solid #e8e3db;
            border-radius: 10px;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .pagination a:hover {
            background: #f5f3ef;
            border-color: #ccc;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        }

        .pagination a.active {
            background: #1a1a1a;
            color: #fff;
            border-color: #1a1a1a;
            cursor: default;
        }

        .pagination a.active:hover {
            transform: none;
            box-shadow: none;
        }

        .pagination a.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

        .pagination .info {
            color: #999;
            font-size: 14px;
            margin: 0 12px;
        }

        /* ===== نافذة السلة ===== */
        .cart-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .cart-modal.show {
            display: flex;
        }

        .cart-modal-content {
            background: #fff;
            border-radius: 24px;
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .cart-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0ece6;
        }

        .cart-modal-header h2 {
            font-size: 24px;
            color: #1a1a1a;
        }

        .cart-modal-header .close-btn {
            background: none;
            border: none;
            font-size: 28px;
            color: #999;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0 8px;
            text-decoration: none;
        }

        .cart-modal-header .close-btn:hover {
            color: #c0392b;
        }

        .cart-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 0;
            border-bottom: 1px solid #f5f3ef;
        }
      .a-cart
        {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 1px 0;
     width:100%;
         }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item img {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            object-fit: cover;
            background: #f8f6f2;
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-info .name {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 15px;
        }

        .cart-item-info .brand {
            font-size: 13px;
            color: #a72f35;
            font-weight: 700;
        }

        .cart-item-info .price {
            font-size: 16px;
            font-weight: 700;
            color: #1a1a1a;
            margin-top: 4px;
        }

        .cart-item-remove {
            background: none;
            border: none;
            color: #ccc;
            cursor: pointer;
            font-size: 18px;
            transition: color 0.2s;
            padding: 8px;
        }

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

        .cart-empty {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }

        .cart-empty i {
            font-size: 50px;
            display: block;
            margin-bottom: 15px;
            color: #ddd;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            margin-top: 10px;
            border-top: 2px solid #f0ece6;
            font-size: 18px;
            font-weight: 700;
        }

        .cart-total .total-price {
            color: #a72f35;
            font-size: 22px;
        }

        .checkout-btn {
            width: 100%;
            padding: 14px;
            background: #1a1a1a;
            color: #fff;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            margin-top: 10px;
            font-family: inherit;
        }

        .checkout-btn:hover {
            background: #333;
        }

        .clear-cart-btn {
            width: 100%;
            padding: 12px;
            background: transparent;
            color: #a72f35;
            border: 1px solid #a72f35;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 8px;
            font-family: inherit;
        }

        .clear-cart-btn:hover {
            background: #a72f35;
            color: #fff;
        }


/* ==========================================================================
   10. خاص بصفحة عرض تفاصيل المنتج
   ========================================================================== */

.stars2 {
  position: relative;
  border: 2px solid transparent;
  height: 40px;
  padding: 0 30px;
  background-color: #ef233c;
  color: #FFF;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 40px;
  -webkit-transition: 0.2s all;
  transition: 0.2s all;
}

    a{color:inherit;text-decoration:none}
    img{max-width:100%;display:block}


    .topbar{
      background:rgba(255,255,255,.78);
      backdrop-filter:blur(10px);
      border:1px solid rgba(255,255,255,.65);
      border-radius:999px;
      padding:12px 18px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      box-shadow:var(--shadow);
      margin-bottom:20px;
    }

    .brand{display:flex;align-items:center;gap:10px;font-weight:800}
    .brand i{color:var(--primary);font-size:22px}

    .top-actions{
      display:flex;align-items:center;gap:10px;flex-wrap:wrap;
      color:var(--muted);font-size:14px;
    }
    .top-actions span{
      display:flex;align-items:center;gap:6px;
      background:#fff;padding:8px 12px;border-radius:999px;border:1px solid var(--line);
    }

    .product-hero{
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:22px;
      align-items:start;
        background-color:#fff;
        padding:10px;
         border-radius:10px;
    }

    .panel{
      background:var(--card);
      border:1px solid rgba(229,231,235,.8);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      overflow:hidden;
    }

    .gallery{padding:18px}

    .main-image{
      position:relative;
      border-radius:22px;
      background:linear-gradient(180deg,#fff,#fafafa);
      border:1px solid var(--line);
      height:560px;
      overflow:hidden;
      cursor:zoom-in;
      touch-action:none;
    }

    .main-image img{
      width:100%;
      height:100%;
      object-fit:contain;
      transition:transform .12s ease;
      transform-origin:center center;
      will-change:transform;
    }

    .badge-row{
      position:absolute;
      top:16px;
      right:16px;
      display:flex;
      gap:8px;
      z-index:4;
      flex-wrap:wrap;
    }

    .badge{
      background:rgba(255,255,255,.92);
      color:var(--text);
      border:1px solid rgba(229,231,235,.9);
      border-radius:999px;
      padding:7px 12px;
      font-size:12px;
      font-weight:700;
      box-shadow:0 8px 20px rgba(0,0,0,.06);
      display:flex;
      align-items:center;
      gap:6px;
    }

    .badge.hot{background:#a80015;color:#fff;border-color:transparent}

    .main-nav{
      position:absolute;
      top:50%;
      transform:translateY(-50%);
      width:48px;
      height:48px;
      border:none;
      border-radius:50%;
      background:rgba(255,255,255,.95);
      box-shadow:0 10px 24px rgba(0,0,0,.12);
      cursor:pointer;
      z-index:5;
      display:grid;
      place-items:center;
      color:#111;
      transition:.2s ease;
    }
    .main-nav:hover{background:#fff;color:var(--primary-dark)}
    .main-prev{right:16px}
    .main-next{left:16px}

    .thumbs-wrap{
      display:flex;
      align-items:center;
      gap:10px;
      margin-top:14px;
    }

    .thumb-nav{
      width:42px;
      height:92px;
      border:1px solid var(--line);
      border-radius:16px;
      background:#fff;
      cursor:pointer;
      flex:0 0 auto;
      display:grid;
      place-items:center;
      color:#444;
      transition:.2s ease;
    }

    .thumb-nav:hover{
      border-color:var(--primary);
      color:var(--primary-dark);
    }

    .thumbs-viewport{
      overflow:hidden;
      flex:1;
      border-radius:18px;
    }

    .thumbs{
      display:flex;
      gap:12px;
      overflow-x:auto;
      scroll-behavior:smooth;
      padding-bottom:2px;
      cursor:grab;
      user-select:none;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
      touch-action:pan-x;
    }
    .thumbs::-webkit-scrollbar{display:none}

    .thumb{
      border:1px solid var(--line);
      border-radius:16px;
      background:#fff;
      overflow:hidden;
      height:92px;
      width:92px;
      flex:0 0 auto;
      cursor:pointer;
      transition:.25s ease;
      padding:6px;
    }
    .thumb:hover,.thumb.active{
      border-color:var(--primary);
      transform:translateY(-2px);
      box-shadow:0 12px 24px rgba(239,43,117,.12);
    }
    .thumb img{width:100%;height:100%;object-fit:contain}

    .details{padding:26px}
    .breadcrumb{
      color:var(--muted);
      font-size:13px;
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      margin-bottom:14px;
    }

    .title{
      font-size:30px;
      line-height:1.35;
      font-weight:800;
      margin-bottom:10px;
      letter-spacing:-.2px;
    }

    .rating{
      display:flex;
      align-items:center;
      gap:10px;
      flex-wrap:wrap;
      margin-bottom:14px;
      color:var(--muted);
      font-size:14px;
    }

    .stars{color:#f5b301}

    .price-box{
      background:linear-gradient(135deg, rgba(239,43,117,.08), rgba(239,43,117,.03));
      border:1px solid rgba(239,43,117,.14);
      border-radius:22px;
      padding:18px;
      margin:18px 0;
    }

    .price-row{
      display:flex;
      align-items:end;
      justify-content:space-between;
      gap:12px;
      flex-wrap:wrap;
    }

    .price{
      font-size:38px;
      font-weight:800;
      color:var(--primary-dark);
      line-height:1;
    }

    .old-price{
      color:var(--muted);
      text-decoration:line-through;
      font-size:16px;
      margin-inline-start:10px;
      font-weight:600;
    }

    .offer{
      background:#fff;
      color:#16a34a;
      border:1px solid rgba(22,163,74,.16);
      padding:8px 12px;
      border-radius:999px;
      font-size:13px;
      font-weight:700;
      white-space:nowrap;
    }

    .quick-info{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:10px;
      margin:18px 0 20px;
    }

    .info-card{
      border:1px solid var(--line);
      border-radius:18px;
      padding:14px 16px;
      background:#fff;
    }

    .info-card .label{color:var(--muted);font-size:13px;margin-bottom:4px}
    .info-card .value{font-weight:700;font-size:15px}

    .cta-row{
      display:flex;
      gap:12px;
      margin:22px 0 16px;
      flex-wrap:wrap;
    }

    .btn{
      border:none;
      outline:none;
      border-radius:16px;
      padding:14px 18px;
      font-size:15px;
      font-weight:800;
      cursor:pointer;
      transition:.25s ease;
      flex:1;
      min-width:180px;
    }

    .btn-primary{
      background:linear-gradient(135deg,var(--primary),var(--primary-dark));
      color:#fff;
      box-shadow:0 14px 30px rgba(239,43,117,.24);
    }

    .btn-secondary{
      background:#fff;
      color:var(--text);
      border:1px solid var(--line);
    }

    .trust{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:10px;
      margin-top:16px;
    }

    .trust-item{
      border:1px solid var(--line);
      border-radius:16px;
      padding:12px;
      background:#fcfcfd;
      font-size:13px;
      color:var(--muted);
    }

    .trust-item strong{
      display:block;
      color:var(--text);
      margin-bottom:3px;
      font-size:14px;
    }

    .section{
      margin-top:22px;
     
    }

    .section-title{
      font-size:22px;
      font-weight:800;
      margin-bottom:14px;
    }

    .tabs{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      border-bottom:1px solid var(--line);
      margin-bottom:18px;
    }

    .tab{
      background:none;
      border:none;
      padding:12px 16px;
      font-weight:800;
      color:var(--muted);
      cursor:pointer;
      border-bottom:2px solid transparent;
      margin-bottom:-1px;
    }

    .tab.active{
      color:var(--primary-dark);
      border-bottom-color:var(--primary-dark);
    }

    .content-grid{
      display:grid;
      grid-template-columns:1.05fr .95fr;
      gap:20px;
    }

    .specs{
      border:1px solid var(--line);
      border-radius:18px;
      overflow:hidden;
    }

    .spec-row{
      display:flex;
      justify-content:space-between;
      gap:12px;
      padding:14px 16px;
      border-bottom:1px solid var(--line);
      font-size:14px;
    }

    .spec-row:last-child{border-bottom:none}
    .spec-row span:first-child{color:var(--muted)}
    .spec-row span:last-child{font-weight:700}

    .desc{
      color:#374151;
      font-size:15px;
    }

    .features{
      margin-top:14px;
      display:grid;
      gap:10px;
    }

    .feature{
      display:flex;
      gap:10px;
      align-items:flex-start;
      border:1px solid var(--line);
      border-radius:16px;
      padding:12px 14px;
      background:#fff;
    }

    .feature i{color:var(--primary-dark);margin-top:4px}

    .related{
      margin-top:22px;
      margin-bottom:50px;
    }

    .products-grid{
      display:grid;
      grid-template-columns:repeat(4,1fr);
      gap:16px;
    }

    .card{
      border:1px solid var(--line);
      border-radius:20px;
      overflow:hidden;
      background:#fff;
      transition:.25s ease;
      position:relative;
    }

    .card:hover{
      transform:translateY(-4px);
      box-shadow:0 16px 28px rgba(15,23,42,.08);
    }

    .fav-btn{
      position:absolute;
      top:12px;
      left:12px;
      z-index:2;
      width:38px;
      height:38px;
      border:none;
      border-radius:50%;
      background:rgba(255,255,255,.95);
      box-shadow:0 10px 24px rgba(0,0,0,.12);
      cursor:pointer;
      color:#ef4444;
      display:grid;
      place-items:center;
    }

    .card-img{
      background:#fafafa;
      height:200px;
      padding:12px;
    }

    .card-img img{width:100%;height:100%;object-fit:contain}

    .card-body{padding:14px}
    .card-cat{font-size:12px;color:var(--muted);margin-bottom:6px}
    .card-title{
      font-size:14px;
      font-weight:800;
      line-height:1.5;
      min-height:42px;
      margin-bottom:8px;
    }

    .card-footer{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
    }

    .card-price{
      color:var(--primary-dark);
      font-weight:800;
      font-size:16px;
    }
.details
{
    background-color: white;
    padding:10px;
     border-radius: 10px;
}

/* ==========================================================================
   11. خاص بشعار واتس أب
   ========================================================================== */
  .whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: block;
  }

  .whatsapp-float img {
    display: block;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
  }

  /* ظهور متدرج */
  .whatsapp-float {
    animation: fadeIn 0.6s ease-out;
  }

  @keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* الحركة المتكاملة مع نزول سلس */
  @keyframes liftRingDrop {
    /* 1. يرتفع بسلاسة (0%-25%) */
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-18px) rotate(0deg); }
    
    /* 2. يهتز في الأعلى (25%-65%) */
    35% { transform: translateY(-18px) rotate(-5deg); }
    45% { transform: translateY(-18px) rotate(5deg); }
    55% { transform: translateY(-18px) rotate(-4deg); }
    65% { transform: translateY(-18px) rotate(4deg); }
    
    /* 3. ينزل بسلاسة وتدريجية (65%-100%) */
    75% { transform: translateY(-12px) rotate(2deg); }
    85% { transform: translateY(-6px) rotate(0deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }

  /* نبضة أمامية */
  @keyframes frontRipple {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
  }

  /* عند إضافة كلاس active يتم تشغيل الحركات */
  .whatsapp-float.active {
    animation: liftRingDrop 1.8s ease forwards;
  }

  .whatsapp-float.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    transform: translate(-50%, -50%) scale(0.8);
    animation: frontRipple 1.8s ease forwards;
    pointer-events: none;
    z-index: -1;
  }

  .whatsapp-float:hover {
    transform: scale(1.1) !important;
    animation-play-state: paused !important;
  }

  .whatsapp-float:hover img {
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
  }

  @media (max-width: 600px) {
    .whatsapp-float {
      bottom: 20px;
      right: 20px;
    }
    .whatsapp-float img {
      width: 50px;
      height: 50px;
    }
  }

.ulicon2{
    
   
   bottom: -7px;
     left: -360px;
        width: 0px;
    transform: translate(-50%,-50%);
    margin: 0;
    padding: 0;
    display: flex;
   
}

.ulicon2 li{
    
    list-style: none;
    margin: 0 10px;
    
}

.ulicon2 li:nth-child(1) a 
{
    
    font-size: 25px;
   background:#3b5999;
  padding-top: 6px;
    transition: .5s;
}

.ulicon2 li:nth-child(2) a 
{
    
    font-size: 25px;
   background:#0088cc;
  padding-top: 6px;
    transition: .5s;
}

.ulicon2 li:nth-child(3) a 
{
    
    font-size: 25px;
   background:  #f9c724;
  padding-top: 6px;
    transition: .5s;
}

.ulicon2 li:nth-child(4) a
{
    
    font-size: 25px;
   background:  #25D366;
  padding-top: 6px;
    transition: .5s;
}

.ulicon2 li:nth-child(5) a 
{
    
    font-size: 25px;
   background:  #000;
  padding-top: 6px;
    transition: .5s;
}
.ulicon2 li a 
{
    
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    background: #fff;
    text-align: center;
    border-radius: 30%;
    transform: perspective(1000px)  translate(0,0);
    transition: .5s;
    
}

.ulicon2 li a:hover
{
    
    transform: perspective(1000px) rotate(30deg) skew(2deg) translate(2px,-2px);
    box-shadow: 5px 5px 10px rgba(0,0,0,.5);
}

.ulicon2 li a .fa-brands
{
    
   color: #fff;
}



/* ==========================================================================
   12. خاص بعرض المنتجات الأكثر مبيعا في صفحة index
   ========================================================================== */


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

  .carousel-container {
            position: relative;
            width: 100%;
            max-width: 1200px;
            height: 480px;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
         right:2%;
        }

        /* منطقة المنتجات */
        .carousel-track {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: grab;
        }

        .carousel-track:active {
            cursor: grabbing;
        }

        /* كرت المنتج */
        .product-card {
            position: absolute;
            width: 280px;
            height: 400px;
            background: #fff;
            border: 1px solid #eef0f6;
            border-radius: 24px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center; /* توزيع العناصر بالمنتصف عمودياً */
            text-align: center;
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, z-index 0.4s ease, box-shadow 0.3s;
            opacity: 0;
            pointer-events: none;
        }

        /* حاوية الصورة لضمان عدم خروجها واحتوائها بالكامل */
        .product-image-wrapper {
            width: 100%;
            height: 220px; /* مساحة ثابتة ومحددة للصورة داخل الكرت */
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            overflow: hidden;
        }

        /* ضبط الصورة لتتكيف مهما كان حجمها الأصلي كبيراً */
        .product-card img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain; /* يضمن احتواء الصورة بالكامل دون قص أو تشويه */
        }

        /* الصنف (القسم) */
        .product-category {
            font-size: 0.85rem;
            color: var(--category-color);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            font-weight: 600;
        }

        /* اسم المنتج */
        .product-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #1a1a2e;
            line-height: 1.4;
        }

        /* توزيع وضعيات الكروت ثلاثية الأبعاد */
        .product-card.active {
            opacity: 1;
            z-index: 3;
            transform: translateX(0) scale(1);
            pointer-events: auto;
            box-shadow: 0 20px 40px rgba(0,0,0,0.06);
        }

        .product-card.prev {
            opacity: 0.4;
            z-index: 2;
            transform: translateX(220px) scale(0.85);
            pointer-events: auto;
        }

        .product-card.next {
            opacity: 0.4;
            z-index: 2;
            transform: translateX(-220px) scale(0.85);
            pointer-events: auto;
        }

        /* أزرار الأسهم الدائرية الرفيعة */
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            width: 50px;
            height: 50px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
        }

        .nav-btn::before {
            content: '';
            width: 14px;
            height: 14px;
            border-top: 3px solid var(--primary-color);
            border-right: 3px solid var(--primary-color);
            display: inline-block;
        }

        .nav-btn.right-btn { right: 8%; }
        .nav-btn.right-btn::before { transform: rotate(45deg); }

        .nav-btn.left-btn { left: 8%; }
        .nav-btn.left-btn::before { transform: rotate(-135deg); }

        /* ===================================================
           شاشات الهواتف والأجهزة الصغيرة (Responsive)
        ====================================================== */
     
main{
    width: min(1200px, 90vw);
    margin: auto;
}
.slider{
    width: 100%;
    height: var(--height);
    overflow: hidden;
     padding-bottom:300px;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
}
.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}
.slider .list .item{
   width: 130px;
     height:200px;
    position: absolute;
    left: 100%;
    animation: autoRun 40s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (40s / var(--quantity)) * (var(--position) - 1) - 40s)!important;
}
.slider .list .item img{
      width:100%;
    height:100%;
}
@keyframes autoRun{
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1);
    }
}
.slider:hover .item{
    animation-play-state: paused!important;
    filter: grayscale(1);
}
.slider .item:hover{
    filter: grayscale(0);
}
.slider[reverse="true"] .item{
    animation: reversePlay 10s linear infinite;
}
@keyframes reversePlay{
    from{
        left: calc(var(--width) * -1);
    }to{
        left: 100%;
    }
}
/* ==========================================================================
   13. شاشات الأجهزة اللوحية والكمبيوتر الكبيرة (الماك والبي سي والتابلت)
   ========================================================================== */
@media (min-width: 768px) {
    /* ضبط عرض الكرت والبادئة للكمبيوتر ليبقى كرت واحد ثابت بالمنتصف تماماً */
   .product-card {
        min-width: 320px; /* العرض المثالي لكروت الكمبيوتر */
    }
    
    .products-track {
        /* تحديث الحساب ليكون الكرت في منتصف الشاشة بدقة على شاشات اللابتوب والـ Desktop */
        padding: 0 calc(50% - (320px / 2)); 
    }
    
       .dropdown-wrapper:hover .dropdown-menu {
        display: block;
    }
    
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
        justify-items: center;
    }
    .product-hero,.content-grid{grid-template-columns:1fr}
      .products-grid{grid-template-columns:repeat(2,1fr)}
      .main-image{height:460px}
}

/* ==========================================================================
   10. شاشات الهواتف الذكية وتفعيل قائمة الهامبرغر المنسدلة
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
.navbar
    {
        height:75px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        gap: 20px;
        text-align: center;
        z-index: 999;
        border-top: 1px solid var(--gray-border);
    }
    
     .logoimg
{
    margin-right: -40px;
    width:130px;
    height:120px;
}

    .logoimg img
{
    width:250px;
    height:120px;
   
}
    .cart-btn {
 right: 5px;
}
    .openmenu
    {
        position:absolute;
        left:5px;
        bottom:25px;
        width:25px;
    }

    .nav-menu.active {
        display: flex;
        animation: fadeInDown 0.3s ease forwards;
    }

   .search-box {
       position: relative;
       right:10px;
       padding-right:10px;
       
      height:30px;
         
    }

    .search-box input {
    
        
   font-size:12px;
    width:120px;
     
}

    .search-box input:focus {
    width: 120px;
    border-color: var(--primary-red);
}
    .search-button {
            
            font-size: 10px;
        height:10px;
            font-weight: 600;
          
        }
    
    .arrow-icon {
        display: inline-block; /* يظهر فقط في الهاتف */
    }

    .dropdown-wrapper {
        display: block;
        width: 100%;
    }

    .dropdown-toggle-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    #makeupLink {
        display: inline-block !important;
        padding: 5px 0 !important;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        border-radius: 8px;
        margin-top: 8px;
        padding: 5px 0;
        display: none !important; /* مخفي افتراضيًا */
        width: 100%;
    }

    .dropdown-menu a {
        text-align: center;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    /* عند إضافة class "open" يظهر dropdown */
    .dropdown-menu.open {
        display: block !important;
    }

    /* عكس اتجاه السهم للأسفل */
    .arrow-icon.down {
        transform: rotate(360deg);
    }

    .hero-section {
        height: 50vh;
        padding: 0 5%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 15px;
    }
    
    .arrow-right { right: -5px; }
    .arrow-left { left: -5px; }
    
    .footer_logo
{

  width:100%;
  height:80%;
    
}

.footer-col p {
   
     width: 100%; 
}
    /* ==========================================================================
   1. خاص بصفحة عرض المنتجات
   ========================================================================== */
   
                .products-grid {
                gap: 18px;
            }
            .section-header {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }
            .filter-wrapper {
                width: 100%;
                justify-content: space-between;
            }
            .filter-wrapper select {
                flex: 1;
                min-width: 120px;
            }
            .section-title-wrapper h1 {
                font-size: 26px;
            }
            .products-name {
                font-size: 14px;
                min-height: 36px;
            }
            .products-price {
                font-size: 19px;
            }
            .header-wrapper {
                flex-direction: column;
                align-items: stretch;
            }
            .pagination a {
                min-width: 38px;
                height: 38px;
                padding: 0 12px;
                font-size: 14px;
            }
    
    /* ==========================================================================
   2. خاص بصفحة عرض تفاصيل المنتج
   ========================================================================== */
    .topbar,.price-row,.cta-row{flex-direction:column;align-items:stretch}
      .title{font-size:24px}
      .main-image{height:360px}
      .btn{width:100%}
      .quick-info,.trust{grid-template-columns:1fr}
      .thumb{width:78px;height:78px}
      .thumb-nav{height:78px}
      .main-nav{width:42px;height:42px}
    
    
      /* ==========================================================================
   3.  خاص بعرض المنتجات الأكثر مبيعا في صفحة index
   ========================================================================== */
        .carousel-container {
                height: 420px;
            }
.carousel-container {
          
               right:0%;
      
        }
            .product-card {
                width: 230px;
                height: 340px;
                padding: 16px;
            }

            .product-image-wrapper {
                height: 170px;
                margin-bottom: 15px;
            }

            .product-card.prev {
                transform: translateX(80px) scale(0.8);
                opacity: 0.25;
            }

            .product-card.next {
                transform: translateX(-80px) scale(0.8);
                opacity: 0.25;
            }

            .nav-btn.right-btn { right: 5px; }
            .nav-btn.left-btn { left: 5px; }
            
            .main-title { font-size: 1.5rem; }
            .subtitle { font-size: 0.95rem; }
            .product-title { font-size: 1rem; }
            
  .cta-btn {
    background-color:rgba(168,0,21,0.75);
    padding: 12px 25px;
   
}
    
}

 

 @media (max-width: 480px) {
           
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            .products-info {
                padding: 12px 12px 14px;
            }
            .products-name {
                font-size: 13px;
                min-height: 32px;
            }
            .products-price {
                font-size: 17px;
            }
            .add-to-cart-btn {
                font-size: 13px;
                padding: 11px 0;
            }
            .filter-wrapper {
                padding: 4px 12px 4px 4px;
            }
            .filter-wrapper select {
                font-size: 14px;
                min-width: 100px;
            }
            .cart-modal-content {
                padding: 20px;
                width: 95%;
            }
            .pagination a {
                min-width: 34px;
                height: 34px;
                padding: 0 10px;
                font-size: 13px;
            }
     
}
   
