/* ===================================
   MOBILE PRODUCTS - FORCE OVERRIDE
   Maximum specificity to override Elementor
   =================================== */

/* Force hide original products section on mobile with maximum specificity */
@media (max-width: 768px) {
    /* Hide with ultra-high specificity - covers both Elementor and new homepage */
    html body .elementor.elementor-529 .elementor-element.elementor-element-5c045f9,
    html body div.elementor.elementor-529 div.elementor-element.elementor-element-5c045f9,
    html body .elementor-529 .elementor-element-5c045f9,
    html body div.elementor-529 div.elementor-element-5c045f9,
    html body [data-id="5c045f9"],
    html body div[data-id="5c045f9"],
    .elementor.elementor-529 .elementor-element.elementor-element-5c045f9,
    div.elementor.elementor-529 div.elementor-element.elementor-element-5c045f9,
    .elementor-529 .elementor-element-5c045f9,
    div.elementor-529 div.elementor-element-5c045f9,
    [data-id="5c045f9"],
    div[data-id="5c045f9"],
    html body .products-section,
    html body section.products-section,
    body .products-section,
    body section.products-section,
    .products-section,
    section.products-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        flex: none !important;
        width: 0 !important;
        max-width: 0 !important;
        transform: scale(0) !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
    
    /* Force show mobile products section */
    html body .mobile-products-section,
    html body section.mobile-products-section,
    body .mobile-products-section,
    body section.mobile-products-section,
    .mobile-products-section,
    section.mobile-products-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        z-index: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 40px 20px !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        box-sizing: border-box !important;
        transform: none !important;
        overflow: visible !important;
    }
}

/* Override Bootstrap d-md-none on larger screens */
@media (min-width: 769px) {
    html body .mobile-products-section,
    html body section.mobile-products-section,
    body .mobile-products-section,
    body section.mobile-products-section,
    .mobile-products-section,
    section.mobile-products-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        width: 0 !important;
        max-width: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
}

/* Mobile Products Styles with High Specificity */
@media (max-width: 768px) {
    html body .mobile-products-header,
    body .mobile-products-header,
    .mobile-products-header {
        text-align: center !important;
        margin-bottom: 30px !important;
        display: block !important;
        width: 100% !important;
    }
    
    html body .mobile-products-badge,
    body .mobile-products-badge,
    .mobile-products-badge {
        background: linear-gradient(135deg, #038BB9 0%, #1169B5 100%) !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        display: inline-block !important;
        margin-bottom: 15px !important;
        box-shadow: 0 4px 15px rgba(3, 139, 185, 0.3) !important;
    }
    
    html body .mobile-products-title,
    body .mobile-products-title,
    .mobile-products-title {
        font-size: clamp(28px, 8vw, 36px) !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        margin: 0 0 15px 0 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        display: block !important;
        font-family: "Poppins", Sans-serif !important;
    }
    
    html body .mobile-products-subtitle,
    body .mobile-products-subtitle,
    .mobile-products-subtitle {
        font-size: 16px !important;
        color: #666 !important;
        margin: 0 auto !important;
        line-height: 1.5 !important;
        max-width: 300px !important;
        text-align: center !important;
        display: block !important;
        font-family: "Poppins", Sans-serif !important;
    }
    
    html body .mobile-filter-tabs,
    body .mobile-filter-tabs,
    .mobile-filter-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        margin: 30px 0 !important;
        padding: 0 10px !important;
        width: 100% !important;
    }
    
    html body .mobile-filter-tab,
    body .mobile-filter-tab,
    .mobile-filter-tab {
        background: white !important;
        border: 2px solid rgba(3, 139, 185, 0.2) !important;
        border-radius: 25px !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #038BB9 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        text-transform: capitalize !important;
        min-width: 80px !important;
        text-align: center !important;
        display: inline-block !important;
        font-family: "Poppins", Sans-serif !important;
    }
    
    html body .mobile-filter-tab.active,
    body .mobile-filter-tab.active,
    .mobile-filter-tab.active {
        background: linear-gradient(135deg, #038BB9 0%, #1169B5 100%) !important;
        color: white !important;
        border-color: #038BB9 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(3, 139, 185, 0.3) !important;
    }
    
    html body .mobile-products-grid,
    body .mobile-products-grid,
    .mobile-products-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    html body .mobile-product-card,
    body .mobile-product-card,
    .mobile-product-card {
        background: white !important;
        border-radius: 20px !important;
        padding: 20px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
        border: 2px solid rgba(3, 139, 185, 0.1) !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
        position: relative !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        left: auto !important;
        top: auto !important;
        z-index: 1 !important;
    }
    
    html body .mobile-product-card.hidden,
    body .mobile-product-card.hidden,
    .mobile-product-card.hidden {
        opacity: 0 !important;
        transform: translateY(20px) !important;
        pointer-events: none !important;
        margin: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    html body .mobile-product-image,
    body .mobile-product-image,
    .mobile-product-image {
        flex: 0 0 80px !important;
        width: 80px !important;
        height: 80px !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    
    html body .mobile-product-image img,
    body .mobile-product-image img,
    .mobile-product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        display: block !important;
    }
    
    html body .mobile-product-content,
    body .mobile-product-content,
    .mobile-product-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: auto !important;
    }
    
    html body .mobile-product-title,
    body .mobile-product-title,
    .mobile-product-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #038BB9 !important;
        margin: 0 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
        font-family: "Poppins", Sans-serif !important;
        display: block !important;
    }
    
    html body .mobile-product-subtitle,
    body .mobile-product-subtitle,
    .mobile-product-subtitle {
        font-size: 14px !important;
        color: #666 !important;
        margin: 0 !important;
        font-weight: 400 !important;
        opacity: 0.9 !important;
        line-height: 1.3 !important;
        font-family: "Poppins", Sans-serif !important;
        display: block !important;
    }
    
    html body .mobile-product-description,
    body .mobile-product-description,
    .mobile-product-description {
        font-size: 12px !important;
        color: #888 !important;
        margin: 5px 0 0 0 !important;
        line-height: 1.4 !important;
        font-family: "Poppins", Sans-serif !important;
        display: block !important;
    }
    
    html body .mobile-product-icon,
    body .mobile-product-icon,
    .mobile-product-icon {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        width: 30px !important;
        height: 30px !important;
        background: linear-gradient(135deg, #038BB9 0%, #1169B5 100%) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        font-family: "Poppins", Sans-serif !important;
        z-index: 2 !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    html body .mobile-products-section,
    body .mobile-products-section,
    .mobile-products-section {
        padding: 30px 15px !important;
    }
    
    html body .mobile-products-grid,
    body .mobile-products-grid,
    .mobile-products-grid {
        max-width: 100% !important;
    }
    
    html body .mobile-product-card,
    body .mobile-product-card,
    .mobile-product-card {
        padding: 15px !important;
        gap: 15px !important;
    }
    
    html body .mobile-product-image,
    body .mobile-product-image,
    .mobile-product-image {
        flex: 0 0 60px !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    html body .mobile-product-title,
    body .mobile-product-title,
    .mobile-product-title {
        font-size: 16px !important;
    }
    
    html body .mobile-product-subtitle,
    body .mobile-product-subtitle,
    .mobile-product-subtitle {
        font-size: 13px !important;
    }
    
    html body .mobile-filter-tab,
    body .mobile-filter-tab,
    .mobile-filter-tab {
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-width: 70px !important;
    }
    
    html body .mobile-filter-tabs,
    body .mobile-filter-tabs,
    .mobile-filter-tabs {
        gap: 8px !important;
        margin: 25px 0 !important;
    }
}