/* ================= COMPLETE RESPONSIVE CSS ================= */

/* Fix for horizontal scroll */
html, body {
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

body {
    overflow-x: hidden !important;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Container fixes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Row fixes */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

[class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* ================= FIX HERO SECTION OVERLAP ON MOBILE ================= */

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
    
    /* Hero Section - Main Container */
    .hero {
        padding: 40px 0 !important;
        overflow-x: hidden !important;
        min-height: auto !important;
    }
    
    /* Hero Grid - Change to column */
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    /* Hero Content - Position below image */
    .hero-content {
        order: 2 !important;
        text-align: center !important;
        padding: 0 10px !important;
        width: 100% !important;
    }
    
    /* Hero Badge */
    .hero-badge {
        font-size: 10px !important;
        padding: 5px 12px !important;
        margin-bottom: 12px !important;
        display: inline-flex !important;
        white-space: nowrap !important;
    }
    
    /* Hero Title - FIX OVERLAP */
    .hero-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        word-break: break-word !important;
        white-space: normal !important;
        display: block !important;
    }
    
    /* Remove line breaks if any */
    .hero-title br {
        display: none !important;
    }
    
    /* Hero Description - FIX OVERLAP */
    .hero-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        padding: 0 5px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    
    /* Offer Tag */
    .offer-tag {
        font-size: 11px !important;
        padding: 5px 12px !important;
        margin-bottom: 12px !important;
        display: inline-flex !important;
    }
    
    /* Price Box */
    .price-box {
        justify-content: center !important;
        margin-bottom: 15px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .current-price {
        font-size: 28px !important;
    }
    
    .old-price {
        font-size: 16px !important;
    }
    
    .save-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    /* Hero Buttons - Full width on mobile */
    .hero-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
    
    /* Trust Badges */
    .trust-badges {
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }
    
    .trust-badges span {
        font-size: 10px !important;
        white-space: nowrap !important;
    }
    
    /* Hero Image - Position above content */
    .hero-image {
        order: 1 !important;
        text-align: center !important;
        margin-bottom: 0 !important;
    }
    
    .hero-image img {
        max-width: 80% !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Hide floating elements on mobile */
    .floating-card,
    .floating-badge,
    .hero-bg-shapes .shape {
        display: none !important;
    }
    
    /* Background shapes hide */
    .hero-bg-shapes {
        display: none !important;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .hero {
        padding: 30px 0 !important;
    }
    
    .hero-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    
    .hero-desc {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    .hero-badge {
        font-size: 9px !important;
        padding: 4px 10px !important;
    }
    
    .offer-tag {
        font-size: 10px !important;
    }
    
    .current-price {
        font-size: 24px !important;
    }
    
    .old-price {
        font-size: 14px !important;
    }
    
    .trust-badges span {
        font-size: 9px !important;
        white-space: normal !important;
    }
    
    .hero-image img {
        max-width: 90% !important;
    }
}

/* Extra Small Devices (380px and below) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 20px !important;
    }
    
    .hero-desc {
        font-size: 11px !important;
    }
    
    .current-price {
        font-size: 22px !important;
    }
    
    .old-price {
        font-size: 13px !important;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .trust-badges {
        gap: 8px !important;
    }
    
    .trust-badges span {
        font-size: 8px !important;
    }
}

/* ================= TABLET (max-width: 991px) ================= */
@media (max-width: 991px) {
    .hero-grid,
    .about-grid,
    .contact-grid,
    .product-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .features-grid,
    .products-grid,
    .stats-grid,
    .benefits-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .ingredients-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }
    
    .hero-title {
        font-size: 42px !important;
    }
    
    .section-title,
    .page-title,
    .about-title,
    .product-title {
        font-size: 36px !important;
    }
    
    .cta-wrapper h2 {
        font-size: 32px !important;
    }
    
    .stat-number {
        font-size: 32px !important;
    }
}

/* ================= MOBILE (max-width: 768px) ================= */
@media (max-width: 768px) {
    .hero-section,
    .features-section,
    .products-section,
    .testimonials-section,
    .stats-section,
    .cta-section,
    .about-section,
    .contact-section,
    .policy-section,
    .product-hero,
    .why-bellynix,
    .benefits-section,
    .ingredients-section,
    .howtouse-section,
    .products-showcase,
    .faq-section,
    .newsletter-section {
        padding: 50px 0 !important;
    }
    
    .section-title,
    .page-title,
    .about-title,
    .product-title {
        font-size: 28px !important;
    }
    
    .section-desc {
        font-size: 14px !important;
    }
    
    .features-grid,
    .products-grid,
    .stats-grid,
    .benefits-grid,
    .steps-grid,
    .benefits-grid-product,
    .steps-product,
    .values-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ingredients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .stat-card {
        padding: 25px !important;
    }
    
    .stat-number {
        font-size: 28px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
    
    .product-price-large {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .product-trust {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .contact-form-wrapper {
        padding: 25px !important;
        margin-top: 30px !important;
    }
    
    .contact-card {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .testimonial-card {
        padding: 25px 20px !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    .hero-image {
        order: -1 !important;
    }
    
    .floating-badge {
        font-size: 10px !important;
        padding: 5px 12px !important;
    }
    
    .ingredients-list {
        gap: 10px !important;
    }
    
    .ingredient-tag {
        font-size: 12px !important;
        padding: 6px 15px !important;
    }
    
    .note-box {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .faq-question {
        font-size: 14px !important;
    }
    
    .whatsapp-support h3 {
        font-size: 24px !important;
    }
    
    .whatsapp-support i {
        font-size: 40px !important;
    }
    
    .policy-block h3 {
        font-size: 20px !important;
    }
    
    .policy-block p {
        font-size: 14px !important;
    }
    
    .newsletter-form {
        flex-direction: column !important;
    }
    
    .newsletter-wrapper {
        padding: 30px 20px !important;
    }
}

/* ================= SMALL MOBILE (max-width: 576px) ================= */
@media (max-width: 576px) {
    .container {
        padding: 0 15px !important;
    }
    
    .section-title,
    .page-title,
    .about-title,
    .product-title {
        font-size: 24px !important;
    }
    
    .price-current {
        font-size: 28px !important;
    }
    
    .price-old {
        font-size: 16px !important;
    }
    
    .product-card .product-content {
        padding: 15px !important;
    }
    
    .product-card h3 {
        font-size: 18px !important;
    }
    
    .feature-card {
        padding: 20px !important;
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .feature-icon i {
        font-size: 20px !important;
    }
    
    .testimonial-img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .testimonial-card p {
        font-size: 13px !important;
    }
    
    .testimonial-card h4 {
        font-size: 16px !important;
    }
    
    .cta-wrapper h2 {
        font-size: 24px !important;
    }
    
    .cta-wrapper p {
        font-size: 14px !important;
    }
    
    .cta-btn-primary,
    .cta-btn-whatsapp {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 10px 25px !important;
        font-size: 14px !important;
    }
    
    .about-features {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .breadcrumb {
        font-size: 12px !important;
    }
    
    .subtitle {
        font-size: 11px !important;
    }
    
    .why-item {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .why-icon {
        margin: 0 auto !important;
    }
    
    .ingredients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ================= EXTRA SMALL (max-width: 380px) ================= */
@media (max-width: 380px) {
    .section-title {
        font-size: 22px !important;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .whatsapp-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .top-contact span {
        font-size: 10px !important;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .stat-icon i {
        font-size: 24px !important;
    }
}

/* ================= FIXES FOR SPECIFIC ELEMENTS ================= */
img, svg, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

table {
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}

iframe {
    width: 100% !important;
}

/* Fix for any absolute positioned elements */
[style*="position: absolute"],
[style*="position: fixed"] {
    max-width: 100vw !important;
}

/* Fix for forms on mobile */
input, select, textarea, button {
    max-width: 100% !important;
    font-size: 16px !important;
}

/* Fix for modal/dropdown on mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        display: none !important;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none !important;
    }
}

/* Fix for product hero grid on mobile */
@media (max-width: 768px) {
    .product-hero-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-hero-image {
        order: -1 !important;
    }
    
    .product-price-large {
        justify-content: center !important;
    }
    
    .product-trust {
        justify-content: center !important;
    }
}

/* Fix for stats section on mobile */
@media (max-width: 576px) {
    .stats-grid {
        gap: 15px !important;
    }
}

/* Fix for CTA buttons on mobile */
@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .cta-btn-primary,
    .cta-btn-whatsapp {
        width: 100% !important;
        justify-content: center !important;
    }
}