/* Custom styles for Cureava website */

/* Category section image consistency */
.collection-image {
    height: 300px !important;
    overflow: hidden !important;
}

.collection-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.collection-image:hover img {
    transform: scale(1.05);
}

/* Product grid consistency */
.collection-item-v2 .collection-image {
    height: 300px !important;
    overflow: hidden !important;
}

.collection-item-v2 .collection-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Product Grid Responsive Design */
.tf-grid-layout.tf-col-2.md-col-3.lg-col-6 {
    display: grid;
    gap: 20px;
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .tf-grid-layout.tf-col-2.md-col-3.lg-col-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-product {
        margin-bottom: 15px;
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .tf-grid-layout.tf-col-2.md-col-3.lg-col-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 6 columns */
@media (min-width: 992px) {
    .tf-grid-layout.tf-col-2.md-col-3.lg-col-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .collection-image,
    .collection-item-v2 .collection-image {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .collection-image,
    .collection-item-v2 .collection-image {
        height: 200px !important;
    }
}

/* Product card responsive improvements */
@media (max-width: 767px) {
    .card-product .card-product-info .title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .card-product .price {
        font-size: 16px;
    }
    
    .list-product-btn .box-icon {
        width: 35px;
        height: 35px;
    }
    
    .list-product-btn .tooltip {
        font-size: 12px;
    }
}

/* Categories with Products Section Styles */
.category-section {
    margin-bottom: 80px;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-section:last-child {
    border-bottom: none;
}

/* صورة القسم بعرض 100% */
.category-full-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-bottom: 40px;
}

.category-image-full {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-full-image:hover .category-image-full {
    transform: scale(1.02);
}

/* Overlay للمعلومات على الصورة */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.category-info-overlay {
    text-align: center;
    color: white;
    max-width: 600px;
}

.category-title-overlay {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-description-overlay {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.category-stats-overlay {
    margin-bottom: 30px;
}

.category-stats-overlay .badge {
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 30px;
    background-color: rgba(255,255,255,0.9) !important;
    color: #333 !important;
}

/* قسم المنتجات مع السلايدر */
.category-products-slider {
    margin-top: 40px;
}

.category-products-slider h4 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.products-slider-container {
    position: relative;
    padding: 0 20px;
}

.category-products-swiper {
    padding: 20px 0;
}

.category-products-swiper .swiper-slide {
    height: auto;
}

/* تحسين مظهر المنتجات في السلايدر */
.category-products-swiper .card-product {
    margin: 0;
    height: 100%;
    transition: transform 0.3s ease;
}

.category-products-swiper .card-product:hover {
    transform: translateY(-5px);
}

.category-products-swiper .card-product-wrapper {
    height: 100%;
}

.category-products-swiper .product-img {
    height: 250px;
    overflow: hidden;
}

.category-products-swiper .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-products-swiper .product-img:hover img {
    transform: scale(1.05);
}

/* Responsive Design for Categories Section */
@media (max-width: 991px) {
    .category-title-overlay {
        font-size: 2.5rem;
    }
    
    .category-image-full {
        height: 400px;
    }
    
    .category-overlay {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .category-section {
        margin-bottom: 60px;
        padding: 30px 0;
    }
    
    .category-title-overlay {
        font-size: 2rem;
    }
    
    .category-image-full {
        height: 350px;
    }
    
    .category-description-overlay {
        font-size: 1rem;
    }
    
    .category-products-slider h4 {
        font-size: 1.8rem;
    }
    
    .category-overlay {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .category-image-full {
        height: 300px;
    }
    
    .category-title-overlay {
        font-size: 1.8rem;
    }
    
    .category-overlay {
        padding: 15px;
    }
    
    .category-products-swiper .product-img {
        height: 200px;
    }
}

/* Animation for category sections */
.category-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple sections */
.category-section:nth-child(1) { animation-delay: 0.1s; }
.category-section:nth-child(2) { animation-delay: 0.2s; }
.category-section:nth-child(3) { animation-delay: 0.3s; }
.category-section:nth-child(4) { animation-delay: 0.4s; }
.category-section:nth-child(5) { animation-delay: 0.5s; } 