/* ==========================================================
   MOBILE RESPONSIVE PATCH 
   (Paste at the very bottom of style(1).css)
   ========================================================== */

/* ----------------------------------------------------------
   TABLET & MOBILE (<= 768px)
   ---------------------------------------------------------- */
@media screen and (max-width: 768px) {
    
    /* 1. Stack all multi-column layout sections vertically */
    .hero-grid,
    .journey-grid,
    .about-container,
    .slider-card,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* 2. Un-fix the rigid 550px width on slider content */
    .content-container {
        width: 100% !important;
        padding: 25px 20px !important;
        min-height: auto !important;
    }

    /* 3. Fix ALL Product Grids (1 item per row on mobile) */
    .products-grid,
    .product-grid,
    .product-cards-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
        width: 100% !important;
    }

    /* Override rigid card sizes for all card types */
    .product-card,
    .products-grid .product-card,
    .product-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    /* Keep product image area a responsive square */
    .card-top,
    .card-media,
    .product-thumb-wrapper,
    .products-grid .card-top {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        flex: none !important;
        padding: 10px !important;
    }

    .product-img,
    .card-media img,
    .product-thumb,
    .products-grid .product-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* Allow bottom text area to stretch based on content */
    .card-bottom,
    .product-body,
    .card-body,
    .products-grid .card-bottom {
        width: 100% !important;
        height: auto !important;
        min-height: 120px !important;
        flex: none !important;
    }

    /* 4. Fix Modals (Prevent cut-offs) */
    .product-modal-dialog {
        width: 95% !important;
        max-height: 95vh !important;
        margin: 0 auto !important;
    }
    
    .product-modal-content {
        grid-template-columns: 1fr !important;
        overflow-y: auto !important;
    }
    
    .product-modal-gallery {
        min-height: auto !important;
        height: auto !important;
        padding: 20px !important;
    }

    .product-modal-main-image {
        height: 250px !important;
    }

    .product-modal-main-image img {
        height: 100% !important;
    }

    /* 5. Marketplace Action Buttons */
    .purchase-marketplaces {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .purchase-marketplaces .marketplace-button {
        flex: 1 1 45% !important;
        height: 50px !important;
        padding: 5px !important;
    }

    /* 6. Brand Header & Purpose Banner */
    .brand-header h2 {
        font-size: 1.2rem !important;
    }
    .brand-header span {
        font-size: 0.8rem !important;
    }

    .purpose-top {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
    }

    .purpose-banner {
        width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    /* Logo Box */
    .logo-box {
        flex: 0 0 100px !important;
        width: 100px !important;
        height: 100px !important;
        background-color: #83746d !important;
        color: #ffffff !important;
        border-radius: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .logo-box span {
        font-size: 0.75rem !important;
        font-weight: 400 !important;
    }

    /* Purpose Title (Fixed syntax error) */
    .purpose-title h3 {
        min-width: 100%;
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        color: #5c4e48 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        text-wrap: nowrap !important;
        text-transform: uppercase !important;
    }

    .purpose-desc {
        width: 100% !important;
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
        color: #333333 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    /* 7. Hero Swiper Slider */
    .hero-swiper {
        display: block !important;
        padding: 30px 0 40px !important; 
        height: auto !important;
        max-height: none !important;
    }

    .hero-swiper .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
        padding: 0 20px !important;
    }

    .hero-swiper .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .hero-swiper .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 25px !important;
        line-height: 1.5 !important;
        color: var(--text-muted) !important;
    }

    .hero-swiper .btn-olive {
        display: inline-flex !important;
        margin: 0 auto !important;
    }

    .hero-swiper .hero-brand-large {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        font-size: 0 !important;
    }

    .hero-swiper .hero-brand-large img {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none !important;
    }

    /* 8. Testimonial Slider */
    .about-section {
        padding-bottom: 20px !important; 
    }

    .slider-container {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-bottom: 20px !important;
    }

    .slider-container .slide {
        display: none !important; 
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .slider-container .slide.active {
        display: block !important; 
        position: relative !important;
        opacity: 1 !important;
    }

    .slider-container .slide .containere {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .slider-container .slide .column {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 5px 15px !important;
        margin: 0 !important;
    }

    .slider-container .slide .column img.testimoni {
        width: 100% !important;
        max-width: 160px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .slider-container .slide .column h2,
    .slider-container .slide .column p {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* 9. Floating WhatsApp Button */
    .whatsapp-container {
        position: fixed;
        bottom: 60px;
        right: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 1000;
        animation: floatUpDown 2.5s ease-in-out infinite;
    }
    .section-tag-2 {
        align-self: center;
        width: fit-content;
        font-size: 14px !important;  
        text-transform: uppercase;  
        font-weight: 600;
        color: var(--text-muted);
        margin-top: 10px;
        margin-bottom: -60px !important;
        border-bottom: 2px solid #86746f;
        display: inline-block; 
    }
    .slider-section h2 {
        font-size: 0.9rem !important;
        font-weight: 700;
        color: #111;
        margin-bottom: 16px;
        text-transform: uppercase;
    }

}

/* ----------------------------------------------------------
   SMALL MOBILE PHONES (<= 480px)
   ---------------------------------------------------------- */
@media screen and (max-width: 480px) {
    /* Hero Typography */
    .hero-brand-large {
        font-size: 42px !important;
    }
    
    .hero-brand-large span {
        font-size: 24px !important;
        letter-spacing: 4px !important;
    }
    
    /* Contact Form Panel Spacing */
    .contact-container {
        padding: 20px 15px !important;
    }

    /* Testimonial Image adjustments for very narrow screens */
    .slide .column img.testimoni {
        max-width: 140px !important; 
    }
}






