/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c8a97e;
    --secondary-color: #8b4513;
    --dark-color: #1a1a1a;
    --light-color: #f8f8f8;
    --white-color: #ffffff;
    --text-color: #333333;
    --overlay-color: rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Warning Banner ===== */
.warning-banner {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    color: var(--white-color);
    padding: 20px 0;
    text-align: center;
    position: relative;
    animation: slideDown 0.5s ease;
}

.warning-banner h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.warning-banner p {
    margin: 5px 0;
}

.warning-banner a {
    color: var(--white-color);
    text-decoration: underline;
    font-weight: 600;
}

.close-banner {
    position: absolute;
    top: 10px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--white-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-banner:hover {
    transform: rotate(90deg);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--white-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-family: 'Poppins', sans-serif;
    color: rgb(101, 9, 9);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 5px;
    line-height: 1.2;
}

.logo-text p {
    font-family: 'Roboto', serif;
    font-size: 12px;
    color: rgb(101, 9, 9);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.logo-text .tax-code {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: rgb(101, 9, 9);
    letter-spacing: 1px;
    text-transform: lowercase;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-reserve {
    background: var(--primary-color);
    color: var(--white-color) !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-reserve:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-reserve::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    height: 750px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

/* Ken Burns Effect - Background Image Animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/image copy.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    animation: kenBurns 5s ease-in-out infinite alternate;
    z-index: 0;
}

/* Overlay tối */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Ken Burns Animation */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease;
    padding-bottom: 20px;
    width: 100%;
    max-width: 800px;
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-secondary:hover {
    background: var(--white-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white-color);
    font-size: 2rem;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B0000;
    text-transform: uppercase;
}

/* ===== About Section ===== */
.about {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1179 / 1792;
    margin: 0 auto;
}

/* ===== Carousel Styles ===== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    border: none;
    padding: 15px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    z-index: 10;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* ===== Carousel Proof Thumbnails ===== */
.carousel-proof {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 15;
}

.proof-image {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.proof-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.proof-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--white-color);
}

.about-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    height: 35%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--white-color);
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-images img:hover {
    transform: scale(1.1);
}

.about-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===== Gallery Section ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white-color);
    font-size: 3rem;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== Menu Section ===== */
.menu {
    background: var(--light-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.menu-item {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.menu-image {
    height: 250px;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .menu-image img {
    transform: scale(1.1);
}

.menu-content {
    padding: 25px;
}

.menu-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.menu-content p {
    color: var(--text-color);
}

.menu-action {
    text-align: center;
}

/* ===== Location Section ===== */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 20px;
    background: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white-color);
    font-size: 1.5rem;
}

.info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.info-text p {
    margin: 5px 0;
}

.info-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.location-map {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-section ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .menu-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .menu-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        height: 200px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh !important;
        min-height: 500px !important;
        background-position: center center;
        background-size: cover;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh !important;
        min-height: 450px !important;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* ========================================
   MOBILE RESPONSIVE STYLES - HTX WEBSITE
   Breakpoints: ≤576px (Mobile), 577-768px (Tablet)
   ======================================== */

/* ===========================================
   MOBILE-FIRST BASE STYLES (≤576px)
   =========================================== */

@media (max-width: 576px) {
  /* Global Adjustments */
  html {
    overflow-x: hidden;
    width: 100%;
  }
  
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
  
  *:not(img):not(svg):not(video) {
    box-sizing: border-box;
  }
  
  body {
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  .container {
    padding: 0 16px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* Language Switcher - Critical for mobile */
  .language-switcher {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 6px;
    gap: 6px;
  }
  
  .lang-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem !important;
    padding: 8px 12px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    position: relative;
    z-index: 10000;
  }
  
  .lang-btn:active {
    transform: scale(0.92);
    background-color: #e9ecef;
  }
  
  .lang-btn.active {
    background-color: #AD1E26 !important;
    color: white;
    transform: scale(1.05);
  }
  
  .lang-btn.active:active {
    transform: scale(0.98);
  }
  
  /* Typography */
  h1 {
    font-size: 1.5rem !important;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  h2 {
    font-size: 1.3rem !important;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  h3 {
    font-size: 1.15rem;
    word-wrap: break-word;
    max-width: 100%;
  }
  
  h4 {
    font-size: 1rem;
    word-wrap: break-word;
    max-width: 100%;
  }
  
  p {
    margin-bottom: 0.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: 0.95rem;
  }
  
  strong {
    word-wrap: break-word;
    max-width: 100%;
  }
  
  ul, ol {
    max-width: 100%;
  }
  
  li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  /* ========== HEADER & NAVIGATION ========== */
  
  /* Top Header */
  .top-header {
    padding: 0;
  }
  
  .top-header-container {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  
  .logo-section {
    flex: 1;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
  }
  
  .logo-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
  }
  
  .logo-slogan {
    font-size: 0.7rem;
    opacity: 0.9;
  }
  
  /* Mobile Menu Toggle Button */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #AD1E26;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
  }
  
  /* Hide desktop header elements */
  .top-header-right > *:not(.mobile-menu-toggle) {
    display: none !important;
  }
  
  /* Mobile Navigation Overlay */
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding-top: 70px;
    padding-bottom: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .main-navigation.active {
    left: 0;
  }
  
  .nav-container {
    padding: 0;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  
  /* Nav Items */
  .nav-item {
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 56px;
  }
  
  .nav-link:active {
    background-color: #f5f5f5;
  }
  
  .nav-link.active,
  .nav-item.active > .nav-link {
    background: linear-gradient(90deg, #AD1E26, #c41e29);
    color: white;
  }
  
  .nav-icon {
    font-size: 1.2rem;
    margin-right: 10px;
  }
  
  .nav-text {
    flex: 1;
    text-align: left;
  }
  
  /* Dropdown Arrow for Mobile */
  .has-dropdown > .nav-link::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #666;
  }
  
  .has-dropdown.active > .nav-link::after {
    transform: rotate(180deg);
    color: white;
  }
  
  .has-dropdown.active > .nav-link {
    background: linear-gradient(90deg, #AD1E26, #c41e29);
    color: white;
  }
  
  /* Mobile Dropdown (Accordion Style) */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background-color: #fafafa;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .has-dropdown.active .dropdown-menu {
    display: block;
    max-height: 600px;
    border-left: 3px solid #AD1E26;
  }
  
  .dropdown-link {
    display: block;
    padding: 14px 20px 14px 40px;
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
  }
  
  .dropdown-link:active {
    background-color: #f0f0f0;
    transform: translateX(4px);
  }
  
  .dropdown-link.active {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    border-left: 4px solid #4caf50;
  }
  
  .dropdown-link::before {
    content: '›';
    margin-right: 8px;
    font-size: 1.2rem;
    color: #AD1E26;
  }
  
  /* Home icon for Trang chủ */
  .nav-item:first-child .nav-link .nav-icon {
    font-size: 1.3rem;
  }
  
  /* Visual feedback for active section */
  .nav-item.current-page > .nav-link {
    background-color: #fff5f5;
    color: #AD1E26;
    font-weight: 700;
  }
  
  .nav-item.current-page > .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #AD1E26;
  }
  
  /* Close button in navigation */
  .nav-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #AD1E26;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-close-btn:active {
    transform: scale(0.9);
  }
  
  /* ========== HERO SECTION ========== */
  
  .hero {
    height: 100vh !important;
    min-height: 500px !important;
    padding: 40px 0;
    background-position: center center;
    background-size: cover;
    align-items: flex-end;
  }
  
  .hero-content {
    padding-bottom: 15px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* ========== SECTIONS ========== */
  
  section {
    padding: 30px 0;
  }
  
  .bg-white,
  .bg-light {
    padding: 30px 0;
  }
  
  .text-center {
    text-align: center;
  }
  
  .mb-4 {
    margin-bottom: 1.5rem;
  }
  
  /* ========== GRID LAYOUTS ========== */
  
  .row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100%;
    overflow: hidden;
  }
  
  .row > * {
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .row.cols-2,
  .row.cols-3,
  .row.cols-4 {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Product Grid */
  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* ========== CARDS ========== */
  
  .card {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .product-card {
    border-radius: 8px;
    overflow: hidden;
  }
  
  .product-card .product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  
  .product-card .product-info {
    padding: 1rem;
  }
  
  .product-card .product-info h3 {
    font-size: 1rem;
  }
  
  /* ========== BOX RAU SECTION ========== */
  
  .product-grid + div[style*="margin-top"] {
    margin-top: 2rem !important;
    padding: 1.5rem 16px !important;
    max-width: 100%;
    overflow: hidden;
  }
  
  .product-grid + div > div[style*="display: grid"],
  .product-grid + div > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    grid-template-columns: 1fr !important;
    max-width: 100%;
  }
  
  .product-grid + div > div > div {
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word;
  }
  
  .product-grid + div img {
    max-width: 100%;
    width: 100%;
    height: auto !important;
    display: block;
  }
  
  .product-grid + div h2 {
    font-size: 1.3rem !important;
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  .product-grid + div [style*="font-size: 1.8rem"] {
    font-size: 1.2rem !important;
    word-wrap: break-word;
  }
  
  .product-grid + div p {
    font-size: 0.95rem !important;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .product-grid + div [style*="display: flex"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .product-grid + div a {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem !important;
  }
  
  /* ========== INTRO SECTION ========== */
  
  .intro-section-with-bg {
    padding: 20px 0 0;
    margin-bottom: 0 !important;
  }
  
  .intro-section-with-bg .container {
    padding: 0 16px;
    max-width: 100%;
  }
  
  .intro-section-with-bg h2 {
    font-size: 1.3rem !important;
    line-height: 1.4;
    margin-bottom: 1rem;
    padding: 0 8px;
    word-wrap: break-word;
  }
  
  .intro-section-with-bg .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    grid-template-columns: 1fr !important;
  }
  
  .intro-section-with-bg .row > div {
    width: 100% !important;
    max-width: 100%;
    padding: 0;
  }
  
  .intro-section-with-bg p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .intro-section-with-bg ul {
    margin: 1rem 0;
    padding-left: 20px;
  }
  
  .intro-section-with-bg li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
  }
  
  .intro-section-with-bg img {
    max-width: 100%;
    height: auto;
  }
  
  /* ========== BUTTONS ========== */
  
  .btn,
  button,
  input[type="submit"],
  a[style*="padding"] {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  
  .btn-primary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* ========== FEATURED PRODUCT ========== */
  
  .featured-product-section-enhanced {
    padding: 20px 0 30px;
    min-height: auto !important;
    margin-top: 0 !important;
  }
  
  /* Ẩn background pattern trên mobile */
  .featured-product-section-enhanced::before {
    display: none !important;
  }
  
  .featured-product-section-enhanced .container {
    padding: 0 16px;
  }
  
  .section-title-featured {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
  }
  
  .featured-product-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .product-gallery {
    width: 100%;
    order: 1;
  }
  
  .main-image {
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 10px;
  }
  
  .thumbnail {
    height: 70px;
    border-radius: 6px;
  }
  
  .product-details {
    width: 100%;
    order: 2;
  }
  
  .product-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  
  .product-specs {
    margin: 1.5rem 0;
  }
  
  .spec-item {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .spec-icon {
    font-size: 1.5rem;
    margin-right: 10px;
  }
  
  .spec-content {
    font-size: 0.9rem;
  }
  
  .info-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
  
  /* ========== CONTACT SECTION ========== */
  
  .contact-section {
    padding: 30px 0;
  }
  
  .contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info,
  .register-form {
    width: 100%;
  }
  
  .contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-input {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    min-height: 48px;
  }
  
  .btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    min-height: 48px;
  }
  
  .map-container iframe {
    height: 250px;
    border-radius: 8px;
  }
  
  /* ========== FOOTER ========== */
  
  footer {
    padding: 30px 0 20px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .footer-section ul {
    padding-left: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-bottom {
    padding: 20px 0;
    text-align: center;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
  }
  
  /* ========== UTILITIES ========== */
  
  /* Hide on mobile */
  .hide-mobile {
    display: none !important;
  }
  
  /* Full width on mobile */
  .full-width-mobile {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Stack columns */
  .stack-mobile {
    flex-direction: column !important;
  }
  
  /* Text alignment */
  .text-center-mobile {
    text-align: center !important;
  }
  
  /* Spacing adjustments */
  .p-mobile {
    padding: 16px !important;
  }
  
  .m-mobile {
    margin: 16px !important;
  }
}

/* ===========================================
   TABLET STYLES (577px - 768px)
   =========================================== */

@media (min-width: 577px) and (max-width: 768px) {
  /* Container */
  .container {
    padding: 0 24px;
  }
  
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Grid Layouts */
  .row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Navigation - Keep mobile menu on tablet */
  .main-navigation {
    width: 350px;
  }
  
  /* Hero */
  .hero {
    height: 700px;
    padding: 50px 0;
    align-items: flex-end;
  }
  
  .hero-content {
    padding-bottom: 40px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  /* Featured Product */
  .featured-product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .main-image {
    height: 320px;
  }
  
  /* Contact */
  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ===========================================
   LANDSCAPE ORIENTATION
   =========================================== */

@media (max-width: 768px) and (orientation: landscape) {
  .main-navigation {
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .hero {
    height: 100vh;
    min-height: 400px;
    padding: 30px 0;
    background-position: center center;
    background-size: cover;
    align-items: flex-end;
  }
  
  .hero-content {
    padding-bottom: 25px;
  }
  
  .main-image {
    height: 200px;
  }
}

/* ===========================================
   TOUCH & ACCESSIBILITY
   =========================================== */

@media (max-width: 768px) {
  /* Touch-friendly tap targets */
  a,
  button,
  input,
  select,
  textarea,
  .clickable {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Prevent text selection during tap */
  .nav-link,
  .dropdown-link,
  .btn {
    -webkit-tap-highlight-color: rgba(173, 30, 38, 0.1);
    -webkit-touch-callout: none;
    user-select: none;
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom */
  }
}

/* ===========================================
   PERFORMANCE OPTIMIZATIONS
   =========================================== */

@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Lazy load images */
  img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  img[loading="lazy"].loaded {
    opacity: 1;
  }
}

/* ===========================================
   IPHONE SPECIFIC FIXES
   =========================================== */

/* iPhone SE, iPhone 12/13/14 Mini (≤390px) */
@media only screen and (max-width: 390px) {
  body {
    font-size: 13px !important;
  }
  
  h1 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }
  
  h2 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
  }
  
  p, li {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  .container {
    padding: 0 12px !important;
  }
  
  .intro-section-with-bg h2 {
    font-size: 1.2rem !important;
    padding: 0 12px !important;
  }
  
  .intro-section-with-bg p,
  .intro-section-with-bg li {
    font-size: 0.88rem !important;
  }
  
  .product-grid + div h2 {
    font-size: 1.2rem !important;
  }
  
  .product-grid + div [style*="font-size"] {
    font-size: 1.1rem !important;
  }
}

/* iPhone 6/7/8 Plus (≤414px) */
@media only screen and (max-width: 414px) {
  /* Extra safety for text wrapping */
  * {
    max-width: 100vw !important;
  }
  
  .container,
  section,
  .row,
  .intro-section-with-bg {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Prevent specific elements from overflowing */
  h1, h2, h3, h4, h5, h6,
  p, span, div, strong, em, li {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
  }
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari */
  body {
    -webkit-text-size-adjust: 100%;
  }
  
  * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  /* Fix for iOS viewport units */
  .hero,
  section,
  .container {
    min-height: 0;
  }
  
  /* Fix sticky positioning on iOS */
  .site-header {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* ========================================
   PRODUCT SPLIT HERO - MOBILE HORIZONTAL LAYOUT
   ======================================== */

@media (max-width: 576px) {
  .product-split-hero {
    margin: 1rem 0;
    padding: 0;
  }
  
  .product-split-hero .split-hero-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100vw !important;
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    gap: 0 !important;
    align-items: stretch;
  }
  
  /* Image - keep original position */
  .product-split-hero .split-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow: hidden;
  }
  
  .product-split-hero .split-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
  }
  
  /* Content - compact but readable */
  .product-split-hero .split-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.5rem 0.4rem !important;
    text-align: left !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .product-split-hero .split-content p {
    font-size: 0.55rem !important;
    line-height: 1.3 !important;
    margin: 0.3rem 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  /* Divider line - compact */
  .split-divider {
    width: 100% !important;
    max-width: 100% !important;
    height: 1px !important;
    margin: 0.3rem 0 !important;
    background: white !important;
  }
  
  /* Button - compact */
  .product-split-hero .split-btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.6rem !important;
    text-align: center !important;
    margin-top: 0.3rem !important;
    box-sizing: border-box;
  }
  
  /* Dark variant - keep horizontal layout */
  .product-split-hero.dark .split-hero-inner {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .product-split-hero.dark .split-content {
    background: linear-gradient(135deg, #27AE60 0%, #229954 50%, #1E8449 100%) !important;
  }
  
  /* Yellow variant */
  .product-split-hero:not(.dark) .split-content {
    background-color: #FFD54E !important;
  }
}

/* Extra small devices - even more compact */
@media (max-width: 375px) {
  .product-split-hero .split-content {
    padding: 0.4rem 0.3rem !important;
  }
  
  .product-split-hero .split-content p {
    font-size: 0.5rem !important;
    line-height: 1.25 !important;
  }
  
  .product-split-hero .split-btn {
    padding: 0.35rem 0.4rem !important;
    font-size: 0.55rem !important;
  }
  
  .split-divider {
    margin: 0.25rem 0 !important;
  }
}
