/* Carousel container */
.carousel-container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
}

/* Carousel wrapper */
.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    width: calc(100% * 5);
    /* Adjust based on the number of visible items */
}

/* Carousel item */
.carousel-item {
    flex: 1 0 25%;
    padding: 0 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Carousel image */
.carousel-image {
    width: 100%;
    max-width: 150px;
    border-radius: 10px;
    transition: transform 0.5s ease-in-out;
}

/* Carousel item */
.carousel-item {
    flex: 1 0 25%;
    padding: 0 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Carousel image */
.carousel-image {
    width: 100%;
    max-width: 150px;
    border-radius: 10px;
    transition: transform 0.5s ease-in-out;
}

/* iPad version */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 1 0 25%;
    }
    .carousel-image {
        width: 80%;
    }
}

/* Mobile version */
@media (max-width: 768px) {
    .carousel-item {
        flex: 1 0 35%; /* Adjust to 2 items per row */
    }
    .carousel-image {
        max-width: 100px; /* Adjust image size */
    }
}

/* Text content overlay */

/* Keyframes for infinite scrolling */
@keyframes infinite-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Carousel animation */
.carousel-wrapper {
    animation: infinite-scroll 30s linear infinite;
}

/* swiper */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 260px !important;
    /* Adjust based on your design needs */
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 1rem;
    text-align: center;
}

.swiper-slide:hover .overlay {
    opacity: 1;
}

.swiper-slide .details {
    margin-top: 1rem;
}

.swiper-slide .title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.swiper-slide .author {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.swiper-slide .rating {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.swiper-slide .icons {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.swiper-slide .icons .a {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    padding: 0.5rem;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.swiper-slide .icons .a:hover {
    /* background: #007bff; */
    background: #ff0000;
    color: #fff;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

/* style for slider marketplace */

/* Swiper Container for Marketplace */
.swiper-container.marketplace-swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* Swiper Slide */
.swiper-container.marketplace-swiper .swiper-slide {
    background: #fff;
    /* White background for slides */
    border-radius: 0.5rem;
    /* Rounded corners for card */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Light shadow */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Slide Image */
.swiper-container.marketplace-swiper .swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    /* Match the card's rounded corners */
    transition: transform 0.3s ease-in-out;
}

/* Slide Image Hover Effect */
.swiper-container.marketplace-swiper .swiper-slide:hover img {
    transform: scale(1.05);
}

/* Slide Content */
.swiper-container.marketplace-swiper .swiper-slide .p-2 {
    padding: 0.5rem;
    text-align: center;
}

/* Slide Title */
.swiper-container.marketplace-swiper .swiper-slide h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Slide Author */
.swiper-container.marketplace-swiper .swiper-slide p {
    font-size: 0.875rem;
    color: #4a4a4a;
    /* Gray text */
    margin-bottom: 0.5rem;
}

/* Slide Rating Icons */
.swiper-container.marketplace-swiper .swiper-slide .flex {
    font-size: 0.75rem;
    color: #f39c12;
    /* Gold color for stars */
}

/* style for icon hrader card and sidbar */

/* Sidebar styles */
#cart-sidebar {
    transform: translateX(100%);
}

#cart-sidebar.open {
    transform: translateX(0);
}

/* Wishlist Sidebar Styles */
#wishlist-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 30;
}

#wishlist-sidebar.open {
    transform: translateX(0);
}

/* Search Card Styles */
#search-card {
    transform: translateY(-100%);
    /* Initially hide the card above the viewport */
}

#search-card.open {
    transform: translateY(0);
    /* Slide down to visible position */
}

#search-card h2 {
    margin: 0;
}

#search-card input {
    margin-bottom: 1rem;
}

#close-search {
    cursor: pointer;
}
