/* public/css/catalog-wp-public.css */
.catalog-wp-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 8px;
}

.catalog-wp-carousel-track {
    flex: 1;
    display: flex;
    overflow: hidden;
    justify-content: center;
}

.catalog-wp-carousel-slide {
    width: 100%;
    text-align: center;
    display: none; /* JS will toggle to block */
    animation: fade 0.5s;
    position: relative;
}

.catalog-wp-carousel-slide img {
    max-width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.catalog-wp-carousel-caption {
    padding: 10px;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.6);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.catalog-wp-carousel-prev,
.catalog-wp-carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 24px;
    background-color: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    z-index: 10;
    transition: background-color 0.3s;
}

.catalog-wp-carousel-next {
    right: 15px;
}

.catalog-wp-carousel-prev {
    left: 15px;
}

.catalog-wp-carousel-prev:hover,
.catalog-wp-carousel-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Fading animation */
@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}
