/**
 * Product Banner Slider Module Styles
 * Adapts the hero slider style for use in product detail pages
 */

/* Reuse hero slider base styles with specific overrides */
.product-banner-slider {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    width: 100%;
}

/* Banner container */
.product-banner-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 300px;
    position: relative;
    touch-action: pan-y;
}

/* Banner item */
.product-banner-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: none;
}

.product-banner-item.active {
    display: block;
}

/* Banner image */
.product-banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Optional gradient overlay */
.product-banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* Banner content */
.product-banner-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 60%;
    color: white;
}

.product-banner-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-banner-content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Banner button */
.product-banner-btn {
    background-color: var(--accent-color, #c62828);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.product-banner-btn:hover {
    background-color: #8a1a29;
    color: white;
}

/* Banner controls */
.product-banner-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

/* Banner image */
/* Banner container */
.product-sales-banner-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    position: relative;
    touch-action: pan-y;
}
.product-sales-banner-slider {
    position: relative;
    margin: 40px 0;
    width: 100%;
}
.product-sales-banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Optional gradient overlay */
.product-sales-banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* Navigation buttons */
.product-banner-prev-btn,
.product-banner-next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.product-banner-prev-btn:hover,
.product-banner-next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Indicator dots */
.product-banner-dots {
    display: flex;
    justify-content: center;
    margin: 0 15px;
}

.product-banner-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-banner-dot.active {
    background-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-banner-container {
        height: 240px;
    }
    
    .product-banner-image {
        height: 240px;
    }
    
    .product-banner-content {
        width: 80%;
        padding: 25px;
    }
    
    .product-banner-content h2 {
        font-size: 22px;
    }
    
    .product-banner-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-banner-container {
        height: 200px;
    }
    
    .product-banner-image {
        height: 200px;
    }
    
    .product-banner-content {
        width: 90%;
        padding: 15px;
    }
    
    .product-banner-content h2 {
        font-size: 18px;
    }
    
    .product-banner-content p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .product-banner-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}
