/**
 * ============================================================================
 * INDIGO BLUE THEMED CAROUSEL - Pantone 3155
 * ============================================================================
 * Brand Color: #3F6A70 (Indigo Blue)
 * CMYK: 110C 0M 25Y 47K
 * Gradient Palette:
 * - Light: #5A8B92
 * - Main: #3F6A70
 * - Dark: #2E5159
 * ============================================================================
 * IMPROVEMENTS:
 * - Centered product text (names, prices, buttons)
 * - object-fit: contain (no image cropping)
 * - Clean hover states (no excessive 3D effects)
 * - Image banner nav buttons: clear by default, opaque on hover
 * ============================================================================
 */

/* ========================================
   PRODUCT CAROUSELS (Top & Bottom)
   Indigo Blue Theme
   ======================================== */

.product-carousel-wrapper {
    margin: 60px 0;
    position: relative;
    width: 100%;
    padding: 0 20px;
}

.product-carousel-wrapper .carousel-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.product-carousel-wrapper .carousel-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    border-radius: 2px;
}

.product-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.product-carousel .carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.product-carousel .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    flex-wrap: nowrap;
}

.product-carousel .carousel-item {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: calc(25% - 20px);
    margin: 0 10px;
}

/* Indigo Blue Themed Product Card */
.product-carousel .product-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(63, 106, 112, 0.15);
    border-radius: 20px;
    padding: 10px 0 0 0;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(63, 106, 112, 0.12);
    position: relative;
    overflow: hidden;
}

.product-carousel .product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-carousel .product-item:hover {
    border-color: rgba(63, 106, 112, 0.4);
    box-shadow: 0 12px 40px rgba(63, 106, 112, 0.2);
}

.product-carousel .product-item:hover::before {
    opacity: 1;
}

.product-carousel .product-item-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-carousel .product-image-wrapper {
    text-align: center;
    margin-bottom: 20px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f5 0%, #ffffff 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.product-carousel .product-image {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-carousel .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.product-carousel .product-name {
    font-size: 17px;
    margin: 0 0 15px;
    line-height: 1.5;
    color: #2d3748;
    font-weight: 600;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.product-carousel .price-box {
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    letter-spacing: -0.5px;
    text-align: center;
    width: 100%;
}

.product-carousel .product-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Indigo Blue Gradient Button - Centered */
.product-carousel .action.tocart {
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(63, 106, 112, 0.4);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: block;
}

.product-carousel .action.tocart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.product-carousel .action.tocart:hover::before {
    left: 100%;
}

.product-carousel .action.tocart:hover {
    box-shadow: 0 6px 20px rgba(63, 106, 112, 0.5);
    background: linear-gradient(135deg, #5A8B92 0%, #2E5159 50%, #1a3238 100%);
}

/* Indigo Blue Navigation Buttons */
.product-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(63, 106, 112, 0.25);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(63, 106, 112, 0.15);
}

.product-carousel .carousel-nav:hover:not(.disabled) {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(63, 106, 112, 0.3);
    border-color: rgba(63, 106, 112, 0.5);
    background-color: rgba(90, 139, 146, 0.05);
}

.product-carousel .carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.product-carousel .carousel-prev {
    left: 0;
}

.product-carousel .carousel-next {
    right: 0;
}

.product-carousel .carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke: #3F6A70;
    stroke-width: 2.5;
}

/* ========================================
   IMAGE BANNER CAROUSEL (Top Middle)
   Indigo Blue Accents - 4:3 Aspect Ratio
   ======================================== */

.image-carousel-wrapper {
    margin: 60px 0;
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #2E5159 0%, #1a3238 100%);
    overflow: hidden;
}

.image-carousel-wrapper .carousel-title {
    text-align: center;
    padding: 40px 0 30px;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    position: relative;
    z-index: 5;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-carousel {
    position: relative;
    width: 100%;
    margin: 0;
}

.image-carousel .carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #2E5159 0%, #3F6A70 100%);
    padding-bottom: 41.67%;
    height: 0;
    max-height: 500px;
}

.image-carousel .carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.image-carousel .carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.image-carousel .banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.image-carousel .banner-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.image-carousel .banner-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.image-carousel .banner-link:hover::after {
    background: rgba(63, 106, 112, 0.08);
}

/* Navigation for Image Carousel - Clear by default, opaque on hover */
.image-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
    box-shadow: none;
}

.image-carousel .carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(63, 106, 112, 0.4);
    border-color: rgba(63, 106, 112, 0.5);
}

.image-carousel .carousel-prev {
    left: 30px;
}

.image-carousel .carousel-next {
    right: 30px;
}

.image-carousel .carousel-nav svg {
    width: 32px;
    height: 32px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2.5;
    transition: stroke 0.3s ease;
}

.image-carousel .carousel-nav:hover svg {
    stroke: #3F6A70;
}

/* Progress Indicators - Indigo Theme */
.image-carousel .carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
    background: rgba(46, 81, 89, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 30px;
}

.image-carousel .indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(90, 139, 146, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.image-carousel .indicator-dot:hover {
    background: rgba(90, 139, 146, 0.9);
    transform: scale(1.3);
}

.image-carousel .indicator-dot.active {
    background: #5A8B92;
    width: 32px;
    border-radius: 6px;
    border-color: #3F6A70;
}

/* ========================================
   MIXED CAROUSEL (Bottom Middle)
   Indigo Blue Theme - Static Image + 2 Products
   ======================================== */

.mixed-carousel-wrapper {
    margin: 60px 0;
    position: relative;
    width: 100%;
    padding: 0 20px;
}

.mixed-carousel-wrapper .carousel-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.mixed-carousel-wrapper .carousel-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    border-radius: 2px;
}

.mixed-carousel-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

/* Static Image on Left - Indigo Blue Theme */
.mixed-carousel-static-image {
    flex: 0 0 auto;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: stretch;
}

.mixed-carousel-static-image .static-image-link,
.mixed-carousel-static-image .static-image {
    width: 100%;
    height: 100%;
    display: block;
}

.mixed-carousel-static-image .static-image {
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(63, 106, 112, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(63, 106, 112, 0.15);
}

.mixed-carousel-static-image .static-image-link:hover .static-image {
    box-shadow: 0 12px 40px rgba(63, 106, 112, 0.25);
    transform: translateY(-5px);
    border-color: rgba(63, 106, 112, 0.3);
}

/* Product Carousel on Right - Fixed 2 Products */
.mixed-carousel {
    position: relative;
    flex: 1;
    padding: 0 80px;
    min-width: 0;
}

.mixed-carousel .carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.mixed-carousel .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    flex-wrap: nowrap;
}

.mixed-carousel .carousel-item {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: calc(50% - 10px);
    margin: 0 10px;
}

/* Product Items in Mixed Carousel - Indigo Theme */
.mixed-carousel .product-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(63, 106, 112, 0.15);
    border-radius: 20px;
    padding: 10px 0 0 0;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(63, 106, 112, 0.12);
    position: relative;
    overflow: hidden;
}

.mixed-carousel .product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mixed-carousel .product-item:hover {
    border-color: rgba(63, 106, 112, 0.4);
    box-shadow: 0 12px 40px rgba(63, 106, 112, 0.2);
}

.mixed-carousel .product-item:hover::before {
    opacity: 1;
}

.mixed-carousel .product-item-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mixed-carousel .product-image-wrapper {
    text-align: center;
    margin-bottom: 20px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f5 0%, #ffffff 100%);
    border-radius: 16px;
    overflow: hidden;
}

.mixed-carousel .product-image {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mixed-carousel .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.mixed-carousel .product-name {
    font-size: 17px;
    margin: 0 0 15px;
    line-height: 1.5;
    color: #2d3748;
    font-weight: 600;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.mixed-carousel .price-box {
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    letter-spacing: -0.5px;
    text-align: center;
    width: 100%;
}

.mixed-carousel .product-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mixed-carousel .action.tocart {
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #5A8B92 0%, #3F6A70 50%, #2E5159 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(63, 106, 112, 0.4);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: block;
}

.mixed-carousel .action.tocart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.mixed-carousel .action.tocart:hover::before {
    left: 100%;
}

.mixed-carousel .action.tocart:hover {
    box-shadow: 0 6px 20px rgba(63, 106, 112, 0.5);
    background: linear-gradient(135deg, #5A8B92 0%, #2E5159 50%, #1a3238 100%);
}

/* Mixed Carousel Navigation - Indigo Theme */
.mixed-carousel .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(63, 106, 112, 0.25);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(63, 106, 112, 0.15);
}

.mixed-carousel .carousel-nav:hover:not(.disabled) {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(63, 106, 112, 0.3);
    border-color: rgba(63, 106, 112, 0.5);
    background-color: rgba(90, 139, 146, 0.05);
}

.mixed-carousel .carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.mixed-carousel .carousel-prev {
    left: 0;
}

.mixed-carousel .carousel-next {
    right: 0;
}

.mixed-carousel .carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke: #3F6A70;
    stroke-width: 2.5;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1200px) {
    .product-carousel,
    .mixed-carousel {
        padding: 0 60px;
    }
    
    .product-carousel .carousel-item {
        width: calc(33.333% - 15px);
    }
    
    .mixed-carousel-static-image {
        width: 350px;
        height: 400px;
    }
    
    .mixed-carousel .carousel-item {
        width: calc(50% - 10px);
    }
    
    .image-carousel .carousel-prev {
        left: 20px;
    }
    
    .image-carousel .carousel-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .product-carousel-wrapper .carousel-title,
    .mixed-carousel-wrapper .carousel-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .product-carousel,
    .mixed-carousel {
        padding: 0 50px;
    }
    
    .product-carousel .carousel-item {
        width: calc(50% - 10px);
    }
    
    .mixed-carousel-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .mixed-carousel-static-image {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    .mixed-carousel-static-image .static-image {
        max-height: 400px;
        width: 100%;
        height: auto;
    }
    
    .mixed-carousel .carousel-item {
        width: calc(100% - 10px);
    }
    
    .product-carousel .carousel-nav,
    .mixed-carousel .carousel-nav {
        width: 50px;
        height: 50px;
    }
    
    .product-carousel .carousel-nav svg,
    .mixed-carousel .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .image-carousel .carousel-container {
        padding-bottom: 41.67%;
        max-height: 400px;
    }
    
    .image-carousel .carousel-nav {
        width: 60px;
        height: 60px;
    }
    
    .image-carousel .carousel-nav svg {
        width: 28px;
        height: 28px;
    }
    
    .image-carousel .carousel-prev {
        left: 15px;
    }
    
    .image-carousel .carousel-next {
        right: 15px;
    }
    
    .image-carousel-wrapper .carousel-title {
        font-size: 32px;
        padding: 30px 0 20px;
    }
    
    .product-carousel .product-item,
    .mixed-carousel .product-item {
        min-height: 400px;
        padding: 10px 0 0 0;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .product-carousel-wrapper,
    .mixed-carousel-wrapper {
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .product-carousel-wrapper .carousel-title,
    .mixed-carousel-wrapper .carousel-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .image-carousel-wrapper .carousel-title {
        font-size: 28px;
        padding: 30px 0 20px;
    }
    
    .product-carousel,
    .mixed-carousel {
        padding: 0 45px;
    }
    
    .product-carousel .carousel-item,
    .mixed-carousel .carousel-item {
        width: calc(100% - 10px);
    }
    
    .mixed-carousel-static-image {
        max-height: 300px;
    }
    
    .mixed-carousel-static-image .static-image {
        max-height: 300px;
    }
    
    .product-carousel .carousel-nav,
    .mixed-carousel .carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .product-carousel .carousel-nav svg,
    .mixed-carousel .carousel-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .image-carousel .carousel-container {
        padding-bottom: 41.67%;
        max-height: 250px;
    }
    
    .image-carousel .carousel-nav {
        width: 50px;
        height: 50px;
    }
    
    .image-carousel .carousel-nav svg {
        width: 24px;
        height: 24px;
    }
    
    .image-carousel .carousel-prev {
        left: 10px;
    }
    
    .image-carousel .carousel-next {
        right: 10px;
    }
    
    .product-carousel .product-item,
    .mixed-carousel .product-item {
        padding: 10px 0 0 0;
        min-height: 380px;
        border-radius: 14px;
    }
    
    .image-carousel .carousel-indicators {
        bottom: 15px;
        padding: 8px 15px;
        gap: 8px;
    }
    
    .product-carousel .action.tocart,
    .mixed-carousel .action.tocart {
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 10px;
    }
}
