/* main-page.css */
body, html {
    font-family: inherit; /* let Tailwind classes apply */
}
/* Dropdown Animation */
.dropdown-transition {
    transition: all 0.3s ease-in-out;
    transform-origin: top;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: scaleY(0);
}

.dropdown-open {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
}

/* Smooth arrow rotation */
.rotate-180 {
    transform: rotate(180deg);
}

.hero-slider-container {
    position: relative;
    overflow: hidden;
    height: 350px;
    width: 100%;
}

/* Tablet and Desktop responsive heights */
@media (min-width: 768px) {
    .hero-slider-container {
        height: 450px;
        max-height: 450px;
    }
}

/* Optional slider image - fixed size on right side */
.slider-optional-image {
    padding-right: 40px;
}

.slider-optional-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Larger screens - bigger optional image */
@media (min-width: 1024px) {
    .slider-optional-image img {
        width: 320px;
        height: 360px;
    }
    .slider-optional-image {
        padding-right: 60px;
    }
}

@media (min-width: 1280px) {
    .slider-optional-image img {
        width: 380px;
        height: 420px;
    }
    .slider-optional-image {
        padding-right: 80px;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 5;
}

/* Slider background images - always full opacity */
.bg-slide-image,
.mobile-slide-image {
    opacity: 1 !important;
}

/* Desktop: Show background image only */
@media (min-width: 768px) {
    .bg-slide-image {
        display: block !important;
        opacity: 1 !important;
    }
    .mobile-slide-image {
        display: none !important;
    }
}

/* Mobile: Show main image as background only */
@media (max-width: 767px) {
    .bg-slide-image {
        display: none !important;
    }
    .mobile-slide-image {
        display: block !important;
        opacity: 1 !important;
    }
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    z-index: 10;
}

.slider-progress span {
    display: block;
    height: 100%;
    background: #F59E0B;
    width: 0%;
    transition: none;
}

.animated-content>* {
    opacity: 0;
    visibility: hidden;
}

.hero-slide.active .animated-content>* {
    visibility: visible;
    opacity: 0;
}

.thumb-image {
    opacity: .5;
    transition: all .25s;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
}

.thumb-image.active {
    opacity: 1;
    border-color: #F59E0B;
    transform: translateY(-4px);
}

/* Mobile thumbnail container scrolling */
@media (max-width: 767px) {
    #thumb-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }

    #thumb-container::-webkit-scrollbar {
        height: 4px;
    }

    #thumb-container::-webkit-scrollbar-track {
        background: transparent;
    }

    #thumb-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    #thumb-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

.text-shadow-lg {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Responsive slider controls */
.hero-slider-container button {
    transition: all 0.3s ease;
}

/* Mobile button adjustments */
@media (max-width: 767px) {
    .hero-slider-container button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .hero-slider-container #prev-slide {
        left: 8px;
    }

    .hero-slider-container #next-slide {
        right: 8px;
    }
}

/* Tablet and desktop */
@media (min-width: 768px) {
    .hero-slider-container button {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}


/* this is carousel part start */
/* Advanced Carousel Container Styles */
.carousel-container {
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

/* Individual Carousel Items */
.carousel-item {
    flex-shrink: 0;
    padding: 0 8px;
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

/* Ensure items are visible on mobile */
@media (max-width: 767px) {
    .carousel-item {
        opacity: 1;
        width: 100% !important;
    }
}

/* 4 items per view carousel (categories/top deals) */
[data-items-desktop="4"] .carousel-item {
    width: 25%;
}

@media (max-width: 767px) {
    [data-items-desktop="4"] .carousel-item {
        width: 100% !important;
    }
}

/* Card Hover Effects */
.card-wrapper {
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.carousel-item:hover .card-wrapper {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Image Overlay Effects */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-item:hover .image-overlay {
    opacity: 1;
}

/* Navigation Buttons */
.carousel-nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pagination Dots */
.carousel-dot {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.carousel-dot:hover {
    transform: scale(1.3);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scrollbar Hide */
.overflow-hidden::-webkit-scrollbar {
    display: none;
}

.overflow-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* this is carousel part end */