/* تنسيق عام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8D4925; /* لون التمر البني */
    --secondary-color: #E1B16A; /* لون ذهبي فاتح */
    --text-color: #333;
    --light-bg: #F9F5EB;
    --white: #FFFFFF;
    --dark-bg: #4A3226;
}

body {
    font-family: 'Tajawal', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

section {
    padding: 60px 0;
}

/* الهيدر والتنقل */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.logo p {
    font-size: 1rem;
    color: var(--text-color);
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    padding: 10px 0;
    font-size: 1.1rem;
    position: relative;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active:after,
nav ul li a:hover:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

/* قسم الترويج الرئيسي */
.hero {
    background-color: var(--light-bg);
    text-align: center;
    padding: 100px 0;
    background-image: linear-gradient(rgba(249, 245, 235, 0.85), rgba(249, 245, 235, 0.85)), url('../images/products/dates3.jpg');
    background-size: cover;
    background-position: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* قسم المميزات */
.features {
    background-color: var(--white);
}

.features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    flex: 1;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: var(--primary-color);
}

/* معاينة المنتجات */
.products-preview {
    background-color: var(--light-bg);
    text-align: center;
    padding: 80px 0;
}

.products-preview h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.products-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.product {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.product:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 180px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
}

/* سلايدر المنتجات */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    min-height: 450px;
}

.product-slide {
    display: none;
    padding: 20px;
    text-align: center;
    height: 100%;
    animation: fade 1.5s;
}

.product-slide.active {
    display: block;
}

.product-category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slide-prev {
    left: -25px;
}

.slide-next {
    right: -25px;
}

.slide-prev:hover, .slide-next:hover {
    background-color: rgba(0,0,0,0.6);
}

.slide-dots {
    text-align: center;
    position: absolute;
    bottom: -30px;
    width: 100%;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* صور المنتجات */
.product-dates {
    background-image: url('../images/products/dates.avif');
}

.product-dates-barhi {
    background-image: url('../images/products/تمر مكتوم.webp');
}

.product-dates-zahdi {
    background-image: url('../images/products/تمر زهدي.jpg');
}

.product-dates-khistawi {
    background-image: url('../images/products/تمر خستاوي.jpg');
}

.product-dates-maktoom {
    background-image: url('../images/products/تمر مكتوم.jpg');
}

.product-honey {
    background-image: url('../images/products/honey.avif');
}

.product-oil {
    background-image: url('../images/products/oil.avif');
}

.product-vegetable-oil {
    background-image: url('../images/products/زيت نباتي.jpg');
}

.product-nuts {
    background-image: url('../images/products/مكسرات مشكلة.webp');
}

.product-tahini {
    background-image: url('../images/products/طحينية.png');
}

.product-rice {
    background-image: url('../images/products/rice.avif');
}

.product-sugar {
    background-image: url('../images/products/سكر أبيض.webp');
}

.product-flour {
    background-image: url('../images/products/طحين فاخر.jpg');
}

/* تنسيق خلفيات المنتجات إذا لم تكن الصور متوفرة */
.product-dates, .product-dates-barhi, .product-dates-zahdi, .product-dates-khistawi, .product-dates-maktoom {
    background-color: #A97142;
}

.product-honey {
    background-color: #F9A602;
}

.product-oil, .product-vegetable-oil {
    background-color: #C9BC8D;
}

.product-nuts {
    background-color: #B68F65;
}

.product-tahini {
    background-color: #D3C0A7;
}

.product-rice {
    background-color: #F5F5F5;
}

.product-sugar {
    background-color: #FFFFFF;
}

.product-flour {
    background-color: #F8F8F8;
}

.product h3 {
    padding: 15px;
    color: var(--primary-color);
}

.product p {
    padding: 0 15px 15px;
}

/* صور فريق العمل */
.company-image {
    background-image: url('../images/products/dates3.jpg');
    background-size: cover;
    background-position: center;
}

.member-1 {
    background-image: url('../images/products/rice.avif');
    background-size: cover;
    background-position: center;
}

.member-2 {
    background-image: url('../images/products/مكسرات مشكلة.webp');
    background-size: cover;
    background-position: center;
}

.member-3 {
    background-image: url('../images/products/oil.avif');
    background-size: cover;
    background-position: center;
}

/* الفوتر */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-info, .company-info, .footer-nav {
    flex: 1;
    margin-bottom: 30px;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--white);
}

.footer-nav ul li a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* صفحة من نحن */
.page-header {
    background-color: var(--light-bg);
    text-align: center;
    padding: 40px 0;
}

.page-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.about .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-content {
    flex: 2;
}

.about-image {
    flex: 1;
}

.image-placeholder {
    height: 300px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.company-info-card {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}

.company-info-card ul li {
    margin-bottom: 10px;
}

.values-list li {
    margin-bottom: 15px;
    padding-right: 20px;
    position: relative;
}

.values-list li:before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

.team {
    background-color: var(--light-bg);
    text-align: center;
}

.team h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-img {
    height: 200px;
    background-color: var(--secondary-color);
}

.team-member h3 {
    padding: 15px 15px 5px;
    color: var(--primary-color);
}

.position {
    color: var(--secondary-color);
    font-weight: bold;
}

.team-member p {
    padding: 5px 15px 15px;
}

/* صفحة المنتجات */
.category-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.products-container h3 {
    text-align: center;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-card .product-img {
    height: 180px;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.description {
    margin-bottom: 10px;
}

.origin {
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
}

.wholesale {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.wholesale h3 {
    color: var(--white);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.contact-method {
    display: flex;
    align-items: center;
}

.icon {
    font-size: 1.5rem;
    margin-left: 10px;
}

.wholesale .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.wholesale .btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

/* صفحة الاتصال */
.contact-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info-block, .contact-form-block {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item .icon {
    font-size: 2rem;
    margin-left: 15px;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
}

.map-section {
    background-color: var(--light-bg);
}

.map-placeholder {
    background-color: #EEEEEE;
    height: 350px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.5rem;
}

.faq-section {
    background-color: var(--white);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding-top: 15px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* رسائل النموذج */
.message-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.message.success {
    background-color: #4CAF50;
}

.message.error {
    background-color: #F44336;
}

.message.fadeOut {
    opacity: 0;
}

/* زر العودة إلى الأعلى */
.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* تكيف مع الشاشات المختلفة */
@media (min-width: 768px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0;
        text-align: right;
    }
    
    nav ul {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .features .container, 
    .about .container,
    .contact-section .container,
    footer .container {
        flex-direction: column;
    }
    
    .feature-card {
        margin: 0 0 20px;
    }
    
    .products-grid {
        gap: 15px;
    }
    
    .product, .product-card, .team-member {
        width: 100%;
        max-width: 300px;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
    
    .slideshow-container {
        height: auto;
        min-height: 350px;
    }
    
    .slide-prev, .slide-next {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .products-row {
        flex-direction: column;
        align-items: center;
    }
    
    .product-slide {
        padding: 20px 0;
    }
}

/* قسم المنتجات */
.products-section {
    background-color: #f9f7f0;
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1e3932;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* أزرار التصفية */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #1e3932;
    color: #fff;
    border-color: #1e3932;
}

/* عرض الشرائح */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.product-slide {
    display: none;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.product-slide.active {
    display: block;
}

.product-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* بطاقات المنتجات */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 300px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-align: center;
    direction: rtl;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.rice-bg {
    background-image: url('../images/products/rice.avif');
}

.dates-bg {
    background-image: url('../images/products/dates3.jpg');
}

.oil-bg {
    background-image: url('../images/products/زيت نباتي.jpg');
}

.honey-bg {
    background-image: url('../images/products/honey.avif');
}

.cereals-bg {
    background-image: url('../images/products/cereals.avif');
}

.spices-bg {
    background-image: url('../images/products/spices.avif');
}

.product-title {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    color: #1e3932;
    padding: 0 15px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c7a17a;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    padding: 0 20px;
    margin-bottom: 20px;
    line-height: 1.5;
    height: 80px;
    overflow: hidden;
}

.product-btn {
    display: inline-block;
    background-color: #1e3932;
    color: #fff;
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background-color: #c7a17a;
    transform: scale(1.05);
}

/* أزرار التنقل */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 57, 50, 0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

.slide-btn:hover {
    background-color: #1e3932;
}

/* نقاط التنقل */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #1e3932;
    transform: scale(1.2);
}

/* التكيف مع الشاشات المختلفة */
@media (max-width: 991px) {
    .product-row {
        gap: 20px;
    }
    
    .product-card {
        width: 280px;
    }
}

@media (max-width: 767px) {
    .product-row {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        width: 300px;
    }
    
    .filter-container {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
}

/* تأثير الانتقال بين الشرائح */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* تنسيق أيقونات المنتجات */
.product-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    height: 100%;
    color: #fff;
}

.rice-icon-bg {
    background-color: #f8f8f8;
    color: #8D4925;
}

.dates-icon-bg {
    background-color: #8D4925;
}

.oil-icon-bg {
    background-color: #C9BC8D;
}

.honey-icon-bg {
    background-color: #F9A602;
}

.cereals-icon-bg {
    background-color: #D3C0A7;
}

.spices-icon-bg {
    background-color: #B68F65;
}

/* تنسيق أيقونات الفريق */
.team-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    height: 100%;
    color: #fff;
    background-color: #E1B16A;
}

.nuts-icon-bg {
    background-color: #B68F65;
}

.tahini-icon-bg {
    background-color: #D3C0A7;
}

.sugar-icon-bg {
    background-color: #FFFFFF;
    color: #8D4925;
}

.flour-icon-bg {
    background-color: #F8F8F8;
    color: #8D4925;
}

.vegetable-oil-icon-bg {
    background-color: #C9BC8D;
}

/* أيقونات معلومات الاتصال */
.contact-icon {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--primary-color);
} 