/**
 * ZARAX SPORTS® — Responsive Zero-Overlap Rules
 * Critical Screen Breakpoints:
 * 320px, 375px, 390px, 430px, 768px, 992px, 1100px (desktop/tablet transition), 1280px, 1440px, 1920px.
 */

/* ==========================================================================
   1. LAPTOPS & TABLETS (1100px and below) - PREVENT NAV COLLISION
   ========================================================================== */
@media (max-width: 1100px) {
    /* Hide desktop center navigation links before any collision occurs */
    .desktop-main-nav {
        display: none !important;
    }

    /* Show hamburger toggle button */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Reduce header height slightly */
    :root {
        --header-height: 72px;
    }

    .brand-logo-img {
        max-width: 175px;
        height: auto;
    }

    /* Hide text inside quote drawer pill to save space */
    .btn-quote-basket .basket-text {
        display: none;
    }

    .btn-quote-basket {
        padding: 8px 10px;
    }

    /* Adjust Primary Header Button */
    .btn-primary-header {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   2. TABLET LANDSCAPE & PORTRAIT (992px to 769px)
   ========================================================================== */
@media (max-width: 992px) {
    .top-info-item {
        display: none; /* Hide location from top bar to keep phone/email visible */
    }

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

    .hero-media-wrapper {
        max-width: 650px;
        margin: 0 auto;
    }

    .hero-floating-card {
        bottom: -15px;
        left: 0;
    }

    .split-feature-row, .split-feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .cta-strip-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* ==========================================================================
   3. MOBILE PHONES (768px and below)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 66px;
        --top-bar-height: auto;
    }

    /* Top Contact Bar stacking or compact layout */
    .top-contact-bar {
        padding: 6px 0;
    }

    .top-contact-inner {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
    }

    .top-contact-left {
        gap: 12px;
        font-size: 0.75rem;
    }

    .top-contact-right {
        display: none; /* Keep top bar clean on mobile */
    }

    .brand-logo-img {
        max-width: 155px;
    }

    /* Hide Request Quote text button in header on mobile to prevent CTA collisions,
       the off-canvas menu has prominent button */
    .btn-primary-header {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .hero-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .bottom-aux-links {
        justify-content: center;
    }

    /* Floating WhatsApp on mobile */
    .floating-whatsapp-container {
        right: 16px;
        bottom: 18px;
    }

    .floating-whatsapp-btn {
        width: 52px;
        height: 52px;
    }

    .wa-icon-svg {
        width: 28px;
        height: 28px;
    }

    .wa-tooltip {
        display: none; /* Hide hover tooltip on touch screens */
    }
}

/* ==========================================================================
   4. SMALL MOBILE SCREENS (430px, 390px, 375px, 320px)
   ========================================================================== */
@media (max-width: 480px) {
    .site-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-logo-img {
        max-width: 140px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn-primary-red,
    .hero-actions .btn-secondary-silver {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .hero-floating-card {
        position: static;
        margin-top: 16px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-masonry-grid {
        grid-template-columns: 1fr;
    }

    .p-card-btn-row {
        grid-template-columns: 1fr;
    }

    .quote-drawer {
        width: 100vw;
    }

    .modal-dialog {
        width: 95vw;
        padding: 0;
    }
}

/* Ultra small devices (320px) */
@media (max-width: 340px) {
    .top-contact-left {
        flex-direction: column;
        gap: 4px;
    }

    .top-sep {
        display: none;
    }

    .brand-logo-img {
        max-width: 125px;
    }

    .btn-quote-basket {
        padding: 6px 8px;
    }
}

