/* ==========================================
   FILE SỬA LỖI - FIXES.CSS
   Sửa: Chữ mờ, Contrast thấp, Responsive
   ========================================== */

/* 1. SỬA CHỮ MỜ TRONG BANNER & POPUP */
.countdown-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.countdown-display {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 8px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 2px !important;
}

.banner-main {
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5) !important;
}

.banner-sub {
    font-weight: 700 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* 2. SỬA POPUP TEXT */
.popup-title {
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6) !important;
}

.popup-subtitle {
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.popup-offer span {
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.popup-offer strong {
    font-weight: 900 !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
}

/* 3. SỬA PRODUCT CARD TEXT */
.product-title {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.5 !important;
}

.product-description {
    font-weight: 500 !important;
    color: #333333 !important;
    line-height: 1.7 !important;
}

.product-benefits li {
    font-weight: 500 !important;
    color: #1a1a1a !important;
}

.product-review .review-text {
    font-weight: 500 !important;
    color: #1a1a1a !important;
    font-style: italic;
}

/* 4. SỬA FOOTER TEXT CONTRAST */
.footer-section h3 {
    font-weight: 900 !important;
    color: #ffffff !important;
}

.footer-section p,
.footer-links a {
    font-weight: 500 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.footer-disclaimer p {
    font-weight: 500 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.footer-bottom p {
    font-weight: 600 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* 5. SỬA SECTION TITLE */
.section-title {
    font-weight: 900 !important;
    color: #1a1a1a !important;
}

.section-subtitle {
    font-weight: 600 !important;
    color: #333333 !important;
}

/* 6. SỬA ABOUT & TRUST CARDS */
.about-card h3,
.trust-card h3 {
    font-weight: 800 !important;
    color: #1a1a1a !important;
}

.about-card p,
.trust-card p {
    font-weight: 500 !important;
    color: #333333 !important;
}

/* 7. SỬA FAQ */
.faq-question span {
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

.faq-answer p {
    font-weight: 500 !important;
    color: #333333 !important;
    line-height: 1.8 !important;
}

/* 8. SỬA HERO SECTION */
.hero-title {
    font-weight: 900 !important;
    color: #1a1a1a !important;
}

.hero-subtitle {
    font-weight: 600 !important;
    color: #333333 !important;
}

.stat-number {
    font-weight: 900 !important;
    color: #ee4d2d !important;
}

.stat-label {
    font-weight: 600 !important;
    color: #666666 !important;
}

/* 9. SỬA RESPONSIVE - MOBILE */
@media (max-width: 768px) {
    /* BANNER NHỎ GỌN HƠN */
    .tet-banner {
        padding: 8px 0 !important;
    }
    
    .banner-content {
        padding: 0 12px !important;
        gap: 8px !important;
    }
    
    .banner-text {
        gap: 4px !important;
    }
    
    .banner-icon {
        font-size: 18px !important;
        display: none; /* Ẩn icon để tiết kiệm không gian */
    }
    
    .banner-main {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
    
    .banner-sub {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    .countdown-banner {
        padding: 6px 12px !important;
        border-radius: 20px !important;
    }
    
    .countdown-label {
        font-size: 11px !important;
        display: none; /* Ẩn chữ "Kết thúc sau:" để gọn hơn */
    }
    
    .countdown-display {
        font-size: 13px !important;
        padding: 3px 8px !important;
        letter-spacing: 0.5px !important;
    }
    
    .banner-cta {
        padding: 8px 16px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
    }
    
    /* HERO SECTION NHỎ GỌN */
    .hero {
        padding: 40px 0 !important;
    }
    
    .hero-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    .hero-badge {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .hero-stats {
        margin: 20px 0 !important;
        gap: 12px !important;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
    
    .hero-cta {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    /* PRODUCT CARDS */
    .product-title {
        font-size: 18px !important;
    }
    
    .product-description {
        font-size: 15px !important;
    }
    
    /* SECTION SPACING */
    .section-title {
        margin-bottom: 16px !important;
    }
    
    .products {
        padding: 40px 0 !important;
    }
}

@media (max-width: 480px) {
    /* BANNER CỰC NHỎ GỌN CHO ĐIỆN THOẠI NHỎ */
    .tet-banner {
        padding: 6px 0 !important;
    }
    
    .banner-main {
        font-size: 11px !important;
        font-weight: 800 !important;
    }
    
    .banner-sub {
        font-size: 10px !important;
    }
    
    .countdown-display {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }
    
    .banner-cta {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    /* HERO SECTION CỰC GỌN */
    .hero {
        padding: 30px 0 !important;
    }
    
    .hero-title {
        font-size: 20px !important;
    }
    
    .hero-subtitle {
        font-size: 13px !important;
    }
    
    .popup-title {
        font-size: 22px !important;
    }
}

/* 10. ĐẢM BẢO HÌNH ẢNH HIỂN THỊ ĐẦY ĐỦ */
.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    background: #f5f5f5 !important;
}

.product-image-link {
    display: block;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

/* 11. SỬA BUTTON CONTRAST */
.product-cta,
.hero-cta,
.banner-cta,
.popup-cta {
    font-weight: 800 !important;
    text-shadow: none !important;
}

/* 12. ĐẢM BẢO TEXT KHÔNG BỊ MỜ KHI HOVER */
.product-card:hover .product-title,
.product-card:hover .product-description,
.product-card:hover .product-benefits {
    opacity: 1 !important;
}

/* 13. SỬA TAG BADGES */
.tag {
    font-weight: 700 !important;
    color: #333333 !important;
}

.product-badge {
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.product-category span {
    font-weight: 600 !important;
    color: #666666 !important;
}

/* 14. ĐẢM BẢO CONTRAST CHO LINK */
a {
    color: inherit;
}

a:hover {
    opacity: 1 !important;
}

/* 15. FIX CHO COUNTDOWN TRÊN MOBILE */
@media (max-width: 768px) {
    .countdown-banner {
        width: 100%;
        max-width: 100%;
        padding: 8px 16px !important;
    }
    
    .banner-text {
        width: 100%;
    }
    
    .banner-cta {
        width: 100%;
        max-width: 100%;
    }
}

/* 16. ĐẢM BẢO IMAGE KHÔNG BỊ CROP */
@media (max-width: 768px) {
    .product-image {
        height: 280px !important;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 240px !important;
    }
}

/* 17. SỬA POPUP RESPONSIVE */
@media (max-width: 768px) {
    .popup-content {
        margin: 20px !important;
        padding: 30px 24px !important;
    }
}

@media (max-width: 480px) {
    .popup-content {
        margin: 16px !important;
        padding: 24px 20px !important;
    }
}

/* 18. ẨN BANNER KHI SCROLL XUỐNG (MOBILE) */
@media (max-width: 768px) {
    .tet-banner.hidden-on-scroll {
        transform: translateY(-100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    /* Giảm padding top của hero khi banner ẩn */
    body.banner-hidden .hero {
        padding-top: 20px !important;
    }
}

/* 19. LÀM NỔI BẬT STATS SECTION */
.hero-stats {
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%) !important;
    padding: 30px 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(238, 77, 45, 0.15) !important;
    border: 3px solid #ee4d2d !important;
    margin: 40px 0 !important;
    animation: statsGlow 2s ease-in-out infinite !important;
}

@keyframes statsGlow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(238, 77, 45, 0.15);
    }
    50% {
        box-shadow: 0 15px 50px rgba(238, 77, 45, 0.3);
    }
}

.stat-item {
    position: relative;
    padding: 20px !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(238, 77, 45, 0.25) !important;
}

.stat-number {
    font-size: 64px !important;
    font-weight: 900 !important;
    color: #ee4d2d !important;
    line-height: 1 !important;
    margin-bottom: 10px !important;
    text-shadow: 3px 3px 6px rgba(238, 77, 45, 0.2) !important;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6633 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Thêm icon trước stat-label */
.stat-item:nth-child(1) .stat-label::before {
    content: "📦 ";
    font-size: 20px;
}

.stat-item:nth-child(2) .stat-label::before {
    content: "✓ ";
    font-size: 20px;
    color: #4caf50;
}

.stat-item:nth-child(3) .stat-label::before {
    content: "⭐ ";
    font-size: 20px;
}

/* Thêm badge "HOT" cho stat đầu tiên */
.stat-item:nth-child(1)::after {
    content: "HOT";
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6633, #ee4d2d);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile responsive cho stats */
@media (max-width: 768px) {
    .hero-stats {
        padding: 20px !important;
        margin: 30px 0 !important;
        border-width: 2px !important;
    }
    
    .stat-item {
        padding: 16px !important;
    }
    
    .stat-number {
        font-size: 48px !important;
    }
    
    .stat-label {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        padding: 16px !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .stat-item {
        width: 100% !important;
    }
    
    .stat-number {
        font-size: 42px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
}
