/*
Theme Name: Verdeno Garden
Description: A beautiful garden and plant shop WordPress theme
Version: 1.0
Author: Your Name
*/

/* Hero Section - True Full Width Edge-to-Edge */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#section-intro {
    min-height: 100vh; /* Full viewport height */
    height: auto;
    width: 100vw; /* Full viewport width */
    margin: 0; /* Remove all margins */
    padding: 0; /* Remove all padding */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Tablet specific height override */
@media (max-width: 991px) and (min-width: 768px) {
    #section-intro {
        min-height: 110vh !important; /* Reduced height - less top space for wide images */
    }
}

#section-intro .swiper,
#section-intro .swiper-container {
    height: 100vh;
    min-height: 600px; /* Minimum height fallback */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tablet specific swiper height override */
@media (max-width: 991px) and (min-width: 768px) {
    #section-intro .swiper,
    #section-intro .swiper-container {
        height: 110vh !important;
        min-height: 110vh !important;
    }
}

/* Hide pagination completely */
#section-intro .swiper-pagination {
    display: none !important;
}

/* CRITICAL: Hide any remaining spacer elements that cause cumulative spacing */
#section-intro .spacer-double,
#section-intro .spacer-single {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Responsive static spacing adjustments */
@media (max-width: 991px) and (min-width: 768px) {
    #section-intro .swiper-slide .sw-caption {
        padding-top: 60px !important; /* Smaller spacing on tablet */
    }
}

@media (max-width: 767px) {
    #section-intro .swiper-slide .sw-caption {
        padding-top: 40px !important; /* Even smaller spacing on mobile */
    }
}

/* Ensure no container constraints */
#section-intro * {
    box-sizing: border-box;
}

/* Ensure all hero elements use full width */
#section-intro .v-center {
    width: 100%;
}

#section-intro .swiper-slide {
    height: 100vh;
    min-height: 600px;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Basic positioning */
    position: relative !important;
}

/* Override swiper-slide for tablet layout - USE STATIC TOP SPACING */
@media (max-width: 991px) and (min-width: 768px) {
    #section-intro .swiper-slide,
    #section-intro .swiper-slide-active,
    #section-intro .swiper-slide-next,
    #section-intro .swiper-slide-prev {
        height: auto !important;
        min-height: 110vh !important; /* Reduced height - less top space for wide images */
        align-items: flex-start !important; /* STATIC positioning from top */
        /* Allow Swiper to handle transitions */
    }
    
    /* Ensure all slides have consistent spacing */
    #section-intro .swiper-slide .row,
    #section-intro .swiper-slide-active .row,
    #section-intro .swiper-slide-next .row,
    #section-intro .swiper-slide-prev .row {
        padding: 100px 20px 40px 20px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        /* Basic positioning */
        position: relative !important;
    }
}

/* Full width for slide backgrounds - OVERRIDE assets/css/style.css */
#section-intro .swiper-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any potential wrapper constraints */
.wrapper, .main-wrapper, .content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Ensure container-fluid has no margins but proper content padding */
#section-intro .container-fluid {
    margin: 0 !important;
    padding: 0 40px !important; /* Add proper padding for content readability */
    max-width: 100% !important;
    width: 100% !important;
}

/* Override container-fluid for tablet layout - USE STATIC TOP SPACING */
@media (max-width: 991px) and (min-width: 768px) {
    #section-intro .container-fluid {
        height: auto !important;
        min-height: 110vh !important; /* Reduced height - less top space for wide images */
        display: flex !important;
        align-items: flex-start !important; /* STATIC positioning from top */
        padding: 0 20px !important;
    }
}

#section-intro .swiper-inner {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Ensure v-center works properly */
#section-intro .v-center {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Override v-center for tablet layout - USE STATIC TOP SPACING */
@media (max-width: 991px) and (min-width: 768px) {
    #section-intro .v-center {
        height: auto !important;
        min-height: 110vh !important; /* Reduced height - less top space for wide images */
        align-items: flex-start !important; /* STATIC positioning from top */
    }
}

/* Slide content layout - OVERRIDE assets/css/style.css */
#section-intro .swiper-slide .sw-caption {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative !important;
    z-index: 10;
    /* CRITICAL: Override Designesia's centering that causes cumulative spacing */
    top: 0 !important;
    transform: none !important;
    /* Add static top spacing that doesn't accumulate */
    padding-top: 80px !important;
}

#section-intro .swiper-slide .container {
    width: 100%;
    height: auto;
}

/* Ensure jarallax wrapper doesn't constrain height or width */
#section-intro .jarallax {
    height: 100% !important;
    min-height: 600px !important;
    width: 100% !important;
}

/* Full width background images */
#section-intro .jarallax-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Video background full coverage */
#section-intro .video-bg {
    height: 100% !important;
    min-height: 600px !important;
    width: 100% !important;
}

#section-intro .video-bg video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Gradient background full coverage */
#section-intro .gradient-bg {
    height: 100% !important;
    min-height: 600px !important;
    width: 100% !important;
}

/* OLD Tablet Optimization - DISABLED to prevent conflicts */
/* This section was causing conflicts with our new tablet layout */
/*
@media (max-width: 992px) and (min-width: 769px) {
    #section-intro {
        min-height: 80vh;
        height: auto;
    }
    
    #section-intro .swiper,
    #section-intro .swiper-container,
    #section-intro .swiper-slide,
    #section-intro .v-center {
        min-height: 80vh;
        height: auto;
    }
    
    #section-intro .container-fluid {
        padding: 0 30px !important;
    }
    
    #section-intro .row {
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Tablet: Text content first, then image */
    /*#section-intro .col-lg-5 {
        order: 1;
        padding: 20px !important;
        text-align: center;
    }
*/
    
    /*#section-intro .col-lg-6 {
        order: 2;
        padding: 10px 20px !important;
    }
    
    /* Tablet typography adjustments */
    /*#section-intro .slider-title {
        font-size: 2.5rem !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
    }
    
    #section-intro .subtitle {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    #section-intro .slider-text {
        font-size: 16px !important;
        margin-bottom: 25px !important;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    #section-intro .btn-main {
        padding: 12px 35px !important;
        font-size: 14px !important;
    }
}*/

/* Mobile Optimization (767px and below) */
@media (max-width: 767px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    #section-intro {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        left: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        min-height: 100vh;
        height: auto;
    }
    
    #section-intro .swiper,
    #section-intro .swiper-container,
    #section-intro .swiper-slide,
    #section-intro .v-center {
        width: 100% !important;
        min-height: 100vh;
        height: auto;
    }
    
    #section-intro .swiper-slide {
        height: auto;
        min-height: 100vh;
    }
    
    #section-intro .jarallax,
    #section-intro .video-bg,
    #section-intro .gradient-bg {
        min-height: 100vh !important;
        width: 100% !important;
    }
    
    /* Mobile layout: Image first, then text */
    #section-intro .container-fluid {
        padding: 0 20px !important;
        min-height: 100vh; /* Use min-height instead of fixed height */
        height: auto; /* Allow height to grow for tall images */
        display: flex;
        align-items: center;
    }
    
    #section-intro .row {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0;
    }
    
    #section-intro .col-lg-6 {
        order: 1 !important; /* Image first on mobile */
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        margin-bottom: 20px;
    }
    
    #section-intro .col-lg-5 {
        order: 2 !important; /* Text second on mobile */
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        text-align: center;
    }
    
    /* Mobile typography optimizations */
    #section-intro .slider-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    #section-intro .subtitle {
        font-size: 12px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px !important;
        opacity: 0.8;
    }
    
    #section-intro .slider-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        opacity: 0.9;
    }
    
    #section-intro .btn-main {
        padding: 12px 30px !important;
        font-size: 13px !important;
        margin-top: 10px;
    }
    
    /* Remove excessive spacing on mobile */
    #section-intro .spacer-double,
    #section-intro .spacer-single {
        display: none !important;
    }
}

/* Small Mobile Optimization (480px and below) */
@media (max-width: 480px) {
    #section-intro {
        min-height: 100vh !important;
    }
    
    #section-intro .swiper,
    #section-intro .swiper-container,
    #section-intro .swiper-slide,
    #section-intro .v-center {
        min-height: 100vh !important;
    }
    
    #section-intro .container-fluid {
        padding: 0 15px !important;
    }
    
    #section-intro .col-lg-6 {
        padding: 5px 10px !important;
        margin-bottom: 15px;
    }
    
    #section-intro .col-lg-5 {
        padding: 0 10px !important;
    }
    
    /* Small mobile typography */
    #section-intro .slider-title {
        font-size: 1.75rem !important;
        margin-bottom: 12px !important;
    }
    
    #section-intro .subtitle {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    #section-intro .slider-text {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    #section-intro .btn-main {
        padding: 10px 25px !important;
        font-size: 12px !important;
    }
}

/* Hero Section - Absolute Positioning Layout */
#section-intro .sw-caption {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important; /* Allow tall images to be visible */
}

/* Disable flex layout for absolute positioning */
#section-intro .row {
    display: block !important; /* Override Bootstrap flex */
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Text - Absolute Positioning (Top Layer) */
#section-intro .col-lg-5,
#section-intro .col-lg-4 {
    position: absolute !important;
    left: 80px !important; /* Fixed left position */
    top: 35% !important; /* Move higher up */
    transform: translateY(-50%) !important; /* Perfect vertical centering */
    width: 480px !important; /* Fixed width for text area */
    max-width: 40% !important; /* Responsive constraint */
    z-index: 20 !important; /* Above image */
    
    /* Clean design - no background decorations */
    background: transparent !important;
    padding: 40px !important;
}

/* Hero Product Image - Absolute Positioning (Bottom Layer) */
#section-intro .col-lg-6,
#section-intro .col-lg-7 {
    position: absolute !important;
    right: 100px !important; /* Breathing room from right edge */
    top: 50% !important; /* Vertical center */
    transform: translateY(-50%) !important; /* Perfect vertical centering */
    width: auto !important; /* Auto width - expands left as needed */
    max-width: 65% !important; /* Maximum width constraint */
    z-index: 10 !important; /* Below text */
}

#section-intro .col-lg-6 img.w-100,
#section-intro .col-lg-7 img.w-100 {
    width: auto !important; /* Natural width */
    height: 60vh !important; /* Fixed height - scales proportionally */
    max-height: 600px !important; /* Maximum height */
    min-height: 400px !important; /* Minimum height */
    object-fit: contain !important; /* Maintain aspect ratio */
    object-position: center right !important; /* Align to right */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive Adjustments for Absolute Layout */
@media (max-width: 1200px) {
    /* Text container adjustments */
    #section-intro .col-lg-5,
    #section-intro .col-lg-4 {
        left: 60px !important;
        width: 420px !important;
        max-width: 38% !important;
        padding: 35px !important;
    }
    
    /* Image container adjustments */
    #section-intro .col-lg-6,
    #section-intro .col-lg-7 {
        right: 80px !important; /* Less spacing on large screens */
    }
    
    /* Image adjustments */
    #section-intro .col-lg-6 img.w-100,
    #section-intro .col-lg-7 img.w-100 {
        height: 55vh !important;
        max-height: 550px !important;
        min-height: 380px !important;
    }
}

/* Tablet Layout - Stacked Layout */
@media (max-width: 991px) and (min-width: 768px) {
    
    /* Use STATIC top spacing approach for consistent layout */
    /* Convert to stacked layout on tablet */
    #section-intro .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important; /* STATIC top spacing - doesn't change with image size */
        min-height: 110vh !important; /* REDUCED HEIGHT - less top space for wide images */
        height: auto !important; /* Allow height to grow for tall images */
        padding: 100px 20px 40px 20px !important; /* FIXED top padding - consistent spacing */
    }
    
    /* Text container - top position */
    #section-intro .col-lg-5,
    #section-intro .col-lg-4 {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        z-index: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        order: 1 !important; /* Text first */
        margin-bottom: 15px !important; /* Slightly more margin for better spacing from top */
        padding: 20px !important;
    }
    
    /* Image container - bottom position */
    #section-intro .col-lg-6,
    #section-intro .col-lg-7 {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        z-index: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        order: 2 !important; /* Image second */
        margin-top: -10px !important; /* Slight pull up, but less aggressive for tablet */
        min-height: 250px !important; /* Ensure container has minimum height */
        display: flex !important; /* Flex for better image centering */
        align-items: flex-start !important; /* Align image to top of container */
        justify-content: center !important; /* Center images horizontally */
    }
    
    /* Tablet text styling */
    #section-intro .sw-text-wrapper {
        text-align: center !important;
        background: transparent !important;
        padding: 20px !important; /* Add padding for better text spacing */
        margin: 0 auto !important;
        max-width: 600px !important;
    }
    
    /* Tablet text sizes */
    #section-intro .sw-text-wrapper .subtitle {
        font-size: 1.1rem !important;
    }
    
    #section-intro .sw-text-wrapper h2 {
        font-size: 2.8rem !important;
        margin-bottom: 20px !important;
    }
    
    #section-intro .sw-text-wrapper p {
        font-size: 1.1rem !important;
        margin-bottom: 25px !important;
    }
    
    /* Tablet button */
    #section-intro .sw-text-wrapper .btn-main {
        padding: 16px 35px !important;
        font-size: 1rem !important;
    }
    
    /* Tablet image styling */
    #section-intro .col-lg-6 img.w-100,
    #section-intro .col-lg-7 img.w-100 {
        width: 90% !important; /* Much larger for wide images */
        height: auto !important;
        max-width: 700px !important; /* Increased max width for wide images */
        max-height: 70vh !important; /* Add max height for tall images */
        min-height: 200px !important; /* Ensure minimum visibility */
        object-fit: contain !important; /* Ensure full image is visible */
        object-position: center !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Mobile Layout - Text on Top of Products */
@media (max-width: 767px) {
    /* Force override Swiper styles on mobile */
    #section-intro .swiper-slide,
    #section-intro .swiper-slide-active,
    #section-intro .swiper-slide-next,
    #section-intro .swiper-slide-prev {
        transform: none !important;
        transition-duration: 0ms !important;
        opacity: 1 !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }
    
    /* Stacked layout on mobile */
    #section-intro .row,
    #section-intro .swiper-slide .row,
    #section-intro .swiper-slide-active .row,
    #section-intro .swiper-slide-next .row,
    #section-intro .swiper-slide-prev .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important; /* STATIC top spacing - doesn't change with image size */
        min-height: 100vh !important; /* Use viewport height - consistent per slide */
        height: auto !important; /* Allow height to grow for tall images */
        padding: 80px 15px 40px 15px !important; /* FIXED top padding - consistent spacing */
        position: relative !important;
    }
    
    /* Text container - positioned on top */
    #section-intro .col-lg-5,
    #section-intro .col-lg-4 {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        z-index: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        order: 1 !important; /* Text first */
        margin-bottom: 5px !important; /* Minimal margin to bring image closer */
        padding: 0 !important;
    }
    
    /* Image container - positioned below text */
    #section-intro .col-lg-6,
    #section-intro .col-lg-7 {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        z-index: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        order: 2 !important; /* Image second */
        margin-top: -15px !important; /* Pull image up closer to text */
        padding: 0 !important;
        min-height: 200px !important; /* Ensure container has minimum height */
        display: flex !important; /* Flex for better image centering */
        align-items: flex-start !important; /* Align image to top of container */
        justify-content: center !important; /* Center images horizontally */
    }
    
    /* Mobile text styling */
    #section-intro .sw-text-wrapper {
        background: transparent !important;
        padding: 20px !important;
        margin: 0 auto !important;
        text-align: center !important;
        max-width: 500px !important;
    }
    
    /* Mobile text sizes */
    #section-intro .sw-text-wrapper .subtitle {
        font-size: 1.1rem !important;
    }
    
    #section-intro .sw-text-wrapper h2 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
    }
    
    #section-intro .sw-text-wrapper p {
        font-size: 1.1rem !important;
        margin-bottom: 25px !important;
    }
    
    /* Mobile button */
    #section-intro .sw-text-wrapper .btn-main {
        padding: 16px 35px !important;
        font-size: 1rem !important;
    }
    
    /* Mobile image styling - ENSURE VISIBILITY */
    #section-intro .col-lg-6 img.w-100,
    #section-intro .col-lg-7 img.w-100 {
        width: 90% !important; /* Much larger for wide images */
        height: auto !important;
        max-width: 550px !important; /* Increased max width for wide images */
        max-height: 60vh !important; /* Add max height for tall images */
        min-height: 180px !important; /* Ensure minimum visibility for tall images */
        object-fit: contain !important; /* Ensure full image is visible */
        object-position: center !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Small Mobile Layout */
@media (max-width: 480px) {
    /* Allow Swiper to handle slide positioning on mobile */
    
    #section-intro .row {
        min-height: 100vh !important; /* Use viewport height - consistent per slide */
        height: auto !important; /* Allow height to grow for tall images */
        justify-content: flex-start !important; /* STATIC top spacing - doesn't change with image size */
        padding: 60px 10px 30px 10px !important; /* FIXED top padding - consistent spacing */
        transform: none !important;
        position: relative !important;
    }
    
    #section-intro .sw-text-wrapper {
        margin: 0 auto !important;
        padding: 15px !important;
        max-width: 400px !important;
    }
    
    /* Small mobile text sizes */
    #section-intro .sw-text-wrapper .subtitle {
        font-size: 1rem !important;
    }
    
    #section-intro .sw-text-wrapper h2 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }
    
    #section-intro .sw-text-wrapper p {
        font-size: 1rem !important;
    }
    
    #section-intro .sw-text-wrapper .btn-main {
        padding: 14px 30px !important;
        font-size: 0.95rem !important;
    }
    
    /* Small mobile image styling - ENSURE VISIBILITY */
    #section-intro .col-lg-6 img.w-100,
    #section-intro .col-lg-7 img.w-100 {
        width: 85% !important; /* Much larger for wide images */
        height: auto !important;
        max-width: 450px !important; /* Increased max width for wide images */
        max-height: 50vh !important; /* Add max height for tall images */
        min-height: 150px !important; /* Ensure minimum visibility for tall images */
        object-fit: contain !important; /* Ensure full image is visible */
        object-position: center !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Hero Text Content Styling - Absolute Positioned */
#section-intro .sw-text-wrapper {
    padding: 0 !important; /* No extra padding needed */
}

/* Clean text styling - larger sizes */
#section-intro .sw-text-wrapper .subtitle {
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 1.3rem !important; /* Larger subtitle */
    margin-bottom: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important; /* Strong shadow for readability */
}

#section-intro .sw-text-wrapper h2 {
    color: #2c3e50 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important; /* Strong shadow for contrast */
    margin-bottom: 25px !important;
    font-weight: 700 !important;
    font-size: 3.2rem !important; /* Much larger heading */
    line-height: 1.2 !important;
}

#section-intro .sw-text-wrapper p {
    color: #444 !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; /* Shadow for readability */
    font-weight: 500 !important;
    font-size: 1.2rem !important; /* Larger paragraph text */
}

#section-intro .sw-text-wrapper .btn-main {
    /* Larger button styling */
    padding: 18px 40px !important; /* Much larger padding */
    font-size: 1.1rem !important; /* Larger font */
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}

#section-intro .sw-text-wrapper .btn-main:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    padding: 20px 45px !important; /* Even larger on hover */
}





/* Category Section - Consistent Layout Styling */
.category-card {
    min-height: 280px; /* Ensure consistent card height */
    display: flex;
    align-items: center;
}

.category-card .row {
    width: 100%;
    min-height: 200px; /* Consistent internal content height */
    align-items: center !important;
}

/* Category cards with images - standard text sizes */
.category-card.has-image span {
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.category-card.has-image h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.category-card.has-image .btn-main {
    padding: 10px 20px;
    font-size: 14px;
}

/* Category cards without images - larger text sizes to fill space */
.category-card.no-image span {
    font-size: 18px;
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.category-card.no-image h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
}

.category-card.no-image .btn-main {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* Tablet Optimization (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    /* Tablet - 1 card per row, full width */
    section.pb-0 .row.g-4 > div {
        flex: 0 0 100% !important; /* Full width for each card */
        max-width: 100% !important; /* Override Bootstrap column constraints */
        margin-bottom: 1.5rem !important; /* Space between rows */
    }
    
    .category-card {
        min-height: 280px;
        padding: 2rem !important; /* More padding since we have full width */
        max-width: 100% !important;
    }
    
    .category-card .row {
        min-height: 200px;
        gap: 2rem !important; /* More gap since we have more space */
    }
    
    /* FORCE FLEXBOX: Override Bootstrap grid completely for tablet */
    .category-card.has-image .row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
    }
    
    /* COMPLETELY REMOVE Bootstrap column behavior */
    .category-card.has-image .row > * {
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        width: auto !important;
        min-height: auto !important;
    }
    
    /* FORCE IMAGE LEFT - 40% */
    .category-card.has-image .row > *:first-child {
        flex: 0 0 40% !important;
        max-width: 40% !important;
        order: 1 !important;
        padding-right: 1rem !important; /* Some space between image and text */
    }
    
    /* FORCE TEXT RIGHT - 60% */
    .category-card.has-image .row > *:last-child {
        flex: 0 0 60% !important;
        max-width: 60% !important;
        order: 2 !important;
        text-align: left !important;
        padding-left: 1rem !important; /* Some space between image and text */
    }
    
    /* Reset mobile order properties and style tablet text elements */
    .category-card.has-image span {
        order: unset !important; /* Reset mobile order */
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .category-card.has-image h3 {
        order: unset !important; /* Reset mobile order */
        font-size: 1.6rem; /* Larger since we have full width */
        margin-bottom: 18px;
        line-height: 1.3;
    }
    
    .category-card.has-image .btn-main {
        order: unset !important; /* Reset mobile order */
        padding: 12px 24px; /* Larger padding for full width */
        font-size: 14px;
        min-height: 46px; /* Touch friendly */
    }
    
    .category-card.has-image img {
        order: unset !important; /* Reset mobile order */
    }
    
    /* Tablet without images - Center layout */
    .category-card.no-image .row {
        text-align: center !important;
    }
    
    .category-card.no-image span {
        font-size: 18px; /* Larger for full width */
        margin-bottom: 15px;
    }
    
    .category-card.no-image h3 {
        font-size: 2.4rem; /* Larger for full width */
        margin-bottom: 25px;
        line-height: 1.2;
    }
    
    .category-card.no-image .btn-main {
        padding: 15px 32px; /* Larger for full width */
        font-size: 16px;
        min-height: 48px; /* Touch friendly */
    }
    
    /* Image optimization for tablet - larger since full width */
    .category-card img {
        max-height: 180px; /* Larger for full width cards */
        max-width: 200px; /* Larger max width */
        object-fit: cover;
        object-position: center;
    }
}

/* Mobile Optimization (767px and below) */
@media (max-width: 767px) {
    .category-card {
        min-height: auto !important; /* Remove fixed height for better mobile flow */
        margin-bottom: 1.5rem; /* More space between cards */
        padding: 1.5rem !important; /* Better padding */
    }
    
    .category-card .row {
        min-height: auto !important; /* Remove fixed height */
        gap: 1rem !important;
        flex-direction: column !important; /* Stack vertically on mobile */
        text-align: center !important; /* Center align all content */
    }
    
    /* Mobile with images - Vertical layout */
    .category-card.has-image .row {
        align-items: center !important;
    }
    
    .category-card.has-image span {
        font-size: 13px;
        margin-bottom: 8px;
        order: 1; /* Text first */
    }
    
    .category-card.has-image h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        line-height: 1.3;
        order: 2; /* Title second */
    }
    
    .category-card.has-image .btn-main {
        padding: 12px 25px;
        font-size: 14px;
        min-height: 48px; /* Better touch target */
        order: 4; /* Button last */
        margin-top: 10px;
    }
    
    /* Mobile without images */
    .category-card.no-image span {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .category-card.no-image h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.25;
    }
    
    .category-card.no-image .btn-main {
        padding: 14px 30px;
        font-size: 15px;
        min-height: 48px; /* Better touch target */
        margin-top: 5px;
    }
    
    /* Image optimization for mobile - Move to center */
    .category-card img {
        height: auto;
        max-height: 140px !important;
        width: auto !important;
        max-width: 180px;
        object-fit: contain;
        object-position: center;
        order: 3; /* Image third */
        margin: 10px auto;
        display: block;
    }
    
    /* Override column classes on mobile */
    .category-card .row > div {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Small Mobile Optimization (480px and below) */
@media (max-width: 480px) {
    .category-card {
        min-height: auto !important;
        margin-bottom: 1rem;
        padding: 1.25rem !important; /* Reduce padding for smaller screens */
    }
    
    .category-card .row {
        min-height: auto !important;
        gap: 0.75rem !important;
    }
    
    /* Small mobile with images */
    .category-card.has-image span {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .category-card.has-image h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        line-height: 1.25;
    }
    
    .category-card.has-image .btn-main {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 44px;
        margin-top: 8px;
    }
    
    /* Small mobile without images */
    .category-card.no-image span {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .category-card.no-image h3 {
        font-size: 1.6rem;
        margin-bottom: 16px;
        line-height: 1.2;
    }
    
    .category-card.no-image .btn-main {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
        margin-top: 5px;
    }
    
    /* Smaller images on very small screens */
    .category-card img {
        max-height: 120px !important;
        max-width: 160px;
    }
}

/* Section-level mobile optimizations */
@media (max-width: 767px) {
    /* Category section spacing - target the specific section */
    section.pb-0 {
        padding: 40px 0 20px 0 !important; /* Add section padding on mobile */
    }
    
    section.pb-0 .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    section.pb-0 .row.g-4 {
        gap: 1rem !important; /* Better spacing between category cards */
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    
    section.pb-0 .row.g-4 > div {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Tablet section layout improvements */
@media (min-width: 768px) and (max-width: 992px) {
    section.pb-0 {
        padding: 60px 0 40px 0 !important; /* Better section spacing */
    }
    
    section.pb-0 .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    section.pb-0 .row.g-4 {
        gap: 0 !important; /* Remove gap since we're using margin-bottom */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    section.pb-0 .row.g-4 > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Touch improvements for all mobile devices */
@media (max-width: 767px) {
    .category-card .btn-main {
        touch-action: manipulation; /* Improve touch responsiveness */
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    .category-card:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .category-card .hover-scale-1-1:hover {
        transform: none; /* Disable image hover scaling on mobile */
    }
    
    /* Improved touch feedback */
    .category-card .btn-main:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ===== MARQUEE SECTION ===== */

.marquee-section {
    padding: 15px 0;
    margin: 100px 0; /* Reduced default margin for better mobile spacing */
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    width: 100%;
    max-width: 100vw; /* Prevent section from causing horizontal scroll */
}

.marquee-container {
    position: relative;
    width: 100%;
    max-width: 100vw; /* Prevent horizontal overflow */
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0px; /* No gap between tracks for consistent spacing */
    overflow: hidden; /* Prevent content overflow */
}

/* Base marquee track styles */
.marquee-track {
    position: relative;
    width: 100%;
    height: 50px;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Left marquee track - Light green theme */
.marquee-track-left {
    background-color: #E1EBE2;
    margin: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2px; /* Small consistent gap */
}

/* Right marquee track - Dark green theme */
.marquee-track-right {
    background-color: #354E34;
    margin: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Match left track shadow */
}

/* jQuery Marquee Plugin Base Styles */
.de-marquee-list,
.de-marquee-list-2 {
    width: 100% !important;
    max-width: 100vw !important; /* Prevent viewport overflow */
    height: 50px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* Fix for marquee plugin wrapper */
.de-marquee-list .js-marquee-wrapper,
.de-marquee-list-2 .js-marquee-wrapper {
    width: auto !important;
    display: inline-block !important;
}

/* Left marquee track - Light green background */
.marquee-track-left {
    background-color: #E1EBE2 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Right marquee track - Dark green background */
.marquee-track-right {
    background-color: #354E34 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Match left track shadow */
}

/* All marquee text styling */
.de-marquee-list span,
.de-marquee-list-2 span {
    display: inline-block !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    line-height: 50px !important;
    margin: 0 !important;
    padding: 0 25px !important; /* Increased padding for better spacing */
    vertical-align: top !important;
    white-space: nowrap !important;
}

/* Plugin generated elements */
.de-marquee-list .js-marquee,
.de-marquee-list-2 .js-marquee {
    display: inline-block !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    line-height: 50px !important;
    margin: 0 !important;
    padding: 0 25px !important; /* Match span padding */
    vertical-align: top !important;
    white-space: nowrap !important;
    float: left !important;
}

/* Force continuous animation */
.de-marquee-list .js-marquee-wrapper,
.de-marquee-list-2 .js-marquee-wrapper {
    animation-iteration-count: infinite !important;
    will-change: transform !important;
}

/* Left marquee specific text color */
.marquee-track-left span,
.marquee-track-left .js-marquee {
    color: #354E34 !important;
    font-size: 2rem !important;
}

/* Right marquee specific text color */
.marquee-track-right span,
.marquee-track-right .js-marquee {
    color: #ffffff !important;
    font-size: 2rem !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

/* Fix for plugin-generated elements */
.js-marquee-wrapper {
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Ensure all plugin elements maintain styling */
.de-marquee-list *,
.de-marquee-list-2 * {
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Tablet specific marquee adjustments */
@media (max-width: 991px) and (min-width: 768px) {
    .marquee-section {
        padding: 15px 0;
        margin: 80px 0; /* Reduced margin for tablet */
    }
    
    .marquee-container {
        height: auto;
        gap: 0px; /* No gap for consistent spacing */
    }
    
    .de-marquee-list,
    .de-marquee-list-2 {
        height: 45px !important;
        line-height: 45px !important;
    }
    
    .marquee-track-left span,
    .marquee-track-right span,
    .marquee-track-left .js-marquee,
    .marquee-track-right .js-marquee {
        font-size: 1.6rem !important; /* Slightly smaller for tablet */
        line-height: 45px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Mobile specific marquee adjustments */
@media (max-width: 767px) {
    .marquee-section {
        padding: 10px 0;
        margin: 60px 0; /* Much smaller margin for mobile */
    }
    
    .marquee-container {
        height: auto;
        gap: 0px; /* No gap for consistent spacing */
    }
    
    .de-marquee-list,
    .de-marquee-list-2 {
        height: 38px !important;
        line-height: 38px !important;
    }
    
    .marquee-track-left span,
    .marquee-track-right span,
    .marquee-track-left .js-marquee,
    .marquee-track-right .js-marquee {
        font-size: 1.25rem !important; /* Better mobile readability */
        line-height: 38px !important;
        letter-spacing: 0.3px !important;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .marquee-section {
        padding: 8px 0;
        margin: 40px 0; /* Even smaller margin for very small screens */
    }
    
    .marquee-container {
        height: auto;
        gap: 0px; /* No gap for consistent spacing */
    }
    
    .de-marquee-list,
    .de-marquee-list-2 {
        height: 32px !important;
        line-height: 32px !important;
    }
    
    .marquee-track-left span,
    .marquee-track-right span,
    .marquee-track-left .js-marquee,
    .marquee-track-right .js-marquee {
        font-size: 1.1rem !important; /* Smaller for tiny screens */
        line-height: 32px !important;
        letter-spacing: 0.2px !important;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .de-marquee-list,
    .de-marquee-list-2,
    .de-marquee-list *,
    .de-marquee-list-2 * {
        animation-play-state: paused !important;
        animation: none !important;
    }
}

/* Hero text elements spacing */
#section-intro h1,
#section-intro .hero-title {
    margin-bottom: 20px !important;
}

#section-intro .hero-subtitle {
    margin-bottom: 15px !important;
}

#section-intro .hero-description,
#section-intro p {
    margin-bottom: 25px !important;
    padding-right: 20px !important;
}

/* Hero buttons spacing */
#section-intro .btn,
#section-intro .button {
    margin: 10px 20px 10px 0 !important;
    padding: 12px 30px !important;
}

/* Info cards positioning and spacing */
#section-intro .info-card {
    margin: 15px !important;
    padding: 20px !important;
}

#section-intro .info-card-small {
    margin: 10px !important;
    padding: 15px !important;
}

/* Product image spacing */
#section-intro .hero-product-image {
    padding: 20px !important;
}

/* Custom spacing for product carousels */
.owl-carousel .owl-item {
    padding-left: 15px;
    padding-right: 15px;
}

.owl-carousel .owl-stage {
    padding-left: 0;
    padding-right: 0;
}

/* New Arrivals Section - Fixed Product Cards with Minimal Gaps */
.product-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0; /* Remove default gaps */
    padding: 0 10px; /* Small padding on container sides only */
}

.product-carousel .item {
    width: 100% !important;
    flex: 1 1 auto !important;
    margin: 0 2px !important; /* Minimal gap for thin line effect */
}

.product-carousel .de__pcard {
    width: 100%;
    max-width: 380px; /* Slightly narrower than full width */
    margin: 0 auto; /* Center the card */
    background: transparent; /* Card has no background - only image area has background */
    padding: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: auto;
    box-sizing: border-box;
    position: relative;
}

.product-carousel .de__pcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Sale Badge Styling */
.product-carousel .atr__promo {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #4A6741;
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Fixed Square Image Container - Clean without background color */
.product-carousel .atr__images {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 280px; /* Reduced height for smaller cards */
    margin-bottom: 12px;
    display: block;
    padding: 0;
    /* Background color will be applied via inline style from customizer */
}

/* Image Fitting - No Stretching */
.product-carousel .atr__image-main {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Fit entire image without stretching */
    object-position: center !important; /* Center the image */
    transition: transform 0.3s ease;
    display: block;
}

.product-carousel .atr__images:hover .atr__image-main {
    transform: scale(1.05);
}

/* Product title styling - Fixed height for consistency */
.product-carousel .de__pcard h3 {
    margin: 15px 0 12px 0;
    font-size: 16px;
    line-height: 1.4;
    height: 44px; /* Fixed height for exactly 2 lines */
    overflow: hidden;
    text-align: center;
    color: #333;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-carousel .de__pcard h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.product-carousel .de__pcard h3 a:hover {
    color: #4A6741;
}

/* Rating section removed for cleaner look */

/* Price styling - Fixed positioning */
.product-carousel .atr__main-price {
    font-weight: 700;
    font-size: 18px;
    color: #333;
    text-align: center;
    height: 22px; /* Fixed height for consistency */
    line-height: 22px;
    margin-top: auto; /* Push price to bottom for consistent alignment */
}

/* Product Variations - Size Options */
.product-carousel .product-sizes {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 8px 0;
}

.product-carousel .size-option {
    background: white;
    border: 2px solid #ddd;
    color: #666;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 35px;
    text-align: center;
}

.product-carousel .size-option:hover,
.product-carousel .size-option.active {
    background: #4A6741;
    border-color: #4A6741;
    color: white;
}

/* Product Variations - Color Options */
.product-carousel .product-colors {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 12px 0;
}

.product-carousel .color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.product-carousel .color-option:hover,
.product-carousel .color-option.active {
    border-color: #4A6741;
    transform: scale(1.1);
}

/* Color swatches */
.product-carousel .color-option.white { background: #ffffff; }
.product-carousel .color-option.green { background: #8BC34A; }
.product-carousel .color-option.purple { background: #9C27B0; }
.product-carousel .color-option.gray { background: #757575; }
.product-carousel .color-option.black { background: #424242; }

/* Extra menu (hover actions) - Positioned at top right corner */
.product-carousel .de__pcard .atr__extra-menu {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: none !important;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-carousel .de__pcard .atr__images:hover .atr__extra-menu {
    opacity: 1;
    transform: none !important;
}

.product-carousel .de__pcard .atr__extra-menu > * {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.product-carousel .de__pcard .atr__extra-menu > *:hover {
    background: var(--primary-color, #4CAF50);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Ensure consistent card heights */
.product-carousel .de__pcard {
    display: flex;
    flex-direction: column;
    min-height: 320px; /* Compact height for smaller cards */
}

/* Responsive adjustments for product cards */
@media (max-width: 767px) {
    .product-carousel .item {
        width: 100% !important;
        flex: 1 1 auto !important;
        margin: 0 2px !important;
    }
    
    .product-carousel .de__pcard {
        max-width: 320px;
        padding: 15px;
        min-height: 320px;
    }
    
    .product-carousel .atr__images {
        height: 240px;
        margin-bottom: 10px;
    }
    
    .product-carousel .de__pcard h3 {
        font-size: 15px;
        margin: 12px 0 8px 0;
        height: 40px; /* 2 lines at smaller size */
    }
    
    .product-carousel .atr__main-price {
        font-size: 16px;
    }
    
    .product-carousel .size-option {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .product-carousel .color-option {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .product-carousel .item {
        width: 100% !important;
        flex: 1 1 auto !important;
        margin: 0 2px !important;
    }
    
    .product-carousel .de__pcard {
        max-width: 280px;
        padding: 12px;
        min-height: 280px;
    }
    
    .product-carousel .atr__images {
        height: 200px;
        margin-bottom: 8px;
    }
    
    .product-carousel .de__pcard h3 {
        font-size: 14px;
        margin: 10px 0 6px 0;
        height: 36px; /* 2 lines at smaller size */
    }
    
    .product-carousel .atr__main-price {
        font-size: 15px;
    }
    
    .product-carousel .size-option {
        padding: 4px 6px;
        font-size: 11px;
        min-width: 26px;
    }
    
    .product-carousel .color-option {
        width: 16px;
        height: 16px;
    }
    
    .product-carousel .de__pcard .atr__extra-menu > * {
        width: 32px;
        height: 32px;
    }
}

/* Specific spacing for product cards */
#new-arrivals-carousel .item,
#best-seller-carousel .item {
    margin-left: 5px;
    margin-right: 5px;
}

/* Product card spacing */
.de__pcard {
    margin-bottom: 30px;
}

/* Responsive spacing adjustments */
@media (max-width: 767px) {
    .owl-carousel .owl-item {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #new-arrivals-carousel .item,
    #best-seller-carousel .item {
        margin-left: 3px;
        margin-right: 3px;
    }
}

@media (min-width: 992px) {
    .owl-carousel .owl-item {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    #new-arrivals-carousel .item,
    #best-seller-carousel .item {
        margin-left: 8px;
        margin-right: 8px;
    }
}

/* Static display for carousels with few items */
.owl-carousel.static-display {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.owl-carousel.static-display .item {
    flex: 0 0 auto;
    width: calc(33.33% - 26.67px); /* 3 items with gap */
    display: block !important;
    margin: 0 !important;
}

/* Responsive static display */
@media (max-width: 991px) {
    .owl-carousel.static-display .item {
        width: calc(50% - 20px); /* 2 items */
    }
}

@media (max-width: 767px) {
    .owl-carousel.static-display .item {
        width: calc(50% - 15px); /* 2 items */
    }
    
    .owl-carousel.static-display {
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .owl-carousel.static-display .item {
        width: 100%; /* 1 item */
    }
    
    .owl-carousel.static-display {
        gap: 15px;
    }
}

/* ===== CLEAN SWIPER IMPLEMENTATION ===== */

/* Product Carousel Static Display */
.static-display {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.static-display .item {
    flex: 0 0 calc(33.33% - 26.67px); /* 3 items with gap */
    max-width: calc(33.33% - 26.67px);
    margin: 0 !important;
}

/* Simple Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    color: #333 !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-prev {
    left: 10px !important;
}

.swiper-button-next {
    right: 10px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #333;
    color: white !important;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: bold;
}

.swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.swiper-button-disabled:hover {
    background: white !important;
    color: #333 !important;
    transform: none !important;
}

/* Product Swiper Containers */
.swiper-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px; /* Reduced space since buttons are positioned inside */
}

.swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.swiper-slide .item {
    width: 100%;
    height: 100%;
}

/* Responsive Static Display */
@media (max-width: 991px) {
    .static-display .item {
        flex: 0 0 calc(50% - 20px); /* 2 items */
        max-width: calc(50% - 20px);
    }
    
    .static-display {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .static-display .item {
        flex: 0 0 calc(50% - 15px); /* Still 2 items on mobile */
        max-width: calc(50% - 15px);
    }
    
    .static-display {
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .static-display .item {
        flex: 0 0 100%; /* 1 item on very small screens */
        max-width: 100%;
    }
    
    .static-display {
        gap: 15px;
    }
    
    .swiper-container {
        padding: 0 15px; /* Smaller button space on mobile */
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
        margin-top: -17.5px !important;
    }
    
    .swiper-button-prev {
        left: 5px !important;
    }
    
    .swiper-button-next {
        right: 5px !important;
    }
}

/* ===== HERO SECTION LAYOUT TYPES ===== */

/* Video Background Layout */
.swiper-inner.video-bg {
    position: relative;
    overflow: hidden;
    min-height: 600px; /* Minimum height for video container */
}

.swiper-inner.video-bg .video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.swiper-inner.video-bg .sw-caption {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for readability */
    min-height: 600px; /* Ensure content area has proper height */
    display: flex;
    align-items: center;
}

/* Video background optimizations for mobile */
@media (max-width: 767px) {
    .swiper-inner.video-bg {
        min-height: 500px;
    }
    
    .swiper-inner.video-bg .sw-caption {
        min-height: 500px;
        background: rgba(0, 0, 0, 0.5); /* Stronger overlay on mobile */
    }
    
    /* Pause video on very small screens to save bandwidth */
    @media (max-width: 480px) {
        .swiper-inner.video-bg .video-bg {
            display: none;
        }
        
        .swiper-inner.video-bg {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
    }
}

/* Ensure video loads smoothly */
.swiper-inner.video-bg .video-bg {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.swiper-inner.video-bg .video-bg.loaded {
    opacity: 1;
}

/* Gradient Background Layout */
.swiper-inner.gradient-bg {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Varsayılan */
    min-height: 600px; /* Minimum yükseklik garanti et */
}

.swiper-inner.gradient-bg .sw-caption {
    position: relative;
    z-index: 2;
}

/* Önceden tanımlı gradyan stilleri */
.swiper-inner.gradient-bg.blue-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.swiper-inner.gradient-bg.green-teal {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.swiper-inner.gradient-bg.nature-green {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.swiper-inner.gradient-bg.sunset-orange {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.swiper-inner.gradient-bg.ocean-blue {
    background: linear-gradient(135deg, #667db6 0%, #0082c8 100%);
}

/* Gradyan arkaplanlar için ek görsel efektler */
.swiper-inner.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure text readability on all layout types */
.swiper-inner.video-bg .slider-title,
.swiper-inner.gradient-bg .slider-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.swiper-inner.video-bg .slider-text,
.swiper-inner.gradient-bg .slider-text {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.swiper-inner.video-bg .subtitle,
.swiper-inner.gradient-bg .subtitle {
    color: rgba(255,255,255,0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Navigation button disabled state */
.owl-custom-nav .btn-prev.disabled,
.owl-custom-nav .btn-next.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide owl nav buttons when using custom navigation */
.owl-carousel .owl-nav {
    display: none !important;
}

/* ===== ENHANCED MOBILE & TABLET OPTIMIZATION FOR PRODUCT SECTIONS ===== */

/* Mobile Optimizations for Product Cards (Keep Swiper, Optimize Visual Elements) */
@media (max-width: 767px) {
    /* Section padding adjustments */
    section[style*="padding: 60px 0"] {
        padding: 40px 0 !important;
    }
    
    /* Product card mobile optimization */
    .product-carousel .de__pcard {
        padding: 12px !important;
        height: auto !important;
    }
    
    .product-carousel .atr__images {
        height: 180px !important;
        margin-bottom: 10px !important;
    }
    
    /* Sale badge mobile sizing */
    .product-carousel .atr__promo {
        font-size: 10px !important;
        padding: 4px 8px !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    /* Product title mobile optimization */
    .product-carousel .atr__title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    /* Price mobile styling */
    .product-carousel .price {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    .product-carousel .price del {
        font-size: 0.85rem !important;
    }
    
    /* Section title mobile */
    .product-carousel h3,
    section h3.text-uppercase {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    /* Add to cart button mobile */
    .product-carousel .btn,
    .product-carousel .add_to_cart_button {
        font-size: 0.85rem !important;
        padding: 8px 15px !important;
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Rating stars mobile */
    .product-carousel .de-rating-ext {
        margin-bottom: 8px !important;
    }
    
    .product-carousel .de-rating-ext .d-stars {
        font-size: 0.9rem !important;
    }
    
    /* Touch-friendly improvements for mobile */
    .product-carousel .de__pcard {
        cursor: pointer !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    
    .product-carousel .de__pcard:active {
        transform: scale(0.98) !important;
    }
}

/* Tablet Optimizations (Keep Swiper, Optimize Visual Elements) */
@media (min-width: 768px) and (max-width: 992px) {
    .product-carousel .de__pcard {
        padding: 15px !important;
        height: auto !important;
    }
    
    .product-carousel .atr__images {
        height: 250px !important;
        margin-bottom: 15px !important;
    }
    
    /* Section titles optimization for tablet */
    .product-carousel h3 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Price text sizing for tablet */
    .product-carousel .price {
        font-size: 1.1rem !important;
    }
    
    .product-carousel .atr__title {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
}

/* ===== SWIPER MOBILE TOUCH OPTIMIZATION ===== */

/* Enhanced touch support for product carousels */
.swiper-container {
    touch-action: pan-y pinch-zoom;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Mobile navigation buttons optimization */
@media (max-width: 767px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        color: white !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        z-index: 10 !important;
    }
    
    .swiper-button-prev {
        left: 10px !important;
    }
    
    .swiper-button-next {
        right: 10px !important;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 12px !important;
        font-weight: bold !important;
    }
    
    /* Hide navigation on very small screens and rely on touch */
    @media (max-width: 480px) {
        .swiper-button-next,
        .swiper-button-prev {
            display: none !important;
        }
    }
}

/* Tablet navigation optimization */
@media (min-width: 768px) and (max-width: 992px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 44px !important;
        height: 44px !important;
        margin-top: -22px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #333 !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: #333 !important;
        color: white !important;
        transform: scale(1.05) !important;
    }
}

/* Ensure smooth scrolling and touch feedback */
.product-carousel .swiper-container {
    padding: 0 20px; /* Space for navigation buttons */
}

.product-carousel .swiper-slide {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.product-carousel .swiper-slide-active {
    opacity: 1;
}

/* Next and previous slides visibility on larger screens */
@media (min-width: 768px) {
    .product-carousel .swiper-slide-next,
    .product-carousel .swiper-slide-prev {
        opacity: 0.8;
    }
}