/* ==================================== */
/* 0. تهيئة الألوان والخطوط (Premium Palette) */
/* ==================================== */
:root {
    /* الألوان الكلاسيكية والفخمة المتفق عليها */
    --color-primary: #8B4513; /* البني الداكن (لون الخشب الأساسي) */
    --color-secondary: #C19A6B; /* الذهبي المطفي/البيج (للتفاصيل الفخمة) */
    --color-background: #F8F7F3; /* الأبيض العاجي (نظافة الخلفية) */
    --color-dark: #333333; /* الرمادي الداكن (لنصوص القراءة) */
    --color-contrast: #FF5722; /* البرتقالي الغامق (لأزرار الإجراءات - "اطلب الآن") */
    --whatsapp-color: #25D366;
    --border-radius: 8px;
}

/* استخدام خط عربي فاخر (استبدل هذا بملف خط مخصص لاحقاً) */
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Regular.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-background);
    direction: rtl; 
    text-align: right;
    color: var(--color-dark);
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.6;
    /* إعدادات للجوال أولاً */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-dark);
    transition: color 0.3s;
}
a:hover {
    color: var(--color-secondary);
}

/* ==================================== */
/* 1. تأثير الخط الخشبي (The Wood Texture Effect) */
/* ==================================== */
.wood-text {
    /* مسار الصورة تم تعديله ليتناسب مع موقعها الحالي */
    background-image: url('Assests/media/wood-texture.jpg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text; 
    background-clip: text;
    color: transparent; /* يجعل النص شفافاً لتظهر الخلفية */
    font-weight: 900;
}

.ovelox-logo {
    font-size: 2rem; /* حجم كبير للجوال */
    padding: 10px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* ظل خفيف لبروز الخشب */
    cursor: pointer;
}

/* ==================================== */
/* 2. الشريط العلوي المتحرك (15% OFF Banner) */
/* ==================================== */
.top-banner-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--color-contrast); /* برتقالي غامق لفت الانتباه */
    color: white;
    padding: 8px 0;
    white-space: nowrap; 
}
.scrolling-text {
    display: inline-block;
    animation: marquee 15s linear infinite; /* حركة سريعة وفخمة */
    font-size: 0.9rem;
    font-weight: bold;
    padding-left: 100%; /* يبدأ خارج الشاشة */
}
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ==================================== */
/* 3. الهيدر وشريط التنقل (Mobile Header & Cart) */
/* ==================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    display: none; /* إخفاء القائمة على الجوال (ستظهر كقائمة همبرغر لاحقاً) */
}

.cart-icon-placeholder {
    font-size: 1.5rem;
    position: relative;
    color: var(--color-primary);
    cursor: pointer;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-contrast);
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    padding: 2px 5px;
}

/* ==================================== */
/* 4. قسم الفيديو والصور والمنتجات */
/* ==================================== */
.hero-video video {
    width: 100%;
    max-height: 50vh; /* تحديد ارتفاع مناسب للجوال */
    display: block;
    object-fit: cover;
}

.section-title {
    text-align: center;
    padding: 40px 15px 20px;
    font-size: 1.8rem;
}

/* تنسيق قسم عرض المنتج */
.product-showcase {
    padding: 0 15px;
}
.product-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.product-image img {
    width: 100%;
    height: auto;
    display: block;
}
.product-details {
    padding: 20px 15px;
}
.product-details h3 {
    margin-bottom: 10px;
}
.premium-description {
    color: var(--color-dark);
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.specs {
    list-style: none;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}
.specs li {
    margin-bottom: 8px;
}
.specs i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

/* منطقة السعر والزر */
.price-area {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary);
}
.price-old {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* زر الإضافة للعربة */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}
.add-to-cart-btn {
    background-color: var(--color-secondary); /* لون فخم للجودة */
    color: white;
}
.add-to-cart-btn:hover {
    background-color: #A0835F;
}

/* ==================================== */
/* 5. قسم الضمان ونبذة عنا */
/* ==================================== */
.about-guarantee-section {
    background-color: #fff;
    padding: 40px 15px;
    border-top: 5px solid var(--color-secondary);
}
.about-guarantee-section .content-block {
    max-width: 600px;
    margin: 0 auto;
    text-align: right;
}
.about-guarantee-section p {
    margin-bottom: 15px;
    font-size: 1rem;
}
.contact-cta {
    font-weight: bold;
    color: var(--color-primary);
    margin-top: 20px;
}
.contact-cta i {
    margin-left: 5px;
    font-size: 1.2rem;
}

/* ==================================== */
/* 6. الأزرار الثابتة في الأسفل (Fixed Buttons) */
/* ==================================== */
.fixed-cart-button, .fixed-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.fixed-cart-button {
    left: 15px;
    background-color: var(--color-dark);
}

.fixed-whatsapp-btn {
    right: 15px;
    background-color: var(--whatsapp-color);
}
.fixed-whatsapp-btn i {
    margin-left: 8px;
}

/* ==================================== */
/* 7. تنسيق الكمبيوتر (Desktop View) */
/* ==================================== */
@media (min-width: 768px) {
    .main-header {
        padding: 15px 5%;
    }
    .main-nav ul {
        display: flex; /* إظهار القائمة على الشاشات الكبيرة */
    }
    .main-nav ul li {
        margin-right: 25px;
    }
    .ovelox-logo {
        font-size: 3rem;
    }
    .top-banner-container {
        padding: 10px 0;
    }

    .product-item {
        display: flex; /* ترتيب الصور والتفاصيل جنباً إلى جنب */
        max-width: 1000px;
        margin: 50px auto;
    }
    .product-image, .product-details {
        flex: 1;
        padding: 30px;
    }
    .product-image {
        border-radius: var(--border-radius);
    }

    /* إخفاء الزر الثابت للعربة على الكمبيوتر لأن الأيقونة في الهيدر تكفي */
    .fixed-cart-button {
        display: none;
    }
}
