/* Featured Products Section Styles */
.featured-products-section {
    padding: 4rem 0;
    border-top: 1px solid #f0f0f0;
}

.featured-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Slider Container */
.featured-products-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Grid Layout */
.featured-products-grid {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

/* Product Card */
.featured-product-card {
    flex: 0 0 calc(25% - 1.5rem);
    min-width: 250px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

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

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ccc;
    font-size: 3rem;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    z-index: 2;
}

[dir="rtl"] .discount-badge {
    left: auto;
    right: 15px;
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffa500;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.review-count {
    color: #666;
}

.brand-name {
    color: #888;
    font-size: 0.85rem;
    margin-left: auto;
}

[dir="rtl"] .brand-name {
    margin-left: 0;
    margin-right: auto;
}

/* Verification badge next to brand name */
.verify-badge {
    color: #1da1f2;
    margin-inline-start: .35rem;
    font-size: 1rem;
    vertical-align: middle;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: #555;
    transform: scale(1.1);
}

.slider-indicators {
    display: flex;
    gap: 0.5rem;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: #333;
    transform: scale(1.2);
}

/* More Items Button */
.more-items-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 2rem auto 0;
    display: block;
    width: fit-content;
}

.more-items-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .featured-product-card {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .featured-products-section {
        padding: 3rem 0;
    }
    
    .featured-products-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* عرض منتجين في الصف مثل المتجر - كروت طويلة */
    .featured-products-grid { flex-wrap: wrap; gap: 6%; }
    .featured-product-card { 
        flex: 0 0 47%; 
        min-width: 47%; 
        width: 47%; 
        display: flex;
        flex-direction: column;
        margin: 0 0 1.5rem;
        min-height: 420px; /* حد أدنى لارتفاع الكارت الكامل */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* ظل أقوى */
    }
    
    .product-image {
        height: 280px; /* زاد الارتفاع من 220 إلى 280 */
        position: relative;
        overflow: hidden;
    }
    
    /* الصور تملأ المساحة كاملة وطويلة */
    .featured-product-card .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* تضمن ملئ المساحة كاملة */
        transition: transform 0.3s ease;
    }
    
    .product-info {
        padding: 1.5rem; /* زاد الـ padding */
        min-height: 120px; /* حد أدنى للارتفاع */
        flex: 1; /* يأخذ باقي المساحة المتاحة */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .product-name {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.8rem; /* زاد المسافة */
    }
    
    .product-brand {
        margin-bottom: 0.6rem; /* مسافة إضافية */
    }
    
    .current-price {
        font-size: 1.3rem;
        margin-top: 0.8rem; /* مسافة من فوق */
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .more-items-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .featured-products-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* .product-image {
        height: 180px;
    } */
}

/* RTL Support */
[dir="rtl"] .featured-products-grid {
    direction: ltr; /* Keep slider mechanics LTR */
}

[dir="rtl"] .product-info {
    direction: rtl; /* Text content RTL */
}

[dir="rtl"] .nav-btn.prev-btn i:before {
    content: "\f054"; /* FontAwesome right arrow */
}

[dir="rtl"] .nav-btn.next-btn i:before {
    content: "\f053"; /* FontAwesome left arrow */
}