/* ========================================
   JetGo E-Commerce - Main Stylesheet
   Colors: Red (#E53935) - Black (#212121) - White (#FFFFFF)
   ======================================== */

/* === ROOT & RESET === */

.logo { /* === Logo JETGO  === */
  height: 90px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo {
    height: 32px;
  }
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-red);
    transform: scale(1.05);
}


/* CSKH LOGO ZALO,SMS,MESS */
/* ============================= */
/* FLOATING SUPPORT UX MODERN */
/* ============================= */

.support-floating {
    position: fixed;
    left: 20px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 9999;
}

/* Button */
.support-btn {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Icon */
.support-btn img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* Hover effect */
.support-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Tooltip */
.support-btn span {
    position: absolute;
    left: 80px;
    white-space: nowrap;
    background: #111;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
    pointer-events: none;
}

.support-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

/* Brand colors viền */
.support-btn.zalo {
    border: 3px solid #0068ff;
}

.support-btn.sms {
    border: 3px solid #28a745;
}

.support-btn.messenger {
    border: 3px solid #0084ff;
}

/* Pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.3); }
    70% { box-shadow: 0 0 0 12px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.support-btn {
    animation: pulse 3s infinite;
}

/* Mobile */
@media (max-width: 768px) {
    .support-floating {
        left: 15px;
        bottom: 90px;
    }

    .support-btn {
        width: 55px;
        height: 55px;
    }

    .support-btn img {
        width: 28px;
        height: 28px;
    }
}


/* Optional glow effect */
.zalo:hover {
    background: #e6f3ff;
}

.sms:hover {
    background: #f2f2f2;
}

.messenger:hover {
    background: #e8f0ff;
}


/* ===== BRAND FILTER ===== */
.brand-filter {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.brand-filter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #222;
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 120px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.brand-logo img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
}

.brand-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.brand-name {
    font-size: 24px;
    font-weight: 600;
    color: #111;
}
/* ===== LOGO các hãng ===== */


/* ===== HERO SLIDER ===== */
/* ================= HERO ================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
      background-color: #000;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;        /* full khung */
    background-position: center 5%;
  /* canh giữa */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-caption {
    position: absolute;
    bottom: 15%;
    left: 8%;
    color: #fff;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    margin-top: 15px;
    font-size: 18px;
    opacity: 0.9;
}
/**/


/* Overlay tối để chữ nổi */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.2) 100%
    );
    z-index: 2;
}

.hero-caption {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-caption .container {
    color: #fff;
}

.hero-title {
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff4d4d, #ff9900);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* Navigation */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: none;
    cursor: pointer;
    z-index: 4;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0,0,0,0.7);
}


/* ===== HEADER ===== */

.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

/* LOGO */
.logo img {
    height: 50px;
    object-fit: contain;
}

/* NAVIGATION */
.nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: 0.3s;
    position: relative;
}

.nav a:hover {
    color: #ff4d4f;
}

/* Underline animation */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #ff4d4f;
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

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

/* QR BUTTON */
.qr-btn {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,77,79,0.4);
}

/* CART */
.cart-icon {
    position: relative;
    font-size: 20px;
    text-decoration: none;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MOBILE BUTTON */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Header  */

:root {
    --primary-red: #E53935;
    --dark-red: #C62828;
    --black: #212121;
    --dark-gray: #424242;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    background-color: var(--black);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
      height: 75px;
  
    
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-red);
    letter-spacing: 2px;

}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* === MOBILE MENU === */
.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 28px;
    color: var(--white);
}

/* === BUTTONS === */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--black);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--dark-gray);
}

.btn-outline {
    border: 2px solid var(--black);
    background-color: transparent;
    color: var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

/* === HERO BANNER SECTION === */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 75% 30%, rgba(229, 57, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 25% 70%, rgba(229, 57, 53, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background::before {
            
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top right, rgba(229, 57, 53, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(229, 57, 53, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 40%,
        rgba(10, 10, 10, 0.5) 70%,
        transparent 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-text {
    max-width: 680px;
    padding: 60px 0;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(229, 57, 53, 0.6);
    }
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--white);
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, #ff6b6b, var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
}

.hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(229, 57, 53, 0.5);
    transform: translateY(-2px);
}

.hero-feature-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-hero-primary {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(229, 57, 53, 0.5);
    background: linear-gradient(135deg, #ff5252, var(--primary-red));
}

.btn-hero-secondary {
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-countdown {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: 16px;
    min-width: 90px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(229, 57, 53, 0.5);
    transform: translateY(-2px);
}

.countdown-value {
    font-size: 36px;
    font-weight: 800;
    display: block;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Responsive Hero Banner */
@media (max-width: 1024px) {
    .hero-banner {
        min-height: 80vh;
    }
    
    .hero-content {
        min-height: 80vh;
    }
    
    .hero-text {
        max-width: 100%;
        padding: 40px 0;
    }
    
    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(10, 10, 10, 0.92) 0%,
            rgba(10, 10, 10, 0.75) 50%,
            rgba(10, 10, 10, 0.4) 100%
        );
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 70vh;
    }
    
    .hero-content {
        min-height: 70vh;
        padding: 0 16px;
    }
    
    .hero-text {
        padding: 32px 0;
        text-align: center;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-countdown {
        justify-content: center;
    }
    
    .hero-overlay {
        background: rgba(10, 10, 10, 0.85);
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 16px 18px;
    }
    
    .countdown-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 60vh;
    }
    
    .hero-content {
        min-height: 60vh;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-feature-item {
        justify-content: center;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
    
    .countdown {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 12px 14px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
}

/* === CATEGORIES SECTION === */
.categories {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--black);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.category-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

/* === PRODUCTS SECTION === */
.products {
    padding: 80px 0;
}
.product-discount {
    color: #28a745;   /* xanh lá */
    font-weight: bold;
}



.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Product card base + hover/focus states */
.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 3px solid transparent;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-red);
}

.product-card:focus {
    outline: none;
}

.filter-sort select {
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

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

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
     background-color: #28a745; /* xanh lá */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* === HEADER - Responsive tweaks === */
.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header .logo img {
    height: 180px;
    width: auto;
    display: block;
}

.nav ul { gap: 24px; }

@media (max-width: 900px) {
    .nav { display: none; }
    .mobile-menu-btn { display: inline-block; }
    .header-content { gap: 10px; }
}

@media (max-width: 900px) {
    .nav.active {
        display: block;
        position: absolute;
        top: 75px;
        right: 20px;
        background: var(--white);
        padding: 16px 20px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        z-index: 1500;
    }
    .nav.active ul { flex-direction: column; gap: 12px; }
    .nav.active a { color: var(--black); padding: 8px 0; display: block; }
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 2000;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
    background: var(--white);
    width: 280px;
    height: 100%;
    padding: 24px;
    box-shadow: var(--shadow);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { color: var(--black); font-weight:600; }

/* QR Pay CTA in header */
.header-actions .qr-btn {
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight:700;    
}

/* === FOOTER === */
.footer {
    background-color: #0f1720;
    color: rgba(255,255,255,0.95);
    padding: 40px 0;
    margin-top: 40px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.footer-section h3 { font-size: 16px; margin-bottom: 10px; color: #fff; }
.footer-section p, .footer-section li { color: rgba(255,255,255,0.8); font-size: 14px; line-height:1.6; }
.footer-section ul { padding: 0; margin: 0; }
.footer-section a { color: rgba(255,255,255,0.9); }

/* Utilities */
.muted { color: rgba(0,0,0,0.6); }

/* Small devices tweaks */
@media (max-width: 480px) {
    .flash-sale h2 { font-size: 28px; }
    .product-image { height: 220px; }
    .header .logo img { height: 40px; }
}

.product-info {
    padding: 15px 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--black);
    min-height: 40px;
}

.product-rating {
    color: #FFA500;
    margin-bottom: 8px;
    font-size: 14px;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 15px;
}

.product-price-old {
    color: var(--dark-gray);
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 600;
    font-size: 18px;
}

.product-price-new {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 20px;
}

.product-price-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-detail-price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 30px;
}

.product-discount {
        
    font-weight: 700;
    margin-left: 8px;
    font-size: 18px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

/* === FEATURES SECTION === */
.features {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-text {
    color: #CCCCCC;
}

/* === FOOTER === */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-red);
}

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

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--dark-gray);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--black);
        padding: 20px;
    }
    
    .nav.active ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .flash-sale h2 {
        font-size: 32px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .countdown-value {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-sort {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* === LOADING ANIMATION === */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 20px;
    color: var(--dark-gray);
}

/* === NO RESULTS === */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-gray);
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}


/* ===== PRODUCT DETAIL MODERN UI ===== */

.product-detail {
    padding: 60px 0;
    background: #f8f9fb;
}

/* Layout chính */
.product-detail-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* ===== LEFT: IMAGE ===== */
.product-gallery {
    flex: 1;
    max-width: 550px;
    position: sticky;
    top: 120px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    background: #fff;
}

.thumbnail-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #e60023;
    transform: scale(1.05);
}

/* ===== RIGHT: INFO ===== */
.product-detail-info {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Title */
.product-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Rating */
.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 16px;
}

.product-detail-rating .stars {
    color: #f5a623;
}

/* Price */
.product-detail-price {
    margin-bottom: 25px;
}

.product-price-new {
    font-size: 36px;
    font-weight: 700;
    color: #e60023;
}

.product-price-old {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.product-discount {
    color: #00ff0d;
    font-weight: 600;
}

/* Description */
.product-description {
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* ===== SPEC BOX ===== */
.product-specs {
    background: #f4f6f9;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.product-specs h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

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

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

.spec-label {
    font-weight: 600;
    color: #333;
    width: 45%;
}

.spec-value {
    width: 55%;
    text-align: right;
    color: #555;
    word-break: break-word;
}

/* ===== Quantity ===== */
.quantity-selector {
    margin-bottom: 25px;
}

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

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===== BUTTONS ===== */
.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.product-actions-detail .btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary {
    background: #fff;
    border: 2px solid #e60023;
    color: #e60023;
}

.btn-secondary:hover {
    background: #e60023;
    color: #fff;
}

.btn-primary {
    background: #e60023;
    border: none;
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* ===== FEATURES ===== */
.product-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature-box {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: #f8f9fb;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {

    .product-detail-content {
        flex-direction: column;
    }

    .product-gallery {
        position: static;
        max-width: 100%;
    }

    .product-detail-info {
        padding: 25px;
    }

    .product-price-new {
        font-size: 28px;
    }
}
