* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
}

.container-promotion {
    max-width: 1200px;
    background-color: white;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
    overflow: hidden; /* Ngăn tràn nội dung */
    border-radius: 8px;
}

.section-title-promotion {
    font-size: 24px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

.promotions-wrapper-promotion {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    align-items: start;
    justify-items: center;
    width: 100%;
    max-width: 100%;
}

.promotion-item-promotion {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 4px;
    border-radius: 8px;
    width: 100%;
    max-width: 110px;
    background: transparent;
    min-width: 0; /* Cho phép flex item co lại */
}

.promotion-item-promotion:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.promotion-image-promotion {
    width: 45px; /* Giảm từ 65px xuống 45px */
    height: 45px; /* Giảm từ 65px xuống 45px */
    margin-bottom: 10px; /* Tăng khoảng cách để chữ nổi bật hơn */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.promotion-image-promotion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.promotion-item-promotion:hover .promotion-image-promotion img {
    transform: scale(1.05);
}

.promotion-text-promotion {
    font-size: 12px; /* Tăng từ 10px lên 12px */
    font-weight: 500; /* Tăng từ 600 lên 500 để nổi bật hơn */
    color: #333333;
    text-align: center;
    line-height: 1.3; /* Tăng line-height để dễ đọc hơn */
    max-width: 100%;
    word-wrap: break-word;
    margin: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Desktop - 1 hàng tất cả - Tối ưu cho 1200px */
@media screen and (min-width: 1025px) {
    .container-promotion {
    }
    
    .section-title-promotion {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 19px;
        margin-bottom: 15px;
    }
    
    .promotions-wrapper-promotion {
        grid-template-columns: repeat(10, 1fr);
        gap: 10px;
    }
    
    .promotion-item-promotion {
        padding: 10px 6px;
        max-width: 105px;
    }
    
    .promotion-image-promotion {
        width: 50px; /* Giảm từ 75px xuống 50px */
        height: 50px; /* Giảm từ 75px xuống 50px */
        margin-bottom: 12px;
    }
    
    .promotion-text-promotion {
        font-size: 16px; /* Tăng từ 14px lên 16px */
        font-weight: 500;
        line-height: 1.4;
    }
}

/* Tablet và Mobile - 2 hàng, 5 cột */
@media screen and (max-width: 1024px) {
    .promotions-wrapper-promotion {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        max-width: 100%;
    }
    
    .promotion-item-promotion {
        max-width: 95px;
        padding: 8px 5px;
    }
    
    .promotion-image-promotion {
        width: 40px; /* Giảm từ 60px xuống 40px */
        height: 40px; /* Giảm từ 60px xuống 40px */
        margin-bottom: 10px;
    }
    
    .promotion-text-promotion {
        font-size: 12px; /* Tăng từ 10px lên 12px */
        font-weight: 500;
        max-width: 85px;
        line-height: 1.3;
    }
}

/* Mobile nhỏ */
@media screen and (max-width: 480px) {
    .container-promotion {
        padding: 15px 10px;
    }
    
    .section-title-promotion {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .promotions-wrapper-promotion {
        gap: 8px;
    }
    
    .promotion-item-promotion {
        max-width: 65px;
        padding: 6px 3px;
    }
    
    .promotion-image-promotion {
        width: 35px; /* Giảm từ 50px xuống 35px */
        height: 35px; /* Giảm từ 50px xuống 35px */
        margin-bottom: 8px;
    }
    
    .promotion-text-promotion {
        font-size: 10px; /* Tăng từ 9px lên 10px */
        font-weight: 500;
        max-width: 60px;
        line-height: 1.2;
    }
}

/* Hiệu ứng loading cho hình ảnh */
.promotion-image-promotion img {
    opacity: 0;
    animation: fadeInPromotion 0.5s ease-in-out forwards;
}

@keyframes fadeInPromotion {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hiệu ứng click */
.promotion-item-promotion:active {
    transform: translateY(-2px) scale(0.98);
}

/* Đảm bảo không tràn container */
.promotions-wrapper-promotion::after {
    content: '';
    grid-column: 1 / -1;
    height: 1px;
    background: transparent;
}

/* Responsive cho màn hình lớn nhưng vẫn giữ trong 1200px */
@media screen and (min-width: 1200px) {
    .container-promotion {
        max-width: 1200px;
    }
    
    .promotions-wrapper-promotion {
        gap: 12px;
    }
    
    .promotion-item-promotion {
        max-width: 110px;
        padding: 12px 8px;
    }
    
    .promotion-image-promotion {
        width: 55px; /* Giảm từ 80px xuống 55px */
        height: 55px; /* Giảm từ 80px xuống 55px */
        margin-bottom: 14px;
    }
    
    .promotion-text-promotion {
        font-size: 13px; /* Tăng từ 12px lên 18px */
        font-weight: 500;
        line-height: 1.4;
    }
}

/* Đảm bảo responsive tốt cho các màn hình từ 768px đến 1024px */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container-promotion {
        padding: 20px 15px;
    }
    
    .promotions-wrapper-promotion {
        max-width: 600px;
        margin: 0 auto;
    }
}