/* Collection Section Slider Styles */
.collection-section .section-header {
    margin-bottom: 30px;
}

/* Offer wrapper with banner */
.offer-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.offer-banner {
    flex: 0 0 300px;
    max-width: 300px;
}

.product-slider-wrapper {
    flex: 1;
    min-width: 0;
}

/* Banner position right */
.offer-wrapper.flex-row-reverse {
    flex-direction: row-reverse;
}

@media (max-width: 991px) {
    .offer-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .offer-banner {
        flex: none;
        max-width: 100%;
        order: 0;
    }
    
    .offer-wrapper.flex-row-reverse {
        flex-direction: column;
    }
    
    .offer-wrapper.flex-row-reverse .offer-banner {
        order: -1;
    }
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.see-all-link {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.see-all-link:hover {
    color: hsl(var(--base));
}

.slider-arrows {
    display: flex;
    gap: 8px;
}

.slider-arrow {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: hsl(var(--base));
    border-color: hsl(var(--base));
    color: #fff;
}

.slider-arrow i {
    font-size: 18px;
}

/* Product row grouping */
.product-row-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Smooth transitions */
.collection-section .owl-stage {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-section .owl-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.collection-section .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-section .product-card:hover {
    transform: translateY(-5px);
}

/* Desktop: Grid layout with dashboard control */
@media (min-width: 768px) {
    .product-row-group {
        display: grid;
        gap: 15px;
        width: 100%;
    }
    
    /* Desktop columns (3-6) - rows auto-create */
    .product-row-group[data-desktop-cols="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-row-group[data-desktop-cols="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-row-group[data-desktop-cols="5"] {
        grid-template-columns: repeat(5, 1fr);
    }
    .product-row-group[data-desktop-cols="6"] {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile: Grid layout with dashboard control */
@media (max-width: 767px) {
    .collection-section .owl-item {
        padding: 0 5px;
    }
    
    .offer-wrapper {
        gap: 10px;
    }
    
    .product-row-group {
        display: grid;
        gap: 10px;
        width: 100%;
    }
    
    /* Mobile columns (1-4) - rows auto-create */
    .product-row-group[data-mobile-cols="1"] {
        grid-template-columns: 1fr;
    }
    .product-row-group[data-mobile-cols="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-row-group[data-mobile-cols="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-row-group[data-mobile-cols="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Compact mobile styling - minimal override */
    .collection-section .product-card {
        padding: 3px;
    }
    
    .collection-section .product-content {
        margin-top: 5px;
    }
    
    .collection-section .product-content .title {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .collection-section .product-content .price {
        font-size: 0.875rem;
    }
    
    .collection-section .ratings-area {
        font-size: 0.7rem;
    }
    
    .collection-section .product-card-buttons {
        top: 8px;
        right: 8px;
    }
    
    .collection-section .product-card-buttons li a,
    .collection-section .product-card-buttons li button {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .slider-arrows {
        display: none;
    }
    
    /* Smooth mobile transitions */
    .collection-section .owl-stage {
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .see-all-link {
        font-size: 13px;
    }
}
