/* Mobile Responsive Design for Electro Homepage */

/* Mobile Header */
@media (max-width: 991.98px) {
    /* CRITICAL: Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    .container, .container-fluid {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Allow touch scrolling for brands carousel */
    .brands-carousel {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .brands-carousel .container {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .owl-brands {
        overflow: hidden !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
    
    .owl-brands .owl-stage-outer {
        overflow: hidden !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
    
    .owl-brands .owl-stage {
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .owl-brands .owl-item {
        touch-action: pan-x !important;
    }
    
    /* Hide desktop header elements on mobile */
    .header-v2 .masthead,
    .header-v2 .electro-navbar {
        display: none !important;
    }
    
    /* Mobile header */
    .mobile-header {
        display: block !important;
        background-color: #fff;
        border-bottom: 1px solid #eaeaea;
        padding: 10px 0;
    }
    
    .mobile-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-header .mobile-logo {
        flex: 0 0 auto;
    }
    
    .mobile-header .mobile-logo img {
        height: 30px;
        width: auto;
    }
    
    .mobile-header .mobile-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-header .mobile-search {
        position: relative;
    }
    
    .mobile-header .mobile-search input {
        width: 200px;
        padding: 8px 12px;
        border: 1px solid #eaeaea;
        border-radius: 4px;
        font-size: 14px;
    }
    
    .mobile-header .mobile-icons {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-header .mobile-icons a {
        color: #333e48;
        font-size: 18px;
        text-decoration: none;
    }
    
    .mobile-header .mobile-icons a:hover {
        color: #2563eb;
    }
    
    /* Mobile navigation */
    .mobile-nav {
        background-color: #2563eb;
        padding: 10px 0;
    }
    
    .mobile-nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-nav .mobile-menu-toggle {
        background: none;
        border: none;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
    }
    
    .mobile-nav .mobile-departments {
        display: none; /* Hide "Tüm Kategoriler" text on mobile */
    }
    
    .mobile-nav .mobile-search-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
    }
}

/* Mobile Product Sections */
@media (max-width: 991.98px) {
    /* Slider adjustments */
    .hero-slider {
        height: 40vh !important;
    }
    
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide {
        height: 40vh !important;
    }
    
    /* Product cards - mobile layout */
    .products-carousel-tabs-v5 .products.owl-carousel .product,
    .home-v2-categories-products-carousel .products.owl-carousel .product,
    .section-products-carousel .products.owl-carousel .product {
        margin-bottom: 20px;
    }
    
    /* Apply consistent mobile fixes to ALL product listing sections */
    .products-carousel-tabs-v5,
    .section-products-carousel,
    .home-v2-categories-products-carousel {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 30px 0 !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    .products-carousel-tabs-v5 > *,
    .section-products-carousel > *,
    .home-v2-categories-products-carousel > * {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .products-carousel-tabs-v5 header,
    .section-products-carousel header,
    .home-v2-categories-products-carousel header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }
    
    .products-carousel-tabs-v5 [data-ride="owl-carousel"],
    .section-products-carousel [data-ride="owl-carousel"],
    .home-v2-categories-products-carousel [data-ride="owl-carousel"] {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .products-carousel-tabs-v5 .products,
    .section-products-carousel .products,
    .home-v2-categories-products-carousel .products,
    .products-carousel-tabs-v5 .products.owl-carousel,
    .section-products-carousel .products.owl-carousel,
    .home-v2-categories-products-carousel .products.owl-carousel {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 6px !important;
        margin: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Çok Satanlar section - use same mobile design as En Yeni Ürünler */
    .section-product-cards-carousel,
    .home-v2-product-cards-carousel {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 30px 0 !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    /* Ensure parent containers don't cause overflow */
    .section-product-cards-carousel > *,
    .home-v2-product-cards-carousel > * {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .section-product-cards-carousel header,
    .home-v2-product-cards-carousel header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }
    
    .section-product-cards-carousel header h2,
    .home-v2-product-cards-carousel header h2 {
        font-size: 18px !important;
        color: #333 !important;
        margin: 0 !important;
    }
    
    /* CRITICAL: Prevent horizontal overflow on products container */
    .section-product-cards-carousel [data-ride="owl-carousel"],
    .home-v2-product-cards-carousel [data-ride="owl-carousel"] {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .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 {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 6px !important;
        margin: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure product cards are exactly 50% width with no overflow - mobile only */
    @media (max-width: 991.98px) {
        .section-product-cards-carousel .product,
        .home-v2-product-cards-carousel .product {
            width: 50% !important;
            max-width: 50% !important;
            flex: 0 0 50% !important;
            padding: 0 3px !important;
            margin: 0 !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
        }
    }
    
    /* Product outer and inner containers */
    .section-product-cards-carousel .product-outer,
    .home-v2-product-cards-carousel .product-outer {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .section-product-cards-carousel .product-inner,
    .home-v2-product-cards-carousel .product-inner {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }
    
    /* Product thumbnail - fixed aspect ratio for consistent image sizes on mobile */
    .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;
        height: 0 !important;
        padding-bottom: 75% !important; /* 4:3 aspect ratio - consistent with desktop */
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 0 8px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !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 {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-sizing: border-box !important;
        border-radius: 8px !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 {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Product title - truncate properly */
    .section-product-cards-carousel .woocommerce-loop-product__title,
    .home-v2-product-cards-carousel .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;
    }
    
    /* Category label - truncate */
    .section-product-cards-carousel .loop-product-categories,
    .home-v2-product-cards-carousel .loop-product-categories {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10px !important;
        margin: 4px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Price container */
    .section-product-cards-carousel .price-add-to-cart,
    .home-v2-product-cards-carousel .price-add-to-cart {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        margin: 6px 0 !important;
        padding: 0 !important;
    }
    
    .section-product-cards-carousel .price,
    .home-v2-product-cards-carousel .price {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    /* Show discount prices on mobile - ALL sections */
    .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;
        text-decoration: line-through !important;
        color: #999 !important;
        font-size: 10px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .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;
        color: #2563eb !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .section-product-cards-carousel .price-add-to-cart del,
    .home-v2-product-cards-carousel .price-add-to-cart del,
    .section-products-carousel .price-add-to-cart del,
    .home-v2-categories-products-carousel .price-add-to-cart del,
    .products-carousel-tabs-v5 .price-add-to-cart del,
    .section-products-carousel .products .price-add-to-cart del,
    .home-v2-categories-products-carousel .products .price-add-to-cart del,
    .products-carousel-tabs-v5 .products .price-add-to-cart del {
        display: inline !important;
        text-decoration: line-through !important;
        color: #999 !important;
        font-size: 10px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Action buttons container */
    .section-product-cards-carousel .hover-area,
    .home-v2-product-cards-carousel .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 {
        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;
    }
    
    .section-product-cards-carousel .action-buttons a,
    .home-v2-product-cards-carousel .action-buttons a {
        flex: 0 0 auto !important;
        min-width: 32px !important;
        max-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Mobile carousel adjustments */
    .owl-carousel .owl-nav {
        display: none !important;
    }
    
    .owl-carousel .owl-dots {
        text-align: center;
        margin-top: 20px;
    }
    
    .owl-carousel .owl-dots .owl-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ddd;
        margin: 0 4px;
        display: inline-block;
    }
    
    .owl-carousel .owl-dots .owl-dot.active {
        background-color: #2563eb;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-slider {
        height: 45vh !important;
    }
    
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide {
        height: 45vh !important;
    }
    
    .section-product-cards-carousel .products.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* CRITICAL FIX: Override responsive.css fixed width and ensure centering on tablet */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all layout elements are centered */
    .home-layout-wrapper,
    .content-area,
    .site-main,
    .site-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 992px) {
    .mobile-header,
    .mobile-nav {
        display: none !important;
    }
    
    /* Desktop styling for Çok Satanlar section - match En Yeni Ürünler */
    .section-product-cards-carousel,
    .home-v2-product-cards-carousel {
        padding: 50px 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .section-product-cards-carousel header,
    .home-v2-product-cards-carousel header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 30px !important;
        padding: 0 15px !important;
    }
    
    .section-product-cards-carousel header h2,
    .home-v2-product-cards-carousel header h2 {
        font-size: 24px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        color: #333 !important;
    }
    
    .section-product-cards-carousel .nav-inline,
    .home-v2-product-cards-carousel .nav-inline {
        display: flex !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .section-product-cards-carousel [data-ride="owl-carousel"],
    .home-v2-product-cards-carousel [data-ride="owl-carousel"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
    }
    
    .section-product-cards-carousel .products.owl-carousel,
    .home-v2-product-cards-carousel .products.owl-carousel {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .section-product-cards-carousel .product,
    .home-v2-product-cards-carousel .product {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }
    
    .section-product-cards-carousel .product-inner,
    .home-v2-product-cards-carousel .product-inner {
        padding: 15px !important;
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        height: 100% !important;
    }
    
    .section-product-cards-carousel .product-inner:hover,
    .home-v2-product-cards-carousel .product-inner:hover {
        border: 2px solid #2563eb !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        transform: translateY(-2px) !important;
    }
    
    .section-product-cards-carousel .product-thumbnail,
    .home-v2-product-cards-carousel .product-thumbnail {
        margin-bottom: 15px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .section-product-cards-carousel .product-thumbnail img,
    .home-v2-product-cards-carousel .product-thumbnail img {
        transition: transform 0.3s ease !important;
    }
    
    .section-product-cards-carousel .product-inner:hover .product-thumbnail img,
    .home-v2-product-cards-carousel .product-inner:hover .product-thumbnail img {
        transform: scale(1.05) !important;
    }
    
    .section-product-cards-carousel .woocommerce-loop-product__title,
    .home-v2-product-cards-carousel .woocommerce-loop-product__title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 10px 0 !important;
        min-height: 40px !important;
    }
    
    .section-product-cards-carousel .price,
    .home-v2-product-cards-carousel .price {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
        margin: 10px 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        overflow: visible !important;
    }
    
    .section-product-cards-carousel .price del,
    .home-v2-product-cards-carousel .price del {
        display: inline !important;
        text-decoration: line-through !important;
        color: #999 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .section-product-cards-carousel .price ins,
    .home-v2-product-cards-carousel .price ins {
        display: inline !important;
        text-decoration: none !important;
        color: #2563eb !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Mobile spacing adjustments */
@media (max-width: 991.98px) {
    .products-carousel-tabs-v5,
    .section-product-cards-carousel,
    .home-v2-categories-products-carousel,
    .section-products-carousel {
        padding-top: 30px;
        padding-bottom: 30px;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .products-carousel-tabs-v5 header,
    .section-product-cards-carousel header,
    .home-v2-categories-products-carousel header,
    .section-products-carousel header {
        margin-bottom: 20px;
        width: 100% !important;
        text-align: center !important;
    }
    
    .products-carousel-tabs-v5 header h2,
    .section-product-cards-carousel header h2,
    .home-v2-categories-products-carousel header h2,
    .section-products-carousel header h2 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center !important;
    }
    
    /* Ensure tab content is centered */
    .products-carousel-tabs-v5 .tab-content,
    .products-carousel-tabs-v5 .tab-pane {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure carousel wrapper is centered */
    .products-carousel-tabs-v5 [data-ride="owl-carousel"],
    .section-products-carousel [data-ride="owl-carousel"],
    .home-v2-categories-products-carousel [data-ride="owl-carousel"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: hidden !important;
    }
}

/* Additional Mobile Styles for Complete Responsive Design */

/* Mobile Header Enhancements */
@media (max-width: 991.98px) {
    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-nav {
        position: sticky;
        top: 60px;
        z-index: 999;
    }
    
    /* Adjust main content for mobile headers */
    .site-content {
        padding-top: 0;
    }
    
    /* CRITICAL FIX: Ensure containers are properly centered on mobile */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure home-layout-wrapper is centered */
    .home-layout-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure content-area is full width and centered */
    .content-area {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure site-main is centered */
    .site-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fix any sections that might be off-center */
    section,
    .section,
    .products-carousel-tabs-v5,
    .section-product-cards-carousel,
    .section-products-carousel,
    .home-v2-categories-products-carousel {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure product sections stay within container bounds */
    /* Remove padding 15px 15px from tab-content and tab-pane on mobile */
    .tab-content {
        padding: 0 !important;
    }
    
    .tab-pane,
    .tab-pane.active {
        padding: 0 !important;
    }
    
    .products-carousel-tabs-v5 .tab-content,
    .section-products-carousel > div,
    .home-v2-categories-products-carousel > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* CRITICAL: Detailed centering fixes for En Yeni Ürünler and Random Categories */
    .home-v2-categories-products-carousel,
    .section-products-carousel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    /* Ensure headers are centered */
    .home-v2-categories-products-carousel header,
    .section-products-carousel header {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }
    
    /* Ensure h2 in headers are centered */
    .home-v2-categories-products-carousel header h2,
    .section-products-carousel header h2,
    .home-v2-categories-products-carousel header .h1,
    .section-products-carousel header .h1 {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* Ensure carousel wrapper div is centered */
    .home-v2-categories-products-carousel > div[data-ride="owl-carousel"],
    .section-products-carousel > div[data-ride="owl-carousel"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure owl-carousel products container is centered */
    .home-v2-categories-products-carousel .products.owl-carousel,
    .section-products-carousel .products.owl-carousel {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Ensure owl-stage-outer is centered */
    .home-v2-categories-products-carousel .owl-stage-outer,
    .section-products-carousel .owl-stage-outer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Ensure owl-stage is centered */
    .home-v2-categories-products-carousel .owl-stage,
    .section-products-carousel .owl-stage {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
    }
}

/* Desktop Grid Fix - Ensure Bootstrap Works */
@media (min-width: 992px) {
    /* Ensure Bootstrap row-cols works on desktop for home page */
    .products.row.row-cols-xl-4,
    .products.row.row-cols-md-3,
    .products.row.row-cols-2 {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .products.row.row-cols-xl-4 > .product.col,
    .products.row.row-cols-xl-4 > .product {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
    
    .products.row.row-cols-md-3 > .product.col,
    .products.row.row-cols-md-3 > .product {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
    
    .products.row.row-cols-2 > .product.col,
    .products.row.row-cols-2 > .product {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    /* Owl-Carousel Desktop Fix - Ensure proper display */
    .products-carousel-tabs-v5 .products.owl-carousel,
    .home-v2-categories-products-carousel .products.owl-carousel,
    .section-products-carousel .products.owl-carousel {
        display: block !important;
    }
    
    /* Ensure owl-carousel items display correctly on desktop - 4 columns */
    .products-carousel-tabs-v5 .products.owl-carousel .owl-stage-outer,
    .home-v2-categories-products-carousel .products.owl-carousel .owl-stage-outer,
    .section-products-carousel .products.owl-carousel .owl-stage-outer {
        overflow: hidden !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .owl-stage,
    .home-v2-categories-products-carousel .products.owl-carousel .owl-stage,
    .section-products-carousel .products.owl-carousel .owl-stage {
        display: flex !important;
        width: 100% !important;
    }
    
    /* Force 4 columns on desktop (25% each) */
    .products-carousel-tabs-v5 .products.owl-carousel .owl-item,
    .home-v2-categories-products-carousel .products.owl-carousel .owl-item,
    .section-products-carousel .products.owl-carousel .owl-item {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        padding: 0 7.5px !important;
        box-sizing: border-box !important;
    }
    
    /* Product items inside owl-carousel */
    .products-carousel-tabs-v5 .products.owl-carousel .product,
    .home-v2-categories-products-carousel .products.owl-carousel .product,
    .section-products-carousel .products.owl-carousel .product {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Ensure product cards are properly contained - ALL SECTIONS */
    .products-carousel-tabs-v5 .products.owl-carousel .product .product-outer,
    .home-v2-categories-products-carousel .products.owl-carousel .product .product-outer,
    .section-products-carousel .products.owl-carousel .product .product-outer {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .product-inner,
    .home-v2-categories-products-carousel .products.owl-carousel .product .product-inner,
    .section-products-carousel .products.owl-carousel .product .product-inner {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure price-add-to-cart and button stay within card - ALL SECTIONS */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: 10px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add-to-cart-wrap,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add-to-cart-wrap,
    .section-products-carousel .products.owl-carousel .product .add-to-cart-wrap {
        flex-shrink: 0 !important;
        margin-left: auto !important;
        width: auto !important;
        max-width: none !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #2563eb !important;
        border-radius: 50% !important;
        position: relative !important;
        border: 2px solid #2563eb !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button::before,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button::before {
        content: "\f07a" !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        font-size: 18px !important;
        display: inline-block !important;
        line-height: 1 !important;
        color: #2563eb !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button:hover,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button:hover,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button:hover,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button:hover,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:hover,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:hover {
        background: #2563eb !important;
        background-color: #2563eb !important;
        color: #fff !important;
        border-color: #2563eb !important;
        transform: scale(1.1) !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button:hover::before,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button:hover::before,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:hover::before,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:hover::before {
        color: #fff !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .price,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price,
    .section-products-carousel .products.owl-carousel .product .price {
        flex: 1 !important;
        margin-right: 10px !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .price del,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price del,
    .section-products-carousel .products.owl-carousel .product .price del {
        display: inline !important;
        text-decoration: line-through !important;
        color: #999 !important;
        font-size: 10px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .price ins,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price ins,
    .section-products-carousel .products.owl-carousel .product .price ins {
        display: inline !important;
        text-decoration: none !important;
        color: #2563eb !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Prevent owl-carousel from breaking grid on home page */
    .owl-carousel .products.row {
        display: flex !important;
    }
}

/* Mobile Product Cards - Enhanced */
@media (max-width: 991.98px) {
    /* Disable owl-carousel on mobile - convert to static grid */
    /* BUT EXCLUDE brands carousel - it should stay horizontal */
    .products-carousel-tabs-v5 .products.owl-carousel,
    .home-v2-categories-products-carousel .products.owl-carousel,
    .section-products-carousel .products.owl-carousel {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        /* Ensure grid is centered */
        justify-items: center !important;
        align-items: start !important;
    }
    
    /* CRITICAL: Exclude brands carousel from grid conversion */
    .owl-brands.owl-carousel,
    #owl-brands.owl-carousel,
    .brands-carousel .owl-carousel,
    .brands-carousel .owl-brands {
        display: block !important;
        grid-template-columns: none !important;
        grid: none !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .owl-stage-outer,
    .home-v2-categories-products-carousel .products.owl-carousel .owl-stage-outer,
    .section-products-carousel .products.owl-carousel .owl-stage-outer {
        overflow: visible !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .owl-stage,
    .home-v2-categories-products-carousel .products.owl-carousel .owl-stage,
    .section-products-carousel .products.owl-carousel .owl-stage {
        display: contents !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .owl-item,
    .home-v2-categories-products-carousel .products.owl-carousel .owl-item,
    .section-products-carousel .products.owl-carousel .owl-item {
        width: 100% !important;
        float: none !important;
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure product items are centered within grid */
    .products-carousel-tabs-v5 .products.owl-carousel .product,
    .home-v2-categories-products-carousel .products.owl-carousel .product,
    .section-products-carousel .products.owl-carousel .product {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-self: stretch !important;
    }
    
    /* Ensure product-outer and product-inner are centered */
    .home-v2-categories-products-carousel .product .product-outer,
    .section-products-carousel .product .product-outer,
    .home-v2-categories-products-carousel .product .product-inner,
    .section-products-carousel .product .product-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Static product grid for mobile */
    .products.columns-3,
    .products.columns-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 0;
    }
    
    .products.columns-3 .product,
    .products.columns-4 .product {
        width: 100% !important;
        margin-bottom: 0;
    }
    
    /* ALL SECTIONS - ensure button stays in card on mobile */
    .products-carousel-tabs-v5 .products.owl-carousel .product .product-outer,
    .home-v2-categories-products-carousel .products.owl-carousel .product .product-outer,
    .section-products-carousel .products.owl-carousel .product .product-outer,
    .products-carousel-tabs-v5 .owl-item .product .product-outer,
    .home-v2-categories-products-carousel .owl-item .product .product-outer,
    .section-products-carousel .owl-item .product .product-outer {
        overflow: visible !important;
        position: relative !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .product-inner,
    .home-v2-categories-products-carousel .products.owl-carousel .product .product-inner,
    .section-products-carousel .products.owl-carousel .product .product-inner,
    .products-carousel-tabs-v5 .owl-item .product .product-inner,
    .home-v2-categories-products-carousel .owl-item .product .product-inner,
    .section-products-carousel .owl-item .product .product-inner {
        overflow: visible !important;
        padding: 10px !important;
        position: relative !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add-to-cart-wrap,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add-to-cart-wrap,
    .section-products-carousel .products.owl-carousel .product .add-to-cart-wrap {
        width: auto !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #2563eb !important;
        border-radius: 50% !important;
        border: 2px solid #2563eb !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button::before,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button::before {
        content: "\f07a" !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        font-size: 18px !important;
        display: inline-block !important;
        line-height: 1 !important;
        margin-right: 0 !important;
        color: #2563eb !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button:hover,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button:hover,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button:hover,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button:hover,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:hover,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:hover {
        background: #1d4ed8 !important;
    }
    
    /* Product card mobile layout */
    .product-card .media {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card .media-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .product-card .media-left img {
        width: 100%;
        height: auto;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .product-card .media-body {
        width: 100%;
    }
    
    .product-card .woocommerce-loop-product__title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 8px;
        height: auto;
    }
    
    .product-card .price {
        font-size: 16px;
        font-weight: 600;
    }
    
    /* Show hover-area (favorite/compare buttons) on mobile - ALWAYS VISIBLE */
    .product-card .hover-area,
    .products .hover-area,
    .products > .product .hover-area,
    .owl-item .product .hover-area,
    .owl-item > .product .hover-area,
    ul.products > li.product .hover-area,
    .products-carousel-tabs-v5 .product .hover-area,
    .products-carousel-tabs-v5 .products.owl-carousel .product .hover-area,
    .products-carousel-tabs-v5 .owl-item .product .hover-area,
    .section-product-cards-carousel .product .hover-area,
    .section-product-cards-carousel .products.owl-carousel .product .hover-area,
    .section-product-cards-carousel .owl-item .product .hover-area,
    .home-v2-categories-products-carousel .product .hover-area,
    .home-v2-categories-products-carousel .products.owl-carousel .product .hover-area,
    .home-v2-categories-products-carousel .owl-item .product .hover-area,
    .section-products-carousel .product .hover-area,
    .section-products-carousel .products.owl-carousel .product .hover-area,
    .section-products-carousel .owl-item .product .hover-area {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 50px !important;
        max-height: none !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        border-top: 1px solid #eaeaea !important;
        background-color: #fff !important;
    }
    
    /* Ensure action buttons are visible and centered on mobile */
    .products-carousel-tabs-v5 .product .hover-area .action-buttons,
    .section-product-cards-carousel .product .hover-area .action-buttons,
    .home-v2-categories-products-carousel .product .hover-area .action-buttons,
    .section-products-carousel .product .hover-area .action-buttons,
    .products > .product .hover-area .action-buttons,
    .owl-item > .product .hover-area .action-buttons,
    ul.products > li.product .hover-area .action-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 8px 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure buttons are visible on mobile */
    .products-carousel-tabs-v5 .product .hover-area .action-buttons > a,
    .section-product-cards-carousel .product .hover-area .action-buttons > a,
    .home-v2-categories-products-carousel .product .hover-area .action-buttons > a,
    .section-products-carousel .product .hover-area .action-buttons > a,
    .products > .product .hover-area .action-buttons > a,
    .owl-item > .product .hover-area .action-buttons > a,
    ul.products > li.product .hover-area .action-buttons > a {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* CRITICAL: Ensure product categories are horizontal and visible on mobile */
@media (max-width: 991.98px) {
    /* Override any rules that hide categories */
    .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;
        margin-bottom: 8px !important;
        padding: 4px 0 !important;
        gap: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .loop-product-categories::-webkit-scrollbar {
        display: none !important;
    }
    
    .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;
    }
    
    .loop-product-categories a:hover,
    .loop-product-categories a:active {
        background-color: #e0e0e0 !important;
        color: #2563eb !important;
    }
}

/* Fix Owl Carousel passive event listener warnings */
.owl-carousel,
.owl-carousel .owl-stage,
.owl-carousel .owl-stage-outer,
.owl-carousel .owl-item {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

/* Allow horizontal scrolling for carousels */
.owl-carousel .owl-stage {
    touch-action: pan-x pan-y !important;
    -ms-touch-action: pan-x pan-y !important;
}

/* Mobile Carousel Adjustments */
@media (max-width: 991.98px) {
    .owl-carousel .owl-item {
        padding: 0 5px;
    }
    
    .owl-carousel .product {
        margin-bottom: 15px;
    }
    
    .owl-carousel .owl-nav {
        display: none !important;
    }
    
    .owl-carousel .owl-dots {
        margin-top: 20px;
        text-align: center;
    }
    
    .owl-carousel .owl-dots .owl-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ddd;
        margin: 0 4px;
        display: inline-block;
        cursor: pointer;
    }
    
    .owl-carousel .owl-dots .owl-dot.active {
        background-color: #2563eb;
    }
}

/* Mobile Sidebar Adjustments */
@media (max-width: 991.98px) {
    .sidebar-shop,
    .sidebar-blog {
        margin-top: 20px;
    }
    
    .widget {
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid #eaeaea;
        border-radius: 8px;
    }
    
    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
        color: #333;
    }
    
    .widget ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .widget ul li {
        margin-bottom: 8px;
    }
    
    .widget ul li a {
        color: #666;
        text-decoration: none;
        font-size: 14px;
    }
    
    .widget ul li a:hover {
        color: #2563eb;
    }
}

/* Mobile Pagination */
@media (max-width: 991.98px) {
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
        margin: 20px 0;
    }
    
    .pagination .page-item {
        margin: 2px;
    }
    
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        font-weight: bold;
    }
}

/* Mobile Footer Adjustments */
@media (max-width: 991.98px) {
    .footer-v2 .footer-top {
        padding: 30px 0;
    }
    
    .footer-v2 .footer-top .columns {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-v2 .footer-top .columns h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-v2 .footer-top .columns ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .footer-v2 .footer-top .columns ul li {
        margin-bottom: 8px;
    }
    
    .footer-v2 .footer-top .columns ul li a {
        color: #999;
        text-decoration: none;
        font-size: 14px;
    }
    
    .footer-v2 .footer-bottom {
        padding: 20px 0;
        text-align: center;
    }
    
    .footer-v2 .footer-bottom .columns {
        margin-bottom: 15px;
    }
}

/* Mobile Breadcrumb */
@media (max-width: 991.98px) {
    .woocommerce-breadcrumb {
        padding: 10px 0;
        font-size: 14px;
        text-align: center;
    }
    
    .woocommerce-breadcrumb a {
        font-size: 14px;
        color: #666;
    }
    
    .woocommerce-breadcrumb .delimiter {
        margin: 0 5px;
    }
}

/* Mobile Shop Control Bar */
@media (max-width: 991.98px) {
    .shop-control-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        text-align: center;
    }
    
    .shop-view-switcher,
    .woocommerce-ordering {
        width: 100%;
        justify-content: center;
    }
    
    .shop-view-switcher .view-switcher,
    .woocommerce-ordering .orderby {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Mobile Blog Adjustments */
@media (max-width: 991.98px) {
    .blog-layout {
        flex-direction: column;
    }
    
    .blog-content {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .blog-sidebar {
        width: 100%;
    }
    
    .post {
        margin-bottom: 30px;
        padding: 20px;
        border: 1px solid #eaeaea;
        border-radius: 8px;
    }
    
    .post .entry-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .post .entry-meta {
        font-size: 12px;
        margin-bottom: 15px;
        color: #666;
    }
    
    .post .entry-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Mobile Form Adjustments */
@media (max-width: 991.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    .btn-primary {
        background-color: #2563eb;
        border-color: #2563eb;
    }
    
    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }
}

/* Mobile Utility Classes */
@media (max-width: 991.98px) {
    .d-lg-none {
        display: block !important;
    }
    
    .d-lg-block {
        display: none !important;
    }
    
    .text-lg-left {
        text-align: center !important;
    }
    
    .text-lg-right {
        text-align: center !important;
    }
    
    .mb-lg-0 {
        margin-bottom: 15px !important;
    }
    
    .mt-lg-0 {
        margin-top: 15px !important;
    }
}

/* ============================================
   Touch-Friendly Target Sizes
   ============================================ */
@media (max-width: 767.98px) {
    /* Minimum 44px touch targets */
    a, button, input[type="submit"], input[type="button"],
    .btn, .button {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Larger tap targets for interactive elements */
    .clickable,
    .tappable {
        padding: 10px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ============================================
   Typography Optimization - Mobile
   ============================================ */
@media (max-width: 767.98px) {
    body {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    h1, .h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    h2, .h2 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    h3, .h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    h4, .h4 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    h5, .h5 {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 6px !important;
    }
    
    h6, .h6 {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 6px !important;
    }
    
    p {
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }
    
    /* Prevent text zoom on iOS */
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* ============================================
   Safe Area Insets (Notched Devices)
   ============================================ */
@media (max-width: 767.98px) {
    @supports (padding: env(safe-area-inset-top)) {
        body {
            padding-top: env(safe-area-inset-top) !important;
            padding-left: env(safe-area-inset-left) !important;
            padding-right: env(safe-area-inset-right) !important;
        }
        
        .mobile-bottom-nav {
            padding-bottom: env(safe-area-inset-bottom) !important;
        }
        
        .sticky-add-to-cart,
        .checkout-footer {
            padding-bottom: calc(15px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ============================================
   Landscape Mode Optimizations
   ============================================ */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-slider {
        height: 70vh !important;
        min-height: 300px !important;
    }
    
    .mobile-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Reduce vertical spacing in landscape */
    .products-carousel-tabs-v5,
    .section-product-cards-carousel,
    .section-products-carousel {
        padding: 20px 0 !important;
    }
}

/* ============================================
   Loading States & Skeletons
   ============================================ */
@media (max-width: 767.98px) {
    .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
        background-size: 200% 100% !important;
        animation: skeleton-loading 1.5s infinite !important;
    }
    
    @keyframes skeleton-loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    
    .skeleton-text {
        height: 12px !important;
        border-radius: 4px !important;
        margin-bottom: 8px !important;
    }
    
    .skeleton-title {
        height: 20px !important;
        width: 70% !important;
        border-radius: 4px !important;
        margin-bottom: 12px !important;
    }
    
    .skeleton-image {
        width: 100% !important;
        padding-bottom: 100% !important;
        border-radius: 8px !important;
    }
}

/* ============================================
   Accessibility Improvements
   ============================================ */
@media (max-width: 767.98px) {
    /* Focus visible for keyboard navigation */
    *:focus-visible {
        outline: 2px solid #2563eb !important;
        outline-offset: 2px !important;
    }
    
    /* Skip to main content link */
    .skip-to-main {
        position: absolute !important;
        top: -100px !important;
        left: 0 !important;
        background: #2563eb !important;
        color: #fff !important;
        padding: 10px 20px !important;
        z-index: 10000 !important;
        text-decoration: none !important;
    }
    
    .skip-to-main:focus {
        top: 0 !important;
    }
    
    /* Screen reader only */
    .sr-only {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
        white-space: nowrap !important;
        border-width: 0 !important;
    }
}

/* ============================================
   Pull to Refresh Indicator
   ============================================ */
@media (max-width: 767.98px) {
    .pull-to-refresh {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-100%) !important;
        background: #fff !important;
        padding: 10px 20px !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        transition: transform 0.3s !important;
        z-index: 9999 !important;
    }
    
    .pull-to-refresh.active {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .pull-to-refresh-icon {
        animation: spin 1s linear infinite !important;
    }
}

/* ============================================
   Toast Notifications - Mobile Position
   ============================================ */
@media (max-width: 767.98px) {
    .toast-container {
        position: fixed !important;
        top: 80px !important;
        right: 15px !important;
        left: 15px !important;
        z-index: 10000 !important;
    }
    
    .toast {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* ============================================
   Smooth Scrolling
   ============================================ */
@media (max-width: 767.98px) {
    html {
        scroll-behavior: smooth !important;
    }
    
    /* Optimize scroll performance */
    * {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ============================================
   No Horizontal Scroll
   ============================================ */
@media (max-width: 767.98px) {
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* CRITICAL: Override responsive.css fixed widths and ensure centering */
    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure all containers are centered */
    #page.site .container,
    .site-content .container,
    .home-layout-wrapper .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Prevent all sections from overflowing */
    section, .section, div[class*="section"] {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
        max-width: 100% !important;
        width: calc(100% + 30px) !important;
    }
    
    .col, [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Ensure home-layout-wrapper is properly centered */
    .home-layout-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure content-area is centered */
    .content-area {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================
   Owl Carousel Fix - Prevent Horizontal Overflow
   ============================================ */
@media (max-width: 767.98px) {
    /* Container overflow fix */
    .owl-carousel-outer-stage,
    .products-carousel-tabs-v5,
    .section-products-carousel,
    .home-v2-categories-products-carousel,
    .woocommerce {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Owl carousel containers */
    .owl-carousel {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .owl-stage-outer {
        overflow: visible !important;
        max-width: 100% !important;
    }
    
    /* BUT EXCEPTION: Keep overflow hidden for owl carousel slides, but visible for product cards */
    .products-carousel-tabs-v5 .owl-stage-outer,
    .home-v2-categories-products-carousel .owl-stage-outer,
    .section-products-carousel .owl-stage-outer {
        overflow: visible !important;
    }
    
    .owl-stage {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .owl-item {
        max-width: 100% !important;
    }
    
    /* Fix for data-ride carousels */
    [data-ride="owl-carousel"] {
        overflow: hidden !important;
        max-width: 100% !important;
    }
    
    /* Ensure carousel navigation doesn't cause overflow */
    .owl-nav {
        position: relative !important;
        max-width: 100% !important;
    }
    
    .owl-nav button {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }
    
    .owl-nav .owl-prev {
        left: 5px !important;
    }
    
    .owl-nav .owl-next {
        right: 5px !important;
    }
}

/* ============================================
   CRITICAL: Force Hide All Sidebars on Mobile
   ============================================ */
@media (max-width: 991.98px) {
    /* Hide ALL sidebar variations */
    #sidebar,
    .sidebar,
    .sidebar-shop,
    .sidebar-home,
    .shop-sidebar,
    aside.sidebar,
    aside[class*="sidebar"],
    .col-lg-3:has(.sidebar),
    .col-md-4:has(.sidebar),
    .col-lg-3:has(#sidebar),
    .col-md-4:has(#sidebar) {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Make content areas full width */
    .content-area,
    .shop-content-area,
    .col-lg-9,
    .col-md-8,
    .shop-products-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure rows take full width */
    .row:has(.sidebar),
    .row:has(#sidebar) {
        margin: 0 !important;
    }
}

/* ============================================
   Trendyol-Style Page Background
   ============================================ */
@media (max-width: 767.98px) {
    body {
        background: #f8f8f8 !important;
    }
    
    .site-content {
        background: #f8f8f8 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure off-canvas-wrapper is centered */
    .off-canvas-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure page.site is centered */
    #page.site {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Mobile Navigation Menu */
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        opacity: 0.8;
    }
    
    /* Mobile departments hidden - no hover needed */
    
    .mobile-search-btn {
        transition: all 0.3s ease;
    }
    
    .mobile-search-btn:hover {
        opacity: 0.8;
    }
}

/* Mobile Search Enhancements */
@media (max-width: 991.98px) {
    .mobile-search input {
        transition: all 0.3s ease;
    }
    
    .mobile-search input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
        outline: none;
    }
}

/* Mobile Icon Enhancements */
@media (max-width: 991.98px) {
    .mobile-icons a {
        transition: all 0.3s ease;
        border-radius: 4px;
        padding: 8px;
    }
    
    .mobile-icons a:hover {
        background-color: rgba(37, 99, 235, 0.1);
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 1999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-sidebar.active {
    left: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #2563eb;
    color: white;
    border-bottom: 1px solid #1d4ed8;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    opacity: 0.8;
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin-bottom: 0;
    border-bottom: 1px solid #eaeaea;
}

.mobile-menu-list li a {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-menu-list li a:hover {
    color: #2563eb;
    background-color: #f5f5f5;
    padding-left: 15px;
}

/* Mobile Menu Categories */
.mobile-menu-categories {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eaeaea;
}

.mobile-menu-categories h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mobile-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-category-list li {
    margin-bottom: 0;
}

.mobile-category-list li a {
    display: block;
    padding: 12px 10px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.mobile-category-list li a:hover {
    color: #2563eb;
    background-color: #f5f5f5;
    padding-left: 15px;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ============================================
   CRITICAL FIX: Add to Cart Button Visibility on Mobile
   Force visible with maximum specificity
   ============================================ */
@media (max-width: 991.98px) {
    /* Force ALL add to cart buttons visible on mobile - MAXIMUM SPECIFICITY */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button,
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #2563eb !important;
        border-radius: 50% !important;
        border: 2px solid #2563eb !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        flex-shrink: 0 !important;
    }
    
    /* Add icon color for maximum specificity buttons */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before {
        color: #2563eb !important;
    }
    
    /* Force price-add-to-cart container visible */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart,
    .section-products-carousel .owl-item .product .price-add-to-cart {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        margin-top: 10px !important;
        gap: 10px !important;
    }
    
    /* Force button container visible */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        margin-top: 0 !important;
    }
    
    /* Add shopping cart icon */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button::before,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button::before {
        content: "\f07a" !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        font-size: 16px !important;
        display: inline-block !important;
        line-height: 1 !important;
        margin-right: 0 !important;
        color: #2563eb !important;
    }
    
    /* Hover state - fill with blue */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover,
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover {
        background: #2563eb !important;
        background-color: #2563eb !important;
        border-color: #2563eb !important;
    }
    
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover::before,
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover::before,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover::before,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover::before,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover::before,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover::before,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap .add_to_cart_button:hover::before,
    .section-products-carousel .owl-item .product .price-add-to-cart .add-to-cart-wrap a.button.add_to_cart_button:hover::before {
        color: #fff !important;
    }
    
    /* Prevent any rule from hiding empty buttons */
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button:empty,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button:empty,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button:empty,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:empty,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button:empty,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:empty,
    .products-carousel-tabs-v5 .owl-item .product .add_to_cart_button:empty,
    .products-carousel-tabs-v5 .owl-item .product a.button.add_to_cart_button:empty,
    .home-v2-categories-products-carousel .owl-item .product .add_to_cart_button:empty,
    .home-v2-categories-products-carousel .owl-item .product a.button.add_to_cart_button:empty,
    .section-products-carousel .owl-item .product .add_to_cart_button:empty,
    .section-products-carousel .owl-item .product a.button.add_to_cart_button:empty {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure button has min-content width even when empty */
    .products-carousel-tabs-v5 .products.owl-carousel .product .add_to_cart_button:empty::before,
    .products-carousel-tabs-v5 .products.owl-carousel .product a.button.add_to_cart_button:empty::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product .add_to_cart_button:empty::before,
    .home-v2-categories-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:empty::before,
    .section-products-carousel .products.owl-carousel .product .add_to_cart_button:empty::before,
    .section-products-carousel .products.owl-carousel .product a.button.add_to_cart_button:empty::before {
        content: "\f07a" !important;
        display: inline-block !important;
    }
    
    /* CRITICAL: Override ANY CSS that might hide buttons - Maximum Priority */
    .products-carousel-tabs-v5 .product a.button.add_to_cart_button,
    .home-v2-categories-products-carousel .product a.button.add_to_cart_button,
    .section-products-carousel .product a.button.add_to_cart_button,
    .products-carousel-tabs-v5 .owl-item a.button.add_to_cart_button,
    .home-v2-categories-products-carousel .owl-item a.button.add_to_cart_button,
    .section-products-carousel .owl-item a.button.add_to_cart_button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #2563eb !important;
        border: 2px solid #2563eb !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 999 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
    }
    
    .products-carousel-tabs-v5 .product a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .product a.button.add_to_cart_button::before,
    .section-products-carousel .product a.button.add_to_cart_button::before,
    .products-carousel-tabs-v5 .owl-item a.button.add_to_cart_button::before,
    .home-v2-categories-products-carousel .owl-item a.button.add_to_cart_button::before,
    .section-products-carousel .owl-item a.button.add_to_cart_button::before {
        color: #2563eb !important;
    }
    
    .products-carousel-tabs-v5 .product a.button.add_to_cart_button:hover,
    .home-v2-categories-products-carousel .product a.button.add_to_cart_button:hover,
    .section-products-carousel .product a.button.add_to_cart_button:hover,
    .products-carousel-tabs-v5 .owl-item a.button.add_to_cart_button:hover,
    .home-v2-categories-products-carousel .owl-item a.button.add_to_cart_button:hover,
    .section-products-carousel .owl-item a.button.add_to_cart_button:hover {
        background: #2563eb !important;
        background-color: #2563eb !important;
        border-color: #2563eb !important;
    }
    
    .products-carousel-tabs-v5 .product a.button.add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .product a.button.add_to_cart_button:hover::before,
    .section-products-carousel .product a.button.add_to_cart_button:hover::before,
    .products-carousel-tabs-v5 .owl-item a.button.add_to_cart_button:hover::before,
    .home-v2-categories-products-carousel .owl-item a.button.add_to_cart_button:hover::before,
    .section-products-carousel .owl-item a.button.add_to_cart_button:hover::before {
        color: #fff !important;
    }
    
    /* Ensure price stays on left */
    .products-carousel-tabs-v5 .products.owl-carousel .product .price-add-to-cart .price,
    .home-v2-categories-products-carousel .products.owl-carousel .product .price-add-to-cart .price,
    .section-products-carousel .products.owl-carousel .product .price-add-to-cart .price,
    .products-carousel-tabs-v5 .owl-item .product .price-add-to-cart .price,
    .home-v2-categories-products-carousel .owl-item .product .price-add-to-cart .price,
    .section-products-carousel .owl-item .product .price-add-to-cart .price {
        flex: 1 !important;
        margin-right: 10px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Ensure hover-area doesn't interfere with button layout */
    /* CRITICAL: Maintain fixed height to prevent layout shift */
    .products-carousel-tabs-v5 .products.owl-carousel .product .hover-area,
    .home-v2-categories-products-carousel .products.owl-carousel .product .hover-area,
    .section-products-carousel .products.owl-carousel .product .hover-area,
    .products-carousel-tabs-v5 .owl-item .product .hover-area,
    .home-v2-categories-products-carousel .owl-item .product .hover-area,
    .section-products-carousel .owl-item .product .hover-area {
        margin-top: 8px !important;
        padding-top: 0.214em !important;
        padding-bottom: 0 !important;
        border-top: 1px solid #eaeaea !important;
        /* CRITICAL: Fixed height prevents layout shift */
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* CRITICAL: Ensure sections are centered and properly aligned */
    .products-carousel-tabs-v5,
    .section-products-carousel,
    .home-v2-categories-products-carousel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure carousel containers are centered */
    .products-carousel-tabs-v5 > div,
    .section-products-carousel > div,
    .home-v2-categories-products-carousel > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Additional detailed centering for random category sections */
    .section-products-carousel section,
    .section-products-carousel .section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================
   Brands Carousel - Horizontal Mobile Layout
   ============================================ */
@media (max-width: 991.98px) {
    /* Brands carousel section */
    .brands-carousel {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    .brands-carousel .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* CRITICAL: Force horizontal layout - override any grid/vertical layouts */
    #owl-brands,
    #owl-brands.owl-carousel,
    .owl-brands,
    .owl-brands.owl-carousel,
    .brands-carousel .owl-carousel,
    .brands-carousel .owl-brands {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding: 1em 0 !important;
        margin: 0 !important;
        position: relative !important;
        /* Prevent grid/vertical conversion */
        grid-template-columns: none !important;
        display: block !important;
    }
    
    /* Make owl-stage-outer scrollable */
    #owl-brands .owl-stage-outer,
    .owl-brands .owl-stage-outer,
    .brands-carousel .owl-stage-outer {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        position: relative !important;
    }
    
    /* CRITICAL: Force owl-stage to stay horizontal - override any grid */
    #owl-brands .owl-stage,
    .owl-brands .owl-stage,
    .brands-carousel .owl-stage {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        min-width: 100% !important;
        transform: none !important;
        position: relative !important;
        /* Override any grid display */
        grid-template-columns: none !important;
        grid: none !important;
    }
    
    /* CRITICAL: Force owl-item to stay horizontal - prevent vertical stacking */
    #owl-brands .owl-item,
    .owl-brands .owl-item,
    .brands-carousel .owl-item {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 120px !important;
        max-width: none !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        /* Prevent vertical stacking */
        clear: none !important;
        /* Override any grid item behavior */
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    /* Brand item styling */
    #owl-brands .item,
    .owl-brands .item,
    .brands-carousel .item {
        width: 100% !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
        margin: 0 !important;
    }
    
    #owl-brands .item figure,
    .owl-brands .item figure,
    .brands-carousel .item figure {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    #owl-brands .item figure img,
    .owl-brands .item figure img,
    .brands-carousel .item figure img {
        max-width: 100% !important;
        max-height: 50px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Hide navigation on mobile for brands */
    #owl-brands .owl-nav,
    .owl-brands .owl-nav,
    .brands-carousel .owl-nav {
        display: none !important;
    }
    
    /* Hide dots on mobile for brands */
    #owl-brands .owl-dots,
    .owl-brands .owl-dots,
    .brands-carousel .owl-dots {
        display: none !important;
    }
    
    /* Add scroll indicator hint */
    #owl-brands::after,
    .owl-brands::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
        z-index: 1;
    }
}

/* Small mobile - adjust brands carousel */
@media (max-width: 767.98px) {
    #owl-brands .owl-item,
    .owl-brands .owl-item,
    .brands-carousel .owl-item {
        min-width: 100px !important;
        padding: 0 8px !important;
    }
    
    #owl-brands .item,
    .owl-brands .item,
    .brands-carousel .item {
        height: 50px !important;
        padding: 8px !important;
    }
    
    #owl-brands .item figure img,
    .owl-brands .item figure img,
    .brands-carousel .item figure img {
        max-height: 40px !important;
    }
}

/* Fix WooCommerce Star Font 404 Error - Prevent loading from plugins/woocommerce */
/* Override ALL possible font-face declarations for star font */
@font-face {
    font-family: 'star' !important;
    src: url('data:application/x-font-ttf;charset=utf-8;base64,') format('truetype') !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-display: swap !important;
}

@font-face {
    font-family: 'WooCommerce' !important;
    src: url('data:application/x-font-ttf;charset=utf-8;base64,') format('truetype') !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-display: swap !important;
}

/* Ensure star ratings don't reference missing font files */
.star-rating,
.star-rating::before,
.star-rating::after,
.star-rating span::before,
.star-rating span::after,
.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce .star-rating::after {
    font-family: inherit !important;
    font-style: normal !important;
    font-weight: normal !important;
}
