:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-card: #1e1e1e;
    --primary: #d4af37;
    --primary-light: #f0e6c2;
    --text-main: #f5f5f5;
    --text-secondary: #b0b0b0;
    --success: #4caf50;
    --error: #f44336;
    --border: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الشريط العلوي */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* قسم الهيرو */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)),
                url('https://images.unsplash.com/photo-1483985988355-763728e1935b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    text-align: center;
    color: white;
    margin-top: -70px;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card {
    position: relative; /* إضافة */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* تعديل */
    z-index: 1; /* إضافة */
}

.product-card:hover {
    transform: translateY(-5px); /* تقليل المسافة */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* تقليل الظل */
    z-index: 2; /* إضافة */
}

.product-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.whatsapp-btn {
    width: 100%;
    background: var(--success);
    color: white;
    padding: 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #43a047;
    transform: translateY(-2px);
}

.no-products {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* التذييل */
.footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}
/* تخصيصات قسم موقع المحل في الفوتر */
.footer-section.location {
    flex: 1 1 300px;
}

.location-info {
    margin-top: 1.5rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.location-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.location-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.location-link {
    color: var(--primary-light);
    text-decoration: underline;
    transition: var(--transition);
}

.location-link:hover {
    color: var(--primary);
}

.working-hours {
    margin-top: 1.5rem;
    border-top: 1px dashed var(--border);
    padding-top: 1.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.hours-day {
    color: var(--text-secondary);
}

.hours-time {
    color: var(--primary-light);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.store-name {
    color: var(--primary);
    font-weight: 600;
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
}






/* تصفية التصنيفات */
.category-filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    direction: rtl;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.product-category {
    display: inline-block;
    margin: 0.5rem 0;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}


/* أنماط التصنيفات في صفحة المنتجات */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.category-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-count {
    margin-right: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* تحسينات لتصفية التصنيفات */
.category-filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.filter-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}
/* منع اهتزاز الصفحة */
html, body {
    overflow-x: hidden;
    backface-visibility: hidden;
}

/* تحسين أداء التحويلات */
.product-card {
    will-change: transform, box-shadow;
}


/* style.css */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.category-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}


@media (max-width: 480px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--bg-darker);
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem;
        width: 100%;
    }
}


/* تنسيقات روابط التواصل الاجتماعي في الفوتر */
/* تنسيقات محسنة لأزرار التواصل الاجتماعي */
/* ... الكود الحالي ... */

/* تنسيقات محسنة لأزرار التواصل الاجتماعي */
.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1.2rem;
    text-decoration: none;
}

.footer .social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* التأكد من ظهور الأيقونات بشكل صحيح */
.footer .social-links i {
    line-height: 1;
}


/* تحديث تنسيق شريط التنقل للهواتف */
/* تحديث شريط التنقل للهواتف */
@media (max-width: 480px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem; /* تقليل ارتفاع الهيدر */
        height: 50px; /* ارتفاع أصغر للهيدر */
        position: relative;
    }
    
    /* شعار في المنتصف */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
        z-index: 1001;
    }
    
    /* زر الثلاث شحطات على اليسار */
    .menu-toggle {
        display: block;
        order: -1; /* يجعلها على يسار العناصر */
        margin-left: 0;
        margin-right: auto;
        font-size: 1.5rem;
        z-index: 1002;
    }
    
    /* القائمة المنسدلة */
    .nav-links {
        position: fixed;
        top: 50px; /* تحت الهيدر الجديد */
        right: -100%;
        width: 70%;
        height: calc(100vh - 50px); /* ملء باقي الشاشة */
        background: var(--bg-darker);
        flex-direction: column;
        padding: 2rem 1rem;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    /* طبقة خلفية عند فتح القائمة */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100% - 50px);
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}
body {
    margin-top: 80px; /* أو حسب ارتفاع الهيدر */
}

@media (max-width: 480px) {
    /* إصلاح الهيدر للهواتف */
    .navbar {
        height: 60px; /* ارتفاع ثابت للهيدر */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
    }

    .nav-container {
        height: 100%;
        padding: 0 1rem;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.4rem;
        line-height: 60px; /* محاذاة مع ارتفاع الهيدر */
    }

    .menu-toggle {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        z-index: 1001;
    }

    /* ضبط المسافة بين الهيدر والمحتوى */
    body {
        margin-top: 60px !important;
    }

    /* تحسين القائمة المنسدلة */
    .nav-links {
        position: fixed;
        top: 60px; /* تحت الهيدر مباشرة */
        right: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background: var(--bg-darker);
        flex-direction: column;
        padding: 2rem 1rem;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: center;
    }

    /* منع التمرير عند فتح القائمة */
    body.nav-open {
        overflow: hidden;
    }
}

