/* Modern Home Styles - Same as Cart */
.home-container {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.hero-slider-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 0 15px;
}

.slide-item {
    display: flex;
    align-items: center;
    padding: 3rem;
    min-height: 500px;
}

.slide-content {
    flex: 1;
    padding-right: 3rem;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.slide-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
}

.slide-tagline {
    font-size: 1.125rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.shop-now-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-now-btn:hover {
    background: #000;
    transform: translateY(-2px);
    color: white;
}

.slide-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Swiper Custom Styles */
.swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 0;
    right: 0;
}

.swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #333;
    opacity: 0.3;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #28a745;
}

/* Section Headers */
.section-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Products Grid Container */
.products-section {
    padding: 0 15px 3rem;
}

.products-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Product Card - صور أعرض بكثير */
.product-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Badges Header - في أعلى الصورة */
.product-badges-header {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sold-out-badge,
.sale-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.sale-badge {
    background: #28a745;
}

/* صور أعرض بكثير للمنتجات */
.product-image-wrapper {
    position: relative;
    height: 450px; /* نفس ارتفاع الكاتيجوري */
    overflow: hidden;
    background: white;
}

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

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

.product-info {
    padding: 1.5rem;
    text-align: center;
    background: white;
}

.product-title {
    font-size: 1.7rem;
    font-family: 'Poppins', sans-serif;font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-title:hover {
    color: #28a745;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

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

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

/* Product Sliders Styles - حاوية أوسع */
.products-slider-container {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.products-slider {
    overflow: hidden;
    padding: 0 50px;
}

.products-slider .swiper-slide {
    height: auto;
}

/* Navigation Arrows */
.slider-nav-prev,
.slider-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-nav-prev:hover,
.slider-nav-next:hover {
    background: #000;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-prev {
    left: 10px;
}

.slider-nav-next {
    right: 10px;
}

.slider-nav-prev.swiper-button-disabled,
.slider-nav-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* View All Button */
.view-all-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: #000;
    transform: translateY(-2px);
    color: white;
}

/* Category Card */
.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-image-wrapper {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: white;
}

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

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

.category-info {
    padding: 1.5rem;
    text-align: center;
    background: white;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.category-name:hover {
    color: #28a745;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-slider-wrapper {
        margin: 0 10px;
    }
    
    .slide-item {
        flex-direction: column;
        padding: 1.5rem;
        min-height: auto;
    }
    
    .slide-content {
        padding-right: 0;
        text-align: center;
        order: 2;
        margin-top: 1rem;
    }
    
    .slide-image-container {
        order: 1;
        width: 100%;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .slide-subtitle {
        font-size: 1.25rem;
    }
    
    .slide-tagline {
        font-size: 0.95rem;
    }
    
    .shop-now-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .section-header {
        padding: 2rem 0 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .products-section {
        padding: 0 10px 2rem;
    }
    
    .products-container {
        padding: 1rem;
    }
    
    /* Product cards on mobile */
    .product-card-modern {
        margin-bottom: 1rem;
    }
    
    .product-image-wrapper,
    .category-image-wrapper {
        height: 300px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        font-family: 'Poppins', sans-serif;
        -webkit-line-clamp: 1;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
    
    .price-old {
        font-size: 0.9rem;
    }
    
    /* Slider on mobile */
    .products-slider-container {
        padding: 1rem;
    }
    
    .products-slider {
        padding: 0 35px;
    }
    
    .slider-nav-prev,
    .slider-nav-next {
        width: 30px;
        height: 30px;
        font-size:
        font-size: 0.8rem;
    }
    
    .slider-nav-prev {
        left: 5px;
    }
    
    .slider-nav-next {
        right: 5px;
    }
    
    .view-all-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .product-image-wrapper,
    .category-image-wrapper {
        height: 350px;
    }
}

/* Portrait phones optimization */
@media (max-width: 414px) {
    .product-image-wrapper,
    .category-image-wrapper {
        height: 320px;
    }
}