/* ============================================
   91mobile — Responsive Breakpoints
   Mobile-first approach
   ============================================ */

/* Small phones (< 375px) */
@media (max-width: 374px) {
    .product-card {
        width: 140px;
    }

    .gallery-image {
        height: 250px;
    }

    .product-detail-name {
        font-size: 18px;
    }

    .detail-price {
        font-size: 20px;
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }
}

/* Standard phones (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
    .product-card {
        width: 160px;
    }
}

/* Large phones / small tablets (481px - 768px) */
@media (min-width: 481px) {
    .product-card {
        width: 180px;
    }

    .listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-page {
        max-width: 600px;
        margin: 0 auto;
    }

    .quiz-page {
        max-width: 600px;
        margin: 0 auto;
    }

    .compare-page {
        max-width: 700px;
        margin: 0 auto;
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) {
    .header-inner {
        padding: 0 24px;
    }

    .product-card {
        width: 200px;
    }

    .listing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 24px;
    }

    .gallery-image {
        height: 400px;
    }

    .product-detail-info {
        padding: 24px;
    }

    .checkout-page {
        max-width: 700px;
    }

    .static-page {
        max-width: 800px;
        margin: 0 auto;
    }

    .main-content {
        padding-bottom: 0;
    }

    .footer {
        margin-bottom: 0;
    }

    .sticky-bottom-ad {
        display: none;
    }

    /* Hide sticky ad on tablets+ */
    .trust-badges {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .product-card {
        width: 220px;
    }

    .listing-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gallery-image {
        height: 500px;
    }

    .mobile-nav {
        display: none;
    }

    .nav-overlay {
        display: none !important;
    }

    .menu-toggle {
        display: none;
    }

    /* Show desktop nav instead */
    .header-inner {
        position: relative;
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .ad-container,
    .sticky-bottom-ad,
    .fomo-section,
    .exit-intent-overlay,
    .recent-purchase-popup,
    .buy-cta-section {
        display: none !important;
    }

    body {
        background: white;
    }

    .main-content {
        padding: 0;
    }
}

/* Touch target minimum sizes */
@media (pointer: coarse) {
    .tab-btn {
        min-height: 44px;
    }

    .category-chip {
        min-height: 40px;
    }

    .nav-links li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .product-card {
        min-height: 44px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .trending-track {
        animation: none;
    }
}

/* Dark mode (respect system preference) */
@media (prefers-color-scheme: dark) {
    /* Keep white theme as per requirements — do not auto-switch */
}