/* 
* Salista Beauty Landing Page - Stylesheet
* ======================================== 
* Version: 2.0
* Last Update: 2025-03-21
*/

/* ================ المتغيرات الأساسية ================ */
:root {
    --primary-color: #e57965;
    --primary-light: #f9d8d2;
    --primary-dark: #c45a47;
    --secondary-color: #171614;
    --bg-color: #f8f2f0;
    --bg-section: #f8ebe6;
    --text-color: #171614;
    --light-text: #7a7a7a;
    --white: #ffffff;
    --gray: #e0e0e0;
    --gray-light: #f5f5f5;
    --border-color: #eeeeee;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    --box-shadow-hover: 0 8px 25px rgba(0,0,0,0.08);
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-family: 'Tajawal', sans-serif;
    --body-color: #f8f2f0;
    --accent-color: #ffd166;
    /* الخلفية الزخرفية - تم خفض الشفافية إلى 50% */
    --pattern-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23e57965' fill-opacity='0.04'%3E%3Cpath d='M0 20L20 0L40 20L20 40L0 20zM20 8.9L8.9 20L20 31.1L31.1 20L20 8.9z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ================ إعادة ضبط عامة ================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
    text-align: right;
    overflow-x: hidden;
    background-image: var(--pattern-bg);
    background-size: 30px 30px;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* ================ التنسيق العام ================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* منع العناصر العائمة من الخروج */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 38px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title .subtitle {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 15px;
    display: block;
    font-weight: 500;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ================ خصائص Flexbox والأدوات المساعدة ================ */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ================ تأثيرات الحركة ================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* ================ تصميم الأزرار المحسّن ================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* جعل الزوايا دائرية للإطلالة العصرية */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* تحسين حركة التحويل */
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* تأثير اللمعان عند التحويم */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateY(-100%);
    opacity: 0;
    transition: all 0.6s ease-out;
    z-index: -2;
}

.btn:hover::after {
    transform: rotate(30deg) translateY(100%);
    opacity: 1;
}

/* تأثير انتشار لون الخلفية */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    border-radius: 50px;
}

/* الزر الرئيسي - المظهر الأساسي والتحويم */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(229, 121, 101, 0.25);
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(229, 121, 101, 0.4);
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
    z-index: -1;
    border-radius: 50px;
}

.btn-primary::before {
    background-color: var(--white);
}

.btn-primary:hover::before {
    width: 100%;
    right: auto;
    left: 0;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(229, 121, 101, 0.3);
}

/* الزر الثانوي - المظهر الأساسي والتحويم */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(23, 22, 20, 0.2);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 22, 20, 0.15);
}

.btn-secondary::before {
    background-color: var(--white);
}

.btn-secondary:hover::before {
    width: 100%;
    right: auto;
    left: 0;
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(23, 22, 20, 0.15);
}

/* زر الحدود - المظهر الأساسي والتحويم */
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(229, 121, 101, 0.15);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 121, 101, 0.3);
}

.btn-outline::before {
    background-color: var(--primary-color);
}

.btn-outline:hover::before {
    width: 100%;
    right: auto;
    left: 0;
}

.btn-outline:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(229, 121, 101, 0.2);
}

/* أحجام الأزرار */
.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 40px; /* زوايا أصغر للأزرار الصغيرة */
}

/* زر مع أيقونة */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-icon:hover i {
    transform: translateX(-5px);
}

/* اضافة تأثير نبض للأزرار المميزة */
.btn-pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 10px 30px rgba(229, 121, 101, 0.4); }
    100% { transform: scale(1); }
}

/* ================ تأثير تحميل الصفحة ================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid var(--gray);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ================ قسم البطل (Hero) - تصميم جديد ================ */
.hero {
    padding-top: 90px; /* للمسافة من الهيدر */
    position: relative;
    min-height: 95vh; /* أو 100vh لتغطية كاملة */
    display: flex; /* لإبقاء align-items فعالاً إذا احتجناه لاحقًا */
    align-items: center; /* لتوسيط المحتوى رأسيًا بشكل افتراضي */
    overflow: hidden;
    direction: rtl; /* مهم للحفاظ على اتجاه النص */

    /* --- الخلفية الرئيسية (صورة المنتجات) --- */
    background-image: url('../../images/hero-bg.png'); /* تأكد من المسار الصحيح */
    background-size: cover; /* تغطية كاملة للمساحة */
    background-position: center left; /* التركيز على الجزء الأيسر (المنتجات) */
    background-repeat: no-repeat;
    z-index: 0; /* ليكون أساس الطبقات */
}

/* النمط في الخلفية (تحت كل شيء) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0; /* يغطي كامل المساحة */
    background-image: var(--pattern-bg); /* تأكد من تعريف --pattern-bg */
    background-size: 30px 30px;
    opacity: 0.4; /* تقليل الشفافية قليلاً */
    pointer-events: none;
    z-index: 1; /* فوق الخلفية الأساسية */
}

/* --- الشعار الخفيف (على يسار المستخدم / يمين الشاشة) --- */
.hero-logo-overlay {
    position: absolute;
    top: 0;
    right: 0; /* تحديد الموقع على يمين الشاشة */
    bottom: 0;
    width: 35%; /* عرض منطقة الشعار (يمكن تعديله) */
    background-image: url('../../images/hero-logo-light.png'); /* تغيير إلى صورة الشعار */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right; /* عرض الجزء الأيمن (الشعار) */
    opacity: 0.1; /* شفافية خفيفة جدًا (يمكن تعديلها) */
    z-index: 2; /* فوق النمط والخلفية */
    pointer-events: none;
}

/* --- توهج خفيف في الخلفية --- */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(229, 121, 101, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* --- صندوق المحتوى (على يسار المستخدم / يمين الشاشة) --- */
.hero-content {
    position: absolute; /* تغيير إلى absolute */
    top: 50%;
    right: 5%; /* تحديد الموقع على يمين الشاشة (يسار المستخدم في RTL) */
    left: auto; /* إزالة التحديد السابق */
    transform: translateY(-50%);
    width: 45%; /* عرض الصندوق (يمكن تعديله) */
    max-width: 600px; /* حد أقصى للعرض */
    z-index: 3; /* أعلى طبقة */
    padding: 40px; /* زيادة المساحة الداخلية */
    /* --- خلفية شفافة --- */
    background-color: rgba(255, 255, 255, 0.70); /* زيادة التعتيم قليلاً */
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* تغيير الحد ليتناسب مع الموقع الجديد */
    border-right: 5px solid var(--primary-color);
    border-left: none; /* إزالة الحد السابق */
    text-align: right; /* الحفاظ على محاذاة النص */
    animation: fadeInRight 1.2s ease; /* تعديل الأنيميشن ليتناسب مع الموقع الجديد */
    backdrop-filter: blur(5px); /* إضافة تأثير تشويش خفيف */
}

/* إضافة تأثير الانتقال المناسب للموقع الجديد */
@keyframes fadeInRight {
    from { opacity: 0; transform: translate(50px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

/* تأثير الانتقال المناسب للموقع الجديد */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translate(-50px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

.hero h1 {
    font-size: 3.2rem; /* تعديل حجم الخط قليلاً */
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.2;
    position: relative;
    font-weight: 800;
}

/* إضافة خط مزخرف تحت العنوان */
.hero h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to left, var(--primary-color), transparent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px; /* زيادة المسافة قبل الأزرار */
    color: var(--text-color);
    line-height: 1.7;
}

/* --- تنسيق مجموعة الأزرار --- */
.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* زر اكتشفي المجموعة - الزر الرئيسي (معدل) */
.hero-btns .btn-discover {
    background: linear-gradient(135deg, var(--primary-color), #e06853); /* تدرج جميل للخلفية */
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px; /* حواف أكثر نعومة */
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none; /* إزالة الحدود */
    box-shadow: 0 10px 20px -8px rgba(229, 121, 101, 0.5); /* ظل محسن */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

/* إضافة تأثير طبقة توهج عند التحويم */
.hero-btns .btn-discover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

/* أيقونة للزر الرئيسي */
.hero-btns .btn-discover::after {
    content: "→";
    font-size: 22px;
    margin-right: 2px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* تأثير التحويم للزر الرئيسي */
.hero-btns .btn-discover:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #eb8674, var(--primary-dark)); /* تدرج مختلف عند التحويم */
    box-shadow: 0 15px 25px -10px rgba(229, 121, 101, 0.6);
}

.hero-btns .btn-discover:hover::before {
    transform: translateX(100%);
}

.hero-btns .btn-discover:hover::after {
    transform: translateX(5px);
}

/* تأثير النقر للزر الرئيسي */
.hero-btns .btn-discover:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(229, 121, 101, 0.5);
}

/* زر لماذا نحن - الزر الثانوي (معدل) */
.hero-btns .btn-why-us {
    background-color: rgba(255, 255, 255, 0.2); /* خلفية شفافة */
    color: var(--secondary-color);
    padding: 14px 30px;
    border-radius: 30px; /* حواف متناسقة مع الزر الأول */
    font-size: 18px;
    font-weight: 600;
    border: 2px solid rgba(23, 22, 20, 0.2); /* حدود شفافة */
    box-shadow: 0 8px 15px -8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1); /* انتقال سلس */
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* تأثير زجاجي */
}

/* إضافة تأثير تدرج عند التحويم */
.hero-btns .btn-why-us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(23, 22, 20, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* تأثير التحويم للزر الثانوي */
.hero-btns .btn-why-us:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 20px -8px rgba(23, 22, 20, 0.3);
}

.hero-btns .btn-why-us:hover::before {
    opacity: 1;
}

/* تأثير النقر للزر الثانوي */
.hero-btns .btn-why-us:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px -5px rgba(23, 22, 20, 0.2);
}

/* زر التمرير لأسفل - محسن */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), #e06853); /* تناسق مع الزر الرئيسي */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    z-index: 4; /* تأكد أنه فوق المحتوى */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(229, 121, 101, 0.4);
    font-size: 20px;
    overflow: hidden;
    border: none; /* إزالة الحدود */
}

/* إضافة تأثير دائري متحرك */
.scroll-down::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.5; }
}

/* تعديل الأنيميشن للزر */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

.scroll-down:hover {
    background: linear-gradient(135deg, #eb8674, var(--primary-dark)); /* تناسق مع الزر الرئيسي */
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 15px 25px -5px rgba(229, 121, 101, 0.5);
}

/* --- تعديلات التوافق مع الشاشات --- */

@media (max-width: 1200px) {
    .hero-content {
        width: 50%;
        right: 4%;
        padding: 35px;
    }
    .hero h1 { font-size: 3rem; }
    .hero-logo-overlay { width: 30%; opacity: 0.08; }
}

@media (max-width: 992px) {
    .hero-content {
        width: 60%;
        right: 3%;
        padding: 30px;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-logo-overlay { width: 25%; opacity: 0.06; }
    
    .hero-btns .btn-discover,
    .hero-btns .btn-why-us {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        background-position: 70% center; /* تحريك تركيز الخلفية قليلاً لليسار لإظهار المنتجات أكثر */
        display: flex; /* إعادة flex لتوسيط المحتوى */
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 85vh; /* تقليل الارتفاع قليلاً */
        padding-top: 70px; /* تقليل المسافة العلوية */
    }

    .hero-content {
        position: relative; /* العودة إلى الوضع النسبي */
        top: auto;
        right: auto;
        transform: none;
        width: 90%; /* عرض أكبر */
        max-width: 500px;
        margin: 20px auto; /* توسيط أفقي مع هوامش */
        padding: 30px 25px;
        background-color: rgba(255, 255, 255, 0.92); /* زيادة الوضوح قليلاً */
        border-right: none;
        border-top: 5px solid var(--primary-color); /* تغيير مكان الحد */
        animation: fadeInUp 1s ease; /* تغيير الأنيميشن */
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero h1 { 
        font-size: 2.2rem; 
        text-align: center;
    }
    
    .hero h1::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .hero p { 
        font-size: 1.1rem; 
        text-align: center;
    }
    
    /* إخفاء الشعار والنمط في الشاشات الصغيرة جدًا لتبسيط الواجهة */
    .hero-logo-overlay,
    .hero::before {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-btns .btn-discover,
    .hero-btns .btn-why-us {
        width: 80%;
        justify-content: center;
    }

    .scroll-down {
        bottom: 15px; /* تقريب زر التمرير */
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 25px 20px;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-btns .btn-discover,
    .hero-btns .btn-why-us {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* ============================================================================================================================================== */

/* ================ تأثير الفقاعات العائمة ================ */
.bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(229, 121, 101, 0.08);
    box-shadow: 0 0 15px rgba(229, 121, 101, 0.1);
    backdrop-filter: blur(1px);
    animation: bubbleFloat linear infinite;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================================================================================================================== */

/* ================ قسم العرض المحدود - تصميم عصري وجذاب ================ */
.limited-offer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); /* استخدام متغيرات الألوان */
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 15px 40px rgba(196, 90, 71, 0.25); /* ظل بنفس لون primary-dark مع شفافية */
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin: 30px 20px 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* النمط المميز للخلفية */
.limited-offer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23ffffff' fill-opacity='0.25'%3E%3Cpath d='M0 20L20 0L40 20L20 40L0 20zM20 8.9L8.9 20L20 31.1L31.1 20L20 8.9z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
    background-repeat: repeat;
    z-index: -1;
    opacity: 0.25;
    animation: backgroundMove 60s linear infinite;
    pointer-events: none; /* مهم: يسمح بالنقر "من خلال" هذه الطبقة */
}

/* تأثير انتقال الخلفية */
@keyframes backgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* إضافة طبقة توهج متحركة */
.limited-offer::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    animation: pulseGlow 5s ease-in-out infinite;
    pointer-events: none; /* مهم: يسمح بالنقر "من خلال" هذه الطبقة */
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* شارة العرض المحدود */
.limited-badge {
    position: absolute;
    top: 10px;
    right: -35px;
    background-color: var(--accent-color); /* استخدام لون accent */
    color: var(--secondary-color);
    padding: 5px 40px;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    position: relative;
    z-index: 2; /* تأكد من أن العناصر فوق التأثيرات */
}

.countdown-box {
    background: var(--white);
    color: var(--primary-color);
    min-width: 90px;
    padding: 15px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-8px);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(229, 121, 101, 0.1);
}

.countdown-box:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 12px 30px rgba(229, 121, 101, 0.2);
}

/* إضافة تأثير نبض للعناصر */
.countdown-box:nth-child(1) { animation: pulseSoft 2s infinite; }
.countdown-box:nth-child(2) { animation: pulseSoft 2s infinite 0.5s; }
.countdown-box:nth-child(3) { animation: pulseSoft 2s infinite 1s; }
.countdown-box:nth-child(4) { animation: pulseSoft 2s infinite 1.5s; }

@keyframes pulseSoft {
    0%, 100% { transform: translateY(-8px) scale(1); }
    50% { transform: translateY(-10px) scale(1.03); }
}

.countdown-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* تأثير وميض لأرقام العد التنازلي */
.countdown-value::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    left: 0;
    bottom: -5px;
    background-color: var(--primary-color);
    opacity: 0.5;
    border-radius: 3px;
}

.countdown-label {
    font-size: 16px;
    color: var(--secondary-color);
    margin-top: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.limited-title {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    font-weight: 900;
    display: inline-block;
    padding: 0 15px;
}

/* إضافة خط تحت العنوان */
.limited-title::after {
    content: "";
    position: absolute;
    height: 4px;
    width: 80px;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.limited-desc {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    line-height: 1.7;
    color: var(--white);
    font-weight: 400;
}

/* رسائل تحفيزية متبدلة */
.motivation-message {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 15px;
    height: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.motivation-message span {
    display: block;
    animation: messageRotate 6s ease-in-out infinite;
}

@keyframes messageRotate {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-100%); }
    40%, 55% { transform: translateY(-200%); }
    60%, 75% { transform: translateY(-300%); }
    80%, 95% { transform: translateY(-400%); }
    100% { transform: translateY(-500%); }
}

/* زر "استفيدي من العرض الآن" المحسن */
.limited-offer .btn.btn-outline {
    background: var(--accent-color); /* استخدام لون accent */
    color: var(--secondary-color);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5; /* تأكد من أن الزر فوق جميع العناصر */
    text-decoration: none;
    animation: buttonPulse 2s infinite;
    pointer-events: auto !important; /* تأكد أن الزر قابل للنقر */
}

/* طبقة لتأثير التوهج */
.limited-offer .btn.btn-outline:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-30deg);
    transition: all 0.75s ease;
    z-index: -1; /* تأكد من أن هذه الطبقة لا تمنع النقر على الزر */
}

/* تأثير حركة التوهج المستمرة */
@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 8px 25px rgba(255, 209, 102, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 15px 30px rgba(255, 209, 102, 0.7); }
    100% { transform: scale(1); box-shadow: 0 8px 25px rgba(255, 209, 102, 0.5); }
}

/* تأثير التحويم */
.limited-offer .btn.btn-outline:hover {
    transform: scale(1.07) translateY(-5px);
    background: var(--primary-color); /* تغيير للون الأساسي عند التحويم */
    color: var(--white);
    box-shadow: 0 15px 35px rgba(229, 121, 101, 0.5);
    border-color: transparent;
}

.limited-offer .btn.btn-outline:hover:before {
    left: 100%;
    transition: all 0.75s ease;
}

/* تأثير النقر */
.limited-offer .btn.btn-outline:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 5px 15px rgba(229, 121, 101, 0.5);
}

/* أيقونة السهم داخل الزر */
.limited-offer .btn.btn-outline::after {
    content: "→";
    font-size: 1.3em;
    margin-right: -5px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
}

.limited-offer .btn.btn-outline:hover::after {
    transform: translateX(5px);
}

/* إضافة مؤشر عدد العملاء الذين يشاهدون المنتج حالياً */
.live-visitors {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.live-visitors .dot {
    height: 8px;
    width: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* تحسين عرض الجوال */
@media (max-width: 768px) {
    .countdown-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .countdown-box {
        min-width: 70px;
        padding: 10px;
    }

    .countdown-value {
        font-size: 28px;
    }

    .limited-title {
        font-size: 26px;
    }

    .limited-desc {
        font-size: 16px;
    }

    .limited-offer .btn.btn-outline {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ============================================================================================================================================== */

/* ====================== قسم المميزات ====================== */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: featureAppear 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Staggered animation timing for each feature box */
.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }
.feature-box:nth-child(4) { animation-delay: 0.4s; }

@keyframes featureAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(229, 121, 101, 0.15);
}

/* Add subtle border glow effect on hover */
.feature-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

.feature-box:hover::after {
    border-color: var(--primary-color);
    animation: borderPulse 1.5s infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(229, 121, 101, 0.3); }
    50% { border-color: rgba(229, 121, 101, 0.8); }
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.5s ease;
    position: relative;
}

/* Icon animation on hover */
.feature-box:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.15); }
    50% { transform: scale(1.25) rotate(5deg); }
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.feature-box:hover .feature-title {
    color: var(--primary-color);
}

.feature-desc {
    color: var(--light-text);
    font-size: 1rem;
    transform: translateY(5px);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-desc {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================================================================================================== */

/* ================ قسم المنتجات - تصميم محسّن ================ */
.products {
    background-color: var(--bg-section); /* استخدام خلفية أفتح للقسم */
    position: relative;
    padding: 90px 0 100px; /* زيادة التباعد الداخلي */
    overflow: hidden;
    z-index: 1;
}

/* تحسين عرض القسم بالكامل */
.products .container {
    max-width: 1300px; /* زيادة العرض الأقصى للحاوية */
    width: 100%;
    padding: 0 25px;
    margin: 0 auto;
}

/* خلفية زخرفية خفيفة */
.products::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(229, 121, 101, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 85% 85%, rgba(229, 121, 101, 0.08) 0%, transparent 60%);
    z-index: -1;
}

/* زخرفة أنماط نقطية في الخلفية */
.products::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--pattern-bg); /* استخدام النمط من المتغيرات */
    opacity: 0.15;
    z-index: -1;
}

/* تنسيق صف المنتجات */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

/* تنسيق بطاقة المنتج */
.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(229, 121, 101, 0.15);
    border-color: rgba(229, 121, 101, 0.1);
}

/* صورة المنتج - تنسيق محسّن بنمط طولي جذاب */
.product-image {
    height: 380px; /* تعديل الارتفاع ليكون مناسباً لكرت المنتج */
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تغيير لتغطية الصورة كامل المساحة */
    object-position: center; /* تأكيد من توسيط الصورة */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05); /* تقليل حجم التكبير عند التحويم */
}

/* إضافة تنسيق للتأكد من عرض الصورة بشكل جيد في جميع الحالات */
@media (max-width: 768px) {
    .product-image {
        height: 280px; /* ارتفاع أقل للشاشات الصغيرة */
    }
}

/* تحسين تصميم أسعار المنتجات بشكل عصري وجذاب - تصميم أفقي */
.product-price {
    margin-top: auto;
    display: flex;
    flex-direction: row; /* تغيير لعرض العناصر بشكل أفقي */
    align-items: center; /* محاذاة العناصر عموديًا في المنتصف */
    justify-content: space-between; /* توزيع المساحة بين العناصر */
    gap: 12px;
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(249, 216, 210, 0.3), transparent);
    padding: 10px 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
}

/* تأثير خلفية متحركة */
.product-price::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(229, 121, 101, 0.1), transparent);
    z-index: 0;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover .product-price::before {
    transform: translateX(100%);
}

.current-price {
    font-size: 28px; /* حجم مناسب للعرض الأفقي */
    font-weight: 900; /* زيادة سمك الخط ليكون أكثر بروزًا */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
    font-family: 'Tajawal', sans-serif;
    transition: transform 0.3s ease;
}

/* تكبير السعر عند التحويم */
.product-card:hover .current-price {
    transform: scale(1.05);
}

/* رمز الريال السعودي المعدل */
.current-price::before {
    content: "﷼";
    margin-left: 4px;
    font-size: 24px;
    font-weight: 900; /* زيادة سمك الخط */
    color: var(--primary-dark);
}

.price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* منع التفاف العناصر */
    z-index: 1;
    position: relative;
}

.old-price {
    font-size: 18px;
    text-decoration: line-through;
    color: var(--light-text);
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0.7;
    font-weight: 700; /* زيادة سمك الخط */
}

.old-price::before {
    content: "﷼";
    margin-left: 2px;
    font-size: 16px;
    font-weight: 700; /* زيادة سمك الخط */
}

/* تصميم بول شو عصري لشارة الخصم */
.discount-badge {
    background: linear-gradient(135deg, #ff6b6b, var(--primary-color));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800; /* زيادة سمك الخط */
    box-shadow: 0 3px 8px rgba(229, 121, 101, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulseSlow 2s infinite;
}

@keyframes pulseSlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* إضافة تأثير وميض للشارة */
.discount-badge::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

/* تعديل تنسيق أزرار المنتج لتكون أسفل البطاقة */
.product-actions {
    display: flex;
    flex-direction: column; /* الاتجاه العمودي للأزرار */
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.add-to-cart-btn {
    width: 100%; /* جعل الزر يأخذ العرض الكامل */
    padding: 12px 20px;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(229, 121, 101, 0.25);
}

.wishlist-btn {
    align-self: center; /* توسيط زر المفضلة */
    margin-top: 5px;
}

/* معلومات المنتج - تحسين التنسيق */
.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary-color);
    line-height: 1.4;
    transition: color 0.3s ease;
    height: 50px; /* ارتفاع ثابت للعنوان */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* خاصية للتحكم بعدد الأسطر، حاليًا فقط مدعومة بواسطة -webkit */
    line-clamp: 2; /* للتوافقية المستقبلية مع المعايير القياسية */
    -webkit-box-orient: vertical;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* خاصية للتحكم بعدد الأسطر، حاليًا فقط مدعومة بواسطة -webkit */
    line-clamp: 3; /* للتوافقية المستقبلية مع المعايير القياسية */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 65px; /* ارتفاع ثابت للوصف */
}

/* ميزات المنتج - إضافة جديدة */
.product-features {
    margin-bottom: 15px;
}

.product-features ul {
    padding: 0;
    margin: 0;
}

.product-features li {
    font-size: 13px;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
}

.product-features li::before {
    content: "✓";
    color: var(--primary-color);
    margin-left: 8px;
    font-weight: bold;
    flex-shrink: 0;
}

/* أسعار المنتجات - تحسين العرض */
.product-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

/* رمز الريال السعودي الجديد */
.current-price::before {
    content: "﷼";
    margin-left: 4px;
    font-size: 20px;
    font-weight: 700;
}

.old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.old-price::before {
    content: "﷼";
    margin-left: 2px;
    font-size: 14px;
}

.discount-badge {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* شارة الهدية المجانية - إضافة جديدة */
.free-gift-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.free-gift-badge::before {
    content: "🎁";
    margin-left: 5px;
    font-size: 14px;
}

/* أزرار المنتج */
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 121, 101, 0.3);
}

.add-to-cart-btn i {
    font-size: 18px;
}

/* زر المفضلة */
.wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--light-text);
}

.wishlist-btn:hover {
    background-color: #ffebee;
    color: #e57373;
    transform: scale(1.1);
}

/* شارات متنوعة للمنتجات */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-badge.new {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.product-badge.sale {
    background-color: #ff6b6b;
    color: white;
}

.product-badge.out-of-stock {
    background-color: #aaa;
    color: white;
}

/* شارة التقييم - إضافة جديدة */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

.product-rating .count {
    font-size: 12px;
    color: var(--light-text);
/* التوافق مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .product-image {
        height: 400px; /* زيادة ارتفاع الصورة حتى في الشاشات الصغيرة لتبقى الصورة طويلة وواضحة */
    }
        height: 320px; /* حتى في الشاشات الصغيرة تبقى الصورة طويلة */
    }
    
    .product-title {
        font-size: 16px;
        height: 45px;
    }
    
    .product-description {
        font-size: 13px;
        height: 60px;
    }
}

/* ============================================================================================================================================== */

/* تحسين القوائم المنسدلة وأدوات الطلب - تصميم عصري ٢٠٢٥ */
.dropdown-menu {
    width: 100%;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 8px 0;
    border: none;
    background-color: #ffffff;
    transform-origin: top center;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dropdown-menu .dropdown-item {
    padding: 12px 18px;
    transition: all 0.25s ease;
    width: 100%;
    display: flex;
    align-items: center;
    text-align: right;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-menu .dropdown-item::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(229, 121, 101, 0.08);
    color: var(--primary-color);
    padding-right: 24px;
}

.dropdown-menu .dropdown-item:hover::before {
    transform: scaleY(1);
}

/* تحسين مظهر القوائم المتداخلة */
.nested-menu {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.nested-menu .menu-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nested-menu .menu-item:hover {
    background-color: rgba(229, 121, 101, 0.08);
    padding-right: 24px;
}

.nested-menu .menu-item:last-child {
    border-bottom: none;
}

/* تحسين عناصر العرض والطلب */
.products-filter-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.products-view-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* تحسين زر اختيار طريقة العرض */
.view-options-wrapper {
    display: flex;
    gap: 8px;
    background-color: #f8f8f8;
    padding: 4px;
    border-radius: 8px;
}

.view-option {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #888;
}

.view-option:hover {
    background-color: rgba(229, 121, 101, 0.15);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.view-option.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 121, 101, 0.3);
    transform: translateY(-2px);
}

/* === أزرار كمية المنتج وأوامر الشراء السريع - إضافة جديدة === */
.quantity-control {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 50px;
    padding: 3px;
    width: fit-content;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 15px 0;
    direction: ltr; /* ضبط اتجاه أزرار الكمية */
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(229, 121, 101, 0.3);
}

.quantity-input {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary-color);
    padding: 0 5px;
}

.quantity-input:focus {
    outline: none;
}

/* أزرار الطلب السريع */
.quick-order-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.quick-add-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(229, 121, 101, 0.25);
    position: relative;
    overflow: hidden;
}

.quick-add-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateX(-100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.quick-add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(229, 121, 101, 0.4);
}

.quick-add-btn:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.quick-add-btn i {
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.quick-add-btn span {
    position: relative;
    z-index: 2;
}

/* زر الشراء بنقرة واحدة - مميز */
.one-click-order {
    padding: 10px 16px;
    background: linear-gradient(135deg, #32a852, #268c41);
    color: white;
    border: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(50, 168, 82, 0.25);
    position: relative;
    overflow: hidden;
}

.one-click-order::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateX(-100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.one-click-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(50, 168, 82, 0.4);
}

.one-click-order:hover::before {
    transform: rotate(45deg) translateX(100%);
}

/* بطاقة اختيار المنتج المحسنة */
.product-options-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.product-options-card:hover {
    border-color: rgba(229, 121, 101, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.options-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 8px;
}

.options-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* خيارات المنتج */
.product-option-groups {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.color-option.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    padding: 8px 16px;
    border-radius: 50px;
    background-color: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.size-option:hover {
    background-color: rgba(229, 121, 101, 0.1);
    border-color: rgba(229, 121, 101, 0.2);
}

.size-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 12px rgba(229, 121, 101, 0.25);
}

/* نظام إشعارات للمستخدم حول المنتج */
.product-notification {
    padding: 12px 20px;
    border-radius: 50px;
    background-color: #fff8e1;
    border-right: 3px solid #ffc107;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-notification i {
    color: #ffc107;
    font-size: 18px;
}

.product-notification.success {
    background-color: #e8f5e9;
    border-right-color: #4caf50;
}

.product-notification.success i {
    color: #4caf50;
}

/* ============================================================================================================================================== */

/* ================ الإشعارات ================ */

/* ======تحسين التوافق مع الشاشات الصغيرة ========*/
@media (max-width: 576px) {
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-wrapper, .sort-wrapper {
        width: 100%;
        margin-bottom: 15px;
    }

    .notification {
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

/* ============================================================================================================================================== */

/* ============================================================================================================================================== */

/* ========== التوافق مع الأجهزة المختلفة ========== */
@media (max-width: 1200px) {
    /* Modified product-grid */
.product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .product-featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .product-featured .product-image,
    .product-featured .product-info {
        flex: 0 0 100%;
    }

    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-options {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Modified product-grid */
.product-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 230px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-list /* Modified product-card */
.product-card {
        flex-direction: column;
        height: auto;
    }

    .product-list .product-image {
        flex: 0 0 230px;
        height: 230px;
    }

    .product-list .product-features li {
        flex: 0 0 100%;
@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}
        max-width: calc(100% - 20px);
    }
}

.stats {
    position: relative;
    padding: 70px 0;
    color: #fff;
    overflow: hidden;
    background-color: #e68977; /* لون وردي/سلموني دافئ كما في الصورة */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23d77c6a' fill-opacity='0.3'%3E%3Cpath d='M0 20L20 0L40 20L20 40L0 20zM20 8.9L8.9 20L20 31.1L31.1 20L20 8.9z'/%3E%3C/g%3E%3C/svg%3E");
    animation: patternFloat 30s linear infinite;
}

@keyframes patternFloat {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.stats:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(216, 130, 118, 0.2) 0%, rgba(229, 152, 142, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.stats:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(241, 177, 169, 0.2) 0%, transparent 70%),
        radial-gradient(circle at 80% 75%, rgba(241, 177, 169, 0.2) 0%, transparent 70%);
    animation: glowPulse 10s ease-in-out infinite alternate;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

@keyframes glowPulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 0.7; transform: scale(1); }
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 30px 20px;
    background-color: #ffffff; /* كروت بيضاء كما في الصورة */
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.15s; }
.stat-item:nth-child(2) { animation-delay: 0.3s; }
.stat-item:nth-child(3) { animation-delay: 0.45s; }
.stat-item:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

/* إضافة تأثير لامع متحرك عند التحويم */
.stat-item::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    transform: rotate(45deg);
    transition: all 0.7s ease;
    z-index: 0;
    pointer-events: none;
}

.stat-item:hover::before {
    animation: shimmer 1.5s ease-in-out 0.2s 1 forwards;
}

@keyframes shimmer {
    0% { transform: rotate(45deg) translateX(-150%); }
    100% { transform: rotate(45deg) translateX(150%); }
}

.stat-icon {
    font-size: 46px;
    margin-bottom: 15px;
    color: #e57965; /* لون وردي للأيقونات متناسق مع الخلفية */
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.stat-icon i {
    position: relative;
    z-index: 1;
}

.stat-item:hover .stat-icon {
    transform: translateY(-5px);
    animation: iconBounce 1s ease infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #e57965; /* لون وردي كما في الأرقام بالصورة */
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-text {
    font-size: 18px;
    font-weight: 500;
    margin-top: 5px;
    position: relative;
    z-index: 1;
    color: #595959; /* لون رمادي داكن للنصوص */
}

/* شريط متحرك أسفل الكرت */
.stat-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e57965, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-item:hover::after {
    transform: scaleX(1);
}

@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 42px;
    }

    .stat-text {
        font-size: 16px;
    }
}

/* ============================================================================================================================================== */
/* ================ قسم المزايا ================ */
.benefits {
    position: relative;
    overflow: hidden;
}

.benefits:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: var(--primary-light);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(229, 121, 101, 0.1);
}

.benefit-icon {
    flex: 0 0 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    background-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.benefit-icon i {
    font-size: 25px;
    color: var(--primary-color);
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon i {
    color: var(--white);
}

.benefit-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 8px;
}

.benefit-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.benefit-content p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.6;
}

/* تحسينات للشاشات المتوسطة */
@media (max-width: 992px) {
    .benefits-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* تحسينات للهواتف والشاشات الصغيرة */
@media (max-width: 768px) {
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        padding: 20px;
    }
    
    .benefit-icon {
        flex: 0 0 50px;
        height: 50px;
        margin-left: 15px;
    }
    
    .benefit-icon i {
        font-size: 22px;
    }
    
    .benefit-content h3 {
        font-size: 18px;
    }
}

/* تحسينات للهواتف الصغيرة */
@media (max-width: 480px) {
    .benefit-item {
        padding: 15px;
        flex-direction: row; /* تأكيد على اتجاه الصف */
        align-items: center; /* تحسين المحاذاة الرأسية */
    }
    
    .benefit-icon {
        flex: 0 0 45px;
        height: 45px;
        margin-left: 12px;
    }
    
    .benefit-icon i {
        font-size: 20px;
    }
    
    .benefit-content {
        flex: 1; /* سماح بالتمدد */
    }
    
    .benefit-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .benefit-content p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* ============================================================================================================================================== */

/* ====================== قسم المعرض - تصميم إبداعي مع عناصر أكبر ====================== */
.gallery {
    padding: 90px 0;

    position: relative;
    overflow: visible;
}

.gallery::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(248, 237, 235, 0.4), transparent);
    z-index: 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* تغيير إلى عمودين فقط لجعل الصور أكبر */
    gap: 30px; /* زيادة المسافة بين الصور */
    margin: 50px 0;
    position: relative;
    z-index: 2;
}

.gallery-item {
    height: 450px; /* زيادة ارتفاع الصور بشكل كبير */
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: translateY(50px);
    animation: galleryItemFadeIn 0.8s forwards;
}

@keyframes galleryItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.3s; }
.gallery-item:nth-child(3) { animation-delay: 0.5s; }
.gallery-item:nth-child(4) { animation-delay: 0.7s; }

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #e57965, #f9d8d2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.7s ease;
    will-change: transform;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px; /* زيادة المساحة الداخلية للنص */
    z-index: 2;
    transform: translateY(20%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-title {
    font-size: 28px; /* زيادة حجم العنوان */
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(10px);
    transition: transform 0.5s ease 0.1s;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px; /* زيادة طول الخط */
    height: 3px;
    background-color: #e57965;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease 0.2s;
}

.gallery-desc {
    font-size: 18px; /* زيادة حجم الوصف */
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
}

/* تفاعلات المؤشر */
.gallery-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(229, 121, 101, 0.2);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gallery-item:hover img {
    transform: scale(1.12);
    filter: brightness(1.05) contrast(1.05);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

.gallery-item:hover .gallery-title::after {
    transform: scaleX(1);
}

.gallery-item:hover .gallery-desc {
    transform: translateY(0);
    opacity: 1;
}

/* تصميم قسم الفيديو - أكبر وأوضح */
.video-container {
    text-align: center;
    margin-top: 80px;
    position: relative;
    padding: 0;
}

.video-container::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(229, 121, 101, 0.1) 0%, transparent 70%);
    top: -50px;
    left: 0;
    border-radius: 50%;
    z-index: 0;
}

.video-container::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(229, 121, 101, 0.1) 0%, transparent 70%);
    bottom: -50px;
    right: 0;
    border-radius: 50%;
    z-index: 0;
}

.video-container h3 {
    display: inline-block;
    font-size: 32px; /* زيادة حجم العنوان */
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    color: #333;
    font-weight: 700;
    z-index: 2;
}

.video-container h3::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, #e57965, #f9d8d2);
}

.video-container h3::after {
    content: '✨';
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 24px;
    color: #e57965;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

.video-wrapper {
    position: relative;
    padding-bottom: 60%; /* زيادة نسبة الارتفاع لجعل الفيديو أكبر */
    height: 0;
    overflow: hidden;
    max-width: 1100px; /* زيادة العرض الأقصى */
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(229, 121, 101, 0.2);
    border: 10px solid #fff;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

.video-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(229, 121, 101, 0.25);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(229, 121, 101, 0.1);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 10px;
}

.video-wrapper:hover::before {
    opacity: 0.7;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 2;
    border-radius: 10px;
}

/* وسائط متعددة - تعديل للتجاوب مع شاشات مختلفة */
@media (max-width: 1200px) {
    .gallery-item {
        height: 400px;
    }

    .video-wrapper {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .gallery-container {
        gap: 25px;
    }

    .gallery-item {
        height: 380px;
    }

    .video-container h3 {
        font-size: 28px;
    }

    .video-wrapper {
        padding-bottom: 62%;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr; /* تغيير إلى عمود واحد في الشاشات الصغيرة */
        gap: 20px;
    }

    .gallery-item {
        height: 450px; /* الحفاظ على حجم كبير حتى في الشاشات الصغيرة */
    }

    .video-container h3 {
        font-size: 24px;
    }

    .video-wrapper {
        padding-bottom: 65%;
        border-width: 8px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 400px;
    }

    .gallery-title {
        font-size: 24px;
    }

    .gallery-desc {
        font-size: 16px;
    }

    .video-container h3 {
        font-size: 22px;
    }

    .video-wrapper {
        border-width: 6px;
    }
}

/* ============================================================================================================================================== */

/* ================ قسم قائمة الواتساب الإخبارية - محسّن ================ */

/* ================ قسم الدعوة للشراء ================ */
.cta {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(229,121,101,0.3) 0%, rgba(0,0,0,0) 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.cta p {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-price-tag {
    background-color: #e7bc57;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-price-original {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 10px;
    font-size: 20px;
}

/* ============================================================================================================================================== */

/* ================ قسم الضمان ================ */
.guarantee {
    background-color: var(--pattern-bg);
    text-align: center;
    position: relative;
}

.guarantee-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(229, 121, 101, 0.1);
}

.guarantee-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(229, 121, 101, 0.2);
}

.guarantee-icon i {
    font-size: 45px;
    color: var(--primary-color);
}

.guarantee h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.guarantee h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    width: 60px;
    margin: 0 auto;
}

.guarantee p {
    margin-bottom: 25px;
    font-size: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.payment-method {
    width: 60px;
    height: 40px;
    background-color: var(--white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.payment-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ================ قسم الأسئلة الشائعة ================ */
.faq {
    background-color: var(--pattern-bg);
    padding: 80px 0;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    margin-bottom: 20px; /* زيادة المسافة بين العناصر */
    border: 1px solid rgba(229, 121, 101, 0.1); /* تحسين لون الحدود */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 121, 101, 0.1);
    border-color: rgba(229, 121, 101, 0.2);
}

.faq-question {
    padding: 20px 25px; /* زيادة المساحة الداخلية */
    background-color: var(--bg-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 700; /* خط أكثر سماكة */
    font-size: 18px; /* حجم خط أكبر */
    position: relative;
    color: var(--secondary-color); /* تحسين لون النص */
}

.faq-question:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark); /* تحسين لون النص عند التحويم */
}

.faq-question i {
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 16px; /* أيقونة أكبر */
    background-color: rgba(229, 121, 101, 0.1); /* إضافة خلفية للأيقونة */
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-question.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color); /* خط سفلي أكثر وضوحاً */
    font-weight: 700;
}

.faq-question.active i {
    transform: rotate(180deg);
    background-color: var(--primary-color);
    color: white;
}

.faq-answer {
    background-color: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* تحسين الانتقال */
}
.faq-answer.active {
    padding: 35px 40px; /* زيادة المساحة الداخلية أكثر */
    max-height: none !important; /* إلغاء الحد الأقصى للارتفاع للسماح بظهور النص بالكامل */
    height: auto !important; /* تأكيد على الارتفاع التلقائي */
    display: block !important; /* استخدام block بدلاً من flex للتأكد من صحة العرض */
    align-items: flex-start; /* محاذاة العناصر في البداية بدلاً من الوسط */
    justify-content: flex-start; /* محاذاة أفقية للبداية */
    border-right: 3px solid var(--primary-color);
    animation: answerFadeIn 0.5s ease forwards;
    overflow: visible !important; /* منع قص النص */
    word-wrap: break-word; /* ضمان التفاف النص */
}

@keyframes answerFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.6; /* تقليل المسافة بين السطور قليلاً لتحسين المظهر */
    margin: 0;
    font-size: 18px; /* تقليل حجم الخط قليلاً للتوازن */
    font-weight: 500;
    position: relative;
    padding-right: 20px; /* زيادة مساحة الهامش اليمين */
    font-family: var(--font-family);
    width: 100%;
    display: block;
    min-height: fit-content; /* ضمان ارتفاع مناسب للمحتوى */
}

/* إضافة علامة قبل النص لإبرازه */
.faq-answer p::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.7em; /* تعديل المحاذاة لتناسب حجم النص الجديد */
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* تأكيد على تنسيق العنصر الأب */
.faq-item {
    margin-bottom: 25px; /* زيادة المسافة بين العناصر */
    transition: all 0.4s ease;
}

/* إضافة تأثير لتمييز الإجابة النشطة */
.faq-item:has(.faq-answer.active) {
    box-shadow: 0 10px 30px rgba(229, 121, 101, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px); /* رفع البطاقة النشطة قليلاً */
}

/* === تنسيق محسّن لأزرار الخطوط الخارجية === */
.btn-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px; /* حواف دائرية أكثر عصرية */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(229, 121, 101, 0.1);
    font-size: 16px;
}

/* تأثير الخلفية المتحركة عند التحويم */
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
    border-radius: 50px;
}

.btn-outline:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 121, 101, 0.3);
    border-color: transparent;
}

.btn-outline:hover::before {
    width: 100%;
    right: auto;
    left: 0;
}

/* تأثير النقر لتحسين تجربة المستخدم */
.btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(229, 121, 101, 0.2);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px;
    }

    .faq-answer.active {
        padding: 30px 25px; /* زيادة التباعد وخاصة من الأعلى */
        max-height: 2000px; /* زيادة الارتفاع الأقصى بشكل كبير */
        display: block; /* تغيير من flex إلى block لتجنب مشاكل العرض */
        overflow: visible; /* ضمان ظهور المحتوى بالكامل */
        border-right: 3px solid var(--primary-color);
        animation: answerFadeIn 0.5s ease forwards;
    }

    @keyframes answerFadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .faq-answer p {
        color: var(--text-color);
        line-height: 1.7;
        margin: 0;
        font-size: 17px;
        font-weight: 500;
        position: relative;
        padding-right: 20px; /* زيادة المساحة على اليمين للنقطة */
        padding-bottom: 10px; /* إضافة مساحة في الأسفل */
        font-family: var(--font-family);
        width: 100%;
        display: block;
        word-wrap: break-word; /* تأكيد التفاف النص */
        white-space: normal; /* منع النص من الخروج عن الحدود */
    }
    
    /* تحسين شكل النقطة قبل النص */
    .faq-answer p::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0.6em;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: var(--primary-color);
    }

    .faq-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    /* تحسين عرض العنصر الأب للإجابة */
    .faq-item:has(.faq-answer.active) {
        margin-bottom: 30px;
        box-shadow: 0 10px 30px rgba(229, 121, 101, 0.15);
    }
}

/* للشاشات الصغيرة جداً مثل الجوالات الصغيرة */
@media (max-width: 480px) {
    /* تعديلات خاصة بالأسئلة الشائعة للجوالات الصغيرة */
    .faq-question {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .faq-answer.active {
        padding: 20px 15px;
        max-height: none !important; /* تأكيد على عدم تحديد الارتفاع الأقصى مع تجاوز أي تعيين آخر */
        overflow: visible !important; /* ضمان عرض المحتوى كاملاً */
        display: block;
    }
    
    .faq-answer p {
        font-size: 14px;
        line-height: 1.6;
        padding-right: 15px;
        padding-bottom: 10px;
        padding-left: 5px;
        white-space: normal; /* منع الاقتصاص */
        word-wrap: break-word; /* تفاف النص */
        overflow-wrap: break-word; /* دعم إضافي لالتفاف النص */
    }
    
    .faq-answer p::before {
        top: 0.5em;
        width: 5px;
        height: 5px;
    }
    
    /* إضافة تمرير تلقائي إلى الإجابات على الشاشات الصغيرة */
    .faq-item:has(.faq-answer.active) {
        margin-bottom: 35px; /* زيادة المسافة أسفل السؤال المفتوح */
    }
}

/* للشاشات الصغيرة جداً مثل الجوالات */
@media (max-width: 480px) {
    .faq-question {
        font-size: 15px;
        padding: 15px;
    }
    
    .faq-answer.active {
        padding: 22px 15px; /* زيادة التباعد العلوي للتوسيط */
        max-height: none; /* إزالة الحد الأقصى للارتفاع نهائياً في الشاشات الصغيرة */
    }
    
    .faq-answer p {
        font-size: 15px;
        line-height: 1.6;
        padding-right: 15px;
        padding-bottom: 10px;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .faq-question {
        font-size: 14px;
        padding: 12px;
    }
    
    .faq-answer.active {
        padding: 20px 12px; /* ضبط المسافة للشاشات الصغيرة جداً */
    }
    
    .faq-answer p {
        font-size: 14px;
        padding-right: 12px;
    }
    
    .faq-answer p::before {
        top: 0.5em;
        width: 5px;
        height: 5px;
    }
}

/* تأثيرات حركية */
.faq-item {
    animation: fadeInUp 0.6s both;
    animation-delay: calc(0.1s * var(--item-index, 0));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================================================================================== */

/* ================ التذييل ================ */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light), var(--primary-color));
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
    max-width: 150px;
}

.footer-desc {
    color: #a9a9a9;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--white);
}

.footer-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a9a9a9;
    transition: var(--transition);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    margin-left: 8px;
    font-size: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    z-index: 10; /* Aumentar z-index para asegurar que los enlaces estén sobre otros elementos */
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
    font-size: 16px;
    cursor: pointer; /* Asegurar que el cursor sea un puntero */
    position: relative; /* Para asegurar que el z-index funcione */
    z-index: 5; /* Aumentar z-index */
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Asegurar que los eventos del mouse sean capturados */
.social-icons a, 
.social-icon i {
    pointer-events: auto !important;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #a9a9a9;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a9a9a9;
    font-size: 14px;
}

.footer-links-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-links-bottom a {
    color: #a9a9a9;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

/* ============================================================================================================================================== */

/* ================ تحسينات إمكانية الوصول ================ */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus, a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

[role="tablist"] [role="tab"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* رابط تخطي للمحتوى الرئيسي */
.skip-to-content {
    position: absolute;
    top: -50px;
    left: 0;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================================================================================================================== */
/* ================ التنسيق المتجاوب ================ */
@media (max-width: 1200px) {
    :root {
        --container-width: 992px;
    }

    .product-3d-container {
        height: 350px;
    }

    .product-3d-item {
        width: 180px;
        height: 270px;
        transform: translate(-50%, -50%) rotateY(var(--rotate)) translateZ(180px);
    }

    .product-featured {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }

    .product-featured .product-image {
        max-width: 100%;
    }

    .testimonial-item {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 768px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .feature-box {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 75px;
        height: 75px;
    }

    .product-3d-container {
        height: 300px;
    }

    .product-3d-item {
        width: 160px;
        height: 240px;
        transform: translate(-50%, -50%) rotateY(var(--rotate)) translateZ(160px);
    }

    .product-featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .product-featured .product-image {
        flex: 0 0 100%;
        height: 280px;
    }

    .product-featured .product-info {
        flex: 0 0 100%;
    }

    .cta h2 {
        font-size: 36px;
    }

    .mobile-toggle {
        display: block;
    }

    .close-menu {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 20px 30px;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 15px;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 576px;
    }

    .hero {
        padding: 150px 0 100px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .cta h2 {
        font-size: 32px;
    }

    .product-3d-container {
        height: 250px;
    }

    .product-3d-item {
        width: 140px;
        height: 210px;
        transform: translate(-50%, -50%) rotateY(var(--rotate)) translateZ(140px);
    }

    .product-3d-image {
        height: 150px;
    }

    .countdown-container {
        flex-wrap: wrap;
    }

    .countdown-box {
        min-width: 70px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input {
        border-radius: var(--border-radius);
    }

    .newsletter-btn {
        border-radius: var(--border-radius);
        padding: 12px;
    }

    .testimonial-item {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }

    .btn {
        padding: 10px 20px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .feature-box {
        margin-bottom: 20px;
    }

    /* Modified product-card */
.product-card {
        margin-bottom: 20px;
    }

    .benefit-item {
        margin-bottom: 20px;
        
        align-items: center;
        text-align: center;
    }

    .benefit-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .benefit-content h3:after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .testimonial-item {
        margin-bottom: 20px;
    }

    .guarantee-box {
        padding: 25px 15px;
    }

    .product-3d-container {
        display: none;
    }

    .cta h2 {
        font-size: 26px;
    }

    .cta-price-tag {
        padding: 8px 15px;
        font-size: 20px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 50px 0;
    }

    .product-actions {
        flex-direction: column;
        gap: 15px;
    }

    .product-price {
        align-items: center;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .notification {
        min-width: auto;
        width: 90%;
    }
}

/* ضبط الحركة للمستخدمين الذين يفضلون تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in, .zoom-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    @keyframes bounce {
        0%, 100% {
            transform: translateY(0) translateX(-50%);
        }
    }

    /* @keyframes rotate was here, moved outside */
}

@keyframes rotate {
    0%, 100% {
        transform: rotateY(0);
    }
    50% {
        transform: rotateY(180deg);
    }
}

