* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: hwb(0 96% 4%);
        }

        /* Top Bar */
        .top-bar {
            background: linear-gradient(135deg, #ff9eb7 0%, #ffb3c6 100%);
            color: white;
            padding: 8px 0;
            font-size: 13px;
        }

        .top-bar-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-bar-left, .top-bar-right {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .top-bar a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .top-bar a:hover {
            opacity: 0.8;
        }

        /* Main Header */
        .main-header {
            background: linear-gradient(135deg, #ffb3c6 0%, #ffc9d6 100%);
            padding: 20px 0;
            box-shadow: 0 2px 8px rgba(255, 158, 183, 0.2);
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .logo {
            font-size: 32px;
            font-weight: bold;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            white-space: nowrap;
        }

        .search-bar {
            flex: 1;
            position: relative;
        }

        .search-bar input {
            width: 100%;
            padding: 12px 50px 12px 20px;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            outline: none;
        }

        .search-bar button {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            padding: 0 20px;
            background: #ff6b9d;
            border: none;
            color: white;
            cursor: pointer;
            border-radius: 0 4px 4px 0;
        }

        .search-bar button:hover {
            background: #ff5a8f;
        }

        .cart-icon {
            color: white;
            font-size: 28px;
            cursor: pointer;
            position: relative;
        }

        .cart-icon:hover {
            opacity: 0.8;
        }

        /* Navigation Menu */
        .nav-menu {
            background: white;
            border-bottom: 1px solid #ffcdd9;
        }

        .nav-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            gap: 25px;
            overflow-x: auto;
            white-space: nowrap;
        }

        .nav-content::-webkit-scrollbar {
            height: 0;
        }

        .nav-item {
            padding: 12px 0;
            color: #ff6b9d;
            text-decoration: none;
            font-size: 14px;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
        }

        .nav-item:hover {
            color: #ff5a8f;
            border-bottom-color: #ff6b9d;
        }

        /* Banner Slider */
        .banner-section {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        }

        .banner-grid {
            display: grid;
            grid-template-columns: 2.0fr 1fr;
            gap: 10px;
            margin-bottom: 10px;
            transform: translateX(-15px);
        }

        .banner-main {
            background: linear-gradient(135deg, #ff9eb7, #ffb3c6);
            border-radius: 2px;
            aspect-ratio: 997/294;
            overflow: hidden;
        }

        .banner-side {
            display: grid;
            gap: 10px;
        }

        .banner-small {
            background: linear-gradient(135deg, #ffffff, #ffffff);
            border-radius: 8px;
            aspect-ratio: 496/143;
            
        }

        .banner-bottom {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .banner-item {
            background: linear-gradient(135deg, #ffb3c6, #ffc9d6);
            border-radius: 8px;
            aspect-ratio: 2.5/1;
        }

        /* Quick Links */
        .quick-links {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 15px;
        }

        .quick-link-item {
            background: white;
            padding: 20px 10px;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            color: #333;
        }

        .quick-link-item:hover {
            box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
            transform: translateY(-2px);
        }

        .quick-link-icon {
            font-size: 40px;
            margin-bottom: 8px;
        }

        .quick-link-text {
            font-size: 13px;
            color: #555;
        }

        /* Category Section */
        .category-section {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
        }

        .section-title {
            font-size: 20px;
            color: #ff6b9d;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #ffcdd9;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .category-grid::-webkit-scrollbar {
            height: 6px;
        }

        .category-grid::-webkit-scrollbar-thumb {
            background: #ffb3c6;
            border-radius: 3px;
        }

        .category-column {
            background: white;
            border-radius: 8px;
            padding: 20px;
            min-width: 250px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .category-name {
            font-size: 16px;
            font-weight: bold;
            color: #ff6b9d;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #ffebf0;
        }

        .subcategory-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .subcategory-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            color: #555;
        }

        .subcategory-item:hover {
            background: #fff5f8;
            transform: translateX(5px);
        }

        .subcategory-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #fff0f5, #ffe4ec);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .subcategory-text {
            font-size: 14px;
            color: #333;
            line-height: 1.4;
        }

        /* Product Section */
        .product-section {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .product-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px 20px;
            background: linear-gradient(135deg, #fff5f8, #ffe4ec);
            border-radius: 8px;
        }

        .product-section-title {
            font-size: 18px;
            font-weight: bold;
            color: #ff6b9d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .view-all-btn {
            padding: 8px 20px;
            background: #ff6b9d;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }

        .view-all-btn:hover {
            background: #ff5a8f;
            transform: translateY(-2px);
        }

        .product-grid-container {
            position: relative;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            overflow-x: auto;
            padding-bottom: 10px;
            scroll-behavior: smooth;
        }

        .product-grid::-webkit-scrollbar {
            height: 6px;
        }

        .product-grid::-webkit-scrollbar-thumb {
            background: #ffb3c6;
            border-radius: 3px;
        }

        .product-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            min-width: 200px;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 16px rgba(255, 107, 157, 0.2);
        }

        .product-image {
            width: 100%;
            aspect-ratio: 1/1;
            background: linear-gradient(135deg, #fff0f5, #ffe4ec);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            position: relative;
            overflow: hidden;
        }

        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #ff6b9d;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: bold;
        }

        .product-info {
            padding: 12px;
        }

        .product-name {
            font-size: 14px;
            color: #333;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
            min-height: 40px;
        }

        .product-rating {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 8px;
        }

        .stars {
            color: #ffc107;
            font-size: 12px;
        }

        .sold-count {
            color: #888;
            font-size: 12px;
        }

        .product-price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .product-price {
            font-size: 16px;
            color: #ff6b9d;
            font-weight: bold;
        }

        .product-discount {
            font-size: 11px;
            color: #888;
            text-decoration: line-through;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .top-bar-content {
                font-size: 11px;
                gap: 10px;
            }

            .top-bar-left, .top-bar-right {
                gap: 8px;
            }

            .header-content {
                flex-wrap: wrap;
                gap: 15px;
            }

            .logo {
                font-size: 24px;
            }

            .search-bar {
                width: 100%;
                order: 3;
            }

            .nav-content {
                padding: 0 10px;
                gap: 15px;
            }

            .nav-item {
                font-size: 13px;
            }

            .banner-grid {
                grid-template-columns: 1fr;
            }

            .banner-side {
                grid-template-columns: repeat(2, 1fr);
            }

            .quick-links {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            .quick-link-icon {
                font-size: 30px;
            }

            .quick-link-text {
                font-size: 11px;
            }

            .category-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .category-column {
                min-width: auto;
                padding: 15px;
            }

            .category-name {
                font-size: 14px;
            }

            .subcategory-icon {
                width: 35px;
                height: 35px;
                font-size: 18px;
            }

            .subcategory-text {
                font-size: 13px;
            }

            /* Product Grid Mobile */
            .product-section-header {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }

            .product-section-title {
                font-size: 16px;
            }

            .product-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            .product-card {
                min-width: 150px;
            }

            .product-image {
                font-size: 40px;
            }

            .product-info {
                padding: 8px;
            }

            .product-name {
                font-size: 12px;
                min-height: 34px;
            }

            .product-price {
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            .banner-bottom {
                grid-template-columns: 1fr;
            }
        }
        /* Hiệu ứng lắc lắc cho icon */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Áp dụng hiệu ứng cho icon Ưu Đãi Hôm Nay */
.quick-link-item:nth-child(1) .quick-link-icon {
    animation: shake 2s ease-in-out infinite;
}

/* Áp dụng hiệu ứng cho icon Deal Hot Giờ Vàng */
.quick-link-item:nth-child(2) .quick-link-icon {
    animation: shake 2s ease-in-out infinite;
    animation-delay: 0.3s; /* Delay để 2 icon không lắc cùng lúc */
}

/* Hiệu ứng khi hover vào cả item */
.quick-link-item:nth-child(1):hover .quick-link-icon,
.quick-link-item:nth-child(2):hover .quick-link-icon {
    animation: shake 0.5s ease-in-out infinite;
}
/* Countdown trong Quick Links - chiếm 3 ô */
.quick-link-countdown {
    grid-column: span 3;
    background: linear-gradient(135deg, #ff9eb7, #ffb3c6);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    transition: all 0.3s;
}

.quick-link-countdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.countdown-timer-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-number-compact {
    font-size: 32px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.countdown-label-compact {
    font-size: 11px;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}

.countdown-separator-compact {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0 4px;
}

.countdown-text {
    font-size: 14px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-link-countdown {
        grid-column: span 3;
        padding: 15px;
    }
    
    .countdown-number-compact {
        font-size: 24px;
        min-width: 50px;
        padding: 6px 12px;
    }
    
    .countdown-separator-compact {
        font-size: 20px;
    }
    
    .countdown-text {
        font-size: 12px;
    }
}
.product-image img {
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}
/* Footer */
.footer {
    background: linear-gradient(135deg, #fff5f8, #ffe4ec);
    padding: 40px 0 20px 0;
    margin-top: 50px;
    border-top: 2px solid #ffcdd9;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ff6b9d;
}

/* Payment & Shipping Icons */
.payment-icons, .shipping-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.payment-icon, .shipping-icon {
    background: white;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.payment-icon img, .shipping-icon img {
    max-width: 100%;
    height: 30px;
    object-fit: contain;
}

/* Social & App Download */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ff6b9d;
}

.social-icon {
    font-size: 20px;
}

.app-download {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-button {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.app-button:hover {
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
}

.app-button img {
    height: 24px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ffcdd9;
    color: #888;
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .payment-icons, .shipping-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* Banner Slider */
.banner-main {
    position: relative;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #ff6b9d;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
}
/* Marquee Text - Chữ chạy */
.marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    max-width: 900px;
    margin: 0 15px;
}

.marquee-text {
    display: inline-block;
    padding-left: 0;
    animation: marquee 10s linear infinite; /* TĂNG từ 20s lên 30s để chạy hết */
    color: white;
    white-space: nowrap; /* THÊM dòng này - Không xuống dòng */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-container:hover .marquee-text {
    animation-play-state: paused;
}

/* Mobile Responsive cho marquee */
@media (max-width: 768px) {
    .marquee-container {
        max-width: calc(100vw - 180px);
        font-size: 11px;
    }
    
    .marquee-text {
        animation: marquee 10s linear infinite; /* Nhanh hơn trên mobile */
    }
}

@media (max-width: 480px) {
    .marquee-container {
        max-width: calc(100vw - 150px);
        font-size: 10px;
    }
    
    .marquee-text {
        animation: marquee 10s linear infinite; /* Nhanh hơn nữa */
    }
}
/* Flash Sale Section */
.flash-sale-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0; /* THAY ĐỔI: Bỏ padding 20px */
    background: white;
    border: 3px solid #ff6b9d;
    border-radius: 12px;
    overflow: hidden;
}

.flash-sale-header {
    background: linear-gradient(135deg, #ff6b9d, #ff9eb7);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0; /* THAY ĐỔI: Bỏ margin âm */
    border-radius: 0; /* THAY ĐỔI: Bỏ border-radius */
}

.flash-sale-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0;
    text-transform: uppercase;
}

.flash-sale-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.timer-display {
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
}

.view-all-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.view-all-link:hover {
    opacity: 0.8;
}

.flash-sale-grid-wrapper {
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

.flash-sale-grid-wrapper::-webkit-scrollbar {
    height: 8px;
}

.flash-sale-grid-wrapper::-webkit-scrollbar-thumb {
    background: #ffb3c6;
    border-radius: 4px;
}

.flash-sale-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    min-width: max-content;
}

.flash-sale-card {
    background: white;
    border: 1px solid #ffe4ec;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    width: 180px;
}

.flash-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

.flash-sale-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #fff0f5;
    overflow: hidden;
}

.flash-sale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flash-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6b9d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.flash-sale-info {
    padding: 12px;
}

.flash-sale-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.flash-sale-price {
    margin-bottom: 8px;
}

.current-price {
    font-size: 16px;
    color: #ff6b9d;
    font-weight: bold;
    margin-right: 8px;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.flash-sale-progress {
    height: 16px;
    background: #ffe4ec;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ff9eb7);
    transition: width 0.3s;
}
/* Hiệu ứng ánh sáng chạy trên thanh Flash Sale */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.flash-sale-card:hover .progress-bar::after {
    animation-duration: 1s;
}

.flash-sale-label {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #ff6b9d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .flash-sale-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .flash-sale-title {
        font-size: 18px;
    }
    
    .flash-sale-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
    }
    
    .flash-sale-card {
        width: 140px;
    }
}
/* ========== FIX TRÀN NGANG TOÀN BỘ ========== */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

* {
    max-width: 100%;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Top Bar */
    .top-bar-content {
        font-size: 11px;
        gap: 10px;
        padding: 0 10px;
    }

    .top-bar-left, .top-bar-right {
        gap: 8px;
    }

    .top-bar-left {
        flex-wrap: wrap;
    }

    /* Marquee - FIX TRÀN */
    .marquee-container {
        max-width: calc(100vw - 180px);
        margin: 0 10px;
        font-size: 11px;
    }

    /* Header */
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
    }

    .logo {
        font-size: 24px;
    }

    .search-bar {
        width: 100%;
        order: 3;
    }

    .search-bar input {
        padding: 10px 45px 10px 15px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 0 15px;
    }

    /* Nav Menu */
    .nav-content {
        padding: 0 10px;
        gap: 15px;
    }

    .nav-item {
        font-size: 13px;
        padding: 10px 0;
    }

    /* Banner Section - FIX TRÀN */
    .banner-section {
        padding: 0 10px;
        margin: 20px 10px;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .banner-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .banner-bottom {
        gap: 10px;
    }

    /* Slider Controls */
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 24px;
    }

    /* Quick Links - FIX TRÀN */
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px;
        margin: 20px 10px;
    }

    .quick-link-item {
        padding: 15px 8px;
    }

    .quick-link-icon {
        font-size: 30px;
        margin-bottom: 6px;
    }

    .quick-link-text {
        font-size: 11px;
    }

    /* Countdown trong Quick Links */
    .quick-link-countdown {
        grid-column: span 3;
        padding: 15px;
    }
    
    .countdown-number-compact {
        font-size: 24px;
        min-width: 50px;
        padding: 6px 12px;
    }
    
    .countdown-separator-compact {
        font-size: 20px;
    }
    
    .countdown-text {
        font-size: 12px;
    }

    /* Flash Sale Section - FIX TRÀN */
    .flash-sale-section {
        padding: 0;
        margin: 20px 10px;
        border-width: 2px;
    }
    
    .flash-sale-header {
        margin: 0;
        border-radius: 0;
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .flash-sale-title {
        font-size: 18px;
    }

    .flash-sale-timer {
        font-size: 12px;
    }

    .timer-display {
        font-size: 14px;
        padding: 4px 10px;
    }
    
    .flash-sale-grid-wrapper {
        padding: 15px 10px;
    }
    
    .flash-sale-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
    }
    
    .flash-sale-card {
        width: 140px;
    }

    .flash-sale-name {
        font-size: 12px;
        min-height: 32px;
    }

    .current-price {
        font-size: 14px;
    }

    .original-price {
        font-size: 11px;
    }

    /* Category Section - FIX TRÀN */
    .category-section {
        padding: 0 10px;
        margin: 30px 10px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-column {
        min-width: auto;
        padding: 15px;
    }

    .category-name {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .subcategory-list {
        gap: 10px;
    }

    .subcategory-item {
        padding: 6px;
    }

    .subcategory-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .subcategory-text {
        font-size: 13px;
    }

    /* Product Section - FIX TRÀN */
    .product-section {
        padding: 0 10px;
        margin: 30px 10px 40px;
    }

    .product-section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px 15px;
    }

    .product-section-title {
        font-size: 16px;
        width: 100%;
    }

    .view-all-btn {
        font-size: 13px;
        padding: 6px 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        min-width: auto;
    }

    .product-image {
        font-size: 40px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 12px;
        min-height: 34px;
        margin-bottom: 6px;
    }

    .product-rating {
        margin-bottom: 6px;
    }

    .stars {
        font-size: 11px;
    }

    .sold-count {
        font-size: 11px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-discount {
        font-size: 10px;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* Footer - FIX TRÀN */
    .footer {
        padding: 30px 0 15px 0;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px;
    }

    .footer-column h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .footer-column ul li a {
        font-size: 12px;
    }
    
    .payment-icons, .shipping-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .payment-icon, .shipping-icon {
        padding: 6px;
    }

    .payment-icon img, .shipping-icon img {
        height: 25px;
    }

    .qr-code {
        width: 80px;
        height: 80px;
    }

    .app-button {
        padding: 6px 10px;
    }

    .app-button img {
        height: 20px;
    }

    .footer-bottom {
        font-size: 11px;
        padding-top: 15px;
    }
}

/* ========== MOBILE NHỎ (480px trở xuống) ========== */
@media (max-width: 480px) {
    /* Top Bar */
    .top-bar-content {
        font-size: 10px;
        padding: 0 5px;
    }

    /* Marquee */
    .marquee-container {
        max-width: calc(100vw - 150px);
        font-size: 10px;
        margin: 0 5px;
    }

    /* Header */
    .header-content {
        padding: 0 5px;
    }

    .logo {
        font-size: 20px;
    }

    .search-bar input {
        padding: 8px 40px 8px 12px;
        font-size: 12px;
    }

    /* Nav Menu */
    .nav-content {
        padding: 0 5px;
        gap: 12px;
    }

    .nav-item {
        font-size: 12px;
        padding: 10px 0;
    }

    /* Banner Section */
    .banner-section {
    padding: 0 10px;
    margin: 20px 10px;
    overflow: hidden;
}

    .banner-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    transform: translateX(-11px);
}

.banner-main {
    margin-bottom: 10px;
}

    /* Quick Links */
    .quick-links {
        padding: 0 5px;
        margin: 15px 5px;
        gap: 8px;
    }

    .quick-link-item {
        padding: 12px 5px;
    }

    .quick-link-icon {
        font-size: 26px;
    }

    .quick-link-text {
        font-size: 10px;
    }

    .quick-link-countdown {
        padding: 12px;
    }

    .countdown-number-compact {
        font-size: 20px;
        min-width: 45px;
        padding: 5px 10px;
    }

    .countdown-separator-compact {
        font-size: 18px;
        margin: 0 2px;
    }

    .countdown-label-compact {
        font-size: 9px;
    }

    .countdown-text {
        font-size: 11px;
    }

    /* Flash Sale */
    .flash-sale-section {
        padding: 0;
        margin: 15px 5px;
    }

    .flash-sale-header {
        padding: 10px 12px;
    }

    .flash-sale-title {
        font-size: 16px;
    }

    .flash-sale-grid-wrapper {
        padding: 12px 5px;
    }

    .flash-sale-card {
        width: 130px;
    }

    /* Category Section */
    .category-section {
        padding: 0 5px;
        margin: 25px 5px;
    }

    .section-title {
        font-size: 16px;
    }

    .category-grid {
        gap: 12px;
    }

    .category-column {
        padding: 12px;
    }

    /* Product Section */
    .product-section {
        padding: 0 5px;
        margin: 25px 5px 35px;
    }

    .product-section-header {
        padding: 10px 12px;
    }

    .product-section-title {
        font-size: 14px;
    }

    .view-all-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .product-grid {
        gap: 8px;
    }

    .product-info {
        padding: 6px;
    }

    .product-name {
        font-size: 11px;
        min-height: 30px;
    }

    .product-price {
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 25px 0 12px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }

    .footer-column h3 {
        font-size: 12px;
    }

    .footer-column ul li a {
        font-size: 11px;
    }

    .payment-icons, .shipping-icons {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        font-size: 10px;
    }
}
/* Image Popup */
.image-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.5);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.popup-close:hover {
    color: #ff6b9d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .popup-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}
/* Style cho ô Bộ Sách Giáo Khoa */
.quick-link-sgk {
    position: relative;
    overflow: hidden;
}

.quick-link-sgk .quick-link-icon {
    font-size: 40px;
    margin-bottom: 8px;
    position: relative;
}

/* Icon SGK dạng hình ảnh */
.sgk-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
}

.sgk-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Hiệu ứng chớp sáng mỗi 3 giây */
@keyframes flashGlow {
    0%, 90% {
        filter: brightness(1);
        box-shadow: none;
    }
    95% {
        filter: brightness(1.5);
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.8),
                    0 0 40px rgba(255, 107, 157, 0.6),
                    0 0 60px rgba(255, 107, 157, 0.4);
    }
    100% {
        filter: brightness(1);
        box-shadow: none;
    }
}

.sgk-icon {
    animation: flashGlow 3s ease-in-out infinite;
}

/* Hiệu ứng ánh sáng lan tỏa phía sau icon */
.sgk-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0) 0%, rgba(255, 107, 157, 0) 100%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 90% {
        background: radial-gradient(circle, rgba(255, 107, 157, 0) 0%, rgba(255, 107, 157, 0) 100%);
        transform: translate(-50%, -50%) scale(1);
    }
    95% {
        background: radial-gradient(circle, rgba(255, 107, 157, 0.6) 0%, rgba(255, 107, 157, 0) 70%);
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        background: radial-gradient(circle, rgba(255, 107, 157, 0) 0%, rgba(255, 107, 157, 0) 100%);
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Hover effect */
.quick-link-sgk:hover .sgk-icon {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.quick-link-sgk:hover .sgk-icon-wrapper::before {
    animation: none;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.4) 0%, rgba(255, 107, 157, 0) 70%);
}

/* Text highlight khi chớp */
.quick-link-sgk .quick-link-text {
    transition: all 0.3s ease;
}

@keyframes textFlash {
    0%, 90% {
        color: #555;
    }
    95% {
        color: #ff6b9d;
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
    }
    100% {
        color: #555;
    }
}

.quick-link-sgk .quick-link-text {
    animation: textFlash 3s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sgk-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .sgk-icon {
        width: 35px;
        height: 35px;
    }
    
    .sgk-icon-wrapper::before {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .sgk-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .sgk-icon {
        width: 30px;
        height: 30px;
    }
    
    .sgk-icon-wrapper::before {
        width: 45px;
        height: 45px;
    }
}
.subcategory-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s;
}

.subcategory-item:hover {
    border-color: #ff6b9d;
    background: #fff5f8;
}