/* Promotions Slider Styles */

.promotions-slider {
    position: relative;
    margin-top: 40px;
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.promotions-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 400px;
}

.promotions-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.promotion-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 0;
}

/* Image Side (Left) */
.promotion-image-side {
    flex: 0 0 50%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-image-side .promotion-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: none;
    transform: none !important;
    background: transparent;
    padding: 20px;
}

/* ป้องกันการซูมรูปภาพ */
.promotion-slide:hover .promotion-image,
.promotion-image-side:hover .promotion-image {
    transform: none !important;
    scale: none !important;
}

.promotion-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: #dc3545;
}

/* Content Side (Right) */
.promotion-content-side {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    height: 400px;
}

.promotion-content-side h3 {
    font-size: 2.2em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.3;
}

.promotion-content-side p {
    font-size: 1.1em;
    color: #1f1f1fb9;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.promotion-btn {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 15px 30px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.promotion-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5em;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Dots Indicator */
.slider-dots {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #dc3545;
    transform: scale(1.2);
}

.dot:hover {
    background: #adb5bd;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .promotion-slide {
        flex-direction: column;
        min-height: auto;
    }
    
    .promotion-image-side {
        flex: none;
        width: 100%;
        height: 250px;
        background: transparent;
    }
    
    .promotion-content-side {
        padding: 40px 30px;
        height: auto;
    }
    
    .promotion-content-side h3 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .promotion-content-side p {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    .promotion-image-side .promotion-image {
        padding: 15px;
    }
    
    .slider-controls {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .promotions-slider {
        border-radius: 0;
        margin-top: 30px;
    }
    
    .promotion-image-side {
        height: 200px;
        background: transparent;
    }
    
    .promotion-content-side {
        padding: 30px 20px;
    }
    
    .promotion-content-side h3 {
        font-size: 1.5em;
    }
    
    .promotion-btn {
        padding: 12px 25px;
        font-size: 0.9em;
        border-radius: 0;
    }
    
    .promotion-image-side .promotion-image {
        padding: 10px;
    }
    
    .slider-dots {
        padding: 20px 0;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Loading States */
.promotion-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.promotion-image.loaded {
    opacity: 1;
}

/* Smooth transitions */
.promotions-track {
    will-change: transform;
}

.promotion-slide {
    will-change: opacity;
}