/* promotions.css */
.promotions-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.promotions-header {
    text-align: center;
    margin-bottom: 2rem;
}

.promotions-header h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.promotions-header p {
    color: #666;
    font-size: 1.1rem;
}

.promotions-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

.promotions-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.promotions-slide {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    padding: 1rem;
}

.promotion-item {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid #f0f0f0;
}

.promotion-item:last-child {
    border-right: none;
}

.promotion-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.promotion-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promotion-item:hover .promotion-image img {
    transform: scale(1.05);
}

.promotion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.promotion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotion-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.promotion-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.promotion-dates {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #888;
}

.promotion-cta {
    display: inline-block;
    background: #4a6cf7;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.promotion-cta:hover {
    background: #3a5ce5;
}

.promotions-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.promotions-btn {
    background: #333;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.promotions-btn:hover {
    background: #555;
}

.promotions-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.promotions-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.promotions-dot.active {
    background: #333;
}

/* Mobile styles */
@media (max-width: 767px) {
    .promotion-item {
        width: 50%;
        flex: 0 0 50%;
    }
    
    .promotions-header h2 {
        font-size: 1.8rem;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .promotion-item {
        width: 33.333%;
        flex: 0 0 33.333%;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .promotion-item {
        width: 25%;
        flex: 0 0 25%;
    }
}

.empty-promotions {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-promotions img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.loading-promotions {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}