:root {
    /* Primary Colors */
    --primary: #0066CC;
    --primary-dark: #004999;
    --primary-light: #3399FF;

    /* Secondary Colors */
    --secondary: #28A745;
    --secondary-dark: #1E7A34;

    /* Neutral Colors */
    --neutral: #6C757D;
    --light-bg: #F8F9FA;
    --dark-text: #212529;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 60px 0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
}

/* Container */
.container-custom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Styling */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Card Styles */
.card-hover {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Button Styles */
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-success-custom {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
}

.btn-success-custom:hover {
    background-color: var(--secondary-dark);
    color: white;
}

/* Responsive Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 991px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

.navbar-brand {
    font-weight: bold;
}

/* Navigation Menu Styling */
.navbar-nav {
    gap: 12px;
}

.navbar-nav .nav-link {
    padding: 10px 18px;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.2s ease;
    color: var(--dark-text);
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary);
    color: white;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card {
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Product Detail Page */
.product-gallery .main-image img {
    transition: transform 0.3s ease;
}
.product-gallery .main-image img:hover {
    transform: scale(1.02);
}
.thumbnail {
    cursor: pointer;
    transition: opacity 0.2s;
}
.thumbnail:hover {
    opacity: 0.8;
}

.cursor-pointer {
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-image {
    padding: 20px;
}

.hero-image img {
    max-height: 350px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        margin-top: 2rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

.cta-section .lead {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image img {
        max-height: 250px;
    }
}

/* ============================================
   FACTORY GALLERY SECTION
   ============================================ */
.factory-gallery-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0,102,204,0.3);
}

/* ============================================
   LIGHTBOX OVERLAY
   ============================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* ============================================
   MAP + CTA SECTION
   ============================================ */
.map-cta-section {
    padding: 80px 0;
}

.contact-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-panel h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-phone {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-email {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.contact-email a {
    color: white;
    opacity: 0.9;
}

.contact-email a:hover {
    opacity: 1;
    color: white;
}

.zalo-btn {
    background: #0068FF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.zalo-btn:hover {
    background: #0052CC;
    color: white;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    .factory-gallery-section,
    .map-cta-section {
        padding: 48px 0;
    }

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

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
