/* Swiper wrapper and container adjustment to prevent clipping scaled elements or overlapping bottles */
.perfume-carousel-widget-wrapper {
    position: relative;
    width: 100%;
}

.perfume-carousel-container.swiper {
    padding: 30px 30px 45px 30px !important;
    margin: -30px -30px -45px -30px !important;
    overflow: visible !important;
}

/* Slide Item layout */
.perfume-carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.perfume-carousel-item-link {
    text-decoration: none !important;
    display: block;
    width: 100%;
    outline: none;
}

/* Image wrapper layout */
.perfume-carousel-images-wrapper {
    position: relative;
    width: 235px; /* Fallback width */
    height: 235px; /* Fallback height */
    margin: 0 auto 20px auto;
}

/* Primary Portrait Image */
.perfume-carousel-primary-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent; /* Fallback border style */
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.perfume-carousel-primary-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Secondary Perfume Image (overlapping bottom right) */
.perfume-carousel-secondary-wrapper {
    position: absolute;
    bottom: -15px; /* Fallback bottom offset */
    right: -15px; /* Fallback right offset */
    width: 164px; /* Fallback width */
    height: 164px; /* Fallback height */
    z-index: 2;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom center;
}

.perfume-carousel-secondary-wrapper.has-shadow {
    filter: drop-shadow(var(--perfume-shadow-x, 0px) var(--perfume-shadow-y, 10px) var(--perfume-shadow-blur, 15px) var(--perfume-shadow-color, rgba(0, 0, 0, 0.25)));
}

.perfume-carousel-secondary-wrapper.no-shadow {
    filter: none !important;
}

.perfume-carousel-secondary-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* --- Hover Effects --- */
/* 1. Primary portrait enlarges and gets gold border */
.perfume-carousel-item:hover .perfume-carousel-primary-wrapper {
    transform: scale(1.06);
    border-color: #d4af37;
}

/* 2. Secondary perfume tilts on hover */
.perfume-carousel-item.perfume-tilt-right:hover .perfume-carousel-secondary-wrapper {
    transform: scale(1.03) rotate(var(--tilt-angle, 15deg));
}

.perfume-carousel-item.perfume-tilt-left:hover .perfume-carousel-secondary-wrapper {
    transform: scale(1.03) rotate(calc(-1 * var(--tilt-angle, 15deg)));
}

.perfume-carousel-item.perfume-tilt-none:hover .perfume-carousel-secondary-wrapper {
    transform: scale(1.03) rotate(0deg);
}

/* --- Content Styling --- */
.perfume-carousel-content {
    margin-top: 10px;
    width: 100%;
}

.perfume-carousel-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

/* Verified Badge */
.perfume-carousel-verified-badge {
    color: #3897f0;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.perfume-carousel-verified-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}

.perfume-carousel-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #0073aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* --- Navigation Buttons (Arrows) --- */
.perfume-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.perfume-carousel-nav-btn:hover {
    background-color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    color: #d4af37;
}

.perfume-carousel-prev-btn {
    left: -15px;
}

.perfume-carousel-next-btn {
    right: -15px;
}

.perfume-carousel-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Pagination (Dots) --- */
.perfume-carousel-container .swiper-pagination {
    bottom: -15px !important;
}

.perfume-carousel-container .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.perfume-carousel-container .swiper-pagination-bullet-active {
    background-color: #d4af37;
    width: 18px;
    border-radius: 4px;
}
