/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* =================================== */
/*   CAROUSEL OVERLAY FIX              */
/* =================================== */
.carousel-inner::before,
.carousel-inner::after,
.carousel-item::before,
.carousel-item::after {
    display: none !important;
    content: '' !important;
    background-image: none !important;
    background-color: transparent !important;
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item.active {
    background: transparent !important;
}

:root {
    /* Primary Blue Palette (from reference) */
    --primary-blue: #1946AB;
    --light-blue: #E6F4FA;
    --medium-blue: #3366CC;

    /* Accent Colors */
    --accent-yellow: #FFD700;
    --bright-yellow: #FFC107;

    /* Secondary Orange (original) */
    --primary-orange: #ff6b00;
    --hover-orange: #e65f00;
    --accent-orange: #ff8534;

    /* Neutrals */
    --dark-gray: #2c3e50;
    --light-gray: #f8f9fa;
    --deep-gray: #1a252f;
    --soft-white: #ffffff;
    --border-light: #e0e0e0;
    --text-gray: #555;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #1946AB 0%, #3366CC 100%);
    --gradient-orange: linear-gradient(135deg, #ff6b00 0%, #ff8534 100%);
    --gradient-yellow: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(25, 70, 171, 0.9), rgba(51, 102, 204, 0.7));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-gray);
    background-color: var(--soft-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
    /* Default padding for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Wavy Shape Utility */
.wave-divider {
    position: relative;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1946AB 0%, #214db3 100%) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    z-index: 1000001;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(25, 70, 171, 0.4);
}


.navbar-brand {
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Toggler Refresh */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    outline: none;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
    /* Ensure it's white */
}

.navbar-brand i {
    margin-right: 10px;
    -webkit-text-fill-color: var(--accent-yellow);
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--soft-white) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Carousel */
.hero-carousel {
    background: transparent !important;
    background-color: transparent !important;
}

@media (max-width: 991px) {
    body {
        padding-top: 60px;
        /* Reduced padding to remove ugly space */
    }

    .hero-carousel {
        margin-top: 0;
        /* Remove gap to separate from navbar */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 50px;
        /* Minimal padding to remove ugly space */
        background: var(--light-gray) !important;
        /* Consistent light background */
    }

    .hero-carousel {
        margin-top: 0;
        /* Minimal gap from navbar */
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    /* Additional cleanup for white layers on heroCarousel specifically */
    #heroCarousel,
    #heroCarousel .carousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    /* Ensure no white overlays */
    #heroCarousel::before,
    #heroCarousel::after,
    #heroCarousel .carousel::before,
    #heroCarousel .carousel::after,
    #heroCarousel .carousel-inner::before,
    #heroCarousel .carousel-inner::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
    }
}

.carousel-item {
    height: 500px;
    background: transparent !important;
    position: relative;
    overflow: visible !important;
}

/* CRITICAL: Override for mobile-only elements */
.carousel-item:has(.mobile-only) {
    height: 44vh !important;
    min-height: 350px !important;
    max-height: 44vh !important;
}

/* CRITICAL: Alternative override for browsers that don't support :has */
.carousel-item.hero-has-mobile {
    height: 44vh !important;
    min-height: 350px !important;
    max-height: 44vh !important;
}

/* CRITICAL: Desktop styles (min-width: 769px) - Reduced height 50% */
@media (min-width: 769px) {
    /* Hide mobile-only images on desktop */
    .hero-product.mobile-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        z-index: -1000 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* CRITICAL: Override carousel-item height - 50% more (500px) */
    .carousel-item,
    #heroCarousel .carousel-item {
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
    }

    /* Show all desktop products - DO NOT RESET POSITIONS */
    .hero-product.desktop-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        z-index: 100 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Show hero-product-1, hero-product-2, hero-product-3, hero-product-4, hero-product-5 */
    .hero-product-1,
    .hero-product-2,
    .hero-product-3,
    .hero-product-4,
    .hero-product-5 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        z-index: 100 !important;
        width: auto !important;
        height: auto !important;
    }

    /* Increase image size */
    .hero-product:not(.mobile-only) .hero-img {
        width: 250px !important;
        height: 250px !important;
    }

    .hero-product-3 .hero-img {
        width: 300px !important;
        height: 300px !important;
    }
}

/* CRITICAL: Override for mobile-only elements */
.carousel-item:has(.mobile-only) {
    height: 44vh !important;
    min-height: 350px !important;
    max-height: 44vh !important;
}

/* CRITICAL: Alternative override for browsers that don't support :has */
.carousel-item.hero-has-mobile {
    height: 44vh !important;
    min-height: 350px !important;
    max-height: 44vh !important;
}

/* CRITICAL: Desktop styles (min-width: 769px) - Increase height */
@media (min-width: 769px) {
    /* Hide mobile-only images on desktop */
    .hero-product.mobile-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        z-index: -1000 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Override carousel-item height on desktop */
    .carousel-item,
    #heroCarousel .carousel-item {
        height: 1000px !important;
        min-height: 1000px !important;
        max-height: none !important;
    }
}

/* CRITICAL: Desktop styles (min-width: 769px) */
@media (min-width: 769px) {
    /* Hide mobile-only images on desktop */
    .hero-product.mobile-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        z-index: -1000 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Show all desktop products - DO NOT RESET POSITIONS */
    .hero-product.desktop-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        z-index: 100 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Show hero-product-1, hero-product-2, hero-product-3, hero-product-4, hero-product-5 */
    .hero-product-1,
    .hero-product-2,
    .hero-product-3,
    .hero-product-4,
    .hero-product-5 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        z-index: 100 !important;
        width: auto !important;
        height: auto !important;
    }

    /* Increase image size */
    .hero-product:not(.mobile-only) .hero-img {
        width: 250px !important;
        height: 250px !important;
    }

    .hero-product-3 .hero-img {
        width: 300px !important;
        height: 300px !important;
    }
}

/* Restore hero carousel blue background but prevent white overlay */
#heroCarousel {
    background: var(--gradient-blue) !important;
    background: linear-gradient(135deg, #0d2b5f 0%, #1946AB 50%, #3366CC 100%) !important;
}

#heroCarousel .carousel-inner {
    background: transparent !important;
}

#heroCarousel .carousel-item {
    background: transparent !important;
}

#heroCarousel .carousel-item.active {
    background: transparent !important;
}

/* Prevent white overlays during transitions */
#heroCarousel .carousel::before,
#heroCarousel .carousel::after,
#heroCarousel .carousel-inner::before,
#heroCarousel .carousel-inner::after,
#heroCarousel .carousel-item::before,
#heroCarousel .carousel-item::after,
#heroCarousel .carousel-item.active::before,
#heroCarousel .carousel-item.active::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

/* Keep other carousels clean */
.carousel.carousel,
.carousel.carousel .carousel-inner,
.carousel.carousel .carousel-item,
.carousel.carousel .carousel-item.active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

#heroCarousel::before,
#heroCarousel::after,
#heroCarousel .carousel::before,
#heroCarousel .carousel::after,
#heroCarousel .carousel-inner::before,
#heroCarousel .carousel-inner::after,
#heroCarousel .carousel-item::before,
#heroCarousel .carousel-item::after,
#heroCarousel .carousel-item.active::before,
#heroCarousel .carousel-item.active::after,
.carousel.carousel::before,
.carousel.carousel::after,
.carousel.carousel .carousel-inner::before,
.carousel.carousel .carousel-inner::after,
.carousel.carousel .carousel-item::before,
.carousel.carousel .carousel-item::after,
.carousel.carousel .carousel-item.active::before,
.carousel.carousel .carousel-item.active::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Ensure carousel-scene has no white background */
.carousel-scene {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Override any Bootstrap carousel-item active styling */
.carousel-item.active {
    background: transparent !important;
}

/* Mobile Single Image - Hidden on desktop, shown on small screens */
.mobile-single-image {
    display: none !important;
    /* Hidden by default on desktop */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Desktop (769px and up): Show hero products, hide mobile single image */
@media (min-width: 769px) {
    .mobile-single-image {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
}

.mobile-hero-img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Base styles for desktop - Show all 5 products (default) */
.hero-product {
    position: absolute;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.hero-product-1 {
    top: 15%;
    left: 12%;
    transform: translate(-50%, -50%);
    animation: float1 6s ease-in-out infinite;
}

.hero-product-2 {
    top: 15%;
    right: 12%;
    transform: translate(50%, -50%);
    animation: float2 6s ease-in-out infinite 0.5s;
}

.hero-product-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 110;
    animation: float3 6s ease-in-out infinite 1s;
}

.hero-product-4 {
    bottom: 15%;
    left: 15%;
    transform: translate(-50%, 50%);
    animation: float4 6s ease-in-out infinite 1.5s;
}

.hero-product-5 {
    bottom: 15%;
    right: 15%;
    transform: translate(50%, 50%);
    animation: float5 6s ease-in-out infinite 2s;
}

.hero-img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.hero-product-3 .hero-img {
    width: 350px;
    height: 350px;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.5));
}

/* CRITICAL: Override for mobile-only - ensure maximum size - HIGHEST SPECIFICITY */
.carousel-scene .hero-product.mobile-only .hero-img,
.carousel-item .carousel-scene .hero-product.mobile-only .hero-img {
    width: 95vw !important;
    max-width: 95vw !important;
    height: auto !important;
    max-height: 45vh !important;
    min-height: 280px !important;
    min-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5)) !important;
}

/* CRITICAL: Override for mobile-only - ensure maximum size - HIGHEST SPECIFICITY */
.carousel-scene .hero-product.mobile-only .hero-img,
.carousel-item .carousel-scene .hero-product.mobile-only .hero-img {
        width: 95vw !important;
        max-width: 95vw !important;
        height: auto !important;
        max-height: 45vh !important;
        min-height: 280px !important;
        min-width: 220px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        margin: 0 auto !important;
    }

.hero-caption {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 25px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-product:hover .hero-img {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.4));
}

.hero-product:hover .hero-caption {
    background: rgba(25, 70, 171, 0.9);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    body {
        padding-top: 0px;
        /* Remove padding to cover space with hero carousel */
    }

    /* CRITICAL: Override carousel-item ONLY for non-mobile */
    .carousel-item:not(.carousel-item.active) {
        height: auto;
        min-height: 300px;
        /* Compact height */
        background: transparent !important;
        position: relative;
        isolation: isolate;
        overflow: visible !important;
    }

    .carousel-item.active {
        background: transparent !important;
    }

    /* Targeted removal of white overlays only */
    .carousel-item::before,
    .carousel-item::after,
    .carousel-item.active::before,
    .carousel-item.active::after {
        display: none !important;
        content: none !important;
    }

    /* CRITICAL: Only apply padding to carousel-scene when NOT on mobile */
    .carousel-scene:not(.has-mobile-only) {
        padding: 50px 20px 20px;
        height: 100%;
        position: relative;
        z-index: 999999 !important;
        /* Maximum z-index */
        isolation: isolate;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .carousel-main-title {
        font-size: 1.4rem;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        letter-spacing: 1px;
        z-index: 1;
        pointer-events: none;
        position: absolute;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Professional circle/grid layout - EXCLUDE mobile-only */
    .hero-product:not(.mobile-only) {
        position: absolute !important;
        z-index: 99999 !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        animation: tabletCircleAppear 0.8s ease forwards;
    }

    .hero-product-1:not(.mobile-only) {
        top: 40%;
        left: 15%;
        animation-delay: 0.1s;
        transform: translate(-50%, -50%);
    }

    .hero-product-2:not(.mobile-only) {
        top: 30%;
        right: 15%;
        animation-delay: 0.2s;
        transform: translate(50%, -50%);
    }

    .hero-product-3:not(.mobile-only) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.3);
        animation-delay: 0.3s;
        z-index: 100010 !important;
    }

    .hero-product-4:not(.mobile-only) {
        bottom: 35%;
        left: 20%;
        animation-delay: 0.4s;
        transform: translate(-50%, 50%);
    }

    .hero-product-5:not(.mobile-only) {
        bottom: 30%;
        right: 20%;
        animation-delay: 0.5s;
        transform: translate(50%, 50%);
    }

    @keyframes tabletCircleAppear {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5) rotate(-180deg);
        }

        100% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1) rotate(0deg);
        }
    }

    .hero-img {
        width: 85px;
        height: 85px;
        padding: 0 !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
        transition: all 0.4s ease;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .hero-product-3 .hero-img {
        width: 100px;
        height: 100px;
        filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.5));
    }

    .hero-product:hover {
        z-index: 100100 !important;
    }

    .hero-product-1:hover {
        transform: translate(-50%, -50%) scale(1.15) rotate(-5deg);
    }

    .hero-product-2:hover {
        transform: translate(50%, -50%) scale(1.15) rotate(5deg);
    }

    .hero-product-3:hover {
        transform: translate(-50%, -50%) scale(1.4) rotate(2deg);
    }

    .hero-product-4:hover {
        transform: translate(-50%, 50%) scale(1.15) rotate(-3deg);
    }

    .hero-product-5:hover {
        transform: translate(50%, 50%) scale(1.15) rotate(3deg);
    }

    .hero-caption {
        font-size: 10px;
        padding: 4px 10px;
        bottom: -25px;
    }

    .hero-product:hover .hero-caption {
        bottom: -20px;
    }

    /* Force removal of any white overlays from Bootstrap on tablets */
    .carousel-inner,
    .carousel-inner::before,
    .carousel-inner::after {
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Mobile adjustments for carousel controls on tablets */
    .carousel-control-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        z-index: 1000000 !important;
        /* Above carousel-scene (z-index: 999999) */
    }

    .carousel-control-next {
        right: 10px;
        width: 40px;
        height: 40px;
        z-index: 1000000 !important;
        /* Above carousel-scene (z-index: 999999) */
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

 /* Tablet adjustments - Show 4 products in balanced layout */
@media (min-width: 481px) and (max-width: 768px) {

    /* Clean carousel base for tablets */
    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item.active,
    .carousel-scene {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
        position: relative;
        overflow: hidden;
    }

    /* Hide mobile only on tablets - show hero products instead */
    .hero-product.mobile-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }


    /* Remove all pseudo-elements */
    .carousel::before,
    .carousel::after,
    .carousel-inner::before,
    .carousel-inner::after,
    .carousel-item::before,
    .carousel-item::after,
    .carousel-item.active::before,
    .carousel-item.active::after,
    .carousel-scene::before,
    .carousel-scene::after {
        display: none !important;
        content: none !important;
    }

    .carousel-item {
        height: 380px !important;
        min-height: 380px !important;
        position: relative;
        overflow: hidden;
    }

.carousel-scene {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 15px;
        z-index: 1 !important;
        position: relative;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    /* Optimized title for tablets */
    .carousel-main-title {
        position: absolute !important;
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 20px !important;
        z-index: 10 !important;
        line-height: 1.3 !important;
        pointer-events: none !important;
        width: 100%;
    }

    /* Show mobile only on tablets */
    .hero-product.mobile-only {
        display: block !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 200;
        width: 100%;
        text-align: center;
        padding: 0 20px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-product.mobile-only .hero-img {
        max-width: 90%;
        max-height: 320px;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Show 4 products on tablets in 2x2 grid layout */
    .hero-product-5 {
        display: none !important;
    }

    .hero-product.desktop-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .hero-product:not(.mobile-only):not(.desktop-only) {
        position: absolute !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        animation: none !important;
    }

    /* 2x2 Grid Layout */
    .hero-product-1:not(.mobile-only):not(.desktop-only) {
        top: 35% !important;
        left: 25% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 15 !important;
        display: block !important;
    }

    .hero-product-2:not(.mobile-only):not(.desktop-only) {
        top: 35% !important;
        right: 25% !important;
        transform: translate(50%, -50%) !important;
        z-index: 15 !important;
        display: block !important;
    }

    .hero-product-3:not(.mobile-only):not(.desktop-only) {
        top: 60% !important;
        left: 35% !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
        z-index: 20 !important;
        display: block !important;
    }

    .hero-product-4:not(.mobile-only):not(.desktop-only) {
        top: 60% !important;
        right: 35% !important;
        transform: translate(50%, -50%) !important;
        z-index: 15 !important;
        display: block !important;
    }

    /* Optimized image sizes for tablets - EXCLUDE mobile-only */
    .hero-product:not(.mobile-only) .hero-img,
    .hero-img:not(.hero-product.mobile-only .hero-img) {
        width: 90px !important;
        height: 90px !important;
        object-fit: contain !important;
        transition: all 0.3s ease !important;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
    }

    .hero-product-3:not(.mobile-only) .hero-img {
        width: 105px !important;
        height: 105px !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)) !important;
    }

    /* CRITICAL: Ensure mobile-only images are NOT limited */
    .hero-product.mobile-only .hero-img {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 80vh !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* Tablet hover effects */
    .hero-product:hover .hero-img {
        transform: scale(1.1) !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)) !important;
    }

    .hero-product:hover {
        z-index: 100 !important;
    }

    .hero-product-1:hover {
        transform: translate(-50%, -50%) scale(1.1) rotate(-3deg) !important;
    }

    .hero-product-2:hover {
        transform: translate(50%, -50%) scale(1.1) rotate(3deg) !important;
    }

    .hero-product-3:hover {
        transform: translate(-50%, -50%) scale(1.2) rotate(2deg) !important;
    }

    .hero-product-4:hover {
        transform: translate(50%, -50%) scale(1.1) rotate(-2deg) !important;
    }

    /* Tablet-optimized captions */
    .hero-caption {
        position: absolute !important;
        bottom: -30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: white !important;
        background: rgba(25, 70, 171, 0.9) !important;
        padding: 5px 12px !important;
        border-radius: 15px !important;
        white-space: nowrap !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(5px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin: 0 !important;
        pointer-events: none !important;
    }

    .hero-product:hover .hero-caption {
        opacity: 1 !important;
        bottom: -25px !important;
    }

    /* Tablet carousel controls */
    .carousel-control-prev,
    .carousel-control-next {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid var(--primary-blue) !important;
        opacity: 0.9 !important;
    }

    .carousel-control-prev {
        left: 15px !important;
    }

    .carousel-control-next {
        right: 15px !important;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: white !important;
        opacity: 1 !important;
        transform: translateY(-50%) scale(1.05) !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px !important;
        height: 20px !important;
        filter: brightness(0) saturate(100%) invert(17%) sepia(88%) saturate(3678%) hue-rotate(215deg) brightness(95%) contrast(88%) !important;
    }

    /* Tablet indicators */
    .carousel-indicators {
        bottom: 15px !important;
        z-index: 100 !important;
    }

    .carousel-indicators button {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        margin: 0 4px !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
    }

    .carousel-indicators button.active {
        background-color: var(--primary-blue) !important;
        border-color: white !important;
    }
}

/* Mobile-First Hero Carousel Improvements */
@media (max-width: 480px) {
    /* Clean carousel base */
    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item.active,
    .carousel-scene {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
        position: relative;
        overflow: hidden;
    }

    /* Remove all pseudo-elements */
    .carousel::before,
    .carousel::after,
    .carousel-inner::before,
    .carousel-inner::after,
    .carousel-item::before,
    .carousel-item::after,
    .carousel-item.active::before,
    .carousel-item.active::after,
    .carousel-scene::before,
    .carousel-scene::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    /* CRITICAL: Increased height for carousel-item */
    .carousel-item {
        height: 44vh !important;
        min-height: 350px !important;
        max-height: 44vh !important;
        position: relative !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* CRITICAL: Specific rule for #heroCarousel */
    #heroCarousel .carousel-item {
        height: 50vh !important;
        min-height: 350px !important;
        max-height: 50vh !important;
    }

    .carousel-scene {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* CRITICAL: Hide ALL hero-product except mobile-only */
    .hero-product-1:not(.mobile-only),
    .hero-product-2:not(.mobile-only),
    .hero-product-3:not(.mobile-only),
    .hero-product-4:not(.mobile-only),
    .hero-product-5:not(.mobile-only),
    .hero-product:not(.mobile-only),
    .hero-product.desktop-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Improved title for mobile - smaller to leave more space for image */
    .carousel-main-title {
        position: absolute !important;
        top: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.6rem !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 5px !important;
        z-index: 1000 !important;
        line-height: 1.1 !important;
        pointer-events: none !important;
        width: 100%;
    }

    /* CRITICAL: Override default .hero-img sizes - HIGHEST SPECIFICITY */
    .carousel-scene .hero-product.mobile-only .hero-img {
        width: 95vw !important;
        max-width: 95vw !important;
        height: auto !important;
        max-height: 42vh !important;
        min-height: 300px !important;
        min-width: 220px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        margin: 0 auto !important;
    }

    /* Show mobile only image - MAXIMUM SIZE, PERFECTLY CENTERED */
    .hero-product.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 95vw !important;
        max-height: 44vh !important;
        margin: 0 auto !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* CRITICAL: Hide caption for mobile-only */
    .hero-product.mobile-only .hero-caption {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

    /* Remove all pseudo-elements */
    .carousel::before,
    .carousel::after,
    .carousel-inner::before,
    .carousel-inner::after,
    .carousel-item::before,
    .carousel-item::after,
    .carousel-item.active::before,
    .carousel-item.active::after,
    .carousel-scene::before,
    .carousel-scene::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    /* CRITICAL: Increased height for carousel-item */
    .carousel-item {
        height: 44vh !important;
        min-height: 350px !important;
        max-height: 44vh !important;
        position: relative !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* CRITICAL: Specific rule for #heroCarousel */
    #heroCarousel .carousel-item {
        height: 50vh !important;
        min-height: 350px !important;
        max-height: 50vh !important;
    }

    .carousel-scene {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Hide ALL multi-product layout on mobile */
    .hero-product:not(.mobile-only) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Improved title for mobile - smaller to leave more space for image */
    .carousel-main-title {
        position: absolute !important;
        top: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.6rem !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 5px !important;
        z-index: 1000 !important;
        line-height: 1.1 !important;
        pointer-events: none !important;
        width: 100%;
    }

    /* CRITICAL: Override default .hero-img sizes - HIGHEST SPECIFICITY */
    .carousel-scene .hero-product.mobile-only .hero-img {
        width: 80vw !important;
        max-width: 80vw !important;
        height: auto !important;
        max-height: 20vh !important;
        min-height: 150px !important;
        min-width: 180px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
    }

    /* Show mobile only image - MAXIMUM SIZE, PERFECTLY CENTERED */
    .hero-product.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 95vw !important;
        max-height: 50vh !important;
        margin: 0 auto !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* CRITICAL: Hide caption for mobile-only */
    .hero-product.mobile-only .hero-caption {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }


    /* Remove all pseudo-elements */
    .carousel::before,
    .carousel::after,
    .carousel-inner::before,
    .carousel-inner::after,
    .carousel-item::before,
    .carousel-item::after,
    .carousel-item.active::before,
    .carousel-item.active::after,
    .carousel-scene::before,
    .carousel-scene::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
        background-color: transparent !important;
    }

     /* CRITICAL: Increased height for carousel-item */
     .carousel-item {
        height: 44vh !important;
        min-height: 350px !important;
        max-height: 44vh !important;
        position: relative !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .carousel-scene {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Hide ALL multi-product layout on mobile */
    .hero-product:not(.mobile-only) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Improved title for mobile - smaller to leave more space for image */
    .carousel-main-title {
        position: absolute !important;
        top: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 5px !important;
        z-index: 1000 !important;
        line-height: 1.1 !important;
        pointer-events: none !important;
        width: 100%;
    }

    /* CRITICAL: Override default .hero-img sizes - HIGHEST SPECIFICITY */
    .carousel-scene .hero-product.mobile-only .hero-img {
        width: 90vw !important;
        max-width: 90vw !important;
        height: auto !important;
        max-height: 45vh !important;
        min-height: 300px !important;
        min-width: 220px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        margin: 0 auto !important;
    }

    /* Show mobile only image - MAXIMUM SIZE, PERFECTLY CENTERED */
    .hero-product.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 95vw !important;
        max-height: 50vh !important;
        margin: 0 auto !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Show mobile only image - MAXIMUM SIZE, PERFECTLY CENTERED */
    .hero-product.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100vw !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* CRITICAL: Hide caption for mobile-only */
    .hero-product.mobile-only .hero-caption {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Show mobile only image - MAXIMUM SIZE */
    .hero-product.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity:1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100vw !important;
        max-height: 80vh !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-product.mobile-only .hero-img {
        max-width: 95vw !important;
        max-height: 70vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .hero-product.mobile-only .hero-caption {
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: white !important;
        background: rgba(0, 0, 0, 0.85) !important;
        padding:6px 14px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        backdrop-filter: blur(15px) !important;
        border:1px solid rgba(255, 255, 255, 0.3) !important;
        margin: 0 !important;
        pointer-events: none !important;
        z-index: 10 !important;
    }

    .carousel-scene {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 15px;
    }

    /* Hide all hero products on mobile - show only mobile single image */


    /* Improved title for mobile */
    .carousel-main-title {
        position: absolute !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 10px !important;
        z-index: 1000 !important;
        line-height: 1.3 !important;
        pointer-events: none !important;
        width: 100%;
    }

    /* Hide ALL multi-product layout on mobile */
    .hero-product:not(.mobile-only) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Improved title for mobile - smaller to leave more space for image */
    .carousel-main-title {
        position: absolute !important;
        top: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 5px !important;
        z-index: 1000 !important;
        line-height: 1.2 !important;
        pointer-events: none !important;
        width: 100%;
    }

    /* Adjust carousel scene for mobile - much larger */
    .carousel-scene {
        min-height: 450px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px !important;
    }

    /* Show mobile only image - MAXIMUM SIZE */
    .hero-product.mobile-only {
        display: flex !important;
        visibility: visible !important;
        opacity:1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-product.mobile-only .hero-img {
        max-width: 100vw !important;
        max-height: 400px !important;
        width: 90vw !important;
        height: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .hero-product.mobile-only .hero-caption {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        color: white !important;
        background: rgba(0, 0, 0, 0.8) !important;
        padding: 4px 12px !important;
        border-radius: 15px !important;
        white-space: nowrap !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        margin: 0 !important;
        pointer-events: none !important;
        z-index: 10 !important;
    }

    /* Adjust carousel scene for mobile - make it larger */
    .carousel-scene {
        min-height: 350px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
    }

    /* Show mobile only image - largest possible */
    .hero-product.mobile-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 95vw !important;
        max-height: 300px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .hero-product.mobile-only .hero-img {
        max-width: 95vw !important;
        max-height: 280px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 5px !important;
    }

    .hero-product.mobile-only .hero-caption {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: white !important;
        background: rgba(0, 0, 0, 0.7) !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin: 0 !important;
        pointer-events: none !important;
    }

    /* Show mobile only image */
    .hero-product.mobile-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 100 !important;
        width: 100% !important;
        height: auto !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 50px auto 0 !important;
        max-width: 320px !important;
    }

    .hero-product.mobile-only .hero-img {
        max-width: 90vw !important;
        max-height: 240px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3)) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        padding: 10px !important;
    }

    /* Show mobile single image */
    .mobile-single-image {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 100 !important;
        width: 100% !important;
        height: 200px !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 50px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-hero-img {
        max-width: 280px !important;
        max-height: 180px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)) !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Hide ALL multi-product layout on mobile */
    .hero-product {
        display: none !important;
    }

    /* Hide all individual products on mobile */
    .hero-product {
        display: none !important;
    }

    /* Show mobile single images */
    .mobile-single-image {
        display: block !important;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10;
    }

    .mobile-hero-img {
        width: 90vw !important;
        max-width: 320px !important;
        height: auto !important;
        max-height: 240px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3)) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        padding: 10px !important;
    }

    /* Remove all pseudo-elements */
    .carousel::before,
    .carousel::after,
    .carousel-inner::before,
    .carousel-inner::after,
    .carousel-item::before,
    .carousel-item::after,
    .carousel-item.active::before,
    .carousel-item.active::after,
    .carousel-scene::before,
    .carousel-scene::after {
        display: none !important;
        content: none !important;
    }

    .carousel-item {
        height: 400px !important;
        min-height: 400px !important;
        position: relative;
        overflow: hidden;
    }

    .carousel-scene {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 15px;
    }

    /* Improved title for mobile */
    .carousel-main-title {
        position: absolute !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 10px !important;
        z-index: 10 !important;
        line-height: 1.3 !important;
        pointer-events: none !important;
        width: 100%;
    }

    /* Show mobile single image */
    .mobile-single-image {
        display: block !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 200;
        width: 100%;
        text-align: center;
        padding: 0 15px;
    }

    .mobile-hero-img {
        max-width: 95%;
        max-height: 300px;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4));
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Optimized image sizes for mobile */
    .hero-img {
        width: 70px !important;
        height: 70px !important;
        object-fit: contain !important;
        transition: all 0.3s ease !important;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
    }

    .hero-product-3 .hero-img {
        width: 85px !important;
        height: 85px !important;
        filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) !important;
    }

    /* Simplified hover effects for touch devices */
    .hero-product:active .hero-img {
        transform: scale(0.95) !important;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2)) !important;
    }

    /* Mobile-optimized captions */
    .hero-caption {
        position: absolute !important;
        bottom: -25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        color: white !important;
        background: rgba(25, 70, 171, 0.9) !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
        opacity: 1 !important;
        backdrop-filter: blur(5px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin: 0 !important;
        pointer-events: none !important;
    }

/* CAROUSEL CONTROLS - GLOBAL FIX */
.carousel-control-prev,
.carousel-control-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    z-index: 999999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid var(--primary-blue) !important;
    opacity: 0.9 !important;
    cursor: pointer !important;
}

.carousel-control-prev {
    left: 10px !important;
}

.carousel-control-next {
    right: 10px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: white !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px !important;
    height: 18px !important;
    filter: brightness(0) saturate(100%) invert(17%) sepia(88%) saturate(3678%) hue-rotate(215deg) brightness(95%) contrast(88%) !important;
}

/* Improved indicators for mobile */
.carousel-indicators {
    bottom: 10px !important;
    z-index: 999999999 !important;
}

.carousel-indicators button {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    margin: 0 3px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.carousel-indicators button.active {
        background-color: var(--primary-blue) !important;
        border-color: white !important;
    }

    /* Override desktop carousel control styles for mobile */
    .carousel-control-prev,
    .carousel-control-next {
        z-index: 999999999 !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 45px !important;
        height: 45px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid var(--primary-blue) !important;
        opacity: 0.9 !important;
        cursor: pointer !important;
        visibility: visible !important;
    }

    .carousel-control-prev {
        left: 10px !important;
    }

    .carousel-control-next {
        right: 10px !important;
    }



    .carousel-control-prev {
        left: 10px !important;
    }

    .carousel-control-next {
        right: 10px !important;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: white !important;
        opacity: 1 !important;
        transform: translateY(-50%) scale(1.05) !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px !important;
        height: 18px !important;
        filter: brightness(0) saturate(100%) invert(17%) sepia(88%) saturate(3678%) hue-rotate(215deg) brightness(95%) contrast(88%) !important;
    }

    /* Improved indicators for mobile */
    .carousel-indicators {
        bottom: 10px !important;
        z-index: 100 !important;
    }

    .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        margin: 0 3px !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
    }

    .carousel-indicators button.active {
        background-color: var(--primary-blue) !important;
        border-color: white !important;
    }


.carousel-item.active {
    background: transparent !important;
}

/* Targeted removal of white overlays only */
.carousel-item::before,
.carousel-item::after,
.carousel-item.active::before,
.carousel-item.active::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

.carousel-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    z-index: 999999;
}

.carousel-main-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
    z-index: 100001 !important;
    /* Maximum z-index for very small screens */
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    /* Ensure it doesn't block interactions */
    padding: 0 20px;
}

/* Hide all products except the central one - EXCLUDE mobile-only */
.hero-product-1:not(.mobile-only),
.hero-product-2:not(.mobile-only),
.hero-product-4:not(.mobile-only),
.hero-product-5:not(.mobile-only) {
    display: none !important;
}

.hero-product {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    animation: float3 4s ease-in-out infinite;
}

/* Central product - only visible one - EXCLUDE mobile-only */
.hero-product-3:not(.mobile-only) {
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
    z-index: 100010 !important;
    /* Highest for main product */
    display: block !important;
}

.hero-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.hero-caption {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin-top: 15px;
    font-weight: 600;
    color: var(--dark-gray);
}



/* Hero Carousel Scene - Optimized */
.carousel-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    z-index: 0 !important;
}

.carousel-main-title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
    z-index: 10;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    line-height: 1.2;
}

/* Hero Product Positions - Performance Optimized */
.hero-product {
    position: absolute;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1;
    z-index: 100;
}

.hero-product-1:not(.mobile-only) {
    top: 20%;
    left: 15%;
    z-index: 101;
}

.hero-product-2:not(.mobile-only) {
    top: 20%;
    right: 15%;
    z-index: 102;
}

.hero-product-3:not(.mobile-only) {
    top: 40%;
    left: 50%;
    transform: translateX(-50%) scale(1.2);
    z-index: 110;
    /* Principal product on top */
}

.hero-product-4:not(.mobile-only) {
    bottom: 25%;
    left: 20%;
    z-index: 103;
}

.hero-product-5:not(.mobile-only) {
    bottom: 25%;
    right: 20%;
    z-index: 104;
}

/* Optimized Hover Effects */
.hero-product:hover {
    z-index: 200 !important;
}

.hero-product-1:hover {
    transform: translateY(-8px) rotate(-3deg) scale(1.05);
}

.hero-product-2:hover {
    transform: translateY(-8px) rotate(3deg) scale(1.05);
}

.hero-product-3:hover {
    transform: translateX(-50%) scale(1.25) rotate(1deg);
}

.hero-product-4:hover {
    transform: translateY(-5px) rotate(-2deg) scale(1.05);
}

.hero-product-5:hover {
    transform: translateY(-5px) rotate(2deg) scale(1.05);
}

/* Hero Product Images - Optimized */
.hero-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    transition: all 0.3s ease;
    border: none;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.hero-product-3 .hero-img {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.hero-product:hover .hero-img {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
    transform: scale(1.02);
}

.hero-product-3:hover .hero-img {
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

/* Hero Product Captions */
.hero-caption {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(25, 70, 171, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-product:hover .hero-caption {
    opacity: 1;
    bottom: -35px;
}

/* Floating Animations for Continuous Movement */
.hero-product-1 {
    animation: productEntrance1 1.2s ease forwards 0.2s, float1 6s ease-in-out infinite 2s;
}

.hero-product-2 {
    animation: productEntrance2 1.2s ease forwards 0.4s, float2 6s ease-in-out infinite 2.5s;
}

.hero-product-4 {
    animation: productEntrance4 1.2s ease forwards 0.8s, float4 6s ease-in-out infinite 3s;
}

.hero-product-5 {
    animation: productEntrance5 1.2s ease forwards 1s, float5 6s ease-in-out infinite 3.5s;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0px) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0px) rotate(1deg);
    }

    50% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-4px) rotate(1deg);
    }
}

@keyframes float5 {

    0%,
    100% {
        transform: translateY(0px) rotate(2deg);
    }

    50% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* MODERN CAROUSEL CONTROLS - UNIVERSAL FIX */
.carousel.carousel .carousel-control-prev,
.carousel.carousel .carousel-control-next,
.carousel-control-prev,
.carousel-control-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    z-index: 999999999 !important;
    /* Maximum z-index to override everything */
    opacity: 0.8 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    visibility: visible !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231946AB' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231946AB' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%233366CC' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next:hover .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%233366CC' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Mobile adjustments - Now integrated in main responsive section */

@keyframes gradientShift {

    0%,
    100% {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    }

    50% {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    }
}

.carousel-overlay h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.carousel-overlay p {
    font-size: 1.75rem;
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carousel-overlay h2 {
        font-size: 1.8rem;
    }

    .carousel-overlay p {
        font-size: 1rem;
    }
}

/* Services Section */
.services-section {
    background-color: var(--soft-white);
    padding: 60px 0;
    position: relative;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
}

.service-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* Search Bar */
.search-section {
    background: linear-gradient(to bottom, var(--light-blue), var(--soft-white));
    padding: 40px 0;
}

.search-input {
    border: 2px solid var(--primary-blue);
    border-radius: 30px;
    padding: 15px 25px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(25, 70, 171, 0.4);
    border-color: var(--medium-blue);
    transform: translateY(-2px);
}

/* Categories */
.categories-section {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
    /* Sidebar sticks when scrolling products */
}

.category-btn {
    width: 100%;
    margin-bottom: 12px;
    background-color: white;
    border: 2px solid var(--primary-blue);
    color: var(--dark-gray);
    padding: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.category-btn i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient-blue);
    color: white;
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.category-btn:hover i,
.category-btn.active i {
    color: white;
}

/* Mobile Categories */
@media (max-width: 991px) {
    .mobile-categories {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 15px 0;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-categories .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
        width: auto;
        padding: 10px 20px;
        border-radius: 50px;
        min-width: 120px;
        justify-content: center;
    }

    .desktop-categories {
        display: none;
    }
}

@media (min-width: 992px) {
    .mobile-categories {
        display: none;
    }

    /* Ensure carousel controls are visible on desktop */
    .carousel-control-prev,
    .carousel-control-next {
        display: flex !important;
        opacity: 0.8 !important;
        visibility: visible !important;
        z-index: 1000000 !important;
        /* Above carousel-scene (z-index: 999999) */
    }

    .carousel-control-prev {
        left: 20px !important;
    }

    .carousel-control-next {
        right: 20px !important;
    }

    /* Show all 5 products on desktop */
    .hero-product-1,
    .hero-product-2,
    .hero-product-3,
    .hero-product-4,
    .hero-product-5 {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    background-color: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-img-container {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.product-body {
    padding: 20px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.btn-quote {
    width: 100%;
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 70, 171, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-quote::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 70, 171, 0.4);
}

.btn-quote:hover::before {
    width: 300px;
    height: 300px;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-yellow);
    padding: 40px 0;
    position: relative;
    margin-top: 60px;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23FFD700'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.newsletter-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin: 0;
}

.newsletter-text p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid white;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(25, 70, 171, 0.3);
}

.newsletter-btn {
    padding: 14px 30px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 70, 171, 0.4);
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text {
        flex-direction: column;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    /* Increased z-index */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-call {
    background-color: var(--primary-orange);
}

/* About Section */
.about-section {
    background-color: var(--light-blue);
    padding: 60px 0;
}

.about-section h2 {
    color: var(--dark-gray);
    font-weight: bold;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Location Section */
.location-section {
    padding: 60px 0;
    background-color: var(--soft-white);
}

.location-section h2 {
    color: var(--dark-gray);
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
    /* Force height */
    background: #e0e0e0;
    /* Gray background while loading */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Footer */
footer {
    background: var(--gradient-blue);
    color: white;
    padding: 50px 0 30px;
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Admin Panel */
.admin-panel {
    display: none;
    padding: 40px 0;
    background-color: var(--light-gray);
    min-height: 100vh;
}

.admin-panel.active {
    display: block;
}

.admin-header {
    background: var(--gradient-blue);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.btn-save {
    background-color: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.admin-table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-edit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    margin-right: 5px;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner-border {
    color: var(--primary-blue);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==================== BRAND SHOWCASE SECTION ==================== */
.brands-section {
    background-color: var(--soft-white);
    padding: 50px 0;
    border-top: 1px solid var(--border-light);
}

.brands-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.brands-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.brand-item {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .brands-carousel {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .brand-item {
        width: 120px;
        height: 60px;
    }
}

/* ==================== TABBED BESTSELLERS SECTION ==================== */
.bestsellers-section {
    background: linear-gradient(to bottom, var(--soft-white), var(--light-blue));
    padding: 60px 0;
}

.bestsellers-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.bestsellers-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-blue);
    background: white;
    color: var(--primary-blue);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    transition: left 0.3s ease;
    z-index: 0;
}

.tab-btn span {
    position: relative;
    z-index: 1;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: var(--gradient-blue);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(25, 70, 171, 0.3);
}

.tab-btn.active::before {
    left: 0;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px 15px 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.bestsellers-grid > div {
    min-width: 0;
    width: 100%;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .bestsellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .bestseller-card {
        gap: 25px;
    }
    
    .bestseller-img-container {
        flex: 0 0 200px;
        height: 200px;
    }
    
    .bestseller-info {
        padding-left: 25px;
    }
    
    /* Hide the duplicated loop items on desktop */
    .bestsellers-grid>div:nth-child(n+11) {
        display: none;
    }
}

@media (min-width: 992px) {
    /* Hide the duplicated loop items on desktop to maintain clean grid */
    .bestsellers-grid>div:nth-child(n+11) {
        display: none;
    }
}

/* Pantallas grandes (1200px+) - tarjetas más anchas y espaciosas, 2 columnas */
@media (min-width: 1200px) {
    .bestsellers-section .container {
        max-width: 1600px;
        width: 95%;
    }
    
    .bestsellers-container {
        max-width: 1600px !important;
        width: 95% !important;
    }
    
    .bestsellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 100%;
        padding: 40px 0 100px;
        width: 100%;
    }
    
    .bestsellers-grid > div {
        min-width: 0;
        width: 100%;
    }
    
    .bestseller-card {
        gap: 30px;
        padding: 35px;
        min-height: 320px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .bestseller-img-container {
        flex: 0 0 180px;
        height: 180px;
    }
    
    .bestseller-img {
        max-height: 170px;
    }
    
    .bestseller-info {
        flex: 1;
        padding-left: 25px;
        min-width: 0;
        overflow: visible;
    }
    
    .bestseller-tag {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .bestseller-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
        line-height: 1.25;
        white-space: normal;
        overflow: visible;
        word-wrap: break-word;
    }
    
    .bestseller-description {
        font-size: 1rem;
        margin-bottom: 15px;
        line-height: 1.5;
        overflow: visible;
        display: block;
    }
    
    .bestseller-actions {
        margin-top: 15px;
    }
    
    .btn-view-product {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

.bestseller-card {
    background: white;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    border: none;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
}

.bestseller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.bestseller-img-container {
    flex: 0 0 220px;
    height: 220px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bestseller-img-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(25, 70, 171, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: -1;
}

.bestseller-card.variant-blue .bestseller-img-container::before {
    background: radial-gradient(circle, rgba(25, 70, 171, 0.1) 0%, transparent 70%);
}

.bestseller-card.variant-orange .bestseller-img-container::before {
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
}

.bestseller-card:hover .bestseller-img-container::before {
    width: 165%;
    height: 165%;
    opacity: 0.2;
}

.bestseller-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.bestseller-card:hover .bestseller-img {
    transform: scale(1.05);
}

.bestseller-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 25px;
    border-left: 2px solid rgba(25, 70, 171, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.bestseller-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
    letter-spacing: 2.5px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.bestseller-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.2;
}

.bestseller-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    opacity: 0.8;
    padding: 0;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.bestseller-actions {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 10px;
}

/* Carrusel de medidas en bestsellers - asegurar visibilidad */
.bestseller-card .measures-carousel-wrapper {
    width: 100%;
    position: relative;
}

.bestseller-card .measures-carousel {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bestseller-card .measures-carousel::-webkit-scrollbar {
    display: none;
}

/* Botón Cotizar - Pantallas grandes */
.btn-bestseller-quote {
    background: linear-gradient(135deg, #1946AB 0%, #3366CC 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(25, 70, 171, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-bestseller-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 70, 171, 0.4);
}

.btn-bestseller-quote i {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .bestseller-card {
        padding: 0;
        gap: 30px;
    }

    .bestseller-img-container {
        flex: 0 0 200px;
        height: 200px;
    }

    .bestseller-info {
        padding-left: 30px;
    }
}


@media (max-width: 768px) {
    .bestsellers-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 30px;
        padding: 20px 0px 60px;
        /* Reduced top padding to move cards closer to title */
        scroll-padding: 0 15%;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bestsellers-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .bestsellers-grid>div {
        flex: 0 0 75%;
        max-width: 380px;
        min-width: 320px;
        height: 380px;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bestseller-card {
        height: 100%;
        width: 100%;
        max-width: 380px;
        min-width: 320px;
        box-sizing: border-box;
    }

    .bestseller-img-container {
        width: 200px;
        height: 200px;
        flex: 0 0 200px;
    }

    .bestseller-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15)) !important;
        transition: all 0.3s ease !important;
    }

    .bestseller-card:hover .bestseller-img {
        transform: scale(1.08) translateY(-8px) rotate(3deg) !important;
    }
}

@media (max-width: 480px) {
    .bestsellers-grid {
        padding: 10px 15% 40px;
        /* Even tighter spacing for small phones */
        scroll-padding: 0 15%;
        gap: 20px;
    }

    .bestsellers-grid>div {
        flex: 0 0 85%;
        max-width: 320px;
        min-width: 280px;
        scroll-snap-align: center;
        height: 420px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bestseller-card {
        background: white;
        padding: 15px 12px;
        border-radius: 20px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
        height: 100%;
        width: 100%;
        max-width: 320px;
        min-width: 280px;
        flex-direction: column;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .bestseller-img-container {
        margin: 0 auto 15px;
        width: 180px;
        height: 180px;
        flex: 0 0 180px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bestseller-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15)) !important;
        transition: all 0.3s ease !important;
    }

    .bestseller-card:hover .bestseller-img {
        transform: scale(1.05) translateY(-5px) rotate(2deg) !important;
    }

    /* Hide description on small screens */
    .bestseller-description {
        display: none !important;
    }

    /* Reduce title size on small screens */
    .bestseller-title {
        font-size: 1.4rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    /* Ensure button stays inside card */
    .bestseller-actions {
        margin-top: auto !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .btn-quote {
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }
}

/* === MEDIA QUERY PARA PANTALLAS GRANDES - CARRUSEL DE MEDIDAS EN BESTSELLERS === */
@media (min-width: 992px) {
    /* Asegurar que el contenedor del carrusel de medidas tenga ancho y margen apropiados */
    .bestseller-card .measures-carousel-container {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        padding: 8px 12px;
        box-sizing: border-box;
    }
    
    /* Asegurar que el wrapper del carrusel se muestre correctamente */
    .bestseller-card .measures-carousel-wrapper {
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
        overflow: visible;
    }
    
    /* Hacer visibles las flechas del carrusel con z-index apropiado */
    .bestseller-card .carousel-arrow {
        display: flex;
        z-index: 10;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .bestseller-card .carousel-arrow.carousel-arrow-left {
        left: -5px;
    }
    
    .bestseller-card .carousel-arrow.carousel-arrow-right {
        right: -5px;
    }
    
    /* Asegurar que el carrusel tenga espaciado adecuado */
    .bestseller-card .measures-carousel {
        padding: 0 5px;
        gap: 6px;
    }
    
    /* Ajustar items de medida para pantallas grandes */
    .bestseller-card .measure-item {
        min-width: 55px;
        max-width: 75px;
        padding: 4px 8px;
    }
}

/* === MEJORAS DISEÑO MÓVIL PARA "LOS MÁS PEDIDOS" === */
@media (max-width: 768px) {
    /* Fondo degradado azul para la sección */
    .bestsellers-section {
        background: linear-gradient(135deg, #1946AB 0%, #3366CC 50%, #1a3a6c 100%) !important;
        padding: 40px 0 50px !important;
        position: relative;
        overflow: hidden;
    }
    
    /* Patrón decorativo sutil */
    .bestsellers-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 1;
        pointer-events: none;
    }
    
    /* Título mejorado */
    .bestsellers-section h2 {
        color: white !important;
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
        margin-bottom: 30px !important;
        position: relative;
        z-index: 1;
    }
    
    /* Tabs mejorados */
    .bestsellers-tabs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 0 15px 15px;
        margin-bottom: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        position: relative;
        z-index: 1;
    }
    
    .bestsellers-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .bestsellers-tabs .tab-btn {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        color: white !important;
        padding: 8px 16px !important;
        border-radius: 25px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(10px);
    }
    
    .bestsellers-tabs .tab-btn.active {
        background: white !important;
        color: #1946AB !important;
        border-color: white !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Grid mejorado */
    .bestsellers-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 15px 70px;
        scroll-padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative;
        z-index: 1;
    }
    
    .bestsellers-grid::-webkit-scrollbar {
        display: none;
    }
    
    .bestsellers-grid > div {
        flex: 0 0 85%;
        max-width: 300px;
        min-width: 260px;
        scroll-snap-align: center;
        height: auto;
    }
    
    /* Tarjetas mejoradas */
    .bestseller-card {
        background: white !important;
        border-radius: 20px !important;
        padding: 20px 15px 25px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border: 3px solid rgba(255, 215, 0, 0.3) !important;
        position: relative;
        overflow: hidden;
    }
    
    /* Badge "Popular" */
    .bestseller-card::before {
        content: '★ MÁS PEDIDO';
        position: absolute;
        top: 12px;
        right: -30px;
        background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
        color: #1a252f;
        font-size: 0.65rem;
        font-weight: 800;
        padding: 4px 35px;
        transform: rotate(45deg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }
    
    /* Contenedor de imagen - TAMAÑO AUMENTADO */
    .bestseller-img-container {
        width: 200px;
        height: 200px;
        margin-bottom: 15px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    
    .bestseller-img {
        width: 90% !important;
        height: 90% !important;
        object-fit: contain !important;
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15)) !important;
        transition: all 0.3s ease !important;
    }
    
    .bestseller-card:hover .bestseller-img {
        transform: scale(1.05) translateY(-3px) !important;
    }
    
    /* Información del producto */
    .bestseller-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    /* Título del producto */
    .bestseller-title {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #1946AB !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
    
    /* Botón Cotizar */
    .bestseller-actions {
        margin-top: 15px !important;
        width: 100% !important;
    }
    
    .bestseller-actions .btn-bestseller-quote {
        width: 100% !important;
        background: linear-gradient(135deg, #1946AB 0%, #3366CC 100%) !important;
        border: none !important;
        color: white !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(25, 70, 171, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    
    .bestseller-actions .btn-bestseller-quote:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(25, 70, 171, 0.5) !important;
    }
    
    .bestseller-actions .btn-bestseller-quote i {
        margin-right: 8px !important;
        font-size: 1.1rem !important;
    }
    
    /* Indicador de scroll */
    .bestsellers-container::after {
        content: '';
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        z-index: 1;
    }
}

/* === ESTILOS ESPECÍFICOS PARA PANTALLAS MUY PEQUEÑAS === */
@media (max-width: 480px) {
    .bestsellers-section {
        padding: 35px 0 45px !important;
    }
    
    .bestsellers-section h2 {
        font-size: 1.4rem !important;
        margin-bottom: 25px !important;
    }
    
    .bestsellers-tabs .tab-btn {
        padding: 7px 14px !important;
        font-size: 0.8rem !important;
    }
    
    .bestsellers-grid > div {
        flex: 0 0 88%;
        max-width: 280px;
        min-width: 240px;
    }
    
    .bestseller-card {
        padding: 18px 12px 22px !important;
    }
    
    .bestseller-img-container {
        width: 180px;
        height: 180px;
    }
    
    .bestseller-title {
        font-size: 1.05rem !important;
    }
    
    .bestseller-card::before {
        font-size: 0.6rem;
        padding: 3px 30px;
        top: 10px;
        right: -28px;
    }
}

.btn-whatsapp-modal {
    background-color: #25D366;
    /* WhatsApp green */
    border: 2px solid #20A858;
    /* Slightly darker green border */
    color: white;
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.9rem !important;
        /* Force override */
    }
}