@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

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

body {
    font-family: 'Montserrat', 'Arial', 'Helvetica', sans-serif;
    background: #f8f5f0;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6px;
}

header,
nav,
footer,
section {
    width: 100%;
}

:root {
    --red-main: #c7252e;
    --red-dark: #8f161d;
    --red-darker: #6f0f14;
    --cream: #fff3e6;
    --text-light: #ffffff;
    --text-soft: #ffd6d6;
    --border-soft: rgba(255, 255, 255, 0.15);
}

/* WRAPPER */
.vgift-header {
    width: 100%;
    color: var(--text-light);
    font-family: 'Montserrat', Arial, sans-serif;
}

/* TOP BAR - Gradient chậm hơn */
.top-bar {
    background: linear-gradient(270deg,
            var(--red-main),
            var(--red-dark),
            #a01d25,
            var(--red-darker),
            var(--red-main));
    background-size: 400% 400%;
    animation: epicGradient 20s ease infinite;
    /* Tăng từ 12s lên 20s */
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(199, 37, 46, 0.4);
    position: relative;
    overflow: hidden;
}

/* Ánh sáng chậm hơn */
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            /* Giảm opacity */
            rgba(255, 200, 200, 0.2),
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: lightSpeed 5s linear infinite;
    /* Tăng từ 3s lên 5s */
}

/* Particles chậm hơn */
.top-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 80% 10%, white, transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: sparkles 12s ease infinite;
    /* Tăng từ 8s lên 12s */
    pointer-events: none;
    opacity: 0.4;
    /* Giảm opacity */
}

@keyframes epicGradient {
    0% {
        background-position: 0% 50%;
    }

    33% {
        background-position: 100% 50%;
    }

    66% {
        background-position: 50% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes lightSpeed {
    0% {
        left: -200%;
    }

    100% {
        left: 200%;
    }
}

@keyframes sparkles {

    0%,
    100% {
        opacity: 0.2;
        background-position: 0% 0%;
    }

    50% {
        opacity: 0.5;
        background-position: 100% 100%;
    }
}

.top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* BRAND - Logo với viền sáng chậm hơn */
.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}



.logo-img {
    height: 64px;
    width: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    position: relative;
    z-index: 1;
    animation: logoFloat 5s ease-in-out infinite;
    /* Tăng từ 4s lên 5s */
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }

    50% {
        transform: translateY(-8px) scale(1.05);
        filter: drop-shadow(0 8px 15px rgba(255, 255, 255, 0.5));
    }
}

.logo-img:hover {
    transform: scale(1.15) rotate(360deg);
    border-color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-soft);
    font-style: italic;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: taglinePulse 4s ease-in-out infinite;
    /* Tăng từ 3s lên 4s */
}

@keyframes taglinePulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* SEARCH - Chậm hơn */
.search-box {
    flex: 1;
    max-width: 520px;
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid var(--border-soft);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Viền neon chậm hơn */
.search-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            /* Giảm opacity */
            transparent,
            rgba(255, 200, 200, 0.4),
            transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: searchBorder 3s linear infinite;
    /* Tăng từ 2s lên 3s */
}

@keyframes searchBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Laser chậm hơn */
.search-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            /* Giảm opacity */
            transparent);
    animation: laserScan 4s ease infinite;
    /* Tăng từ 2.5s lên 4s */
    pointer-events: none;
}

@keyframes laserScan {
    0% {
        left: -100%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

.search-box:focus-within::before {
    animation-duration: 2s;
    /* Tăng tốc khi focus */
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-light);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.search-box input::placeholder {
    color: var(--text-soft);
}

.search-box button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--text-light);
    padding: 0 20px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.2) rotate(90deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ACTIONS */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* SOCIAL ICONS - MỚI THÊM */
.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-icons a:hover::before {
    width: 100%;
    height: 100%;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Màu riêng cho từng social */
.social-icons a.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icons a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-icons a.tiktok:hover {
    background: #000000;
    border-color: #69c9d0;
}

.social-icons a.zalo:hover {
    background: #0068ff;
    border-color: #0068ff;
}

/* Hotline - Chậm hơn */
.hotline {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid var(--border-soft);
    padding: 8px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Sóng radio chậm hơn */
.hotline::before,
.hotline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Giảm opacity */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radioWave 3s ease-out infinite;
    /* Tăng từ 2s lên 3s */
}

.hotline::after {
    animation-delay: 1.5s;
}

@keyframes radioWave {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }

    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

.hotline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 5px 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hotline-icon {
    font-size: 22px;
    animation: phoneVibrate 0.8s ease-in-out infinite;
    /* Tăng từ 0.5s lên 0.8s */
    position: relative;
    z-index: 1;
}

@keyframes phoneVibrate {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-10deg) scale(1.05);
    }

    /* Giảm góc xoay */
    50% {
        transform: rotate(10deg) scale(1.05);
    }

    75% {
        transform: rotate(-8deg) scale(1.05);
    }
}

.hotline:hover .hotline-icon {
    animation: phoneJump 0.8s ease infinite;
    /* Tăng từ 0.6s lên 0.8s */
}

@keyframes phoneJump {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

.hotline-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hotline-text small {
    font-size: 10px;
    color: var(--text-soft);
    text-transform: uppercase;
    animation: textGlow 3s ease-in-out infinite;
    /* Tăng từ 2s lên 3s */
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

.hotline-text strong {
    font-size: 14px;
    font-weight: 700;
}

/* Cart button - Chậm hơn */
.cart-btn {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 10px 18px;
    border-radius: 30px;
    color: var(--red-main);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #f0d0d2;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow:
        0 4px 15px rgba(199, 37, 46, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Ánh sáng chậm hơn */
.cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            /* Giảm opacity */
            transparent);
    animation: cartShine 5s ease infinite;
    /* Tăng từ 3s lên 5s */
}

@keyframes cartShine {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.cart-btn:hover {
    background: linear-gradient(145deg, #fff0f1, #ffffff);
    color: var(--red-dark);
    border-color: var(--red-main);
    transform: translateY(-5px) scale(1.08);
    box-shadow:
        0 10px 30px rgba(199, 37, 46, 0.4),
        0 0 40px rgba(255, 107, 107, 0.3),
        inset 0 -2px 5px rgba(199, 37, 46, 0.1);
}

.cart-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.cart-btn:hover .cart-icon {
    animation: cartBounce 0.6s ease infinite;
    /* Tăng từ 0.5s lên 0.6s */
}

@keyframes cartBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-10deg);
    }

    75% {
        transform: translateY(-3px) rotate(10deg);
    }
}

.cart-text {
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.cart-badge {
    background: linear-gradient(145deg, var(--red-main), var(--red-darker));
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: -4px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 15px rgba(199, 37, 46, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    animation: badgeExplode 2s ease-in-out infinite;
    /* Tăng từ 1.5s lên 2s */
}

@keyframes badgeExplode {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 15px rgba(199, 37, 46, 0.6),
            0 0 0 0 rgba(199, 37, 46, 0.7);
    }

    50% {
        transform: scale(1.12);
        /* Giảm từ 1.15 xuống 1.12 */
        box-shadow:
            0 0 25px rgba(199, 37, 46, 0.8),
            0 0 0 10px rgba(199, 37, 46, 0);
    }
}

/* NAV BAR - Chậm hơn nhiều */
.main-nav {
    background: var(--red-dark);
    border-top: 2px solid var(--border-soft);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 -1px 0 rgba(255, 255, 255, 0.1) inset;
    position: relative;
    z-index: 100;
}

/* Lightning chậm hơn nhiều */
.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 25%,
            /* Giảm opacity rất nhiều */
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.05) 75%,
            transparent 100%);
    animation: lightning 8s ease-in-out infinite;
    /* Tăng từ 4s lên 8s */
}

@keyframes lightning {
    0% {
        left: -100%;
        opacity: 0;
    }

    5% {
        left: -50%;
        opacity: 0.5;
    }

    /* Giảm opacity */
    10% {
        left: 0%;
        opacity: 0.3;
    }

    15% {
        left: 50%;
        opacity: 0.5;
    }

    20% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Particles chậm hơn */
.main-nav::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        /* Giảm opacity */
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particlesDrift 25s linear infinite;
    /* Tăng từ 15s lên 25s */
    pointer-events: none;
}

@keyframes particlesDrift {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(80px) translateY(-80px);
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* MENU */
.nav-left,
.nav-right {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu-icon {
    font-size: 16px;
    margin-right: 6px;
    display: inline-block;
    transition: transform 0.5s ease;
    /* Tăng từ 0.3s lên 0.5s */
}

.nav-left li>a:hover .menu-icon {
    animation: menuFlip 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Tăng từ 0.6s lên 0.8s */
}

@keyframes menuFlip {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg) scale(1.2);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.nav-right li a,
.nav-left li>a {
    display: block;
    padding: 14px 18px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.3s ease;
    position: relative;
}

/* Plasma chậm hơn */
.nav-right li a::after,
.nav-left li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--text-light),
            rgba(255, 200, 200, 0.8),
            var(--text-light),
            transparent);
    background-size: 200% 100%;
    transition: all 0.4s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: plasmaFlow 4s linear infinite;
    /* Tăng từ 2s lên 4s */
}

@keyframes plasmaFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.nav-right li a:hover::after,
.nav-left li>a:hover::after {
    width: 80%;
}

.nav-right li a:hover,
.nav-left li>a:hover {
    background: var(--red-darker);
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Nav item nổi bật - Chậm hơn */
.nav-highlight {
    position: relative;
}

.nav-highlight a {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    margin: 6px 0;
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    animation: tetMagic 3s ease-in-out infinite;
    /* Tăng từ 2s lên 3s */
}

@keyframes tetMagic {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(255, 255, 255, 0.2),
            0 0 40px rgba(255, 200, 200, 0),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(255, 255, 255, 0.4),
            0 0 60px rgba(255, 200, 200, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.nav-highlight a:hover {
    background: var(--red-darker);
    animation: none;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: linear-gradient(180deg, #7a0f14, #5a0a0f);
    border-radius: 0 0 12px 12px;
    visibility: hidden;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(199, 37, 46, 0.3);
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: all 0.4s ease;
}

.dropdown-menu li a:hover::before {
    left: 100%;
}

.dropdown-menu li a:hover {
    background: var(--red-main);
    padding-left: 28px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* KHUNG CHÍNH */
.home-hero {
    background: linear-gradient(180deg, #0f1115, #1a1d24);
    padding: 16px 0 24px;
    position: relative;
    overflow: hidden;
}

/* Background chậm hơn */
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(199, 37, 46, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(143, 22, 29, 0.08) 0%, transparent 50%);
    animation: bgPulse 12s ease-in-out infinite;
    /* Tăng từ 8s lên 12s */
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-wrap {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* SIDEBAR - Chậm hơn */
.category-sidebar {
    background: linear-gradient(180deg, #1a1f27 0%, #161a20 100%);
    border-radius: 12px;
    overflow: hidden;
    min-height: 100%;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(199, 37, 46, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hologram chậm hơn */
.category-sidebar::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(199, 37, 46, 0.2),
            /* Giảm opacity */
            transparent);
    animation: scanline 6s linear infinite;
    /* Tăng từ 4s lên 6s */
}

@keyframes scanline {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.category-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        /* Giảm opacity */
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--red-main), var(--red-dark));
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Energy wave chậm hơn */
.sidebar-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    /* Giảm opacity */
    animation: energyWave 5s ease-out infinite;
    /* Tăng từ 3s lên 5s */
}

@keyframes energyWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 400%;
        height: 400%;
        opacity: 0;
    }
}

.sidebar-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    animation: headerGlow 3s ease-in-out infinite;
    /* Tăng từ 2s lên 3s */
}

@keyframes headerGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3);
    }

    50% {
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.category-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #cfd6e4;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.category-list a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--red-main),
            transparent);
    box-shadow: 0 0 10px var(--red-main);
    transition: all 0.4s ease;
}

.cat-icon {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.cat-text {
    flex: 1;
    position: relative;
}

.category-list a:hover {
    background: linear-gradient(90deg,
            transparent,
            rgba(199, 37, 46, 0.3),
            transparent);
    color: #fff;
    padding-left: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.category-list a:hover::before {
    left: 0;
    animation: electricPulse 0.5s ease;
}

@keyframes electricPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.category-list a:hover .cat-icon {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

/* Item đặc biệt - Tết 2026 - Chậm hơn */
.category-featured a {
    background: linear-gradient(135deg,
            rgba(199, 37, 46, 0.2),
            rgba(199, 37, 46, 0.1));
    font-weight: 600;
    border: 1px solid rgba(199, 37, 46, 0.3);
    box-shadow:
        inset 0 0 20px rgba(199, 37, 46, 0.2),
        0 0 20px rgba(199, 37, 46, 0.3);
    animation: matrixGlow 3s ease-in-out infinite;
    /* Tăng từ 2s lên 3s */
}

@keyframes matrixGlow {

    0%,
    100% {
        box-shadow:
            inset 0 0 20px rgba(199, 37, 46, 0.2),
            0 0 20px rgba(199, 37, 46, 0.3);
    }

    50% {
        box-shadow:
            inset 0 0 40px rgba(199, 37, 46, 0.4),
            0 0 40px rgba(199, 37, 46, 0.5);
    }
}

.category-featured a:hover {
    background: var(--red-main);
    animation: none;
    box-shadow:
        0 0 30px rgba(199, 37, 46, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* BANNER - Chậm hơn */
.hero-banner {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    height: auto;
    position: relative;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(199, 37, 46, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Film grain chậm hơn */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence baseFrequency="0.9"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    opacity: 0.2;
    /* Giảm opacity */
    animation: grain 0.8s steps(4) infinite;
    /* Tăng từ 0.5s lên 0.8s */
    pointer-events: none;
    z-index: 2;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-2%, -2%);
    }

    50% {
        transform: translate(2%, 2%);
    }

    75% {
        transform: translate(-2%, 2%);
    }
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.6));
    pointer-events: none;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

/* Badge HOT 2026 - Chậm hơn */
.banner-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg,
            #ff6b6b,
            var(--red-main),
            #ff6b6b);
    background-size: 200% 200%;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    box-shadow:
        0 5px 20px rgba(255, 107, 107, 0.6),
        0 0 40px rgba(255, 107, 107, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: fireGlow 3s ease-in-out infinite;
    /* Tăng từ 2s lên 3s */
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes fireGlow {

    0%,
    100% {
        transform: scale(1) rotate(-3deg);
        background-position: 0% 50%;
        box-shadow:
            0 5px 20px rgba(255, 107, 107, 0.6),
            0 0 40px rgba(255, 107, 107, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }

    25% {
        transform: scale(1.05) rotate(0deg) translateY(-2px);
        /* Giảm scale và translateY */
        background-position: 100% 50%;
    }

    50% {
        transform: scale(1.08) rotate(3deg) translateY(-3px);
        background-position: 0% 50%;
        box-shadow:
            0 8px 30px rgba(255, 107, 107, 0.8),
            0 0 60px rgba(255, 107, 107, 0.6),
            inset 0 0 30px rgba(255, 255, 255, 0.4);
    }

    75% {
        transform: scale(1.05) rotate(0deg) translateY(-2px);
        background-position: 100% 50%;
    }
}

/* Slider Styles */
.slider-wrapper {
    display: grid;
    width: 100%;
    height: 100%;
}

.hero-banner .slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-banner .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 0;
}

.hero-banner:hover img {
    transform: scale(1.08);
}

.hero-banner:hover::before {
    animation: grain 0.5s steps(6) infinite;
    /* Tăng tốc khi hover */
}



/* Products Grid */
.products-section {
    padding: 40px 0;
}

.section-title,
.page-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.product-card:hover {
    border-color: #c7252e;
    box-shadow: 0 4px 12px rgba(199, 37, 46, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f0f0f0;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-price {
    font-size: 20px;
    color: #c7252e;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-category {
    display: inline-block;
    padding: 4px 10px;
    background: #f8f5f0;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.product-stock {
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
}

.out-of-stock {
    color: #dc3545;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 5px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid #ddd;
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.modal-header h2 {
    color: #333;
    font-size: 22px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.modal-body {
    padding: 20px;
}

.modal-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.detail-info {
    line-height: 1.8;
}

.detail-info p {
    margin-bottom: 12px;
    font-size: 15px;
}

.detail-info strong {
    color: #333;
    display: inline-block;
    min-width: 100px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    border-radius: 3px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #c7252e;
    color: white;
    border-color: #c7252e;
}

.btn-add-cart {
    background: #28a745;
    color: white;
    border: none;
    font-size: 16px;
}

.btn-add-cart:hover {
    background: #218838;
}

/* Cart Page */
.cart-section,
.checkout-section {
    padding: 40px 0;
    min-height: 70vh;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.cart-items {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 18px;
    color: #c7252e;
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-controls input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 3px;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.btn-remove:hover {
    background: #c82333;
}

.cart-summary {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-total {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #c7252e;
}

/* Checkout Page */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.checkout-form,
.order-summary {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 25px;
}

.checkout-form h2,
.order-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c7252e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.payment-option:hover {
    border-color: #c7252e;
    background: #fff9f9;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-option input[type="radio"]:checked~.payment-content {
    color: #c7252e;
}

.payment-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.payment-icon {
    font-size: 30px;
}

.payment-content strong {
    display: block;
    margin-bottom: 3px;
}

.payment-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.qr-section {
    background: #f8f5f0;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
    border: 2px solid #e0e0e0;
}

.qr-image {
    max-width: 250px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.total-final {
    font-size: 18px;
    font-weight: bold;
    color: #c7252e;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0;
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 20px;
}

.success-modal h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-modal p {
    margin-bottom: 10px;
    color: #666;
}

/* Empty State */
.empty-state,
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state svg,
.empty-cart svg {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 2000;
    font-weight: 600;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .cart-content,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Mobile Navigation */
    nav {
        position: relative;
    }

    .nav-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu>li {
        flex-shrink: 0;
    }

    .nav-link {
        white-space: nowrap;
        padding: 15px 18px;
        font-size: 14px;
    }
}

/* Footer responsive improvements */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .footer-column {
        text-align: center;
        padding: 0 12px;
    }

    .footer-column h3,
    .footer-column h4 {
        text-align: center;
        font-size: 18px;
    }

    .social-links {
        justify-content: center;
        margin-top: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-top: 20px;
    }

    .footer-bottom p {
        text-align: center;
        margin: 0;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Reduce padding for very small screens */
    @media (max-width: 420px) {
        .footer-content {
            gap: 12px;
        }

        .footer-column {
            padding: 0 8px;
        }

        .footer-column p,
        .contact-info li {
            font-size: 13px;
        }

        .social-links a {
            width: 36px;
            height: 36px;
            font-size: 16px;
        }
    }
}

/* Footer */
footer {
    background: #2c2c2c;
    color: #e0e0e0;
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 3px solid #c7252e;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column p {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #c7252e;
    padding-left: 5px;
}

.contact-info li {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-info strong {
    color: #c7252e;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #3a3a3a;
    border: 2px solid #4a4a4a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    background: #c7252e;
    border-color: #c7252e;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #c7252e;
}

/* Floating Contact Icons */
.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.contact-icon svg {
    width: 70%;
    height: 70%;
    fill: white;
}

.messenger-icon {
    background: linear-gradient(135deg, #0084ff 0%, #0066e6 100%);
    animation: float 3s ease-in-out infinite;
}

.messenger-icon:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 132, 255, 0.4);
}

.email-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: float 3s ease-in-out 0.2s infinite;
}

.email-icon:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.phone-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: float 3s ease-in-out 0.4s infinite;
}

.phone-icon:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-width: 2px;
    }
}

/* Header responsive: tablet -> phone */
@media (max-width: 992px) {
    .top-content {
        gap: 12px;
    }

    .search-box {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .top-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px 6px;
    }

    .brand {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .brand-tagline {
        display: none;
    }

    .logo-img {
        height: 56px;
        width: 56px;
    }

    .search-box {
        order: 2;
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
    }

    .search-box input {
        padding: 10px 12px;
    }

    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .header-actions .hotline,
    .header-actions .cart-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Nav becomes stacked under top-bar */
    .main-nav .nav-content {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 8px 6px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .nav-right li a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .logo-img {
        height: 48px;
        width: 48px;
    }

    .search-box input {
        font-size: 14px;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

.social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-links a {
    font-size: 14px;
    color: #fff;
    /* đổi theo theme */
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.contact-info i {
    color: #ff5722;
    /* màu brand, đổi theo theme */
    min-width: 16px;
    /* canh thẳng hàng */
    text-align: center;
}

.home-hero {
    max-height: 1200px;
    /* đủ lớn để chứa cả banner */
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.home-hero.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

/* Header click được */
.sidebar-header.toggle-categories {
    cursor: pointer;
    user-select: none;
}

/* Icon mũi tên */
.sidebar-header.toggle-categories::after {
    content: "▾";
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.25s ease;
}

.home-hero.is-collapsed .sidebar-header.toggle-categories::after {
    transform: rotate(-90deg);
}

.cart-header .brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.cart-nav .back-shop {
    font-weight: 600;
    color: #c7252e;
}



.cart-btn.active {
    background: #c7252e;
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
}

.btn-shop-now {
    display: inline-block;
    margin-top: 20px;
    /* thay cho inline style */
    padding: 12px 28px;
    border-radius: 999px;
    /* bo tròn pill */
    background: linear-gradient(135deg, #ff4d4f, #c7252e);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(199, 37, 46, 0.35);
    transition: all 0.25s ease;
}

/* Hover: nổi + sáng hơn */
.btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(199, 37, 46, 0.45);
    filter: brightness(1.05);
}

/* Active: ấn xuống */
.btn-shop-now:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(199, 37, 46, 0.35);
}

/* Layout tổng giỏ hàng */
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

/* Box sản phẩm */
.cart-items {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Từng item */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 16px;
    color: #222;
}

.cart-item-price {
    color: #c7252e;
    font-weight: 600;
}

/* Control số lượng */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f1f1f1;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #ddd;
}

.cart-item-controls input {
    width: 46px;
    height: 32px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 600;
}

/* Nút xóa */
.btn-remove {
    margin-left: 10px;
    background: transparent;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-remove:hover {
    text-decoration: underline;
}

/* Box tóm tắt */
.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 90px;
}

.cart-summary h2 {
    margin-bottom: 16px;
}

/* Các dòng tổng tiền */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-total {
    font-size: 18px;
    font-weight: 800;
    color: #c7252e;
    border-top: 1px dashed #ddd;
    padding-top: 12px;
    margin-top: 12px;
}

/* Nút thanh toán */
.btn-checkout {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff4d4f, #c7252e);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(199, 37, 46, 0.35);
    transition: 0.25s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(199, 37, 46, 0.45);
}

/* ===== Checkout Layout ===== */
.checkout-section {
    padding: 40px 0;
    background: #f7f8fa;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    /* Tránh 800–900 gây méo chữ */
    line-height: 1.3;
    margin-bottom: 24px;
    color: #222;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Form Giao Hàng ===== */
.checkout-form {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.checkout-form h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 14px;
    transition: 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Payment Methods ===== */
.payment-methods {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.payment-option:hover {
    border-color: #ff4d4f;
    background: #fff5f5;
}

.payment-option input {
    margin-right: 12px;
    accent-color: #ff4d4f;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    font-size: 24px;
}

.payment-content strong {
    display: block;
    font-size: 15px;
}

.payment-content p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #666;
}

/* ===== QR Section ===== */
.qr-section {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed #ddd;
}

.qr-section h3 {
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
}

.qr-image {
    display: block;
    margin: 0 auto;
    max-width: 180px;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* ===== Order Summary ===== */
.order-summary {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 90px;
}

.order-summary h2 {
    margin-bottom: 16px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

.order-items::-webkit-scrollbar {
    width: 4px;
}

.order-items::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* ===== Tổng tiền ===== */
.order-total {
    margin-top: 16px;
    border-top: 1px dashed #ddd;
    padding-top: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.total-final {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #c7252e;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


/* ===== Nút hoàn tất ===== */
.checkout-form .btn-checkout {
    margin-top: 20px;
    width: 100%;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff4d4f, #c7252e);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 24px rgba(199, 37, 46, 0.35);
}

.checkout-form .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(199, 37, 46, 0.45);
}

.payment-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f7fb;
    color: #ff7a00;
    /* màu brand của bạn, có thể đổi */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-option input[value="cod"]+.payment-content .payment-icon {
    color: #2f80ed;
}

.payment-option input[value="qr"]+.payment-content .payment-icon {
    color: #27ae60;
}

.summary-total span,
.total-final span {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    /* tránh 800–900 */
}

/* Overlay modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    /* bật bằng JS: display: flex */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* Khung modal */
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.25s ease;
}

/* Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #999;
    transition: 0.2s;
}

.close-btn:hover {
    color: #ff7a00;
    transform: rotate(90deg);
}

/* Body */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    padding: 24px;
}

.modal-image {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
    background: #f7f7f7;
    padding: 12px;
}

/* Thông tin chi tiết */
.detail-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.detail-info p {
    margin: 8px 0;
    font-size: 15px;
    color: #444;
}

.detail-info strong {
    color: #111;
}

/* Số lượng */
.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #ff7a00;
    color: #fff;
    border-color: #ff7a00;
}

/* Nút thêm giỏ */
.btn-add-cart {
    background: linear-gradient(135deg, #ff7a00, #ff9f43);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.35);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.45);
}

/* Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        max-height: 280px;
    }
}

#detailStock {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.in-stock {
    background: #e8f7ee;
    color: #1f9d55;
}

.out-stock {
    background: #fdecea;
    color: #d93025;
}

.modal-content {
    background: #fff;
    width: 95%;
    max-width: 1100px;
    /* TO HƠN */
    border-radius: 18px;
    overflow: hidden;
    animation: zoomIn 0.25s ease;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    /* ảnh to hơn */
    gap: 40px;
    padding: 30px 32px 36px;
}

.modal-image {
    width: 100%;
    height: 440px;
    /* ẢNH TO HƠN */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 20px 28px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.detail-info h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.detail-info p {
    font-size: 16px;
    margin: 10px 0;
    color: #444;
}

.detail-info strong {
    color: #111;
}

#detailPrice {
    color: #c7252e;
    font-size: 28px;

    font-weight: 800;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    transition: 0.2s;
}

.close-btn:hover {
    color: #000;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: #e8f5e9;
    color: #2e7d32;
}

.product-stock.out-of-stock {
    background: #fdecea;
    color: #c62828;
}

/* Grid spacing (nếu chưa có) */
#productsGrid {
    gap: 24px;
}

/* Card */
.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

/* Image */
.product-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #f3f3f3;
    transition: 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Info */
.product-info {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Category badge */
.product-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #ff7a00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Name */
.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    min-height: 44px;
}

/* Price */
.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #c7252e;
}

/* Stock pill */
.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    width: fit-content;
    background: #e8f5e9;
    color: #2e7d32;
}

.product-stock.out-of-stock {
    background: #fdecea;
    color: #c62828;
}

/* Subtle bottom action hint */
.product-card::after {
    content: "Xem chi tiết →";
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: #999;
    opacity: 0;
    transition: 0.2s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-btn {
    border: none;
    background: #f1f1f1;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.page-btn:hover {
    background: #ddd;
}

.page-btn.active {
    background: linear-gradient(135deg, #ff7a00, #ff9800);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 122, 0, 0.35);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background: #ff7a00;
    color: white;
    border-color: #ff7a00;
}

.pagination button.active {
    background: linear-gradient(135deg, #ff7a00, #ff3d00);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(255, 122, 0, 0.4);
}

@media (max-width: 992px) {
    .hero-wrap {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.35s ease;
    }

    .home-hero.is-collapsed .category-sidebar {
        max-height: 80vh;
        /* Cho phép cao tới 80% màn hình */
        overflow-y: auto;
        /* Scroll nếu nhiều item */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        margin-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        /* Scroll mượt iOS */
    }

    .category-list li a {
        padding: 12px 14px;
        font-size: 15px;
    }

    .hero-banner img {
        min-height: 180px;
    }
}

.category-list li {
    border-bottom: 1px dashed #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-trigger .menu-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.home-hero.is-collapsed .category-trigger .menu-icon {
    transform: rotate(90deg);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .hero-wrap {
        flex-direction: column;
    }

    /* Mặc định chỉ hiện banner */
    .category-sidebar {
        display: none;
    }

    .hero-banner img {
        height: 180px;
    }

    /* Khi mở danh mục */
    .category-sidebar.is-mobile-open {
        display: block;
        animation: fadeInUp 0.25s ease;
    }

    .hero-banner.is-mobile-hidden {
        display: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
    background: #fff8f8;
    border-bottom: 1px solid #f0e0e0;
    padding: 10px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb a {
    color: #c7252e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: #8f161d; }

.breadcrumb .bc-sep {
    color: #ccc;
    font-size: 11px;
}

.breadcrumb .bc-current {
    color: #555;
    font-weight: 600;
}

/* ============================================================
   TRANG DANH MỤC – HERO & INTRO
   ============================================================ */
.cat-page-hero {
    background: linear-gradient(135deg, #c7252e 0%, #8b0000 60%, #2c0a0a 100%);
    padding: 44px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cat-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cat-page-hero .cat-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.5px;
    position: relative;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.cat-page-hero .cat-page-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Nav active indicator */
.nav-right li.active > a,
.nav-right li > a.active {
    background: var(--red-darker);
    color: #fff;
}

/* ============================================================
   CẨM NANG / BLOG PAGE
   ============================================================ */
.blog-hero {
    background: linear-gradient(135deg, #c7252e 0%, #8b0000 58%, #2c0a0a 100%);
    padding: 54px 0 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-hero .blog-hero-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    animation: camNangFloat 3.5s ease-in-out infinite;
    position: relative;
}

@keyframes camNangFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.blog-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    position: relative;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.blog-hero .blog-hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
}

.blog-section {
    padding: 52px 0 72px;
    background: #f8f5f0;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.blog-section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #222;
    display: inline-block;
    padding-bottom: 14px;
    position: relative;
}

.blog-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: #c7252e;
    border-radius: 2px;
}

.blog-section-header p {
    color: #777;
    font-size: 0.95rem;
    margin-top: 14px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #c7252e;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(199, 37, 46, 0.15);
}

.blog-card-img-wrapper {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.blog-card-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.08);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    background: #fff0f0;
    color: #c7252e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.15rem; /* 1.05 * 1.5 * 2 = 3.15 */
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.8rem; /* 0.9 * 1.6 * 3 = 4.32, round up to be safe */
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 16px;
}

.blog-card-meta i { color: #c7252e; }

.btn-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #c7252e;
    color: #fff;
    padding: 9px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-blog-read:hover {
    background: #8f161d;
    transform: translateX(3px);
}

.blog-coming-soon {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #f0c0c0;
    margin-top: 28px;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.7;
}

.blog-coming-soon i {
    font-size: 2.5rem;
    color: #e0b0b0;
    display: block;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .cat-page-hero .cat-page-title { font-size: 1.5rem; }
    .blog-hero h1 { font-size: 1.6rem; }
    .blog-grid { grid-template-columns: 1fr; }
}
/* --- SHOP PAGE / ALL PRODUCTS LAYOUT --- */
.shop-section {
    padding: 40px 0;
    background: #fdfaf6;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.shop-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.filter-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--red-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
    padding-left: 12px;
}
.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--red-main);
    border-radius: 2px;
}

.filter-checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-checkbox-list li {
    margin-bottom: 10px;
}
.filter-checkbox-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: color 0.2s;
}
.filter-checkbox-list label:hover {
    color: var(--red-main);
}
.filter-checkbox-list input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--red-main);
    width: 16px;
    height: 16px;
}

/* Price Slider */
.price-filter .price-slider {
    width: 100%;
    margin: 10px 0;
    accent-color: var(--red-main);
}
.price-range-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.btn-filter {
    background: var(--red-main);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}
.btn-filter:hover {
    background: var(--red-dark);
}
.btn-outline {
    background: transparent;
    color: var(--red-main);
    border: 1px solid var(--red-main);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--red-main);
    color: white;
}

/* Favorite Products Sidebar */
.sidebar-fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}
.sidebar-fav-item:hover {
    transform: translateX(5px);
}
.sidebar-fav-item:last-child {
    margin-bottom: 0;
}
.sidebar-fav-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #efefef;
}
.sidebar-fav-info {
    flex: 1;
}
.sidebar-fav-info h4 {
    font-size: 13px;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.sidebar-fav-info .price {
    font-size: 13px;
    color: var(--red-main);
    font-weight: bold;
}

/* Main Content Area */
.shop-main {
    display: flex;
    flex-direction: column;
}
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.result-count {
    font-size: 14px;
    color: #555;
    margin: 0;
}
.sort-box select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    color: #333;
}

/* Mobile Filter Toggle */
.mobile-filter-btn {
    display: none;
    width: 100%;
    background: var(--red-main);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    cursor: pointer;
}
.sidebar-close {
    display: none;
    text-align: right;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .mobile-filter-btn {
        display: block;
    }
    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 10000;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    }
    .shop-sidebar.active {
        display: block;
    }
    .sidebar-close {
        display: block;
    }
    .shop-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Dual Range Slider Styles */
.range-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 15px;
}

.slider-track {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
    z-index: 1;
}

.price-slider.dual-range {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    z-index: 2;
    margin: 0;
}

.price-slider.dual-range::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--red-main);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* ==========================================================================
   HANDBOOK (CẨM NANG) SYSTEM STYLES
   ========================================================================== */

/* Layout with Sidebar */
/* Layout with Sidebar */
.blog-layout {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    align-items: flex-start;
}

.blog-main {
    flex: 1;
    min-width: 0; /* Ngăn chặn nội dung làm phình flex container */
}

.blog-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--red-main);
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popular Posts List */
.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-post-item:hover {
    transform: translateX(5px);
}

.popular-post-img {
    width: 85px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.popular-post-info h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 5px 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.popular-post-date {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Global Blog Content Fixes */
.post-container {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
}

.post-container img,
.post-section img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 25px auto;
    border-radius: 12px;
}

.post-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Xử lý lỗi ký hiệu/dấu chấm thừa ở tiêu đề */
.blog-main h1, 
.blog-main h2, 
.blog-main h3 {
    list-style: none !important;
    position: relative;
}

.blog-main h1::before, 
.blog-main h2::before, 
.blog-main h3::before,
.blog-main h1::after, 
.blog-main h2::after, 
.blog-main h3::after {
    display: none !important;
    content: none !important;
}

/* Common Conclusion Block */
.post-conclusion-block {
    background: linear-gradient(135deg, #c7252e, #8b0000);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(199, 37, 46, 0.2);
    position: relative;
    overflow: hidden;
}

.post-conclusion-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.post-conclusion-block h3 {
    color: #fff !important;
    font-size: 1.7rem;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    border: none !important;
}

.post-conclusion-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
        position: static;
    }
    .sidebar-widget {
        position: static;
    }
    .post-header h1 {
        font-size: 1.8rem;
    }
}
