/* =====================================================
   RARE ENTERPRISES
   FINAL RESPONSIVE CSS
===================================================== */


/* =====================================================
   LARGE LAPTOP
===================================================== */

@media (max-width: 1200px) {

    .container {
        padding-left: 50px;
        padding-right: 50px;
    }

    .navbar {
        padding: 0 25px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =====================================================
   TABLET
   769px - 992px
===================================================== */

@media (max-width: 992px) {

    /* =========================
       HEADER
    ========================= */

    .navbar {
        min-height: 75px;
        padding: 0 25px;
    }

    .logo img {
        width: 160px;
    }

    .main-nav {
        gap: 20px;
    }


    /* =========================
       HERO
    ========================= */

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 750px;
    }


    /* =========================
       CATEGORIES
    ========================= */

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* =========================
       WHY US
    ========================= */

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* =========================
       PRODUCTS
    ========================= */

    .products-layout {
        gap: 25px;
        padding: 0 25px;
    }

    .products-sidebar {
        width: 230px;
        min-width: 230px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* =========================
       ABOUT
    ========================= */

    .about-grid {
        grid-template-columns: 1fr;
    }


    /* =========================
       CONTACT
    ========================= */

    .contact-grid {
        grid-template-columns: 1fr;
    }


    /* =========================
       VISION
    ========================= */

    .vision-grid {
        grid-template-columns: 1fr;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
   768px AND BELOW
===================================================== */

@media (max-width: 768px) {

    /* =========================
       CONTAINER
    ========================= */

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* =========================
       HEADER
    ========================= */

    .navbar {
        min-height: 70px;
        padding: 0 20px;

        position: relative;
    }

    .logo img {
        width: 150px;
    }


    /* HAMBURGER */

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }


    /* DESKTOP NAV HIDDEN */

    .main-nav {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 20px 20px;

        background: #ffffff;

        border-top: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;

        z-index: 1000;
    }


    /* OPEN MENU */

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


    /* NAV LINKS */

    .nav-link {
        width: 100%;

        padding: 14px 8px;

        border-bottom: 1px solid #e2e8f0;
    }


    /* CTA HIDDEN */

    .nav-cta {
        display: none;
    }


    /* =========================
       HERO
    ========================= */

    .hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content > p:not(.tag) {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }


    /* =========================
       SECTIONS
    ========================= */

    .categories,
    .why-us,
    .featured-products,
    .about-company,
    .vision-section,
    .why-about,
    .contact-section,
    .map-section {
        padding: 70px 0;
    }


    /* =========================
       CATEGORY
    ========================= */

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* =========================
       PRODUCTS
    ========================= */

    .products-section {
        padding: 60px 0;
    }

    .products-layout {
        display: block;
        padding: 0 20px;
        margin: 25px auto;
    }


    /* SIDEBAR NO LONGER STICKY */

    .products-sidebar {
        position: static;

        width: 100%;
        min-width: 100%;

        max-height: none;

        margin-bottom: 25px;
    }


    /* PRODUCT CONTENT */

    .products-content {
        width: 100%;
    }


    /* PRODUCT GRID */

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }


    /* TOPBAR */

    .products-topbar {
        flex-direction: column;
        align-items: stretch;

        gap: 15px;
    }

    .product-search {
        width: 100%;
        margin-left: 0;
    }

    .product-search input {
        width: 100%;
    }


    /* =========================
       PRODUCT CARDS
    ========================= */

    .product-card img {
        height: 200px;
    }


    /* =========================
       BANNERS
    ========================= */

    .page-banner {
        min-height: 340px;
        margin-top: 70px;
    }

    .banner-content h1 {
        font-size: 40px;
    }


    /* =========================
       ABOUT
    ========================= */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
    }


    /* =========================
       CONTACT
    ========================= */

    .contact-grid {
        grid-template-columns: 1fr;
    }


    /* =========================
       CTA
    ========================= */

    .cta-box,
    .about-cta .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}


/* =====================================================
   SMALL MOBILE
   576px AND BELOW
===================================================== */

@media (max-width: 576px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }


    /* HEADER */

    .navbar {
        padding: 0 18px;
    }

    .logo img {
        width: 140px;
    }


    /* HERO */

    .hero h1,
    .hero-content h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-stats div {
        width: 100%;
    }


    /* TITLES */

    .section-title h2 {
        font-size: 28px;
    }


    /* CATEGORY */

    .category-grid {
        grid-template-columns: 1fr;
    }


    /* PRODUCTS */

    .products-layout {
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card img {
        height: 220px;
    }


    /* SIDEBAR */

    .products-sidebar {
        padding: 15px;
    }


    /* BANNER */

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 14px;
    }


    /* ABOUT */

    .about-highlights {
        grid-template-columns: 1fr;
    }


    /* CONTACT */

    .contact-form-box {
        padding: 22px;
    }


    /* POPUP */

    .popup-content {
        width: 94%;
        padding: 25px 20px;
    }


    /* FLOATING */

    .whatsapp-btn,
    .floating {
        right: 15px;
        width: 52px;
        height: 52px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
   400px AND BELOW
===================================================== */

@media (max-width: 400px) {

    .logo img {
        width: 125px;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 27px;
    }

    .section-title h2 {
        font-size: 25px;
    }

    .btn {
        min-height: 46px;
        padding: 0 18px;
    }

    .product-card img {
        height: 190px;
    }

}