/* ============================================
   RESPONSIVE STYLES - MOBILE FIRST
   ============================================ */

/* Fix pour éviter le scroll horizontal - but allow sticky to work */
body {
    max-width: 100%;
    padding-top: 80px !important; /* Compensate for fixed navbar */
}

html {
    overflow-x: hidden; /* Keep only on html, not body */
    max-width: 100%;
}

/* Mobile search - hidden by default on desktop */
.mobile-search-wrapper {
    display: none;
}

/* ============================================
   INFO & FAQ STICKY MENUS - ALL DEVICES
   ============================================ */

/* DO NOT USE !important - it breaks cascade */
.info-sidebar-nav {
    position: sticky;
    top: 90px;
}

.faq-sidebar {
    position: sticky;
    top: 90px;
}

/* ============================================
   NAVBAR MOBILE
   ============================================ */

/* Burger Menu Button */
.navbar-burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    width: 32px;
    height: 32px;
}

.navbar-burger .burger-icon,
.navbar-burger .close-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-burger svg {
    width: 28px;
    height: 28px;
    color: rgba(5, 0, 82, 1);
}

.navbar-burger:hover svg {
    color: rgba(5, 0, 82, 0.7);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */

@media (max-width: 1024px) {
    /* Navbar */
    .navbar-container {
        padding: 0 2rem;
    }

    .navbar-menu {
        gap: 1.5rem;
        display: none;
    }

    .navbar-menu li a {
        font-size: 0.9rem;
    }

    /* Container */
    .container {
        padding: 0 2rem;
    }

    /* Hero sections */
    .hero-section {
        padding: 3rem 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    /* Brands grid */
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    /* CPB - Keep search filters on one line for tablets */
    .cpb-search-filters {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        max-width: 100% !important;
    }

    .cpb-search-input {
        width: 100% !important;
    }

    /* Info pages - keep sidebar navigation sticky */
    .info-content-container {
        /* Removed grid, using flex from base styles */
        gap: 2rem;
    }

    .info-sidebar-nav {
        position: sticky;
        top: 90px;
        width: 220px; /* Smaller width on tablet */
    }
}

/* ============================================
   MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Show burger menu */
    .navbar-burger {
        display: flex;
    }

    /* Hide search icon on mobile only */
    .navbar-menu li.search-icon {
        display: none !important;
    }

    /* Navbar */
    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    /* Backdrop when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    /* Mobile menu - Hidden by default */
    .navbar-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow: visible;
    }

    .navbar-menu.active {
        display: flex;
        padding: 1.5rem 1rem;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Mobile search bar inside menu */
    .mobile-search-wrapper {
        display: block;
        width: 90%;
        max-width: 500px;
        padding: 0 0 1rem 0;
        border-bottom: 2px solid rgba(5, 0, 82, 0.15);
        margin-bottom: 1rem;
    }

    .mobile-search-container {
        position: relative;
        width: 100%;
    }

    .mobile-search-bar {
        display: flex;
        align-items: center;
        gap: 0;
        background: white;
        border: 2px solid rgba(5, 0, 82, 0.2);
        border-radius: 50px;
        overflow: hidden;
        transition: border-color 0.3s ease;
    }

    .mobile-search-bar:focus-within {
        border-color: rgba(5, 0, 82, 1);
    }

    /* Mobile search suggestions */
    #mobileSearchSuggestions {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        border: 2px solid rgba(5, 0, 82, 0.2);
        border-radius: 20px;
        max-height: 300px;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 99999 !important;
    }

    #mobileSearchSuggestions .suggestion-item {
        display: flex;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: inherit;
        transition: background 0.2s ease;
    }

    #mobileSearchSuggestions .suggestion-item:last-child {
        border-bottom: none;
    }

    #mobileSearchSuggestions .suggestion-item:hover {
        background: #f8f9fa;
    }

    #mobileSearchSuggestions .suggestion-image,
    #mobileSearchSuggestions .suggestion-no-image {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    #mobileSearchSuggestions .suggestion-no-image {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        font-size: 1.5rem;
    }

    #mobileSearchSuggestions .suggestion-content {
        flex: 1;
        min-width: 0;
    }

    #mobileSearchSuggestions .suggestion-code {
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 0.25rem;
    }

    #mobileSearchSuggestions .suggestion-name {
        font-size: 0.9rem;
        font-weight: 500;
        color: #0a1635;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #mobileSearchSuggestions .suggestion-item.no-result {
        padding: 1.5rem;
        text-align: center;
        color: #999;
        font-style: italic;
    }

    .mobile-search-bar input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        color: rgba(5, 0, 82, 0.9);
        min-width: 0;
    }

    .mobile-search-bar input:focus {
        outline: none;
    }

    .mobile-search-bar input::placeholder {
        color: rgba(5, 0, 82, 0.5);
    }

    .mobile-search-bar button {
        background: transparent;
        border: none;
        border-left: 1px solid rgba(5, 0, 82, 0.1);
        padding: 0.75rem 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
        flex-shrink: 0;
    }

    .mobile-search-bar button:hover {
        background: rgba(5, 0, 82, 0.05);
    }

    .mobile-search-bar button svg {
        width: 20px;
        height: 20px;
        color: rgba(5, 0, 82, 0.7);
    }

    .mobile-search-bar button:hover svg {
        color: rgba(5, 0, 82, 1);
    }

    .mobile-search-camera {
        border-right: 1px solid rgba(5, 0, 82, 0.1);
    }

    .navbar-menu li {
        width: 90%;
        max-width: 500px;
        border-bottom: 1px solid rgba(5, 0, 82, 0.1);
        text-align: center;
    }

    .navbar-menu li.search-icon {
        display: none;
        border-bottom: none;
    }

    .navbar-menu li:nth-last-child(2) {
        border-bottom: none;
    }

    .navbar-menu li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: rgba(5, 0, 82, 0.9);
    }

    /* Search bar */
    .search-bar-container {
        padding: 0 1.5rem;
    }

    .search-bar input {
        font-size: 1rem;
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-card h3 {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .product-code {
        font-size: 0.75rem;
    }

    /* Brands grid */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .brand-card {
        padding: 1rem;
    }

    .brand-logo img {
        max-height: 100px;
        object-fit: contain;
    }

    /* Category grid */
    .products-grid-items {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .product-category-card {
        padding: 1.5rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-category-image {
        width: 80px;
        height: 80px;
    }

    .product-category-card h3 {
        font-size: 0.85rem;
    }

    /* Product cards - Fix stretched images */
    .product-card-image {
        width: 100%;
        height: 200px !important;
        background: #f5f5f5;
    }

    .product-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
    }

    /* Landing page products */
    .cpb-products .products-grid {
        overflow-x: auto;
        display: flex;
        grid-template-columns: none;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: thin;
    }

    .cpb-products .product-item {
        min-width: 140px;
        max-width: 140px;
    }

    /* Carousel */
    .brands-carousel {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .brand-item {
        min-width: 180px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    /* Buttons */
    button, .btn {
        min-height: 44px;
        font-size: 1rem;
    }

    /* Forms */
    input, textarea, select {
        min-height: 44px;
        font-size: 16px; /* Empêche le zoom sur iOS */
    }

    /* Pagination */
    .products-pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .page-btn.page-next {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    /* Navbar */
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    .navbar-menu {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }

    /* Hero */
    .hero-content h1,
    .hero-landing h1,
    .brands-hero h1,
    .category-hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-content p,
    .hero-description,
    .hero-subtitle {
        font-size: 0.85rem;
        text-align: center;
        padding: 0 1rem;
    }

    /* Hero search bar - Page d'accueil */
    .hero-search {
        max-width: calc(100% - 1rem);
        margin: 1rem 0.5rem;
        padding: 0;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        background: white;
        border-radius: 50px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .hero-search:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    }

    .hero-search input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        border: none;
        outline: none;
        padding: 1rem 1rem !important;
        font-size: 0.9rem !important;
        color: #0a1128;
        background: transparent;
    }

    .hero-search input::placeholder {
        color: rgba(10, 17, 40, 0.5);
        font-weight: 400;
    }

    .hero-qr-btn {
        background: transparent;
        border: none;
        padding: 0.75rem 0.6rem !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
        flex-shrink: 0 !important;
    }

    .hero-qr-btn:hover {
        opacity: 0.7;
    }

    .hero-qr-btn svg {
        width: 20px !important;
        height: 20px !important;
        color: #0a1128;
        flex-shrink: 0;
    }

    .hero-search-btn {
        background: transparent;
        border: none;
        padding: 0.75rem 1rem !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
        flex-shrink: 0 !important;
    }

    .hero-search-btn:hover {
        background: rgba(10, 17, 40, 0.05);
    }

    .hero-search-btn svg {
        width: 20px !important;
        height: 20px !important;
        color: #0a1128;
        flex-shrink: 0;
    }

    /* Landing page hero */
    .hero-landing {
        padding: 2rem 1rem !important;
        min-height: auto !important;
    }

    .hero-landing h1 {
        font-size: 1.3rem !important;
    }

    .hero-landing .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-landing .hero-description {
        font-size: 0.85rem;
    }

    /* Alert banner */
    .alert-banner {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }

    /* Brands carousel */
    .brands-showcase {
        padding: 2rem 0;
        overflow: hidden;
    }

    .brands-carousel {
        max-width: 100% !important;
        width: 100%;
        padding: 1rem 0;
        margin: 0 !important;
    }

    .brand-item {
        min-width: 120px !important;
        max-width: 140px;
    }

    .brand-item img {
        max-height: 50px !important;
        max-width: 120px !important;
    }

    /* About section */
    .about-section {
        padding: 2rem 1rem 0.5rem 1rem !important;
    }

    .about-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-content,
    .about-image {
        width: 100%;
    }

    .about-content h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .about-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
    }

    /* CPB Section */
    .customer-products-brands {
        padding: 1rem 0 !important;
        background: white !important;
    }

    .cpb-container {
        padding: 0 1rem !important;
        gap: 1.5rem !important;
    }

    .cpb-section {
        margin: 0 !important;
        padding: 1rem 0 !important;
    }

    .cpb-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        text-align: center;
    }

    .cpb-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center;
    }

    /* Customer section */
    .cpb-customer {
        padding: 1rem 0 !important;
    }

    .cpb-customer .cpb-inputs {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0;
        max-width: 100%;
    }

    .cpb-radio-btn {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    /* Products section */
    .cpb-products {
        padding: 1rem 0 !important;
        overflow: hidden;
    }

    .cpb-products .cpb-title {
        display: block !important;
        margin-bottom: 1rem !important;
        text-align: center;
        font-size: 1.4rem !important;
    }

    .cpb-products .products-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 0.8rem !important;
        padding: 1rem 0 !important;
        margin: 0 -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        grid-template-columns: unset !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .cpb-products .products-grid::-webkit-scrollbar {
        height: 6px;
    }

    .cpb-products .products-grid::-webkit-scrollbar-track {
        background: #f0f0f5;
        border-radius: 3px;
    }

    .cpb-products .products-grid::-webkit-scrollbar-thumb {
        background: rgba(5, 0, 82, 0.3);
        border-radius: 3px;
    }

    .cpb-products .product-item {
        flex: 0 0 42% !important;
        min-width: 42% !important;
        max-width: 42% !important;
        scroll-snap-align: start;
        padding: 1rem 0.8rem;
        background: white;
        border: 1px solid rgba(5, 0, 82, 0.1);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .cpb-products .product-item img {
        max-height: 70px !important;
        width: auto !important;
        object-fit: contain;
    }

    .cpb-products .product-item span {
        font-size: 0.85rem !important;
        font-weight: 600;
        text-align: center;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        display: block;
        max-width: 100%;
        line-height: 1.2;
    }

    /* Brands section */
    .cpb-brands {
        padding: 1rem 0 !important;
    }

    .cpb-brands .cpb-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center;
    }

    .cpb-brands .cpb-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center;
    }

    .cpb-disclaimer {
        font-size: 0.8rem !important;
        padding: 0 0.5rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4;
        text-align: center;
    }

    .cpb-search-filters {
        flex-direction: column !important;
        gap: 0.8rem !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
        max-width: 100%;
    }

    .cpb-search-input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box;
    }

    .alphabet-filter {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        justify-content: center;
        padding: 0.8rem 0 !important;
        margin-bottom: 1rem !important;
    }

    .letter-btn {
        min-width: 34px !important;
        height: 34px !important;
        padding: 0.4rem !important;
        font-size: 0.8rem !important;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        padding: 0 !important;
    }

    .brand-card {
        padding: 1rem 0.8rem !important;
    }

    .brand-logo {
        height: 80px !important;
        margin-bottom: 0.8rem !important;
    }

    .brand-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }

    .cpb-pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center !important;
        padding: 1rem 0 !important;
        margin-top: 1rem !important;
    }

    /* Responsive arrows for product carousel */
    .products-carousel-arrow {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .products-carousel-arrow svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-card h3 {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    /* Product card images - Fix */
    .product-card-image {
        height: 150px !important;
    }

    .product-card-image img {
        object-fit: contain !important;
    }

    /* Brands grid */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Category grid */
    .products-grid-items {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Landing page */
    .cpb-section {
        margin: 2rem 0;
    }

    .cpb-title {
        font-size: 1.5rem;
    }

    .cpb-subtitle {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-container {
        padding: 2rem 1rem;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-links li {
        font-size: 0.9rem;
    }

    /* Filter sidebar - make it a dropdown on mobile */
    .filters-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .filters-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .filters-content.active {
        max-height: 1000px;
    }
}

/* ============================================
   INFO PAGES RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .info-hero {
        padding: 3rem 1.5rem;
    }

    .info-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .info-content-container {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .info-sidebar-nav {
        position: sticky !important;
        top: 90px !important;
        width: 100%;
        overflow-x: auto;
        margin-bottom: 1.5rem;
        background: white;
        z-index: 100;
        padding: 1rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .info-nav-menu {
        display: flex;
        gap: 0.5rem;
        padding: 0 1.5rem 0.5rem;
        background: transparent;
    }

    .info-nav-item {
        flex-shrink: 0;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .info-nav-icon {
        display: none;
    }

    /* FAQ sidebar sticky on mobile too */
    .faq-sidebar {
        position: sticky !important;
        top: 90px !important;
        width: 100%;
        overflow-x: auto;
        margin-bottom: 1.5rem;
        background: white;
        z-index: 100;
        padding: 1rem 0;
    }

    .info-section {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .info-section h2 {
        font-size: 1.5rem;
    }

    .info-section h3 {
        font-size: 1.1rem;
    }

    /* FAQ */
    .faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .info-hero {
        padding: 2.5rem 1rem;
    }

    .info-hero h1 {
        font-size: 1.75rem;
    }

    .info-content-container {
        padding: 0 1rem;
    }

    .info-nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .info-section h2 {
        font-size: 1.25rem;
    }

    .info-section h3 {
        font-size: 1rem;
    }

    .faq-item summary {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 1rem;
    }
}

/* ============================================
   CONTACT PAGE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 1.5rem;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }
}

/* ============================================
   BRANDS PAGE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .cpb-section {
        padding: 2rem 0;
    }

    .cpb-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .brand-count-select {
        width: 100%;
    }

    .alphabet-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .letter-btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .cpb-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
    }

    .pagination-next {
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* ============================================
   CATEGORY PAGE RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .category-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .replacement-info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 2.5rem 1.5rem;
    }

    .category-hero h1 {
        font-size: 2.5rem;
    }

    .category-description {
        font-size: 0.9rem;
    }

    .category-search-form {
        flex-direction: column;
    }

    .category-search-input {
        border-radius: 8px;
    }

    .category-search-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .category-search-buttons button {
        flex: 1;
    }

    .replacement-section {
        padding: 2.5rem 1.5rem;
    }

    .category-content {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 1.5rem;
    }

    .products-content {
        width: 100%;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .products-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-hero h1 {
        font-size: 2rem;
    }

    .category-search-input {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }

    .replacement-section {
        padding: 2rem 1rem;
    }

    .replacement-step {
        padding: 1rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.85rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}
