/* أساسيات الصفحة */
:root {
    --primary-color: #ff7e8b;
    --secondary-color: #fcc9d0;
    --dark-color: #6d3b47;
    --light-color: #fff5f6;
    --text-color: #333;
    --text-light: #777;
    --font-family: 'Tajawal', sans-serif;
    --gold-color: #d4af37;
    --gold-light: #f5efd6;
    --transition: all 0.3s ease;
    --section-bg: #f9f9f9;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fff;
    direction: rtl;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 126, 139, 0.2);
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-gold {
    background-color: var(--gold-color);
    color: white;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background-color: #c19b2e;
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* الهيدر */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-selector {
    display: flex;
    align-items: center;
}

.country-selector span {
    margin-left: 10px;
}

.country-selector select {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.country-selector select option {
    color: var(--text-color);
    background-color: white;
}

.top-links a {
    margin-right: 15px;
    transition: var(--transition);
}

.top-links a:hover {
    color: var(--secondary-color);
}

.main-nav {
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
    width: 220px;
}

/* شريط البحث المحسن */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: var(--font-family);
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 126, 139, 0.2);
}

.search-form button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.no-results-message {
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px;
    color: var(--text-light);
    width: 100%;
}

.nav-links {
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    margin-right: 25px;
    position: relative;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links i {
    margin-right: 5px;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: 600px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-column {
    flex: 1;
    padding: 0 15px;
}

.dropdown-column h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 16px;
    position: relative;
    padding-bottom: 8px;
}

.dropdown-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-column a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.nav-icons {
    display: flex;
    align-items: center;
}

.nav-icons a {
    margin-right: 15px;
    font-size: 20px;
    transition: var(--transition);
    position: relative;
}

.nav-icons a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-color);
}

/* البانر الرئيسي */
.hero-banner {
    position: relative;
    height: 550px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-top: 20px;
    box-shadow: var(--box-shadow);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 500px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: var(--border-radius);
}

.banner-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.banner-nav:hover {
    background-color: var(--primary-color);
}

.banner-nav.prev {
    right: 20px;
}

.banner-nav.next {
    left: 20px;
}

/* الفئات الرئيسية */
.main-categories {
    padding: 70px 0;
    background-color: var(--section-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 220px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 18px;
    font-size: 20px;
    color: var(--dark-color);
    transition: var(--transition);
}

.category-card:hover h3 {
    color: var(--primary-color);
}

/* التأكيد على الفئة النشطة */
.nav-links > li > a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* المنتجات المميزة */
.featured-products {
    padding: 70px 0;
    background-color: var(--light-color);
}

.featured-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.featured-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 126, 139, 0.3);
}

.featured-nav {
    display: flex;
    gap: 12px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 270px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 126, 139, 0.3);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-title {
    font-size: 17px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 15px;
    text-decoration: line-through;
    color: var(--text-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.stars {
    color: #ffc107;
}

.rating-count {
    font-size: 13px;
    color: var(--text-light);
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(255, 126, 139, 0.2);
}

.add-to-cart:hover {
    background-color: var(--dark-color);
    box-shadow: 0 6px 12px rgba(109, 59, 71, 0.2);
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

/* قسم المدونة */
.blog-preview {
    padding: 70px 0;
    background-color: var(--section-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    color: var(--dark-color);
}

.read-more i {
    font-size: 12px;
}

/* العرض الخاص */
.special-offer {
    padding: 90px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(255, 126, 139, 0.9), rgba(255, 126, 139, 0.9)), url('../images/offer-bg.jpg');
    background-size: cover;
    background-position: center;
}

.special-offer h2 {
    font-size: 40px;
    margin-bottom: 18px;
}

.special-offer p {
    font-size: 22px;
    margin-bottom: 30px;
}

.special-offer span {
    font-weight: bold;
    font-size: 26px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 6px;
}

/* الفوتر */
.main-footer {
    background-color: #2a2a2a;
    color: #ddd;
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    transition: var(--transition);
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-column p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    margin-bottom: 25px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: var(--font-family);
}

.newsletter-form button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--dark-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--primary-color);
}

.app-download {
    margin-top: 20px;
}

.app-download p {
    margin-bottom: 10px;
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-buttons img {
    height: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-methods img {
    height: 30px;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
}

/* تحسينات للتجاوب */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-banner {
        height: 450px;
    }
    
    .banner-content {
        right: 5%;
        max-width: 400px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .banner-content {
        right: 0;
        left: 0;
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    
    .banner-content h1 {
        font-size: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 26px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .special-offer h2 {
        font-size: 30px;
    }
    
    .special-offer p {
        font-size: 18px;
    }
}

/* تحسينات إضافية للتجربة */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.mobile-menu-body {
    padding: 15px;
}

.mobile-menu-body ul {
    margin-bottom: 20px;
}

.mobile-menu-body ul li {
    margin-bottom: 10px;
}

.mobile-menu-body ul li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* تحسينات للتفاعل */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للقابلية للاستخدام */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    z-index: 1002;
    transition: var(--transition);
}

.skip-to-content:focus {
    top: 0;
}

/* تحسينات للوصول */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* تحسينات للتحميل */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* تحسينات للإشعارات */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1003;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    border-right: 4px solid #4caf50;
}

.notification.error {
    border-right: 4px solid #f44336;
}

.notification.info {
    border-right: 4px solid #2196f3;
}

/* تحسينات للتصفية والفرز */
.filter-section {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.filter-section h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 18px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-checkbox input {
    margin: 0;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sort-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-family: var(--font-family);
}

/* تحسينات للمنتجات المميزة */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--gold-color);
    color: white;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* تحسينات للمنتجات المتعلقة */
.related-products {
    padding: 50px 0;
}

.related-products h2 {
    margin-bottom: 30px;
}

/* تحسينات للتقييمات */
.review-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.review-rating {
    color: #ffc107;
}

.review-content {
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpful-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.helpful-btn:hover {
    background-color: var(--light-color);
}

.helpful-count {
    color: var(--text-light);
    font-size: 14px;
}

/* تحسينات للمقالات */
.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.article-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* تحسينات للتنقل بين الصفحات */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination-item:hover, .pagination-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* تحسينات للبحث */
.search-results {
    padding: 50px 0;
}

.search-results-header {
    margin-bottom: 30px;
}

.search-results-count {
    color: var(--text-light);
    margin-bottom: 20px;
}

.search-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-filter-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-filter-btn.active, .search-filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* تحسينات للتسجيل وتسجيل الدخول */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-family);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 126, 139, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-auth {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: var(--transition);
}

.social-auth-btn:hover {
    transform: translateY(-3px);
}

.facebook {
    background-color: #3b5998;
    color: white;
}

.google {
    background-color: #db4437;
    color: white;
}

.twitter {
    background-color: #1da1f2;
    color: white;
}

/* تحسينات للسلة */
.cart-container {
    padding: 50px 0;
}

.cart-header {
    margin-bottom: 30px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 20px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cart-item-current-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background-color: var(--light-color);
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.cart-item-remove {
    margin-right: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #f44336;
}

.cart-summary {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    font-weight: 600;
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cart-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* تحسينات للمفضلة */
.wishlist-container {
    padding: 50px 0;
}

.wishlist-header {
    margin-bottom: 30px;
}

.wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.wishlist-empty {
    text-align: center;
    padding: 50px 0;
}

.wishlist-empty i {
    font-size: 50px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.wishlist-empty p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* تحسينات للصفحات الفرعية */
.page-header {
    background-color: var(--light-color);
    padding: 50px 0;
    margin-bottom: 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 12px;
}

/* تحسينات للتنبيهات */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-right: 4px solid #4caf50;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-right: 4px solid #f44336;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-right: 4px solid #2196f3;
}

.alert-warning {
    background-color: #fff8e1;
    color: #f57f17;
    border-right: 4px solid #ffc107;
}

/* تحسينات للتوافق مع الطباعة */
@media print {
    .main-nav, .main-footer, #back-to-top, .mobile-menu, .mobile-menu-overlay {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .product-actions, .product-share {
        display: none;
    }
}
