/* =====================================================
   COMPREHENSIVE RESPONSIVE DESIGN
   Mobile First Approach
===================================================== */

.nav-btn {
    display: none;
}

/* =====================================================
   MOBILE: 320px - 767px
===================================================== */
@media (max-width: 767px) {
    /* GLOBAL */
    body {
        font-size: 14px;
        line-height: 1.6;
        width: 100%;
        overflow-x: hidden;
    }

    /* Force no horizontal scroll - SAFE VERSION */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* ===================================
       MOBILE HEADER - CLEAN & SIMPLE
    =================================== */
    
    /* Header container */
    .site-header {
        height: 70px;
        background: transparent;
    }

    /* Header inner layout */
    .header-inner {
        padding: 0 20px;
        height: 70px;
    }

    /* Logo */
    .logo img {
        height: 40px;
    }

    /* Show burger menu button */
    .burger {
        display: flex;
    }

    /* Hide desktop navigation */
    .main-nav,
    .header-action {
        display: none;
    }

    /* Mobile menu panel */
    .mobile-menu {
        display: block;
        top: 70px;
        height: calc(100vh - 70px);
    }

    /* HERO ABOUT SECTION */
    .hero-about {
        padding: 60px 0;
    }

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

    .section-label2 {
        font-size: 16px;
    }

    .hero-about-content h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-about-desc {
        font-size: 14px;
    }

    .about-values li {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .about-values h3 {
        font-size: 20px;
    }

    .about-values p {
        font-size: 13px;
    }

    /* BUTTONS */
    .btn-outline {
        padding: 12px 20px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    /* FOOTER */
    .footer-top {
        flex-direction: column;
        gap: 40px;
        padding: 60px 0 30px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        height: 60px;
    }

    .footer-nav {
        margin-top: 0;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-nav a {
        font-size: 11px;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 50px;
    }

    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-col a {
        font-size: 13px;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* PRODUCT PAGES */
    .subcategory-intro {
        padding: 40px 0;
    }

    .subcategory-label {
        font-size: 14px;
        padding: 8px 0;
    }

    .subcategory-intro h1 {
        font-size: 32px;
        margin: 16px 0;
    }

    .subcategory-intro p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* PRODUCT GRID */
    .product-grid,
    .series-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0;
    }

    .product-card,
    .series-card {
        max-width: 100%;
    }

    .product-card h3,
    .series-card h3 {
        font-size: 18px;
    }

    .product-card p,
    .series-card p {
        font-size: 13px;
    }

    /* TOUCH TARGETS */
    a, button, input, select, textarea {
        min-height: 44px;
    }

    .btn-outline,
    .collection-link {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* CAROUSEL HOME */
    .collection-wrapper-home {
        position: relative;
        width: 100%;
    }

    .collection-grid-home {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0 !important;
        justify-content: flex-start !important;
        scrollbar-width: none; /* Firefox */
    }

    .collection-grid-home::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .collection-grid-home .collection-item-home {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        scroll-snap-align: center;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .collection-item-home img {
        height: calc(100vh - 280px);
        object-fit: cover;
    }

    /* NAV BUTTONS */
    .nav-buttons-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        padding-bottom: 20px;
    }

    .nav-btn {
        position: static; /* Reset absolute positioning */
        transform: none;
        width: 44px;
        height: 44px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }

    .nav-btn:active {
        transform: scale(0.95);
        background: #f5f5f5;
    }

    .prev-btn, .next-btn {
        left: auto;
        right: auto;
    }
}

/* =====================================================
   TABLET: 768px - 1024px
===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* GLOBAL */
    .container {
        padding-inline: 32px;
    }

    /* HEADER */
    .header-inner {
        padding-inline: 32px;
    }

    /* HERO ABOUT */
    .hero-about {
        padding: 100px 0;
    }

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

    .hero-about-content h2 {
        font-size: 36px;
    }

    /* FOOTER */
    .footer-middle {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    /* PRODUCT GRID */
    .product-grid,
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .nav-btn {
        display: none;
    }
}

/* =====================================================
   LANDSCAPE MOBILE: max-height 500px
===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-left {
        margin: 20px 40px;
    }

    .hero-left h1 {
        font-size: 36px;
    }

    .hero-stats {
        position: static;
        margin-top: 20px;
        flex-direction: row;
        gap: 40px;
    }

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

    .stat span {
        font-size: 12px;
    }
}

/* =====================================================
   LARGE DESKTOP: 1440px+
===================================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-about-content h2 {
        font-size: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .series-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .nav-btn {
        display: none;
    }
}

/* =====================================================
   PRINT STYLES
===================================================== */
@media print {
    .site-header,
    .site-footer,
    .burger,
    .mobile-menu {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
