/* ==========================================================================
   Mobile-Friendly Responsive Enhancement & Conversion Stylesheet
   ========================================================================== */

/* 1. Reset and Prevent Horizontal Scrolling / Page Wobble */
html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

/* Ensure all images scale fluidly within containers */
img, svg, video {
    max-width: 100% !important;
    height: auto !important;
}

/* 2. Fix Reviews Section & Grid on Small Mobile Devices */
.reviews-section {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.reviews-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}

.review-card {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #eee !important;
}

.reviews-header {
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* 3. Fix Owl Carousel Mobile Overflow Bug */
.owce-carousel-container {
    overflow: hidden !important;
    padding: 0 10px !important;
}

.owce-carousel {
    overflow: hidden !important;
}

.owce-carousel .owl-nav .owl-prev {
    left: 2px !important;
}

.owce-carousel .owl-nav .owl-next {
    right: 2px !important;
}

/* 4. Elementor Mobile Layout Fixes */
@media (max-width: 767px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        flex-wrap: wrap !important;
    }

    .elementor-column,
    .elementor-col-100,
    .elementor-col-50,
    .elementor-col-33 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
    }

    .e-con {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Headings fluid font scaling */
    h1.elementor-heading-title, 
    h2.elementor-heading-title {
        font-size: clamp(1.2rem, 5.2vw, 1.7rem) !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    h3.elementor-heading-title,
    h4.elementor-heading-title {
        font-size: clamp(1.05rem, 4.2vw, 1.3rem) !important;
        line-height: 1.35 !important;
    }

    /* Mobile Buttons touch targets */
    .elementor-button {
        width: 100% !important;
        min-height: 52px !important;
        padding: 14px 18px !important;
        font-size: 1.05rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 18px rgba(46, 125, 2, 0.35) !important;
    }

    .elementor-button-wrapper {
        width: 100% !important;
        text-align: center !important;
    }

    /* Price Box Mobile adjustments */
    .price-box {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        margin-bottom: 5px !important;
    }

    .price-box .current-price {
        font-size: 32px !important;
    }

    .price-box .discount {
        font-size: 22px !important;
    }

    .price-box .old-price {
        font-size: 18px !important;
    }

    /* Icon lists on mobile */
    .elementor-icon-list-item {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
}

/* 5. Sticky Bottom Mobile Floating CTA Bar */
.mobile-sticky-cta-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-sticky-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #111827;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 10px 14px;
        align-items: center;
        justify-content: space-between;
        z-index: 99990;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
        transform: translateY(120%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-sticky-cta-bar.visible {
        transform: translateY(0);
    }

    .mobile-sticky-cta-bar .bar-price {
        display: flex;
        flex-direction: column;
    }

    .mobile-sticky-cta-bar .bar-price .price-tag {
        color: #10b981;
        font-size: 1.3rem;
        font-weight: 800;
        line-height: 1.1;
    }

    .mobile-sticky-cta-bar .bar-price .price-old {
        color: #9ca3af;
        font-size: 0.75rem;
        text-decoration: line-through;
    }

    .mobile-sticky-cta-bar .bar-btn {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #ffffff;
        font-weight: 700;
        font-size: 0.95rem;
        text-decoration: none;
        padding: 11px 22px;
        border-radius: 30px;
        box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        animation: pulseBtn 2s infinite;
    }

    /* Padding at bottom of body so content isn't covered by sticky bar */
    body {
        padding-bottom: 70px !important;
    }
}

@keyframes pulseBtn {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* 6. Floating WhatsApp Support Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 99995;
    text-decoration: none;
    transition: transform 0.25s ease;
    animation: waPulse 2.5s infinite;
}

.floating-whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.08);
}

@media (max-width: 767px) {
    .floating-whatsapp-btn {
        bottom: 80px; /* Sits comfortably above mobile sticky bar */
        left: 14px;
        width: 48px;
        height: 48px;
    }
    .floating-whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
}

@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 7. Live Social Proof Buyer Popup */
.social-proof-popup {
    position: fixed;
    bottom: 24px;
    right: 20px;
    background: #ffffff;
    color: #1e293b;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99994;
    max-width: 320px;
    transform: translateY(160%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
}

.social-proof-popup.active {
    transform: translateY(0);
    opacity: 1;
}

.social-proof-popup .sp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.social-proof-popup .sp-content {
    font-size: 0.82rem;
    line-height: 1.35;
}

.social-proof-popup .sp-title {
    font-weight: 700;
    color: #0f172a;
}

.social-proof-popup .sp-time {
    color: #10b981;
    font-size: 0.74rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .social-proof-popup {
        bottom: 76px;
        right: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
    }
}
