﻿/* Custom animations for a professional feel */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Category Carousel Container */
.category-carousel-container {
    position: relative;
    width: 100%;
    /* No max-width or margin here, ensuring it is full screen width */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.category-carousel-wrapper {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #059669 10%, #1e40af 50%, #1e3a8a 100%);
    overflow: hidden;
}

    .category-carousel-wrapper::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: rotateBackground 20s linear infinite;
        pointer-events: none;
    }

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.category-slides-container {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.category-slide {
    min-width: 100%;
    display: flex;
    padding: 2rem;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

    .category-slide.active {
        opacity: 1;
    }

/* Left Panel - Category Info */
.category-info-panel {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}

.category-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease-out;
}

.category-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-weight: 400;
    text-align: justify;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

/* Right Panel - Subcategories Grid */
.category-subcategories-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 2.5rem;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    gap: 3rem;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 10px;
}

.subcategory-item {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 150px;
    /* Removed min-width:200px; for desktop/tablet to allow flexibility */
    animation: fadeInUp 0.6s ease-out backwards;
    background-size: cover;
    background-position: center;
    z-index: 1;
    overflow: hidden;
}

    .subcategory-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .subcategory-item:nth-child(1) {
        animation-delay: 0.3s;
    }

    .subcategory-item:nth-child(2) {
        animation-delay: 0.4s;
    }

    .subcategory-item:nth-child(3) {
        animation-delay: 0.5s;
    }

    .subcategory-item:nth-child(4) {
        animation-delay: 0.6s;
    }

    .subcategory-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.2));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .subcategory-item:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
        border-color: #3b82f6;
    }

        .subcategory-item:hover::after {
            background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.4) 100%);
        }

        .subcategory-item:hover::before {
            opacity: 1;
        }

.subcategory-text-box {
    position: absolute;
    bottom: 0px;
    background: white;
    color: teal;
    padding: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    z-index: 10 !important;
    /* FIX: Allow content to wrap and limit lines to prevent card overflow on small screens */
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to two lines for better visual appeal */
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* Navigation Buttons */
.category-nav-btn {
    position: absolute;
    border-radius: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    bottom: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

    .category-nav-btn:hover {
        background: #3b82f6;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    }

        .category-nav-btn:hover svg {
            color: white;
        }

    .category-nav-btn svg {
        width: 28px;
        height: 28px;
        color: #1e40af;
        transition: color 0.3s ease;
    }

    .category-nav-btn.prev {
        left: 20px;
    }

    .category-nav-btn.next {
        right: 20px;
    }

    .category-nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .category-nav-btn:disabled:hover {
            background: white;
            transform: translateY(-50%);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }

/* Loading state for subcategories */
.subcategory-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Decorative elements */
.category-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.category-info-panel > * {
    position: relative;
    z-index: 2;
}

/* Carousel Progress Bar */
.carousel-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    z-index: 5;
}

.carousel-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

/* Carousel Indicators */
.category-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.category-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .category-indicator.active {
        background: white;
        transform: scale(1.3);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    }

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-slide {
        flex-direction: column;
        padding: 2rem;
    }

    .category-info-panel {
        flex: none;
        padding: 1rem;
    }

    .category-title {
        font-size: 2.5rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .category-subcategories-panel {
        padding-top: 1rem;
        padding-bottom: 5rem; /* Increased padding to make space for indicators below */
    }

    .subcategories-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* --- GENERAL SPACING REDUCTION (MOBILE/TABLET) --- */
    /* Reduced margin/padding for sections for tighter layout */
    .my-16 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .mb-16 {
        margin-bottom: 2.5rem !important;
    }

    .mb-12 {
        margin-bottom: 1.5rem !important;
    }

    .mb-6 {
        margin-bottom: 1rem !important;
    }


    .category-carousel-wrapper {
        min-height: 650px; /* Slightly reduced height */
    }

    /* Ensure padding is inside the full-width carousel on mobile */
    .category-slide {
        padding: 1rem 1.5rem; /* Added horizontal padding for content */
    }


    .category-title {
        font-size: 2rem;
        margin-bottom: 0.75rem; /* Reduced margin */
    }

    .category-description {
        font-size: 0.95rem;
    }

    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* Reduced gap */
        padding: 0; /* Removed padding */
    }

    .subcategory-item {
        min-height: 120px; /* Reduced min height */
        min-width: unset;
    }

    .subcategory-text-box {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* Hide Category Navigation Buttons on Tablet/Mobile */
    .category-nav-btn {
        display: none !important;
    }

    /* Adjust Bestseller Card size */
    .bestseller-product-card {
        flex: 0 0 200px; /* Adjusted fixed width for better fit on tablet/small desktop */
        max-width: 200px;
        min-height: 250px;
    }

    .bestseller-products-grid {
        gap: 0.5rem; /* Reduced gap */
    }

    /* Brochure Download Section optimization */
    .brochure-download-container {
        padding: 1.5rem; /* Reduced padding */
        gap: 0.8rem; /* Reduced gap */
    }

    .brochure-content h3 {
        font-size: 1.5rem; /* Reduced font size */
    }

    .brochure-content p {
        font-size: 1rem; /* Reduced font size */
    }

    .brochure-icon::before {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    /* --- GENERAL SPACING REDUCTION (MOBILE SMALL) --- */
    .my-16 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .category-carousel-wrapper {
        min-height: 550px; /* Further reduced height */
    }

    .category-title {
        font-size: 1.2rem; /* Further reduced title size */
    }
    .category-description {
        font-size: 0.85rem;
    }
    /* Ensure padding is inside the full-width carousel on mobile */
    .category-slide {
        padding: 1rem 0.5rem; /* Reduced horizontal padding to 0.5rem for content on smallest screens */
    }

    /* FIX 2: Remove unnecessary centering and force full width usage for subcategories panel */
    .category-subcategories-panel {
        padding-top: 1rem;
        padding-bottom: 5rem;
        justify-content: flex-start; /* Ensure grid starts from the left */
        width: 100%; /* Ensure panel uses full width */
        max-width: 100%;
        padding-left: 0.5rem; /* Match the padding of category-slide */
        padding-right: 0.5rem; /* Match the padding of category-slide */
    }


    /* Subcategory Cards Fix: Enforce 2-column layout and ensure fluid width/tight spacing */
    .subcategories-grid {
        gap: 0.4rem; /* Tighter gap for two cards to fit side-by-side (reduced from 0.5rem) */
        grid-template-columns: repeat(2, 1fr); /* Enforce 2 columns as requested */
        max-width: 100%; /* Utilize full width of parent panel */
        width: 100%;
        margin: 0; /* Remove auto margin */
        padding: 0;
    }

    .subcategory-item {
        min-height: 100px; /* Further reduced min height */
        min-width: unset; /* Ensure no minimum width constraint */
        width: 100%; /* Explicitly make item fill the grid column */
    }

    .subcategory-text-box {
        font-size: 0.7rem; /* Aggressively reduce font size for 2 columns (reduced from 0.75rem) */
        padding: 6px 4px; /* Tighten padding */
    }

    /* Hide Slideshow Navigation Buttons on Mobile (redundant with Tailwind class but ensuring override) */
    .slideshow-nav-button {
        display: none !important;
    }

    /* Adjusted Bestseller Card size for mobile scroll */
    .bestseller-product-card {
        flex: 0 0 200px; /* Set a fixed smaller width for horizontal scrolling */
        min-width: 120px;
        max-width: 180px;
        min-height: 200px; /* Adjusted height */
    }

    .product-name {
        font-size: 0.9rem;
    }

    .current-price {
        font-size: 1.1rem;
    }

    /* Brochure Download Section optimization */
    .brochure-download-container {
        margin: 1rem 0 !important; /* Tightest section margin */
        padding: 1rem;
    }
      
    .brochure-icon {
        padding: 0.5rem;
    }

        .brochure-icon svg {
            width: 3rem;
            height: 3rem;
        }

        .brochure-icon::before {
            width: 70px;
            height: 70px;
        }

    .brochure-download-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Sildeshow */
.slideshow-container {
    position: relative;
    height: 400px !important;
    z-index: 1 !important;
}

#slideshow-container {
    height: 100% !important;
}

.slideshow-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center;
}

/* Enhanced dots visibility */
#slideshow-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 20 !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

    #slideshow-dots button {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.7);
        background-color: transparent;
        transition: all 0.3s ease;
        cursor: pointer;
        z-index: 21 !important;
    }

        #slideshow-dots button:hover,
        #slideshow-dots button.bg-white {
            background-color: white !important;
            border-color: white;
            transform: scale(1.2);
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px !important;
        max-height: 300px !important;
    }

    #slideshow-dots {
        bottom: 15px;
        padding: 6px 12px;
    }

        #slideshow-dots button {
            width: 10px !important;
            height: 10px !important;
        }

    .category-card {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 250px !important;
        max-height: 250px !important;
    }

    .category-card {
        height: 350px;
    }

    #slideshow-dots {
        bottom: 8px;
        padding: 6px 10px;
    }

        #slideshow-dots button {
            width: 8px !important;
            height: 8px !important;
        }
}

/* Best Seller Card specific styles with proper z-index */
.bestseller-products-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    
}

.bestseller-products-grid {
    display: flex;
    gap: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    transition: justify-content 0.3s ease;
    justify-content: center !important;
    /* Ensure horizontal scrolling is visible on touch devices */
    overflow-x: auto;
}

    /* Custom scrollbar styling */
    .bestseller-products-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar for a cleaner look */
    }

    .bestseller-products-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .bestseller-products-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        border-radius: 10px;
        transition: background 0.3s ease;
    }

        .bestseller-products-grid::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(90deg, #2563eb, #7c3aed);
        }

.bestseller-product-card {
    flex: 0 0 280px; /* Fixed width for each card (Default desktop) */
    max-width: 250px;
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid;
    border-color: #adb5bd;
    min-height: 240px;
}

    .bestseller-product-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        border-color: #3b82f6;
        z-index: 10;
    }

    .bestseller-product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .bestseller-product-card:hover::before {
        opacity: 1;
    }

/* Navigation arrows for horizontal scroll */
.scroll-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none; /* Default hidden, controlled by JS and Tailwind in HTML */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .scroll-navigation:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: #3b82f6;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    }

.scroll-left {
    left: -10px;
}

.scroll-right {
    right: -10px;
}

.scroll-navigation svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    transition: color 0.3s ease;
}

.scroll-navigation:hover svg {
    color: #2563eb;
}

/* Fade effect at edges */
/* Removed: Relying on native scroll and ensuring the container is full width */
.bestseller-products-container::before,
.bestseller-products-container::after {
    content: none;
    place-content:center;
}


/* Product Image Container */
.product-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    margin: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bestseller-product-card:hover .image-overlay {
    opacity: 1;
}



/* Product Info */
.product-info {
    padding: 0 10px 10px;
    position: relative;
    z-index: 2;
}

.product-header {
    margin-bottom: 12px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-code {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

    .star.filled {
        color: #fbbf24;
        filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.5));
    }

    .star.empty {
        color: #e5e7eb;
    }

.rating-text {
    font-size: 12px;
    color: #64748b;
    margin-left: 6px;
}

/* Product Footer */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

@media (max-width: 768px) {
    .current-price {
        font-size: 16px;
        font-weight: 800;
        color: #059669;
        line-height: 1;
    }

    .star-rating {
        display: flex;
        align-items: center;
        gap: 0.5px;
    }

    .star {
        width: 12px;
        height: 12px;
        transition: all 0.2s ease;
    }

    .product-name {
        font-size: 15px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 4px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-code {
        font-size: 10px;
        color: #64748b;
        font-weight: 500;
    }
}

/* Product Highlights */
.product-highlights {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bestseller-product-card:hover .animated-border {
    opacity: 1;
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #d1d5db;
}

.no-products-icon {
    margin-bottom: 1rem;
}

/* Enhanced fade-in animation with proper z-index */
.fade-in-on-scroll {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(2px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

    .fade-in-on-scroll.animate {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

/* Enhanced info card styles with proper z-index */
.info-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease;
    }

    .info-card:hover::before {
        left: 100%;
    }

    .info-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.2);
        z-index: 2; /* Still much lower than dropdown */
    }

    .info-card .card-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #008080, #1d4ed8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        z-index: 10;
    }

    .info-card:hover .card-icon {
        transform: scale(1.1) rotate(20deg);
    }

    .info-card .card-content {
        position: relative;
        z-index: 2;
    }

/* Section title enhancement with proper z-index */
.section-title {
    position: relative;
    z-index: 1;
    display: flex;
    background: linear-gradient(135deg, #1e293b, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 5px;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        border-radius: 2px;
    }

/* Card number indicators with proper z-index */
.card-number {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 3;
    transition: all 0.4s ease;
}

.info-card:hover .card-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* FIXED: Brochure download section - ensuring visibility */
.brochure-download-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin: 4rem auto;
    display: flex !important;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    border: 1px solid #e2e8f0;
}

.brochure-icon {
    position: relative;
    flex-shrink: 0;
}

    .brochure-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120px;
        height: 120px;
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

.brochure-content {
    flex-grow: 1;
}

    .brochure-content h3 {
        color: #116f6f;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .brochure-content p {
        color: #64748b;
        font-size: 1.125rem;
        line-height: 1.6;
    }

.brochure-download-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .brochure-download-btn:hover {
        background: linear-gradient(135deg, #1d4ed8, #2563eb);
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    }



/* Ensure main content has proper stacking context */
main {
    position: relative;
    z-index: 1;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    /* General Spacing and Typography Adjustment */
    .section-title {
        font-size: 2.5rem; /* Adjusted from 5xl (desktop) */
        margin-bottom: 1.5rem !important; /* Reduced margin */
    }

    .brochure-download-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem; /* Tighter padding */
        gap: 1rem; /* Tighter gap */
        margin: 2rem 0 !important; /* Reduced margin for sections */
    }

    .brochure-content h3 {
        font-size: 1.5rem; /* Reduced font size */
    }


    .info-card {
        margin-bottom: 1rem; /* Reduced spacing between cards in column layout */
        z-index: 1;
    }

        .info-card:hover {
            transform: translateY(-8px) scale(1.01);
            z-index: 2;
        }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .slideshow-container {
        z-index: 1 !important;
    }

}

@media (max-width: 480px) {
    /* --- GENERAL SPACING REDUCTION (MOBILE SMALL) --- */
    .my-16 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .mb-16 {
        margin-bottom: 1.5rem !important;
    }

    .bestseller-products-grid {
        /* Now single column on smallest screens, but the flex/scroll setup handles it */
        /* grid-template-columns: 1fr; */
    }

    .section-title {
        font-size: 2rem; /* Further reduced title size */
        margin-bottom: 2rem !important; /* Tighter title margin */
    }

    .info-card {
        padding: 1.5rem; /* Smaller padding for cards */
    }

        .info-card .card-content .text-2xl {
            font-size: 1.5rem;
        }

    .category-carousel-wrapper {
        min-height: 550px; /* Further reduced height */
    }

    .category-title {
        font-size: 1.5rem; /* Further reduced title size */
    }

    /* Ensure padding is inside the full-width carousel on mobile */
    .category-slide {
        padding: 1rem 0.5rem; /* Reduced horizontal padding to 0.5rem for content on smallest screens */
    }

    /* FIX 2: Remove unnecessary centering and force full width usage for subcategories panel */
    .category-subcategories-panel {
        padding-top: 1rem;
        padding-bottom: 5rem;
        justify-content: flex-start; /* Ensure grid starts from the left */
        width: 100%; /* Ensure panel uses full width */
        max-width: 100%;
        padding-left: 0.5rem; /* Match the padding of category-slide */
        padding-right: 0.5rem; /* Match the padding of category-slide */
    }

    /* Subcategory Cards Fix: Enforce 2-column layout and ensure fluid width/tight spacing */
    .subcategories-grid {
        gap: 0.4rem; /* Tighter gap for two cards to fit side-by-side (reduced from 0.5rem) */
        grid-template-columns: repeat(2, 1fr); /* Enforce 2 columns as requested */
        max-width: 100%; /* Utilize full width of parent panel */
        width: 100%;
        margin: 0; /* Remove auto margin */
        padding: 0;
    }

    .subcategory-item {
        min-height: 90px; /* Further reduced min height */
        min-width: unset; /* Ensure no minimum width constraint */
        width: 100%; /* Explicitly make item fill the grid column */
    }

    .subcategory-text-box {
        font-size: 0.7rem; /* Aggressively reduce font size for 2 columns (reduced from 0.75rem) */
        padding: 6px 4px; /* Tighten padding */
    }

    /* Hide Slideshow Navigation Buttons on Mobile (redundant with Tailwind class but ensuring override) */
    .slideshow-nav-button {
        display: none !important;
    }

    /* Adjusted Bestseller Card size for mobile scroll */
    .bestseller-product-card {
        flex: 0 0 200px; /* Set a fixed smaller width for horizontal scrolling */
        min-width: 200px;
        max-width: 200px;
        min-height: 240px; /* Adjusted height */
    }

    .product-name {
        font-size: 0.9rem;
    }

    .current-price {
        font-size: 1.1rem;
    }

    /* Brochure Download Section optimization */
    .brochure-download-container {
        margin: 1rem 0 !important; /* Tightest section margin */
        padding: 1rem;
    }

    .brochure-icon {
        padding: 0.5rem;
    }

        .brochure-icon svg {
            width: 3rem;
            height: 3rem;
        }

        .brochure-icon::before {
            width: 70px;
            height: 70px;
        }

    .brochure-download-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Sildeshow */
.slideshow-container {
    position: relative;
    height: 400px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
    z-index: 1 !important;
}

#slideshow-container {
    height: 100% !important;
}

.slideshow-container img {
    width: 100%;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center;
}

/* Enhanced dots visibility */
#slideshow-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 20 !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

    #slideshow-dots button {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.7);
        background-color: transparent;
        transition: all 0.3s ease;
        cursor: pointer;
        z-index: 21 !important;
    }

        #slideshow-dots button:hover,
        #slideshow-dots button.bg-white {
            background-color: white !important;
            border-color: white;
            transform: scale(1.2);
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px !important;
        max-height: 300px !important;
    }

    #slideshow-dots {
        bottom: 15px;
        padding: 6px 12px;
    }

        #slideshow-dots button {
            width: 10px !important;
            height: 10px !important;
        }

    .category-card {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 250px !important;
        max-height: 250px !important;
    }

    .category-card {
        height: 350px;
    }
}

/* Best Seller Card specific styles with proper z-index */
.bestseller-products-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 0 10px;
    place-content: center;
}

.bestseller-products-grid {
    display: flex;
    gap: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    transition: justify-content 0.3s ease;
    justify-content: center;
    /* Ensure horizontal scrolling is visible on touch devices */
    overflow-x: auto;
}

    /* Custom scrollbar styling */
    .bestseller-products-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar for a cleaner look */
    }

    .bestseller-products-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .bestseller-products-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        border-radius: 10px;
        transition: background 0.3s ease;
    }

        .bestseller-products-grid::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(90deg, #2563eb, #7c3aed);
        }

.bestseller-product-card {
    flex: 0 0 280px; /* Fixed width for each card (Default desktop) */
    max-width: 240px;
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid;
    border-color: #adb5bd;
    min-height: 250px;
}

    .bestseller-product-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        border-color: #3b82f6;
        z-index: 10;
    }

    .bestseller-product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .bestseller-product-card:hover::before {
        opacity: 1;
    }

/* Navigation arrows for horizontal scroll */
.scroll-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none; /* Default hidden, controlled by JS and Tailwind in HTML */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .scroll-navigation:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: #3b82f6;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    }

.scroll-left {
    left: -10px;
}

.scroll-right {
    right: -10px;
}

.scroll-navigation svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    transition: color 0.3s ease;
}

.scroll-navigation:hover svg {
    color: #2563eb;
}

/* Fade effect at edges */
/* Removed: Relying on native scroll and ensuring the container is full width */
.bestseller-products-container::before,
.bestseller-products-container::after {
    content: none;
}


/* Product Image Container */
.product-image-container {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    margin: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bestseller-product-card:hover .image-overlay {
    opacity: 1;
}



/* Product Info */
.product-info {
    padding: 0 10px 10px;
    position: relative;
    z-index: 2;
}

.product-header {
    margin-bottom: 12px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-code {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

    .star.filled {
        color: #fbbf24;
        filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.5));
    }

    .star.empty {
        color: #e5e7eb;
    }

.rating-text {
    font-size: 12px;
    color: #64748b;
    margin-left: 6px;
}

/* Product Footer */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

@media (max-width: 768px) {
    .current-price {
        font-size: 16px;
        font-weight: 800;
        color: #059669;
        line-height: 1;
    }

    .star-rating {
        display: flex;
        align-items: center;
        gap: 0.5px;
    }

    .star {
        width: 12px;
        height: 12px;
        transition: all 0.2s ease;
    }

    .product-name {
        font-size: 15px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 4px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-code {
        font-size: 10px;
        color: #64748b;
        font-weight: 500;
    }
}

/* Product Highlights */
.product-highlights {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bestseller-product-card:hover .animated-border {
    opacity: 1;
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #d1d5db;
}

.no-products-icon {
    margin-bottom: 1rem;
}

/* Enhanced fade-in animation with proper z-index */
.fade-in-on-scroll {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(2px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

    .fade-in-on-scroll.animate {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

/* Enhanced info card styles with proper z-index */
.info-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease;
    }

    .info-card:hover::before {
        left: 100%;
    }

    .info-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.2);
        z-index: 2; /* Still much lower than dropdown */
    }

    .info-card .card-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #008080, #1d4ed8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        z-index: 10;
    }

    .info-card:hover .card-icon {
        transform: scale(1.1) rotate(20deg);
    }

    .info-card .card-content {
        position: relative;
        z-index: 2;
    }

/* Section title enhancement with proper z-index */
.section-title {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: linear-gradient(135deg, #1e293b, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 4px;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        border-radius: 2px;
    }

/* Card number indicators with proper z-index */
.card-number {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 3;
    transition: all 0.4s ease;
}

.info-card:hover .card-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* FIXED: Brochure download section - ensuring visibility */
.brochure-download-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin: 4rem auto;
    display: flex !important;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    border: 1px solid #e2e8f0;
}

.brochure-icon {
    position: relative;
    flex-shrink: 0;
}

    .brochure-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120px;
        height: 120px;
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

.brochure-content {
    flex-grow: 1;
}

    .brochure-content h3 {
        color: #116f6f;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .brochure-content p {
        color: #64748b;
        font-size: 0.9rem;
        line-height: 1.6;
    }

.brochure-download-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .brochure-download-btn:hover {
        background: linear-gradient(135deg, #1d4ed8, #2563eb);
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    }



/* Ensure main content has proper stacking context */
main {
    position: relative;
    z-index: 1;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    /* General Spacing and Typography Adjustment */
    .section-title {
        font-size: 2.5rem; /* Adjusted from 5xl (desktop) */
        margin-bottom: 1.5rem !important; /* Reduced margin */
    }

    .brochure-download-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem; /* Tighter padding */
        gap: 1rem; /* Tighter gap */
        margin: 2rem 0 !important; /* Reduced margin for sections */
    }

    .brochure-content h3 {
        font-size: 1.5rem; /* Reduced font size */
    }


    .info-card {
        margin-bottom: 1rem; /* Reduced spacing between cards in column layout */
        z-index: 1;
    }

        .info-card:hover {
            transform: translateY(-8px) scale(1.01);
            z-index: 2;
        }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .slideshow-container {
        z-index: 1 !important;
    }
}

@media (max-width: 480px) {
    /* --- GENERAL SPACING REDUCTION (MOBILE SMALL) --- */
    .my-16 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .mb-16 {
        margin-bottom: 1.5rem !important;
    }
    .card-icon {
        width: 30px;
        height: 30px;
    }

    .bestseller-products-grid {
        /* Now single column on smallest screens, but the flex/scroll setup handles it */
        /* grid-template-columns: 1fr; */
    }

    .section-title {
        font-size: 2rem; /* Further reduced title size */
        margin-bottom: 2rem !important; /* Tighter title margin */
    }

    .info-card {
        padding: 1.5rem; /* Smaller padding for cards */
    }

        .info-card .card-content .text-2xl {
            font-size: 1.5rem;
        }

    .category-carousel-wrapper {
        min-height: 550px; /* Further reduced height */
    }

    .category-title {
        font-size: 2rem; /* Further reduced title size */
    }

    /* Ensure padding is inside the full-width carousel on mobile */
    .category-slide {
        padding: 1rem 0.5rem; /* Reduced horizontal padding to 0.5rem for content on smallest screens */
    }

    /* FIX 2: Remove unnecessary centering and force full width usage for subcategories panel */
    .category-subcategories-panel {
        padding-top: 1rem;
        padding-bottom: 5rem;
        /* Removed unnecessary center justification for max width usage */
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        /* Adjusted padding to match the category-slide for edge-to-edge layout */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Subcategory Cards Fix: Enforce 2-column layout and ensure fluid width/tight spacing */
    .subcategories-grid {
        gap: 0.8rem; /* Tighter gap for two cards to fit side-by-side (reduced from 0.5rem) */
        grid-template-columns: repeat(2, 1fr); /* Enforce 2 columns as requested */
        max-width: 100%; /* Utilize full width of parent panel */
        width: 100%;
        margin: 0; /* Remove auto margin */
        padding: 0;
    }

    .subcategory-item {
        min-height: 90px; /* Further reduced min height */
        min-width: unset; /* Ensure no minimum width constraint */
        width: 100%; /* Explicitly make item fill the grid column */
    }

    .subcategory-text-box {
        font-size: 0.7rem; /* Aggressively reduce font size for 2 columns (reduced from 0.75rem) */
        padding: 6px 4px; /* Tighten padding */
    }

    /* Hide Slideshow Navigation Buttons on Mobile (redundant with Tailwind class but ensuring override) */
    .slideshow-nav-button {
        display: none !important;
    }

    /* Adjusted Bestseller Card size for mobile scroll */
    .bestseller-product-card {
        flex: 0 0 180px; /* Set a fixed smaller width for horizontal scrolling */
        min-width: 140px;
        max-width: 200px;
        min-height: 220px; /* Adjusted height */
    }

    .product-name {
        font-size: 0.9rem;
    }

    .current-price {
        font-size: 1.1rem;
    }

    /* Brochure Download Section optimization */
    .brochure-download-container {
        margin: 1rem 0 !important; /* Tightest section margin */
        padding: 1rem;
    }

    .brochure-icon {
        padding: 0.5rem;
    }

        .brochure-icon svg {
            width: 3rem;
            height: 3rem;
        }

        .brochure-icon::before {
            width: 70px;
            height: 70px;
        }

    .brochure-download-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}


/* Ensure sections are visible and properly spaced */
section {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    visibility: visible;
}

/* SECTION DIVIDERS - Elegant gradient lines to separate sections */
.section-divider {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 2rem 0;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.2) 15%, rgba(139, 92, 246, 0.6) 50%, rgba(59, 130, 246, 0.2) 85%, transparent 100% );
    overflow: hidden;
}

    .section-divider::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -100%;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 30%, rgba(59, 130, 246, 0.9) 50%, rgba(255, 255, 255, 0.8) 70%, transparent 100% );
        animation: dividerShimmer 3s ease-in-out infinite;
        filter: blur(1px);
    }

@keyframes dividerShimmer {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        left: 100%;
        opacity: 1;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

/* Alternative divider with decorative elements */
.section-divider-decorative {
    position: relative;
    height: 60px;
    width: 100%;
    margin: 1.5rem 0; /* Reduced margin */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .section-divider-decorative {
        margin: 1rem 0; /* Tightest margin on small mobile */
    }
}


.section-divider-decorative::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 25%, rgba(139, 92, 246, 0.8) 50%, rgba(59, 130, 246, 0.3) 75%, transparent 100% );
    transform: translateY(-50%);
}

.section-divider-decorative::after {
    content: '◊';
    background: white;
    color: #3b82f6;
    font-size: 1.5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    animation: decorativeFloat 4s ease-in-out infinite;
}

@keyframes decorativeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        color: #3b82f6;
    }

    50% {
        transform: translateY(-5px) rotate(45deg);
        color: #8b5cf6;
    }
}

/* Minimalist divider */
.section-divider-minimal {
    position: relative;
    height: 2px;
    width: 200px;
    margin: 3rem auto;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

    .section-divider-minimal::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -2px;
        right: -2px;
        height: 4px;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100% );
        border-radius: 2px;
        animation: minimalGlow 2s ease-in-out infinite alternate;
    }

@keyframes minimalGlow {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

/* Section spacing with dividers */
.section-with-divider {
    margin: 5rem 0;
}

    .section-with-divider:not(:last-child) {
        padding-bottom: 2rem;
    }
