/* ============================================
   CỜ THĂNG LONG WEBSITE - CSS MASTER FILE
   Version: 4.0 - FIXED STICKY HEADER & MOBILE MENU
   ============================================ */

/* ============================================
   RESET & BASE STYLES
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ========== COLOR PALETTE ========== */
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --primary-rgb: 211, 47, 47;
    
    --secondary-color: #1a237e;
    --secondary-dark: #000051;
    --secondary-light: #534bae;
    
    --accent-color: #ff9800;
    --accent-dark: #f57c00;
    --accent-light: #ffb74d;
    
    --success-color: #4caf50;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --info-color: #2196f3;
    
    --text-primary: #212121;
    --text-secondary: #666666;
    --text-light: #9e9e9e;
    --text-white: #ffffff;
    --text-dark: #333;
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-xxl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 120px;
    --header-height-scrolled: 70px;
    --top-bar-height: 40px;
    --z-dropdown: 1000;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-menu: 10000;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-4 { margin-top: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }

/* ============================================
   TYPOGRAPHY
============================================ */
h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: relative;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-pill);
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
}

.text-left .section-title::after {
    left: 0;
    transform: none;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

/* ============================================
   TOP BAR
============================================ */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 8px 0;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.top-bar-left span, .top-bar-right span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zalo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.zalo-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center;
    }
}

/* ============================================
   MAIN HEADER - STICKY (FIXED)
============================================ */
.main-header {
    position: sticky;
    top: 0; /* THÊM DÒNG NÀY - QUAN TRỌNG */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Đảm bảo header luôn dính trên top */
.main-header.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    animation: slideDown 0.3s ease;
}

/* THÊM CSS NÀY ĐỂ ĐẢM BẢO HEADER LUÔN Ở TRÊN CÙNG */
body {
    padding-top: 0;
    margin-top: 0;
}

/* KHI HEADER Ở DẠNG STICKY, BODY CẦN CÓ PADDING TOP TƯƠNG ỨNG */
body.has-sticky-header {
    padding-top: var(--header-height);
}

.main-header.sticky + * {
    margin-top: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.main-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
}

.main-header.is-scrolled .header-wrapper {
    padding: 8px 0;
}

.main-header.is-scrolled .logo-link img {
    width: 45px;
    height: 45px;
}

.main-header.is-scrolled .brand-name {
    font-size: 1rem;
}

.main-header.is-scrolled .brand-tagline {
    font-size: 0.7rem;
}

.main-header.is-scrolled .top-bar {
    height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: white;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-link img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #911313;
    margin: 0;
}

.brand-tagline {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 var(--spacing-md);
}

.search-form {
    position: relative;
    display: flex;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3rem;
    background: none;
    color: var(--text-secondary);
}

.search-form button:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-call:hover {
    background: #388e3c;
    color: white;
}

/* Menu Toggle - Nút 3 gạch */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10001;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   MAIN NAVIGATION - FIXED MOBILE MENU
============================================ */
.main-nav {
    background: white;
    border-top: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.dropdown-indicator {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

/* Desktop Dropdown */
@media (min-width: 1025px) {
    .nav-item.dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 800px;
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        padding: var(--spacing-xl);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s;
        z-index: var(--z-dropdown);
        border: 1px solid var(--border-color);
    }
    
    .dropdown-menu#productsDropdown {
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }
    
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-item.dropdown:hover #productsDropdown {
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
    
    .menu-section h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: var(--spacing-sm);
        padding-bottom: var(--spacing-xs);
        border-bottom: 2px solid var(--primary-color);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .menu-section li a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        color: var(--text-secondary);
        border-radius: var(--radius-sm);
        transition: all 0.2s;
    }
    
    .menu-section li a:hover {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .dropdown-indicator {
        display: none;
    }
}

/* ============================================
   MENU OVERLAY - SỬA LỖI CHE MENU
============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 9998; /* QUAN TRỌNG: Thấp hơn menu (10000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* Không nhận sự kiện khi ẩn */
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Nhận sự kiện khi hiển thị */
}

/* ============================================
   MOBILE MENU - SỬA LỖI HOÀN TOÀN
============================================ */
@media (max-width: 1024px) {
    /* Hiển thị nút menu 3 gạch */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Menu chính - slide từ phải sang */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: white !important;
        z-index: 10000 !important; /* Cao nhất */
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        padding: 80px 20px 20px !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15) !important;
        border-top: none !important;
    }
    
    /* Khi menu mở */
    .main-nav.active {
        right: 0 !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-item {
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
        list-style: none !important;
    }
    
    .nav-link {
        padding: 15px 0 !important;
        justify-content: space-between !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        font-size: 16px !important;
    }
    
    /* Dropdown menu mobile */
    .dropdown-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: white !important;
        z-index: 10001 !important; /* Cao hơn menu chính */
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        padding: 80px 20px 20px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        left: auto !important;
    }
    
    /* Kích hoạt dropdown */
    .nav-item.dropdown.active .dropdown-menu {
        right: 0 !important;
    }
    
    .dropdown-header {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
        border-bottom: 2px solid var(--primary-color) !important;
        position: sticky !important;
        top: 0 !important;
        background: white !important;
        z-index: 10 !important;
    }
    
    .dropdown-back {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: var(--primary-color) !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        padding: 8px 12px !important;
        border-radius: 40px !important;
        background: rgba(var(--primary-rgb), 0.1) !important;
        border: none !important;
        font-size: 14px !important;
    }
    
    .dropdown-title {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        margin: 0 !important;
    }
    
    .dropdown-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    .menu-section {
        width: 100% !important;
    }
    
    .menu-section h3 {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        border-bottom: 2px solid var(--primary-color) !important;
    }
    
    .menu-section ul {
        padding-left: 0 !important;
        margin: 0 !important;
    }
    
    .menu-section li {
        list-style: none !important;
    }
    
    .menu-section li a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 0 !important;
        color: #444 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        font-size: 14px !important;
    }
    
    /* Dropdown indicator xoay */
    .dropdown-indicator {
        display: inline-block !important;
        transition: transform 0.3s ease !important;
    }
    
    .nav-item.dropdown.active .dropdown-indicator {
        transform: rotate(180deg);
    }
}

/* Body khi mở menu - KHÔNG DÙNG position:fixed để tránh lỗi */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   HERO BANNER
============================================ */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
    }
    .slide-title {
        font-size: 2rem !important;
    }
    .slide-description {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 350px;
    }
    .slide-title {
        font-size: 1.5rem !important;
    }
    .slide-buttons {
        flex-direction: column;
    }
    .slide-buttons .btn {
        width: 100%;
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.slide-text {
    max-width: 600px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
}

.slide-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: var(--spacing-lg);
}

.next-btn {
    right: var(--spacing-lg);
}

.slider-indicators {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-round);
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ============================================
   TRUST SECTION
============================================ */
.trust-section {
    padding: var(--spacing-xl) 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.trust-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.trust-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.trust-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trust-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .trust-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .trust-icon {
        margin: 0 auto 10px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ============================================
   CATEGORIES SECTION
============================================ */
.categories-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.category-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.btn-view {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-pill);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.category-card:hover .btn-view {
    transform: translateY(0);
}

.category-info {
    padding: var(--spacing-lg);
    text-align: center;
}

.category-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ============================================
   FEATURED PRODUCTS
============================================ */
.featured-products {
    padding: var(--spacing-3xl) 0;
}

.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge.hot {
    background: var(--danger-color);
    color: white;
}
.product-badge.sale {
    background: var(--accent-dark);
    color: white;
}
.product-badge.new {
    background: var(--success-color);
    color: white;
}

.product-image {
    width: 100%;
    height: 250px;              /* 👈 chiều cao cố định */
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: var(--spacing-lg);
    background-color:var(--border-light);
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-info h3 a {
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.btn-detail, .btn-buy-now {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s;
}

.btn-detail {
    background: var(--success-color);
    color: white;
}

.btn-buy-now {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto var(--spacing-xl);
    }
    .product-filters {
        overflow-x: auto;
        flex-wrap: wrap;
        padding-bottom: 10px;
    }
    .filter-btn {
        white-space: nowrap;
    }
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.about-image {
    position: relative;
}

.image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-round);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 800;
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PROCESS SECTION
============================================ */
.process-section {
    padding: var(--spacing-3xl) 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.process-step {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto var(--spacing-md);
    transition: all 0.3s;
}

.process-step:hover .step-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG SECTION
============================================ */
.blog-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img, .blog-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: var(--spacing-lg);
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */
.testimonials-section {
    padding: var(--spacing-3xl) 0;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.3s;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: var(--spacing-md);
}

.testimonial-content {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(var(--primary-rgb), 0.1);
    font-family: Georgia, serif;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
}

.stars i {
    color: #ffc107;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.testimonial-prev, .testimonial-next {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--border-color);
}

.testimonial-prev:hover, .testimonial-next:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: var(--radius-round);
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ============================================
   SPECIAL OFFER
============================================ */
.special-offer {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.special-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.offer-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.offer-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.offer-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.offer-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.offer-contact {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .offer-content {
        flex-direction: column;
        text-align: center;
    }
    .offer-contact {
        justify-content: center;
    }
}

/* ============================================
   PAGE BANNER
============================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-banner .page-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.breadcrumb {
    margin-top: var(--spacing-md);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 10px;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   FOOTER
============================================ */
.main-footer {
    background: #666;
    color: white;
    padding-top: var(--spacing-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    width: 60px;
    height: 60px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: white;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link.facebook { background: #1877f2; }
.social-link.zalo { background: #0068ff; }
.social-link.tiktok { background: #000; }
.social-link:hover { transform: translateY(-3px); }

.footer-column h4 {
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
    color: white;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.8);
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
}

.contact-item i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   FIXED CONTACT BUTTONS - HÌNH TRÒN HIỆN ĐẠI
============================================ */
.fixed-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

/* Tất cả nút đều dạng tròn */
.fixed-contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Ẩn text mặc định, chỉ hiện khi hover */
.fixed-contact-btn span {
    display: none;
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Hiển thị text khi hover */
.fixed-contact-btn:hover span {
    display: block;
    animation: fadeInRight 0.3s ease;
}

/* Icon và ảnh */
.fixed-contact-btn i {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.fixed-contact-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hiệu ứng hover chung */
.fixed-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.fixed-contact-btn:hover i,
.fixed-contact-btn:hover img {
    transform: scale(1.1);
}

/* Hiệu ứng ripple khi click */
.fixed-contact-btn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.5s ease-out;
}

/* ========== NÚT GỌI NGAY - HIỆU ỨNG ĐỘNG ========== */
.phone-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    position: relative;
}

/* Hiệu ứng pulse động cho nút gọi */
@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.phone-btn {
    animation: pulseRing 2s infinite;
}

.phone-btn i {
    animation: pulseIcon 1.5s ease-in-out infinite;
}

/* Hiệu ứng rung nhẹ khi hover */
.phone-btn:hover i {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* ========== NÚT ZALO ========== */
.zalo-btn {
    background: linear-gradient(135deg, #0068FF, #0052CC);
}

/* ========== NÚT MESSENGER ========== */
.messenger-btn {
    background: linear-gradient(135deg, #0084ff, #0063d1);
}

/* ========== NÚT LÊN ĐẦU ========== */
.top-btn {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.top-btn i {
    font-size: 1.4rem;
}

/* Hiệu ứng đặc biệt cho top-btn khi hover */
.top-btn:hover i {
    animation: bounceUp 0.5s ease;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ========== HIỆU ỨNG PHỤ ========== */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Tooltip cho từng nút */
.phone-btn span {
    content: 'Gọi ngay: 0333.371.101';
}

.zalo-btn span {
    content: 'Chat Zalo';
}

.messenger-btn span {
    content: 'Messenger';
}

.top-btn span {
    content: 'Lên đầu';
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .fixed-contact-buttons {
        right: 15px;
        bottom: 80px;
        gap: 12px;
    }
    
    .fixed-contact-btn {
        width: 48px;
        height: 48px;
    }
    
    .fixed-contact-btn i {
        font-size: 1.3rem;
    }
    
    .fixed-contact-btn img {
        width: 24px;
        height: 24px;
    }
    
    .fixed-contact-btn:hover span {
        font-size: 12px;
        right: 60px;
    }
}

@media (max-width: 576px) {
    .fixed-contact-buttons {
        right: 12px;
        bottom: 70px;
        gap: 10px;
    }
    
    .fixed-contact-btn {
        width: 44px;
        height: 44px;
    }
    
    .fixed-contact-btn i {
        font-size: 1.2rem;
    }
    
    .fixed-contact-btn img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .fixed-contact-buttons {
        right: 10px;
        bottom: 65px;
        gap: 8px;
    }
    
    .fixed-contact-btn {
        width: 40px;
        height: 40px;
    }
    
    .fixed-contact-btn i {
        font-size: 1.1rem;
    }
    
    .fixed-contact-btn img {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE - GALLERY SLIDER
============================================ */
.product-detail {
    padding: 60px 0;
}

/* Sửa lại grid layout */
.product-detail-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;  /* Ảnh 40% - Nội dung 60% */
    gap: 40px;
    margin-bottom: 50px;
}

/* Hoặc có thể dùng tỷ lệ cụ thể: */
.product-detail-grid {
    display: grid;
    grid-template-columns: 45% 55%;  /* Ảnh 45% - Nội dung 55% */
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 100%;
    }
}

/* Gallery Container với nút bấm */
.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
     overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.05);
}

/* Nút điều hướng */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Dots indicator */
.gallery-dots {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    width: 28px;
    background: var(--primary-color);
    border-radius: 20px;
}

.gallery-dot:hover {
    background: var(--primary-light);
}

/* Thumbnail */
.thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: center;
}

.thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbs img.active,
.thumbs img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Desktop only / Mobile only */
.desktop-only {
    display: flex;
}

/* Product Info */
.product-info-detail h1 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}

.stars {
    display: flex;
    gap: 4px;
    color: #ffc107;
}

.reviews {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-box {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-box .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 12px;
}

.discount-badge {
    display: inline-block;
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 12px;
}

.short-desc {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.actions {
    display: flex;
    gap: 15px;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.specs {
    margin-bottom: var(--spacing-lg);
}

.specs h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 10px 0;
}

.specs-label {
    width: 40%;
    color: var(--text-secondary);
}

.specs-value {
    color: var(--text-primary);
}

.product-meta {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-meta div {
    margin-bottom: 8px;
}

.product-meta a {
    color: var(--primary-color);
}

.product-meta a:hover {
    text-decoration: underline;
}

/* Product Description */
.product-description {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.product-description h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.7;
}


/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .thumbs img {
        width: 60px;
        height: 60px;
    }
    
    /* Ẩn thumbnail trên mobile, hiển thị dots */
    .desktop-only {
        display: none;
    }
    
    .gallery-dots {
        display: flex;
    }
    
    .product-info-detail h1 {
        font-size: 1.5rem;
    }
    
    .price-box .price {
        font-size: 1.5rem;
    }
    
    .actions .btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .gallery-nav {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRODUCTS PAGE
============================================ */
.products-page {
    padding: 60px 0;
    background: var(--bg-light);
}

.filter-section {
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-buttons .filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 40px;
    font-weight: 600;
}

.filter-buttons .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ============================================
   ERROR PAGE
============================================ */
.error-page {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-light);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1200px) {
    .header-wrapper {
        padding: 10px 0;
    }
    .logo-link img {
        width: 50px;
        height: 50px;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .brand-tagline {
        font-size: 0.8rem;
    }
    .header-search {
        max-width: 300px;
        margin: 0 15px;
    }
}

@media (max-width: 992px) {
    .header-search {
        display: none;
    }
    .btn-call span {
        display: none;
    }
    .btn-call {
        padding: 0.5rem;
    }
    .logo-brand {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    html {
        scroll-padding-top: 80px;
    }
    section[id] {
        scroll-margin-top: 80px;
    }
    .categories-grid,
    .blog-grid {
        max-width: 350px;
        margin: 0 auto;
    }
    .page-banner {
        padding: 40px 0;
    }
    .page-banner .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .top-bar-left, .top-bar-right {
        gap: var(--spacing-sm);
    }
    .top-bar-left span, .top-bar-right span {
        font-size: 0.7rem;
    }
    .logo-link {
        gap: 8px;
    }
    .logo-link img {
        width: 40px;
        height: 40px;
    }
    .brand-name {
        font-size: 0.9rem;
    }
    .brand-tagline {
        font-size: 0.65rem;
    }
    .footer-grid {
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-logo {
        justify-content: center;
        flex-direction: column;
    }
    .footer-links li a {
        justify-content: center;
    }
    .contact-item {
        justify-content: center;
    }
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   IOS SAFARI FIXES
============================================ */
@supports (-webkit-touch-callout: none) {
    .main-nav, .dropdown-menu {
        height: -webkit-fill-available;
    }
    body.menu-open {
        position: fixed;
        height: 100%;
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile & Tablet Menu - FIXED */
@media (max-width: 1024px) {
    /* Hiển thị nút menu 3 gạch */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Menu chính - slide từ phải sang */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: white !important;
        z-index: 10000 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        padding: 80px 20px 20px !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1) !important;
        border-top: none !important;
    }
    
    /* THÊM CSS NÀY ĐỂ ĐẢM BẢO MENU HIỂN THỊ KHI CÓ CLASS ACTIVE */
    .main-nav.active {
        right: 0 !important;
        display: block !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .nav-item {
        width: 100% !important;
        border-bottom: 1px solid var(--border-light) !important;
    }
    
    .nav-link {
        padding: 15px 0 !important;
        justify-content: space-between !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: white !important;
        z-index: 10001 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        padding: 80px 20px 20px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* THÊM CSS NÀY ĐỂ HIỂN THỊ DROPDOWN KHI ACTIVE */
    .nav-item.dropdown.active .dropdown-menu {
        right: 0 !important;
        display: block !important;
    }
    
    .dropdown-header {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
        border-bottom: 2px solid var(--primary-color) !important;
        position: sticky !important;
        top: 0 !important;
        background: white !important;
        z-index: 10 !important;
    }
    
    .dropdown-back {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: var(--primary-color) !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        padding: 8px 12px !important;
        border-radius: 40px !important;
        background: rgba(var(--primary-rgb), 0.1) !important;
        border: none !important;
    }
    
    .dropdown-title {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        margin: 0 !important;
    }
    
    .dropdown-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    .menu-section {
        width: 100% !important;
    }
    
    .menu-section h3 {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        border-bottom: 2px solid var(--primary-color) !important;
    }
    
    .menu-section li a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 0 !important;
        color: #444 !important;
        border-bottom: 1px solid var(--border-light) !important;
    }
    
    /* Dropdown indicator xoay */
    .dropdown-indicator {
        display: inline-block !important;
        transition: transform 0.3s ease !important;
    }
    
    .nav-item.dropdown.active .dropdown-indicator {
        transform: rotate(180deg);
    }
}

/* ============================================
   VIDEO THUMBNAIL & PLAY BUTTON
============================================ */

/* Container video thumb */
.video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    height: 200px;
}

/* Ảnh preview */
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hiệu ứng zoom ảnh khi hover */
.video-thumb:hover img {
    transform: scale(1.1);
}

/* Overlay tối khi hover */
.video-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-thumb:hover::before {
    opacity: 1;
}

/* Nút play */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Hiệu ứng nút play khi hover */
.video-thumb:hover .play-btn {
    background: var(--primary-color, #d32f2f);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-color: white;
}

/* Hiệu ứng pulse cho nút play */
@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.play-btn {
    animation: pulsePlay 2s infinite;
}

.video-thumb:hover .play-btn {
    animation: none;
}

/* Video khi đã được thay thế */
.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

/* Tùy chỉnh controls video */
.video-thumb video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.video-thumb video::-webkit-media-controls-play-button {
    background-color: var(--primary-color, #d32f2f);
    border-radius: 50%;
    transform: scale(0.9);
}

.video-thumb video::-webkit-media-controls-play-button:hover {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .video-thumb {
        height: 180px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .video-thumb {
        height: 160px;
    }
    
    .play-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ============================================
   BLOG SLIDER - HÀNG NGANG CÓ NÚT BẤM
============================================ */

.blog-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
    overflow: hidden;
}

/* Slider Container */
.blog-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 -10px;
}

/* Wrapper chứa slider */
.blog-slider-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

/* Slider chính */
.blog-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

/* Mỗi slide */
.blog-slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
}

/* Nút điều hướng */
.slider-nav {
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 10;
    flex-shrink: 0;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider-nav:active {
    transform: scale(0.95);
}

/* Dots indicator */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 28px;
    background: var(--primary-color);
    border-radius: 20px;
}

.dot:hover {
    background: var(--primary-light);
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* Play Button */
.video-thumb {
    position: relative;
    cursor: pointer;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
}

.video-thumb:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

/* Blog Content */
.blog-content {
    padding: var(--spacing-lg);
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    transition: color 0.3s ease;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-slide {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .blog-slide {
        flex: 0 0 calc(100% - 0px);
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .blog-slider {
        gap: 20px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .slider-nav {
        width: 36px;
        height: 36px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: var(--spacing-md);
    }
    
    .blog-content h3 {
        font-size: 1rem;
    }
}