/* ===================================
   OHIO - Responsive (Mobile-First)
   DO NOT edit style.css for responsive.
   All breakpoints go here.
=================================== */

/* Prevent any horizontal scroll globally on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Base rule: Hide mobile toggle on desktop */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 991px) {
    /* ---- Header Top Bar ---- */
    /* Giữ topbar nhưng thu gọn xuống 1 hàng */
    #header-top {
        display: block;
        padding: 7px 0;
        font-size: 12px;
    }
    .header-top-inner {
        flex-wrap: wrap;
        gap: 6px 15px;
        justify-content: space-between;
    }
    .header-contact {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .header-contact span {
        margin-right: 12px;
        font-size: 12px;
    }
    .header-lang ul {
        gap: 10px;
    }

    /* ---- Main Header ---- */
    #header {
        padding: 8px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .header-inner {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    /* Logo */
    .header-logo {
        flex: 1;
    }
    .header-logo img {
        max-height: 55px !important;
    }

    /* Icons (search + cart) */
    .header-icons {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }
    .header-icons img {
        width: 20px;
        height: 20px;
    }

    /* Hamburger Icon */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 2px solid var(--primary-color);
        border-radius: 8px;
        font-size: 18px;
        color: var(--primary-color);
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.3s;
    }
    .mobile-menu-toggle.active,
    .mobile-menu-toggle:hover {
        background: var(--primary-color);
        color: #fff;
    }

    /* Mobile dropdown menu */
    .header-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        z-index: 9999;
        padding: 30px 25px;
        overflow-y: auto;
        transition: right 0.35s ease;
    }
    .header-menu.open {
        right: 0;
    }
    .header-menu ul.menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 20px;
    }
    .header-menu ul.menu > li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0ebe3;
    }
    .header-menu ul.menu > li > a {
        display: block;
        padding: 14px 0;
        font-size: 14px;
        font-weight: 700;
        color: var(--primary-color);
        text-transform: uppercase;
    }
    .header-menu ul.menu > li > a:hover {
        color: var(--gold-color);
    }
    /* Dropdown sub-menu on mobile */
    .header-menu .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 0 5px 15px;
        width: 100%;
        border-top: 1px solid #f0ebe3;
    }
    .header-menu .sub-menu li a {
        font-size: 13px !important;
        padding: 8px 0 !important;
        color: #666 !important;
        font-weight: 500 !important;
    }

    /* Hero Section */
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    
    /* Philosophy */
    .philosophy-inner {
        flex-direction: column;
    }
    .philosophy-image {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    /* Grids */
    .cat-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* features-section */
    .features-section{
        flex-direction: column;
        gap: 0px;
    }
    
    /* Product Tabs - allow horizontal scroll instead of overflow */
    .product-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        gap: 10px;
        justify-content: flex-start;
    }
    .product-tabs::-webkit-scrollbar {
        height: 3px;
    }
    .product-tabs::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    .product-tabs span {
        flex-shrink: 0;
        font-size: 13px;
        padding: 8px 16px;
        white-space: nowrap;
    }
    
    /* Process */
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .process-step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    .process-arrow {
        transform: rotate(90deg);
        margin: 15px 0;
    }
    
    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-left {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .footer-right h3 {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons .btn-hero-double {
        width: 100%;
        text-align: center;
    }

    /* Grids */
    .cat-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Page Locations */
    .loc-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .loc-tab-icon {
        width: 100%;
        border-radius: 30px;
        border-right: 2px solid var(--primary-color);
        margin-right: 0;
        margin-bottom: 15px;
    }
    .loc-tab-icon::after {
        display: none; /* Hide the arrow on mobile */
    }
    .loc-details {
        border-left: 2px solid var(--primary-color);
        border-top: 12px solid var(--primary-color);
        border-radius: 20px;
        padding: 20px;
        width: 100%;
    }
}

/* =============================================
   TRANG GIỚI THIỆU - Responsive
   ============================================= */
@media(max-width: 991px) {
    .core-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .ceo-inner { grid-template-columns: 1fr; gap: 30px; }
    .ceo-quote, .ceo-quote p { font-size: 15px; }
}
@media(max-width: 576px) {
    .core-grid { grid-template-columns: 1fr; }
    .loc-item { flex-direction: column; }
    .loc-tab-icon { width: 100%; border-right: none; border-bottom: 1px dashed #ccc; flex-direction: row; gap: 15px; }
}

/* =============================================
   TRANG LIÊN HỆ - Responsive
   ============================================= */
@media(max-width: 991px) {
    .contact-info-blocks {
        flex-direction: column;
        gap: 20px;
    }
}
@media(max-width: 768px) {
    .contact-form-box {
        padding: 30px 20px;
    }
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}
@media(max-width: 576px) {
    .contact-support h2 {
        font-size: 24px;
    }
    .contact-intro {
        padding: 40px 0 10px;
    }
    .contact-form-loc {
        padding: 20px 0 40px;
    }
}
