/* =========================================
   1. متغيرات الألوان (Theme Palette) - فخامة الطبيعة
   ========================================= */
:root {
    /* الألوان الأساسية */
    --primary-color: #2C4C3B; /* أخضر زيتوني عميق */
    --primary-light: #446A55; /* أخضر فاتح للتفاعل */
    --accent-color: #D4AF37; /* ذهبي معدني (لون الزيت) */
    --accent-hover: #B89628; /* ذهبي غامق */
    /* الخلفيات والنصوص */
    --dark-color: #1A1A1A; /* أسود فاحم للنصوص */
    --light-color: #F9F8F6; /* كريمي فاتح جداً (بدل الأبيض الصريح) */
    --surface-color: #FFFFFF;
    --muted-color: #8C8C8C;
    /* تأثيرات */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px rgba(44, 76, 59, 0.08);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);
}

/* =========================================
   2. التنسيق العام (Global Styles)
   ========================================= */
body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden; /* منع التمرير العرضي بسبب الأنيميشن */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px; /* تماسك الأحرف للعناوين */
}

/* تحسين السكرول بار */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}

/* =========================================
   3. Hero Section (القسم الرئيسي)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 85vh; /* ارتفاع مناسب للشاشات الحديثة */
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    overflow: hidden;
}

/* خلفية متدرجة فخمة بدلاً من الصورة المسطحة */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(44, 76, 59, 0.9), var(--primary-color)), url('/path/to/olive-texture.jpg'); /* يفضل وضع نسيج خفيف هنا */
    background-size: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

    .hero-content h1 {
        color: #fff !important;
        text-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .hero-content p {
        color: rgba(255,255,255,0.9) !important;
        font-size: 1.2rem;
    }

/* مؤشر السكرول (ماوس بدلاً من سهم) */
.scroll-mouse {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    z-index: 5;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* =========================================
   4. المكونات الحديثة (Modern Components)
   ========================================= */

/* أزرار ذهبية فخمة */
.btn-gold {
    background: linear-gradient(45deg, var(--accent-color), #E5C560);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: var(--shadow-gold);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-gold::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: rgba(255,255,255,0.2);
        transition: width 0.3s ease;
        z-index: -1;
    }

    .btn-gold:hover::before {
        width: 100%;
    }

    .btn-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
        color: #fff;
    }

/* بطاقات بتأثير الزجاج (Glassmorphism Cards) */
.glass-card {
    background: var(--surface-color);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

    .glass-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-soft);
        border-color: var(--accent-color);
    }

    /* تأثير لمعة خفيفة عند الهوفر على البطاقة */
    .glass-card::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        transition: transform 0.6s;
        opacity: 0;
    }

    .glass-card:hover::after {
        opacity: 1;
        transform: rotate(30deg) translate(10%, 10%);
    }

/* صور المنتجات */
.product-image {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

    .product-image img {
        transition: transform 0.6s ease;
    }

.glass-card:hover .product-image img {
    transform: scale(1.08);
}

/* شريط السعر */
.price-tag {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
}

/* =========================================
   5. الحركات المحسنة (Refined Animations)
   ========================================= */

/* حركة ظهور ناعمة من الأسفل */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الدخول الجانبي (نسخة محسنة وأقل دواراً من النسخة السابقة) */
@keyframes smoothSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.animate-slide-smooth {
    animation: smoothSlideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* تأخير الحركة للعناصر المتتالية */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* =========================================
   6. العناوين (Section Titles)
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .section-title::after {
        content: '❦'; /* رمز زخرفي بسيط */
        display: block;
        font-size: 20px;
        color: var(--accent-color);
        margin-top: 5px;
    }

/* =========================================
   7. التجاوب (Mobile Responsive)
   ========================================= */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }

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

    .hero-bg {
        /* جعل الخلفية أغمق قليلاً في الموبايل لوضوح النص */
        background: linear-gradient(rgba(44, 76, 59, 0.95), rgba(44, 76, 59, 0.8));
    }

    .btn-gold {
        width: 100%; /* زر كامل العرض في الموبايل */
        margin-bottom: 10px;
    }
}
