/* Mobile Homepage Styles - Bafalılar E-Commerce */
/* Primary Color: #2563eb, Hover: #1d4ed8 */

/* ============================================
   Hero Slider Mobile Optimization
   ============================================ */
@media (max-width: 767.98px) {
    /* Reduce slider height on mobile */
    .hero-slider {
        height: 50vh !important;
        min-height: 300px !important;
        max-height: 400px !important;
    }
    
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide {
        height: 50vh !important;
        min-height: 300px !important;
        max-height: 400px !important;
    }
    
    /* Optimize hero content */
    .hero-content {
        padding: 20px !important;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    .hero-content h2 {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
    
    .btn-hero {
        font-size: 14px !important;
        padding: 12px 24px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Larger touch targets for carousel controls */
    .carousel-indicators button {
        width: 10px !important;
        height: 10px !important;
        margin: 0 5px !important;
        border-radius: 50% !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 44px !important;
        height: 44px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        opacity: 0.8 !important;
    }
}

/* ============================================
   Promotional Ads Block - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .home-v2-da-block {
        margin: 20px 0 !important;
        padding: 0 15px !important;
    }
    
    .da-block {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .da-block .da {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .da-inner {
        background: #f8f9fa !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    
    .da-media {
        padding: 15px !important;
    }
    
    .da-media-left {
        flex-shrink: 0 !important;
    }
    
    .da-image {
        width: 80px !important;
        height: 80px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }
    
    .da-media-body {
        flex: 1 !important;
    }
    
    .da-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
        color: #333 !important;
    }
    
    .da-action {
        font-size: 11px !important;
        color: #2563eb !important;
        font-weight: 600 !important;
    }
}

/* ============================================
   Product Carousel Tabs - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .products-carousel-tabs-v5 {
        padding: 30px 0 !important;
        margin: 20px 0 !important;
    }
    
    .products-carousel-tabs-v5 header {
        padding: 0 15px !important;
        margin-bottom: 20px !important;
    }
    
    .products-carousel-tabs-v5 header h2 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
        color: #333 !important;
    }
    
    /* Tab navigation */
    .products-carousel-tabs-v5 .nav-inline {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .products-carousel-tabs-v5 .nav-item {
        margin: 0 !important;
    }
    
    .products-carousel-tabs-v5 .nav-link {
        font-size: 13px !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        background: #f5f5f5 !important;
        color: #666 !important;
        border: none !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .products-carousel-tabs-v5 .nav-link.active {
        background: #2563eb !important;
        color: #fff !important;
    }
    
    /* Product carousel container */
    .products-carousel-tabs-v5 .tab-content {
        padding: 0 !important;
        background: #f8f8f8 !important;
    }
    
    /* Remove padding from tab-pane on mobile */
    .tab-pane,
    .tab-pane.active {
        padding: 0 !important;
    }
    
    .products-carousel-tabs-v5 .products {
        padding: 6px !important;
    }
    
    /* Owl carousel mobile adjustments */
    .products-carousel-tabs-v5 .owl-carousel .owl-stage {
        padding-left: 0 !important;
    }
    
    .products-carousel-tabs-v5 .owl-carousel .owl-item {
        padding: 0 8px !important;
    }
}

/* ============================================
   Product Cards - Mobile Grid (Bestsellers)
   ============================================ */
@media (max-width: 767.98px) {
    .section-product-cards-carousel,
    .home-v2-product-cards-carousel {
        padding: 30px 0 !important;
        margin: 20px 0 !important;
        overflow: hidden !important;
    }
    
    .section-product-cards-carousel header,
    .home-v2-product-cards-carousel header {
        padding: 0 15px !important;
        margin-bottom: 20px !important;
    }
    
    .section-product-cards-carousel header h2,
    .home-v2-product-cards-carousel header h2 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .section-product-cards-carousel .nav-inline,
    .home-v2-product-cards-carousel .nav-inline {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .section-product-cards-carousel .nav-link,
    .home-v2-product-cards-carousel .nav-link {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    /* CRITICAL: Force 2-column grid for Çok Satanlar - same as En Yeni Ürünler */
    .section-product-cards-carousel .products,
    .home-v2-product-cards-carousel .products,
    .section-product-cards-carousel .products.owl-carousel,
    .home-v2-product-cards-carousel .products.owl-carousel,
    .section-product-cards-carousel .products.columns-3,
    .home-v2-product-cards-carousel .products.columns-3,
    .section-product-cards-carousel ul.products,
    .home-v2-product-cards-carousel ul.products {
        width: 100% !important;
        max-width: 100vw !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 6px !important;
        margin: 0 !important;
        list-style: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .section-product-cards-carousel .product,
    .home-v2-product-cards-carousel .product,
    .section-product-cards-carousel li.product,
    .home-v2-product-cards-carousel li.product,
    .section-product-cards-carousel .owl-item,
    .home-v2-product-cards-carousel .owl-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Vertical card layout - same as En Yeni Ürünler */
    /* Product inner containers - all sections */
    .section-product-cards-carousel .product-inner,
    .home-v2-product-cards-carousel .product-inner,
    .section-products-carousel .product-inner,
    .home-v2-categories-products-carousel .product-inner,
    .products-carousel-tabs-v5 .product-inner {
        display: flex !important;
        flex-direction: column !important;
        padding: 8px !important;
        background: #fff !important;
        border: 1px solid #eaeaea !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        height: 100% !important;
    }
    
    /* Product thumbnails - all sections - ensure images are visible */
    .section-product-cards-carousel .product-thumbnail,
    .home-v2-product-cards-carousel .product-thumbnail,
    .section-products-carousel .product-thumbnail,
    .home-v2-categories-products-carousel .product-thumbnail,
    .products-carousel-tabs-v5 .product-thumbnail {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 150px !important;
        height: auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        position: relative !important;
        display: block !important;
        background: #f5f5f5 !important;
        border-radius: 8px !important;
    }
    
    .section-product-cards-carousel .product-thumbnail img,
    .home-v2-product-cards-carousel .product-thumbnail img,
    .section-products-carousel .product-thumbnail img,
    .home-v2-categories-products-carousel .product-thumbnail img,
    .products-carousel-tabs-v5 .product-thumbnail img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-sizing: border-box !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .section-product-cards-carousel .product-thumbnail a,
    .home-v2-product-cards-carousel .product-thumbnail a,
    .section-products-carousel .product-thumbnail a,
    .home-v2-categories-products-carousel .product-thumbnail a,
    .products-carousel-tabs-v5 .product-thumbnail a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Product titles - all sections */
    .section-product-cards-carousel .woocommerce-loop-product__title,
    .home-v2-product-cards-carousel .woocommerce-loop-product__title,
    .section-products-carousel .woocommerce-loop-product__title,
    .home-v2-categories-products-carousel .woocommerce-loop-product__title,
    .products-carousel-tabs-v5 .woocommerce-loop-product__title {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin: 6px 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    /* Price containers - all sections */
    .section-product-cards-carousel .price-add-to-cart,
    .home-v2-product-cards-carousel .price-add-to-cart,
    .section-products-carousel .price-add-to-cart,
    .home-v2-categories-products-carousel .price-add-to-cart,
    .products-carousel-tabs-v5 .price-add-to-cart {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 6px 0 !important;
        padding: 0 !important;
    }
    
    /* Action buttons - all sections */
    .section-product-cards-carousel .hover-area,
    .home-v2-product-cards-carousel .hover-area,
    .section-products-carousel .hover-area,
    .home-v2-categories-products-carousel .hover-area,
    .products-carousel-tabs-v5 .hover-area {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 6px 0 0 0 !important;
        padding: 0 !important;
    }
    
    .section-product-cards-carousel .action-buttons,
    .home-v2-product-cards-carousel .action-buttons,
    .section-products-carousel .action-buttons,
    .home-v2-categories-products-carousel .action-buttons,
    .products-carousel-tabs-v5 .action-buttons {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
    
    /* Make categories horizontal on mobile */
    .section-product-cards-carousel .loop-product-categories,
    .home-v2-product-cards-carousel .loop-product-categories {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        font-size: 11px !important;
        margin-bottom: 8px !important;
        padding: 4px 0 !important;
        gap: 8px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .section-product-cards-carousel .loop-product-categories::-webkit-scrollbar,
    .home-v2-product-cards-carousel .loop-product-categories::-webkit-scrollbar {
        display: none !important;
    }
    
    .section-product-cards-carousel .loop-product-categories a,
    .home-v2-product-cards-carousel .loop-product-categories a {
        display: inline-flex !important;
        align-items: center !important;
        padding: 4px 12px !important;
        background-color: #f5f5f5 !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        color: #666 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: background-color 0.2s ease, color 0.2s ease !important;
    }
    
    .section-product-cards-carousel .loop-product-categories a:hover,
    .home-v2-product-cards-carousel .loop-product-categories a:hover,
    .section-product-cards-carousel .loop-product-categories a:active,
    .home-v2-product-cards-carousel .loop-product-categories a:active {
        background-color: #e0e0e0 !important;
        color: #2563eb !important;
    }
    
    .section-product-cards-carousel .woocommerce-loop-product__title,
    .home-v2-product-cards-carousel .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .section-product-cards-carousel .price,
    .home-v2-product-cards-carousel .price {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
    }
    
    .section-product-cards-carousel .add-to-cart-wrap,
    .home-v2-product-cards-carousel .add-to-cart-wrap {
        margin-top: 8px !important;
    }
    
    .section-product-cards-carousel .add_to_cart_button,
    .home-v2-product-cards-carousel .add_to_cart_button {
        min-height: 36px !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    /* Force disable owl carousel on mobile for these sections - use grid */
    .section-product-cards-carousel .owl-carousel,
    .home-v2-product-cards-carousel .owl-carousel {
        display: grid !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .section-product-cards-carousel .owl-stage-outer,
    .home-v2-product-cards-carousel .owl-stage-outer {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: contents !important;
    }
    
    .section-product-cards-carousel .owl-stage,
    .home-v2-product-cards-carousel .owl-stage {
        display: contents !important;
        width: 100% !important;
        transform: none !important;
    }
    
    .section-product-cards-carousel .owl-item,
    .home-v2-product-cards-carousel .owl-item {
        width: 100% !important;
        max-width: 100% !important;
        display: contents !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   Full Banner - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .home-v2-banner-block,
    .home-v2-fullbanner-ad {
        margin: 20px 0 !important;
        padding: 0 15px !important;
    }
    
    .home-v2-banner-block img,
    .home-v2-fullbanner-ad img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }
}

/* ============================================
   Two Side-by-Side Banners - Mobile Stack
   ============================================ */
@media (max-width: 767.98px) {
    .home-two-banners {
        margin: 20px 0 !important;
        padding: 0 15px !important;
    }
    
    .home-two-banners .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .home-two-banners .col-md-6 {
        width: 100% !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .home-two-banners .banner-item img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }
}

/* ============================================
   Category Product Carousels - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .section-products-carousel,
    .home-v2-categories-products-carousel {
        padding: 30px 0 !important;
        margin: 20px 0 !important;
    }
    
    .section-products-carousel header,
    .home-v2-categories-products-carousel header {
        padding: 0 15px !important;
        margin-bottom: 20px !important;
    }
    
    .section-products-carousel header h2,
    .home-v2-categories-products-carousel header h2 {
        font-size: 18px !important;
        color: #333 !important;
        margin: 0 !important;
    }
    
    .section-products-carousel .products,
    .home-v2-categories-products-carousel .products {
        padding: 0 15px !important;
    }
}

/* ============================================
   Brands Carousel - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .brands-carousel {
        padding: 30px 0 !important;
        background: #f8f9fa !important;
        margin-top: 20px !important;
    }
    
    .brands-carousel .container {
        padding: 0 15px !important;
    }
    
    .owl-brands .item {
        padding: 10px !important;
    }
    
    .owl-brands figure {
        margin: 0 !important;
        padding: 15px !important;
        background: #fff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        min-height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .owl-brands img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 50px !important;
    }
}

/* ============================================
   Home Layout Wrapper - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .home-layout-wrapper {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    
    .home-layout-wrapper #primary {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .home-layout-wrapper .sidebar-home {
        width: 100% !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important;
    }
}

/* ============================================
   Product Thumbnail Images - Mobile Fix
   ============================================ */
@media (max-width: 767.98px) {
    .product-thumbnail {
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        padding-bottom: 100% !important;
        background: #f5f5f5 !important;
        border-radius: 8px !important;
    }
    
    .product-thumbnail a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    
    /* Discount badge - mobile optimized */
    .product-thumbnail .onsale {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 2 !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
    }
}

/* ============================================
   Product Card Content - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .product-inner {
        padding: 8px !important;
        background: #fff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06) !important;
        margin-bottom: 0 !important;
    }
    
    /* REMOVED: This was hiding categories on mobile */
    /* Categories are now shown horizontally with scroll */
    /* 
    .loop-product-categories {
        display: none !important;
    }
    */
    
    /* ============================================
       UNIVERSAL 2-COLUMN GRID FOR ALL SECTIONS
       Apply to: En Çok Satan, En Yeni Ürünler, 
       Random Kategoriler, ALL product carousels
       EXCEPT: Brands carousel (keep horizontal)
       ============================================ */
    
    /* All product grids and carousels - 2 columns on mobile */
    .products,
    ul.products,
    .products.owl-carousel,
    .products.columns-3,
    .products.columns-4,
    .section-product-cards-carousel .products,
    .home-v2-product-cards-carousel .products,
    .home-v2-categories-products-carousel .products,
    .section-products-carousel .products,
    .products-carousel-tabs-v5 .products,
    .products-carousel-tabs-v5 .tab-content .products,
    .products-carousel-tabs-v5 .tab-pane .products {
        width: 100% !important;
        max-width: 100vw !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 6px !important;
        margin: 0 !important;
        list-style: none !important;
        background: #f8f8f8 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* All product items - full width in grid */
    .product,
    li.product,
    .products .product,
    .owl-item .product,
    ul.products li.product,
    .section-product-cards-carousel .product,
    .home-v2-product-cards-carousel .product,
    .home-v2-categories-products-carousel .product,
    .section-products-carousel .product,
    .products-carousel-tabs-v5 .product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Disable owl carousel on mobile - use grid instead */
    .owl-carousel.products,
    .section-product-cards-carousel .owl-carousel,
    .home-v2-product-cards-carousel .owl-carousel,
    .home-v2-categories-products-carousel .owl-carousel,
    .section-products-carousel .owl-carousel,
    .products-carousel-tabs-v5 .owl-carousel {
        display: grid !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .owl-stage-outer,
    .owl-stage,
    .owl-item {
        display: contents !important;
    }
    
    /* Specifically for ALL product sections */
    .section-product-cards-carousel .owl-stage-outer,
    .home-v2-product-cards-carousel .owl-stage-outer,
    .home-v2-categories-products-carousel .owl-stage-outer,
    .section-products-carousel .owl-stage-outer,
    .products-carousel-tabs-v5 .owl-stage-outer,
    .section-product-cards-carousel .owl-stage,
    .home-v2-product-cards-carousel .owl-stage,
    .home-v2-categories-products-carousel .owl-stage,
    .section-products-carousel .owl-stage,
    .products-carousel-tabs-v5 .owl-stage,
    .section-product-cards-carousel .owl-item,
    .home-v2-product-cards-carousel .owl-item,
    .home-v2-categories-products-carousel .owl-item,
    .section-products-carousel .owl-item,
    .products-carousel-tabs-v5 .owl-item {
        display: contents !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* ============================================
       EXCEPTION: Keep Brands Horizontal on Mobile
       ============================================ */
    
    /* Brands carousel - KEEP horizontal scroll */
    .brands-carousel,
    .brands-carousel .owl-carousel,
    .brand-carousel,
    .home-v2-brands-carousel,
    .home-v2-brands-carousel .owl-carousel,
    [class*="brand"] .owl-carousel {
        display: block !important; /* Override grid */
    }
    
    .brands-carousel .owl-stage-outer,
    .brands-carousel .owl-stage,
    .brands-carousel .owl-item,
    .home-v2-brands-carousel .owl-stage-outer,
    .home-v2-brands-carousel .owl-stage,
    .home-v2-brands-carousel .owl-item {
        display: block !important; /* Keep carousel structure */
    }
    
    .brands-carousel .owl-item,
    .home-v2-brands-carousel .owl-item {
        width: auto !important; /* Let owl-carousel control width */
    }
    
    .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 8px 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        min-height: 32px !important;
    }
    
    .product-rating {
        margin: 8px 0 !important;
    }
    
    .star-rating {
        font-size: 12px !important;
    }
    
    .price-add-to-cart {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: 8px !important;
    }
    
    .price {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
    }
    
    /* Show discount prices on mobile - ALL sections */
    .price del,
    .section-product-cards-carousel .price del,
    .home-v2-product-cards-carousel .price del,
    .section-products-carousel .price del,
    .home-v2-categories-products-carousel .price del,
    .products-carousel-tabs-v5 .price del,
    .section-products-carousel .products .price del,
    .home-v2-categories-products-carousel .products .price del,
    .products-carousel-tabs-v5 .products .price del,
    .products-carousel-tabs-v5 .tab-content .price del,
    .products-carousel-tabs-v5 .tab-pane .price del {
        display: inline !important;
        font-size: 10px !important;
        color: #999 !important;
        margin-right: 0 !important;
        margin-top: 2px !important;
        font-weight: 400 !important;
        text-decoration: line-through !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .price ins,
    .section-product-cards-carousel .price ins,
    .home-v2-product-cards-carousel .price ins,
    .section-products-carousel .price ins,
    .home-v2-categories-products-carousel .price ins,
    .products-carousel-tabs-v5 .price ins,
    .section-products-carousel .products .price ins,
    .home-v2-categories-products-carousel .products .price ins,
    .products-carousel-tabs-v5 .products .price ins,
    .products-carousel-tabs-v5 .tab-content .price ins,
    .products-carousel-tabs-v5 .tab-pane .price ins {
        display: inline !important;
        text-decoration: none !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .price ins .amount {
        font-size: 18px !important;
    }
    
    .price del .amount {
        font-size: 10px !important;
    }
    
    .add-to-cart-wrap {
        flex-shrink: 0 !important;
    }
    
    .add_to_cart_button {
        width: 100% !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 8px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        background-color: #2563eb !important;
        color: #fff !important;
        border: none !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .add_to_cart_button:hover {
        background-color: #1d4ed8 !important;
    }
}

/* ============================================
   Hover Area Actions - Mobile Touch Friendly
   ============================================ */
@media (max-width: 767.98px) {
    /* Show hover area by default on mobile */
    .product .hover-area {
        display: block !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid #eaeaea !important;
    }
    
    .hover-area .action-buttons {
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .hover-area .action-buttons a {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #666 !important;
        font-size: 13px !important;
        border-radius: 6px !important;
        background: #f8f9fa !important;
    }
    
    .hover-area .action-buttons a:active {
        background: #e9ecef !important;
    }
    
    .hover-area .action-buttons i {
        font-size: 18px !important;
        margin-right: 0 !important;
    }
}

/* ============================================
   Container Spacing - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .site-content {
        padding-top: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Prevent horizontal scroll on all main sections */
    #primary, #main, .content-area, .site-main {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Fix woocommerce columns */
    .woocommerce {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    .woocommerce .products {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
}

/* ============================================
   Tablet Adjustments (768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-slider {
        height: 55vh !important;
        min-height: 350px !important;
    }
    
    .section-product-cards-carousel .products.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .owl-brands .item {
        padding: 15px !important;
    }
}

