/* Responsive CSS */

/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    /* CSS rules here */
}

/* Large devices (desktops, 1200px and up) */
@media (max-width: 1399.98px) {
    /* CSS rules here */
}

/* Medium devices (tablets, 992px and up) */
@media (max-width: 1199.98px) {
    /* CSS rules here */
}

/* Small devices (landscape phones, 768px and up) */
@media (max-width: 991.98px) {

    /* Navbar Mobile Fix */
    .main-navbar .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-brand-custom {
        max-width: 200px !important;
        margin-right: auto;
    }

    .navbar-brand-custom img {
        width: auto !important;
        max-height: 40px !important;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    /* Offcanvas Menu Enhancements */
    .offcanvas {
        border-left: none;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        max-width: 320px !important;
    }

    .offcanvas-header {
        padding: 1.5rem 1.5rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .offcanvas-title.navbar-brand-custom {
        font-size: 1.5rem;
        margin: 0;
    }

    .offcanvas-body {
        padding: 1.5rem;
    }

    .offcanvas .navbar-nav-custom .nav-item {
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .offcanvas .navbar-nav-custom .nav-item:last-child {
        border-bottom: none;
        margin-bottom: 1.5rem;
    }

    .offcanvas .navbar-nav-custom .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.75rem 0;
    }

    .offcanvas .mega-menu {
        padding: 0.5rem 0 0 1rem;
        background: transparent;
        border-top: none;
    }

    .offcanvas .mega-menu-title {
        font-size: 0.9rem;
        color: var(--color-text-light);
        border-bottom: none;
        margin-bottom: 0.5rem;
    }

    .offcanvas .mega-menu-list .dropdown-item {
        padding: 0.5rem 0;
        font-size: 0.95rem;
        color: var(--color-text);
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .offcanvas .dropdown-menu {
        border: none;
        background: transparent;
        padding-left: 1rem;
    }

    .offcanvas .btn-cta,
    .offcanvas .navbar-cta-btn {
        margin-left: 0;
        margin-top: 1rem;
        display: inline-block;
        width: 50% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        text-align: center;
    }

    /* Custom Faucet CTA — Tablet */
    .cfc-step-card {
        min-width: 76px;
        padding: 14px 10px 10px;
    }

    .cfc-heading {
        font-size: 1.7rem;
    }
}

/* Extra small devices (portrait phones, less than 768px) */
@media (max-width: 767.98px) {

    /* Top Header Mobile Optimization */
    .top-header-contact {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .top-header-contact a[href^="mailto:"] {
        display: none;
        /* Hide email on small screens to save space */
    }

    .top-header .social-icons {
        justify-content: center;
        margin-top: 5px;
    }

    .dealer-hero {
        height: 250px;
        position: relative;
        background-position: bottom;
    }

    .contact-hero {
        height: 250px;
        position: relative;
        background-position: bottom;
    }

    .footer-heading {
        text-align: left;
    }

    /* Hero Slider Mobile Fixes */
    .hero-slide {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 2rem;
        background-size: cover;
        background-position: center;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        margin: 0 !important;
        /* Override desktop margins */
        width: auto;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        /* Allow buttons to split the row evenly */
    }

    .hero-slider .slick-prev,
    .hero-slider .slick-next,
    .related-slider .slick-prev,
    .related-slider .slick-next {
        display: none !important;
        /* Native swipe and dots are sufficient */
    }

    /* Category Page Mobile Fixes */
    .feature-box {
        padding: 1.5rem 0.5rem !important;
    }

    .feature-box h5 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .feature-box p {
        font-size: 0.8rem;
    }

    /* Category Hero Bar Mobile Fixes */
    .category-hero-title {
        font-size: 2.2rem !important;
        word-wrap: break-word;
        /* Prevent long words like OPAL from breaking out */
        hyphens: auto;
    }

    .category-hero-bar p.lead {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .product-grid-shop {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .card-image-box {
        height: 200px !important;
        padding: 15px !important;
    }

    .product-name-shop {
        font-size: 0.95rem !important;
    }

    .series-highlights {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Custom Faucet CTA — Mobile */
    .cfc-section {
        padding: 36px 0 32px;
    }

    .cfc-header {
        margin-bottom: 28px;
    }

    .cfc-heading {
        font-size: 1.5rem;
    }

    .cfc-steps-row {
        gap: 10px;
        justify-content: center;
    }

    .cfc-step-card {
        min-width: 70px;
        padding: 14px 10px 10px;
        border-radius: 12px;
    }

    .cfc-step-icon {
        font-size: 1.2rem;
    }

    .cfc-step-label {
        font-size: 0.7rem;
    }

    .cfc-connector {
        display: none;
    }

    .cfc-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 13px 20px;
    }
}

/* Custom breakpoints if needed */
@media (max-width: 575.98px) {
    /* Extra small devices - CSS rules here */

    /* Custom Faucet CTA — Small Mobile */
    .cfc-step-card {
        min-width: 62px;
        padding: 12px 8px 8px;
        border-radius: 10px;
    }

    .cfc-step-icon {
        font-size: 1.1rem;
    }

    .cfc-step-label {
        font-size: 0.65rem;
    }

    .cfc-step-num {
        width: 17px;
        height: 17px;
        font-size: 0.6rem;
    }
}