/* ========================================
   GLK Medical - Modern Minimalist Responsive
   Clean, Elegant, Professional
   ======================================== */

/* === Base Responsive Settings === */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Extra Large Desktop (1400px+) === */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
}

/* === Large Desktop (1200px - 1399px) === */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* === Desktop (992px - 1199px) === */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .megamenu > li > a {
        padding: 26px 16px;
        font-size: 0.875rem;
    }

    .search-block input {
        width: 180px;
    }

    .section {
        padding: 100px 0;
    }

    .title-h2 {
        font-size: 2.25rem;
    }
}

/* === Tablet (768px - 991px) === */
@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        max-width: 720px;
    }

    /* Header */
    .main-header {
        min-height: 70px;
    }

    .index-logo img {
        max-height: 50px;
    }

    .index-menu {
        display: none;
    }

    .search-block {
        display: none !important;
    }

    .flag-header {
        display: flex !important;
    }

    .menu-block {
        display: block !important;
    }

    .btn-menu {
        font-size: 26px;
    }

    .d-lg-none { display: block !important; }
    .d-lg-block { display: none !important; }

    /* Banner */
    .banner-section {
        margin-top: 70px;
    }

    .carousel-item img {
        height: 450px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 48px;
        height: 48px;
    }

    .carousel-control-prev { left: 20px; }
    .carousel-control-next { right: 20px; }

    /* Sections */
    .section {
        padding: var(--section-padding) 0;
    }

    .title-h2 {
        font-size: 2rem;
    }

    .dlab-separator {
        margin: 20px auto 48px;
    }

    /* About Section */
    .item-img {
        margin-bottom: 32px;
    }

    /* Commitment */
    .about-smoothie {
        padding: var(--section-padding) 0;
    }

    .about-smoothie .item {
        padding: 40px 24px;
        margin-bottom: 24px;
    }

    .about-smoothie .item-img {
        width: 72px;
        height: 72px;
    }

    .about-smoothie .item-img img {
        max-width: 36px;
        max-height: 36px;
    }

    /* Products */
    .product-image-container {
        height: 200px;
    }

    .product-thumb {
        margin-bottom: 24px;
    }

    /* Partners */
    .partner-card {
        padding: 40px 24px;
        margin-bottom: 24px;
    }

    .partner-item {
        height: 90px;
    }

    /* Footer */
    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-widget {
        margin-bottom: 32px;
    }

    /* Fixed Buttons */
    .fixed-buttons {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }

    .facebook-btn,
    .zalo-btn,
    .phone-btn {
        width: 50px;
        height: 50px;
    }
}

/* === Mobile Landscape (576px - 767px) === */
@media (max-width: 767px) {
    :root {
        --section-padding: 64px;
    }

    .container {
        max-width: 540px;
        padding: 0 20px;
    }

    /* Header */
    .main-header {
        min-height: 64px;
    }

    .index-logo img {
        max-height: 44px;
    }

    .btn-menu {
        font-size: 24px;
    }

    /* Banner */
    .banner-section {
        margin-top: 64px;
    }

    .carousel-item img {
        height: 360px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
    }

    .carousel-indicators li {
        width: 32px;
        height: 3px;
    }

    .carousel-indicators li.active {
        width: 48px;
    }

    /* Sections */
    .section {
        padding: var(--section-padding) 0;
    }

    .title-h2 {
        font-size: 1.75rem;
    }

    .dlab-separator {
        margin: 16px auto 40px;
    }

    .description {
        font-size: 1rem;
    }

    /* Buttons */
    .radius-btn {
        padding: 12px 28px;
        font-size: 0.875rem;
    }

    /* About Section */
    .item-img {
        margin-bottom: 28px;
    }

    .title .color p {
        font-size: 0.9375rem;
        margin-bottom: 16px;
    }

    /* Commitment */
    .about-smoothie {
        padding: var(--section-padding) 0;
    }

    .about-smoothie .item {
        padding: 36px 20px;
        margin-bottom: 20px;
    }

    .about-smoothie .item-img {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .about-smoothie .item-img img {
        max-width: 32px;
        max-height: 32px;
    }

    .about-smoothie h4,
    .about-smoothie .sub-title h4 {
        font-size: 0.9375rem;
    }

    /* Products - 2 columns */
    .product-thumb {
        margin-bottom: 20px;
    }

    .product-image-container {
        height: 180px;
        padding: 24px;
    }

    .product-title-home {
        padding: 16px;
        min-height: 64px;
    }

    .product-title-home a {
        font-size: 0.8125rem;
    }

    /* Partners */
    .partner-item {
        height: 80px;
        padding: 20px;
    }

    .partner-item img {
        max-height: 44px;
    }

    .partner-card {
        padding: 32px 20px;
        margin-bottom: 20px;
    }

    .partner-card .partner-logo {
        max-height: 48px;
        margin-bottom: 20px;
    }

    .partner-card h5,
    .partner-card h6 {
        font-size: 0.8125rem;
    }

    .partner-card p {
        font-size: 0.8125rem;
    }

    /* Footer */
    .footer-main {
        padding: 48px 0 32px;
    }

    .footer-widget {
        margin-bottom: 28px;
    }

    .footer-widget h4 {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }

    /* Fixed Buttons */
    .fixed-buttons {
        bottom: 16px;
        left: 16px;
        gap: 10px;
    }

    .facebook-btn,
    .zalo-btn,
    .phone-btn {
        width: 48px;
        height: 48px;
    }

    /* Utilities */
    .d-md-none { display: block !important; }
    .d-md-block { display: none !important; }
    .md-mb-30px { margin-bottom: 30px; }

    /* Grid - 2 columns for commitment items */
    .about-smoothie .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* === Mobile Portrait (max 575px) === */
@media (max-width: 575px) {
    :root {
        --section-padding: 48px;
    }

    html {
        font-size: 15px;
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    /* Header */
    #top-header {
        border-bottom-width: 1px;
    }

    .main-header {
        min-height: 60px;
    }

    .index-logo img {
        max-height: 40px;
    }

    .btn-menu {
        font-size: 22px;
    }

    .flag-header img {
        width: 24px;
        height: 18px;
    }

    /* Banner */
    .banner-section {
        margin-top: 60px;
    }

    .carousel-item img {
        height: 280px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicators li {
        width: 24px;
        height: 3px;
    }

    .carousel-indicators li.active {
        width: 40px;
    }

    /* Sections */
    .section {
        padding: var(--section-padding) 0;
    }

    .title-h2 {
        font-size: 1.5rem;
        letter-spacing: -0.02em;
    }

    .dlab-separator {
        width: 40px;
        margin: 12px auto 32px;
    }

    .description {
        font-size: 0.9375rem;
    }

    /* About Section */
    .item-img {
        margin-bottom: 24px;
    }

    .title .color p {
        font-size: 0.875rem;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .button-readmore {
        margin-top: 28px;
    }

    /* Buttons */
    .radius-btn {
        padding: 12px 24px;
        font-size: 0.8125rem;
    }

    /* Commitment - 2 columns */
    .about-smoothie {
        padding: var(--section-padding) 0;
    }

    .about-smoothie .col-lg-3,
    .about-smoothie .col-md-6,
    .about-smoothie .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }

    .about-smoothie .row {
        margin: 0 -8px;
    }

    .about-smoothie .item {
        padding: 24px 16px;
        margin-bottom: 16px;
    }

    .about-smoothie .item-img {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .about-smoothie .item-img img {
        max-width: 28px;
        max-height: 28px;
    }

    .about-smoothie h4,
    .about-smoothie .sub-title h4 {
        font-size: 0.8125rem;
    }

    /* Products - 2 columns */
    .section-primary .container .row .col-lg-3,
    .section-primary .container .row .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }

    .section-primary .container .row {
        margin: 0 -8px;
    }

    .product-thumb {
        margin-bottom: 16px;
    }

    .product-image-container {
        height: 140px;
        padding: 16px;
    }

    .product-title-home {
        padding: 14px 12px;
        min-height: 56px;
    }

    .product-title-home a {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* Partners */
    .partner-item {
        padding: 16px;
        margin: 4px;
        height: 64px;
    }

    .partner-item img {
        max-height: 36px;
    }

    .partner-card {
        padding: 24px 16px;
        margin-bottom: 16px;
    }

    .partner-card .partner-logo {
        max-height: 40px;
        margin-bottom: 16px;
    }

    .partner-card h5,
    .partner-card h6 {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .partner-card p {
        font-size: 0.75rem;
    }

    .partner-card p strong {
        font-size: 0.875rem;
    }

    /* Owl Carousel */
    .owl-carousel .owl-stage-outer {
        padding: 8px 0;
    }

    .owl-carousel .owl-nav {
        margin-top: 24px;
    }

    .owl-carousel .owl-nav button {
        width: 40px;
        height: 40px;
    }

    .owl-carousel .owl-dots {
        margin-top: 24px;
    }

    /* Footer */
    .footer-main {
        padding: 40px 0 24px;
    }

    .footer-widget {
        margin-bottom: 24px;
    }

    .footer-widget h4 {
        font-size: 0.8125rem;
        margin-bottom: 16px;
    }

    .footer-logo {
        max-width: 120px;
    }

    .company-info p {
        font-size: 0.8125rem;
    }

    .footer-menu li a {
        font-size: 0.875rem;
    }

    .social-links li a {
        width: 36px;
        height: 36px;
    }

    .footer-copyright {
        padding: 16px 0;
    }

    .footer-copyright p {
        font-size: 0.75rem;
    }

    /* Fixed Buttons */
    .fixed-buttons {
        bottom: 16px;
        left: 16px;
        gap: 8px;
    }

    .facebook-btn,
    .zalo-btn,
    .phone-btn {
        width: 44px;
        height: 44px;
    }

    /* Utilities */
    .d-sm-none { display: block !important; }
    .d-sm-block { display: none !important; }

    .mg-bottom-50,
    .m-b-50 {
        margin-bottom: 16px !important;
    }

    .mb-20 {
        margin-bottom: 16px !important;
    }
}

/* === Extra Small (max 400px) === */
@media (max-width: 400px) {
    :root {
        --section-padding: 40px;
    }

    .container {
        padding: 0 12px;
    }

    .main-header {
        min-height: 56px;
    }

    .index-logo img {
        max-height: 36px;
    }

    .carousel-item img {
        height: 220px;
    }

    .title-h2 {
        font-size: 1.25rem;
    }

    .dlab-separator {
        width: 32px;
        margin: 10px auto 24px;
    }

    /* Commitment */
    .about-smoothie .item {
        padding: 20px 12px;
    }

    .about-smoothie .item-img {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .about-smoothie .item-img img {
        max-width: 24px;
        max-height: 24px;
    }

    .about-smoothie h4,
    .about-smoothie .sub-title h4 {
        font-size: 0.6875rem;
    }

    /* Products */
    .product-image-container {
        height: 120px;
        padding: 12px;
    }

    .product-title-home {
        padding: 12px 8px;
        min-height: 48px;
    }

    .product-title-home a {
        font-size: 0.6875rem;
    }

    /* Partners */
    .partner-card {
        padding: 20px 12px;
    }

    .partner-card h5,
    .partner-card h6 {
        font-size: 0.6875rem;
    }

    .partner-card p {
        font-size: 0.6875rem;
    }

    /* Fixed Buttons */
    .fixed-buttons {
        bottom: 12px;
        left: 12px;
        gap: 6px;
    }

    .facebook-btn,
    .zalo-btn,
    .phone-btn {
        width: 40px;
        height: 40px;
    }
}

/* === Mobile Menu === */
@media (max-width: 991px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        z-index: 9999;
        transition: left 0.3s ease;
    }

    .mobile-menu.active {
        left: 0;
    }

    .menu-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
    }

    .menu-container {
        position: relative;
        width: 300px;
        max-width: 85%;
        height: 100%;
        background: var(--white);
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }

    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
    }

    .close-menu {
        font-size: 24px;
        cursor: pointer;
        color: var(--text-secondary);
        transition: color 0.2s;
    }

    .close-menu:hover {
        color: var(--dark);
    }

    .mobile-nav {
        list-style: none;
        padding: 16px 0;
        margin: 0;
    }

    .mobile-nav > li {
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-nav > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        color: var(--text);
        font-weight: 500;
        font-size: 0.9375rem;
        transition: var(--transition-fast);
    }

    .mobile-nav > li > a:hover {
        background: var(--cream);
        color: var(--primary-dark);
    }

    .mobile-nav > li > a i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .mobile-nav > li.open > a i {
        transform: rotate(180deg);
    }

    .mobile-nav .sub-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        background: var(--gray-50);
        display: none;
    }

    .mobile-nav > li.open .sub-menu {
        display: block;
    }

    .mobile-nav .sub-menu li a {
        display: block;
        padding: 14px 24px 14px 40px;
        color: var(--text-secondary);
        font-size: 0.875rem;
        border-top: 1px solid var(--border-light);
        transition: var(--transition-fast);
    }

    .mobile-nav .sub-menu li a:hover {
        background: var(--cream);
        color: var(--primary-dark);
    }
}

/* === Landscape Orientation === */
@media (max-height: 500px) and (orientation: landscape) {
    .carousel-item img {
        height: 250px;
    }

    .section {
        padding: 40px 0;
    }

    .about-smoothie {
        padding: 40px 0;
    }

    .fixed-buttons {
        bottom: 10px;
        gap: 6px;
    }

    .facebook-btn,
    .zalo-btn,
    .phone-btn {
        width: 36px;
        height: 36px;
    }
}

/* === High DPI / Retina Displays === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .index-logo img,
    .footer-logo,
    .partner-item img,
    .partner-card .partner-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* === Print Styles === */
@media print {
    #top-header,
    .fixed-buttons,
    .mobile-menu,
    .menu-block,
    .owl-nav,
    .owl-dots,
    .carousel-control-prev,
    .carousel-control-next,
    .fb-page-wrapper {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
        padding: 24px 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .title-h2 {
        font-size: 16pt;
        color: #000 !important;
    }

    .about-smoothie,
    .section-primary,
    .section-dark {
        background: #fff !important;
    }
}

/* === Accessibility - Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .carousel-item {
        transition: none !important;
    }

    .fixed-buttons a {
        animation: none !important;
    }
}
