/* ==========================================================
   Glow & Grow Herbal Care — Responsive Stylesheet
   Loaded AFTER style.css, so rules here override the base
   styles at the breakpoints below (mobile-first overrides).
============================================================= */

/* ---------- Mobile Nav Toggle (hamburger) ----------
   Hidden on desktop by default. Shown + wired up on small
   screens. Built from 3 <span> bars inside #menuToggle. */

.menu-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:34px;
    height:34px;
    background:none;
    border:none;
    cursor:pointer;
    z-index:1001;
}

.menu-toggle span{
    display:block;
    width:100%;
    height:3px;
    border-radius:3px;
    background:#0c7b45;
    transition:.3s;
}

.menu-toggle.active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}

body.no-scroll{
    overflow:hidden;
}


/* ============================================================
   TABLET & BELOW (<= 1024px)
============================================================ */
@media (max-width:1024px){

    .hero h1{
        font-size:44px;
    }

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

    .product-grid,
    .products-grid,
    .why-grid,
    .footer-grid,
    .testimonial-grid,
    .instagram-grid,
    .instagram .instagram-grid{
        grid-template-columns:repeat(2,1fr);
    }
}


/* ============================================================
   MOBILE / SMALL TABLET (<= 900px)
   — this is where the nav collapses into a hamburger menu
============================================================ */
@media (max-width:900px){

    .container{
        width:92%;
    }

    /* ---- Header / Nav ---- */
    .nav{
        height:auto;
        padding:14px 0;
        flex-wrap:wrap;
    }

    .menu-toggle{
        display:flex;
        order:2;
        margin-left:auto;
    }

    .cart-icon{
        order:1;
        margin-left:auto;
    }

    header nav{
        flex-basis:100%;
        order:5;
        max-height:0;
        overflow:hidden;
        transition:max-height .35s ease;
    }

    header nav.nav-open{
        max-height:500px;
        margin-top:14px;
        border-top:1px solid #eee;
    }

    nav ul{
        flex-direction:column;
        padding:10px 0;
    }

    nav ul li{
        margin:0;
        border-bottom:1px solid #f2f2f2;
    }

    nav ul li a{
        display:block;
        padding:14px 4px;
    }

    .nav-buttons{
        order:4;
        margin-left:12px;
    }

    .order-btn{
        order:4;
        padding:10px 20px;
        font-size:14px;
    }

    .top-bar .container{
        flex-direction:column;
        gap:6px;
        text-align:center;
        font-size:12.5px;
    }

    /* ---- Hero ---- */
    .hero{
        padding:50px 0;
    }

    .hero-content{
        grid-template-columns:1fr;
        gap:35px;
        text-align:center;
    }

    .hero-right{
        order:-1;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:16px;
    }

    .hero-buttons{
        justify-content:center;
    }

    /* ---- Grids ---- */
    .product-grid,
    .products-grid,
    .why-grid,
    .footer-grid,
    .testimonial-grid,
    .instagram-grid,
    .instagram .instagram-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    /* ---- CTA / Newsletter ---- */
    .cta-box{
        flex-direction:column;
        text-align:center;
        padding:35px 25px;
        gap:20px;
    }

    .newsletter-box form,
    .newsletter form{
        flex-direction:column;
        gap:12px;
    }

    .newsletter-box input,
    .newsletter input{
        width:100%;
    }

    .newsletter-box button,
    .newsletter button{
        width:100%;
    }

    /* ---- Map ---- */
    .map iframe{
        height:300px;
    }

    /* ---- Tabs (product-details page) ---- */
    .tabs{
        justify-content:flex-start;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        flex-wrap:nowrap;
    }
}


/* ============================================================
   SMALL PHONES (<= 600px)
============================================================ */
@media (max-width:600px){

    .section-title h2{
        font-size:26px;
    }

    .hero h1{
        font-size:28px;
    }

    .badge{
        font-size:13px;
        padding:8px 16px;
    }

    /* single column everywhere content is stacked */
    .product-grid,
    .products-grid,
    .why-grid,
    .footer-grid,
    .testimonial-grid,
    .instagram-grid,
    .instagram .instagram-grid{
        grid-template-columns:1fr;
    }

    .insta-card{
        aspect-ratio:16/10;
    }

    .insta-follow-buttons{
        flex-direction:column;
        align-items:stretch;
    }

    .insta-follow-buttons .follow-button{
        justify-content:center;
    }

    .product-buttons,
    .product-actions,
    .price-row{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .product-actions .qty-selector{
        justify-content:center;
    }

    .product-actions .order-btn{
        margin-left:0;
        text-align:center;
    }

    .qty-selector{
        justify-content:center;
    }

    .logo img{
        width:52px;
        margin-right:10px;
    }

    .logo h2{
        font-size:22px;
    }

    .footer-grid{
        text-align:center;
    }

    .footer-social{
        justify-content:center;
    }

    .whatsapp{
        width:50px;
        height:50px;
        font-size:22px;
    }
}
