/* ============================================
   THÀNH PHONG - BẢO HỘ LAO ĐỘNG
   Brand Colors:
   - Primary Blue: #1D5FA8
   - Dark Navy: #1A2744
   - Light Blue: #2F79C5
   - Accent Blue: #3B8DD4
   - White: #FFFFFF
   - Light Gray: #F5F8FC
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #1D5FA8;
    --primary-dark: #164A85;
    --primary-light: #2F79C5;
    --primary-lighter: #3B8DD4;
    --navy: #1A2744;
    --navy-light: #243554;
    --accent: #E8A500;
    --accent-light: #FFD04D;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --success: #10B981;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --shadow-blue: 0 8px 30px rgba(29,95,168,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* === Preloader === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--white));
    border-radius: 2px;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1.2;
    transition: var(--transition);
}

.nav-tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar.scrolled .nav-brand {
    color: var(--navy);
}

.navbar.scrolled .nav-tagline {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-link {
    color: var(--gray-600);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(29,95,168,0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-phone:hover {
    background: var(--accent-light);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232,165,0,0.4);
}

.nav-phone i {
    font-size: 12px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(0); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--navy);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--white);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    top: 40%;
    left: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-10px, 15px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-light);
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--navy);
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232,165,0,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-white:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    display: block;
    line-height: 1;
    background: linear-gradient(135deg, var(--white), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: block;
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 3px solid rgba(255,255,255,0.15);
}

.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: floatCard 3s ease-in-out infinite;
}

.hero-floating-card i {
    font-size: 20px;
    color: var(--primary);
}

.hero-floating-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.card-1 {
    top: 30px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 40px;
    left: -20px;
    animation-delay: 1.5s;
}

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

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

/* === Partners Marquee === */
.partners-marquee {
    padding: 24px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}

.marquee-track {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    white-space: nowrap;
}

.marquee-item i {
    color: var(--primary);
    font-size: 16px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Section Headers === */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-label.center {
    justify-content: center;
}

.label-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 1px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title.center {
    text-align: center;
}

.section-title .highlight {
    color: var(--primary);
}

.section-desc {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 60px;
}

/* === About Section === */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-exp-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-blue);
}

.exp-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.about-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.about-feature {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    transition: var(--transition);
}

.about-feature:hover {
    background: rgba(29,95,168,0.05);
    transform: translateX(4px);
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
    color: var(--primary);
}

.about-feature h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 13px;
    color: var(--gray-500);
}

/* === Products Section === */
.products {
    position: relative;
    background: var(--gray-50);
}

.products-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.products .container {
    position: relative;
    z-index: 1;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(29,95,168,0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.filter-btn i {
    font-size: 13px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(29,95,168,0.15);
}

.product-card.hidden {
    display: none;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--danger), #FF6B6B);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--success), #34D399);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50), rgba(29,95,168,0.05));
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, var(--white));
}

.product-icon-large {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 36px;
    box-shadow: 0 8px 25px rgba(29,95,168,0.3);
    transition: var(--transition);
}

.product-card:hover .product-icon-large {
    transform: scale(1.1) rotate(5deg);
}

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

.product-category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(29,95,168,0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-info p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.product-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.product-link i {
    font-size: 12px;
    transition: var(--transition);
}

/* Products CTA */
.products-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

.products-cta p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* === Why Choose Us === */
.why-us {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.why-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(29,95,168,0.15);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(29,95,168,0.08), rgba(29,95,168,0.04));
    color: var(--primary);
    font-size: 28px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-blue);
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* === Services Banner === */
.services-banner {
    padding: 0;
}

.services-banner .container {
    max-width: 100%;
    padding: 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 48px 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.banner-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.banner-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 32px;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.banner-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* === Testimonials === */
.testimonials {
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 72px;
    font-weight: 800;
    color: rgba(29,95,168,0.06);
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: var(--accent);
    font-size: 14px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 40px;
    color: var(--primary-light);
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
}

.testimonial-author span {
    font-size: 12px;
    color: var(--gray-400);
}

/* === Contact Section === */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
    padding: 40px;
    border-radius: var(--radius-xl);
    color: var(--white);
    height: 100%;
}

.contact-info-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details {
    display: grid;
    gap: 20px;
}

.contact-detail {
    display: flex;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.contact-detail strong {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--white);
    line-height: 1.5;
}

.contact-detail a {
    color: var(--accent-light);
}

.contact-detail a:hover {
    color: var(--white);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--gray-700);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29,95,168,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* === Map Section === */
.map-section {
    line-height: 0;
}

.map-section iframe {
    filter: grayscale(20%);
}

/* === Footer === */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-brand-name {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-brand-tag {
    display: block;
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 500;
}

.footer-slogan {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-light);
    font-style: italic;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
}

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

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

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 6px;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item i {
    color: var(--primary-light);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.6);
}

.footer-contact-item a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* === Floating Actions === */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.fab-btn:hover {
    transform: scale(1.1);
}

.phone-btn {
    background: linear-gradient(135deg, var(--success), #34D399);
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
}

.zalo-btn {
    background: linear-gradient(135deg, #0068FF, #00A6FF);
}

.scroll-top-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-tooltip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.fab-btn:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-desc {
        max-width: 100%;
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 32px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu .nav-link {
        color: rgba(255,255,255,0.8);
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        font-size: 15px;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: rgba(255,255,255,0.1);
        color: var(--white);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-phone span {
        display: none;
    }

    .nav-phone {
        padding: 10px;
        border-radius: 50%;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-slogan {
        font-size: 18px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-floating-card {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

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

    .contact-form {
        padding: 24px;
    }

    .contact-info-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .product-filters::-webkit-scrollbar {
        display: none;
    }
}

/* === Selection === */
::selection {
    background: rgba(29,95,168,0.2);
    color: var(--navy);
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
/* ================================================================
   CHỨC NĂNG LIGHTBOX CHI TIẾT SẢN PHẨM
   ================================================================ */

/* 1. Khung nền bao phủ */
.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none; /* Ẩn mặc định */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-lightbox.open {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* 2. Khung nội dung chính */
.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 11;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lightbox-close:hover {
    background: #ff4d4f;
    color: #fff;
}

/* 3. Bố cục Grid (Chia 2 cột) */
.lightbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch; /* Đảm bảo 2 bên cao bằng nhau */
}

/* --- CỘT TRÁI: KHUNG CHỨA ẢNH CỐ ĐỊNH --- */
.lightbox-main-visual {
    position: relative;
    background: #f8f9fa; /* Màu nền cho vùng trống của ảnh */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* CỐ ĐỊNH TỶ LỆ KHUNG HÌNH 1:1 (Hình vuông) */
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
}

#lightboxMainImg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /* Giữ nguyên tỉ lệ ảnh, không làm méo, nằm gọn trong khung vuông */
    object-fit: contain; 
    transition: opacity 0.3s ease;
}

/* Nút điều hướng ảnh (Trái/Phải) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover { background: var(--primary); color: #fff; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* --- CỘT PHẢI: THÔNG TIN CHI TIẾT --- */
.lightbox-side-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
}

.lightbox-prod-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}

.lightbox-price {
    font-size: 24px;
    color: #e4393c; /* Đỏ giá tiền chuyên nghiệp */
    font-weight: 700;
    margin-bottom: 20px;
}

/* Nhóm chọn Size và Số lượng */
.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.product-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: fit-content;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-weight: bold;
}

.quantity-control button:hover { background: #e2e2e2; }

.quantity-control input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 16px;
}

.lightbox-prod-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 20px 0;
}

/* Danh sách ảnh nhỏ (Thumbnails) */
.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.thumb-item {
    width: 60px;
    height: 60px;
    border: 2px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.thumb-item.active { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* Nút mua hàng */
.btn-add-cart {
    background: #ff4d4f;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-add-cart:hover {
    background: #d4380d;
    transform: translateY(-2px);
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .lightbox-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-content-wrapper {
        height: 90vh;
        overflow-y: auto;
    }
    .lightbox-side-panel {
        padding: 20px;
    }
}
#preloader, .preloader, #loading-screen {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body {
    overflow: auto !important;
    opacity: 1 !important;
}