/* Category-wise Product Sliders */
.category-products-section {
    padding: 40px 0;
    background: #fff;
}

.category-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 15px;
}

.category-products-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
}

.category-products-title i {
    margin-right: 10px;
    color: #667eea;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #764ba2;
    text-decoration: none;
}

.view-all-link i {
    margin-left: 5px;
}

/* Compact Product Card */
.compact-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.compact-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.compact-product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.compact-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.compact-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4444;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.compact-product-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-product-brand {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.compact-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.compact-product-pricing {
    margin: 8px 0;
}

.compact-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.compact-product-sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.compact-product-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.compact-product-discount {
    font-size: 12px;
    color: #00a650;
    font-weight: 600;
}

.compact-product-cashback {
    font-size: 11px;
    color: #007bff;
    background: #e7f3ff;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.compact-product-footer {
    padding: 0 12px 12px;
    margin-top: auto;
}

.compact-product-buy-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #ed174f;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.compact-product-buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.4);
    background: #d01545;
    color: white;
    text-decoration: none;
}

.compact-product-buy-btn i {
    margin-right: 5px;
}

/* Swiper Customization for Products */
.category-products-swiper {
    padding: 0 15px 30px;
}

.category-products-swiper .swiper-button-next,
.category-products-swiper .swiper-button-prev {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.category-products-swiper .swiper-button-next:after,
.category-products-swiper .swiper-button-prev:after {
    font-size: 18px;
    color: #ed174f;
    font-weight: bold;
}

.category-products-swiper .swiper-button-next:hover,
.category-products-swiper .swiper-button-prev:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.3);
}

.category-products-swiper .swiper-pagination-bullet {
    background: #ed174f;
    opacity: 0.3;
}

.category-products-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ed174f;
}

/* Responsive */
@media (max-width: 768px) {
    .category-products-title {
        font-size: 18px;
    }
    
    .category-products-section {
        padding: 20px 0;
    }
    
    .category-products-header {
        padding: 0 10px;
        margin-bottom: 16px;
    }
    
    .compact-product-content {
        padding: 10px;
    }
    
    .compact-product-title {
        font-size: 12px;
        min-height: 30px;
    }
    
    .compact-product-sale-price {
        font-size: 15px;
    }
    
    .compact-product-original-price {
        font-size: 11px;
    }
    
    .compact-product-discount {
        font-size: 11px;
    }
    
    .compact-product-cashback {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .compact-product-footer {
        padding: 0 10px 10px;
    }
    
    .compact-product-buy-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .category-products-swiper .swiper-button-next,
    .category-products-swiper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    
    .category-products-swiper .swiper-button-next:after,
    .category-products-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .compact-product-badge {
        font-size: 10px;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }
}

@media (max-width: 480px) {
    .category-products-section {
        padding: 15px 0;
    }
    
    .category-products-header {
        margin-bottom: 12px;
        padding: 0 8px;
    }
    
    .category-products-title {
        font-size: 16px;
    }
    
    .category-products-title i {
        margin-right: 6px;
        font-size: 18px;
    }
    
    .view-all-link {
        font-size: 12px;
    }
    
    .category-products-swiper {
        padding: 0 8px 20px;
    }
    
    .compact-product-content {
        padding: 8px;
    }
    
    .compact-product-brand {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .compact-product-title {
        font-size: 11px;
        min-height: 28px;
        margin-bottom: 6px;
    }
    
    .compact-product-pricing {
        margin: 6px 0;
    }
    
    .compact-product-price-row {
        gap: 4px;
    }
    
    .compact-product-sale-price {
        font-size: 14px;
    }
    
    .compact-product-original-price {
        font-size: 10px;
    }
    
    .compact-product-discount {
        font-size: 10px;
    }
    
    .compact-product-cashback {
        font-size: 9px;
        padding: 2px 4px;
        margin-top: 3px;
    }
    
    .compact-product-footer {
        padding: 0 8px 8px;
    }
    
    .compact-product-buy-btn {
        padding: 7px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .compact-product-buy-btn i {
        margin-right: 3px;
        font-size: 11px;
    }
    
    .category-products-swiper .swiper-button-next,
    .category-products-swiper .swiper-button-prev {
        width: 28px;
        height: 28px;
    }
    
    .category-products-swiper .swiper-button-next:after,
    .category-products-swiper .swiper-button-prev:after {
        font-size: 12px;
    }
    
    .compact-product-badge {
        font-size: 9px;
        padding: 2px 5px;
        top: 5px;
        left: 5px;
        border-radius: 12px;
    }
    
    .compact-product-image {
        padding: 8px;
    }
    
    .category-section-divider {
        margin: 10px 0;
    }
}

/* Section Divider */
.category-section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 20px 0;
}
