/* ========================================
   Product Modal & E-Commerce Styles
   ======================================== */

/* ========================================
   Pearlescent Gradient for Audio Products
   ======================================== */

.product-image-gradient {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-gradient.pearlescent {
    background: radial-gradient(
        circle at center,
        #F4EFFF 0%,
        #eec9fd 50%,
        #d4b3e8 100%
    );
}

@keyframes pearlShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Clean gradient without overlay effects */

/* Audio Icon Overlay */
.product-image-gradient .audio-icon {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    color: #8b5da7;
    filter: drop-shadow(0 4px 16px rgba(95, 49, 121, 0.2));
}

/* No additional decorative elements needed */

/* ========================================
   Modal Overlay & Container
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 1100px;
    max-height: 90vh;
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 30px;
    padding: 30px;
    position: relative;
    margin: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* ========================================
   Modal Image Section & Carousel
   ======================================== */

.modal-image-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 10px;
    padding-right: 10px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

.modal-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

/* Smaller carousel for audio products (no actual images) */
.modal-carousel:has(.gradient-placeholder) {
    height: 250px;
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-images img,
.carousel-images .gradient-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    image-rendering: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    border-radius: 12px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1));
}

.carousel-images img.active,
.carousel-images .gradient-placeholder.active {
    opacity: 1;
    z-index: 1;
}

/* Gradient Placeholder for Audio Products in Modal */
.gradient-placeholder.pearlescent {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #fef5ff 15%,
        #f0e6ff 30%,
        #e8f3ff 45%,
        #fff0f5 60%,
        #fef5ff 75%,
        #ffffff 100%
    );
    background-size: 400% 400%;
    animation: pearlShimmer 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Disable shimmer on mobile to reduce heat */
@media (max-width: 768px) {
    .gradient-placeholder.pearlescent {
        animation: none;
        background: linear-gradient(
            135deg,
            #f5f0ff 0%,
            #fef5ff 50%,
            #f0e6ff 100%
        );
    }
}

.gradient-placeholder .modal-audio-icon {
    font-size: 3.5rem;
    color: rgba(149, 117, 205, 0.6);
    filter: drop-shadow(0 8px 24px rgba(149, 117, 205, 0.3));
}

/* Carousel Counter */
.carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
}

/* Hide counter if only one image */
.carousel-images[data-single-image="true"] ~ .carousel-counter {
    display: none;
}

/* Carousel Navigation Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hide carousel buttons if only one image */
.carousel-images[data-single-image="true"] .carousel-prev,
.carousel-images[data-single-image="true"] .carousel-next {
    display: none;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    flex-shrink: 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 4px;
}

.carousel-dot:hover:not(.active) {
    background: #bbb;
}

/* Hide dots if only one image */
.carousel-dots[data-single-image="true"] {
    display: none;
}

/* ========================================
   Left Column CTA Section (Price & Checkout)
   ======================================== */

.modal-left-cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.modal-left-cta .modal-price-section {
    padding: 16px 0 8px 0;
    border-top: 2px solid var(--light-color);
}

.modal-left-cta .modal-checkout-btn {
    margin-top: 4px;
}

/* ========================================
   Modal Content Section
   ======================================== */

.modal-content-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
    padding-left: 10px;
    padding-right: 15px;
    padding-bottom: 0;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

/* Custom scrollbar for modal content section */
.modal-content-section::-webkit-scrollbar {
    width: 6px;
}

.modal-content-section::-webkit-scrollbar-track {
    background: rgba(139, 93, 167, 0.1);
    border-radius: 10px;
}

.modal-content-section::-webkit-scrollbar-thumb {
    background: rgba(139, 93, 167, 0.3);
    border-radius: 10px;
}

.modal-content-section::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 93, 167, 0.5);
}

.modal-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    width: fit-content;
}

.modal-title {
    font-size: 1.8rem;
    color: #4a2561;
    margin: 0 0 24px 0;
    line-height: 1.3;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 93, 167, 0.12);
}

.modal-description {
    color: #5C5552;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    padding-right: 10px;
    padding-bottom: 100px;
    position: relative;
}

/* Expand description when checkout is active */
.modal-description.checkout-active {
    max-height: none;
    overflow-y: visible;
}

/* Removed floating sparkles */

/* Custom scrollbar for description */
.modal-description::-webkit-scrollbar {
    width: 6px;
}

.modal-description::-webkit-scrollbar-track {
    background: transparent;
}

.modal-description::-webkit-scrollbar-thumb {
    background: rgba(95, 49, 121, 0.2);
    border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb:hover {
    background: rgba(95, 49, 121, 0.4);
}

/* Description paragraph spacing */
.modal-description p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: #5C5552;
}

.modal-description p:last-child {
    margin-bottom: 0;
}

/* Highlighted text in description */
.modal-description .highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Highlighted text - simple purple */
.modal-description .gradient-shimmer {
    color: var(--primary-color);
    font-weight: 600;
}

/* Description sections */
.modal-description .desc-intro {
    margin-bottom: 28px;
}

.modal-description .desc-hook {
    font-size: 1rem;
    margin-bottom: 16px !important;
    color: #4a2561;
    font-weight: 500;
    line-height: 1.7;
}

.modal-description .desc-section {
    margin: 28px 0;
    padding: 20px;
    background: rgba(238, 201, 253, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(139, 93, 167, 0.15);
}

.modal-description .desc-section-title {
    font-size: 1.1rem;
    color: #4a2561;
    margin: 0 0 16px 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Clean bullet list with sparkles */
.modal-description .desc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-description .desc-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: #5C5552;
    line-height: 1.7;
}

.modal-description .desc-list li:last-child {
    margin-bottom: 0;
}

.modal-description .desc-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: #8b5da7;
    font-size: 0.85rem;
}

.modal-description .desc-list .list-title {
    color: #5f3179;
    font-weight: 600;
}

/* Outro section */
.modal-description .desc-outro {
    margin-top: 28px;
}

.modal-description .desc-outro p {
    margin-bottom: 14px;
}

.modal-description .desc-final {
    font-style: italic;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    color: #5f3179;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Description bullet list (legacy - keep for other products) */
.modal-description .description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-description .description-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 3px;
    color: var(--text-dark);
    line-height: 1.4;
}

.modal-description .description-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-description .description-list li strong {
    color: var(--primary-color);
}

/* Description under image (left column) - DEPRECATED */
.modal-image-description {
    display: none;
}

/* What's Included Section */
.modal-features {
    background: var(--light-color);
    padding: 16px;
    border-radius: 8px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 450px;
}

.modal-features h3 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin: 0 0 10px 0;
    font-weight: var(--font-weight-semibold);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar for features list if needed */
.features-list::-webkit-scrollbar {
    width: 4px;
}

.features-list::-webkit-scrollbar-track {
    background: transparent;
}

.features-list::-webkit-scrollbar-thumb {
    background: rgba(95, 49, 121, 0.2);
    border-radius: 2px;
}

.features-list::-webkit-scrollbar-thumb:hover {
    background: rgba(95, 49, 121, 0.4);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.35;
}

.features-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Bundle Add-on Checkbox */
.modal-bundle-option {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 245, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 16px 16px 16px 16px;
    margin: 12px 0;
    border-radius: 12px;
    border: 2px solid rgba(95, 49, 121, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(95, 49, 121, 0.15);
    z-index: 1;
}

.modal-bundle-option::before {
    content: '🎁 BUNDLE & SAVE';
    position: absolute;
    top: -12px;
    left: 22px;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(95, 49, 121, 0.3);
}

.modal-bundle-option:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 239, 255, 0.98) 100%);
    border-color: rgba(95, 49, 121, 0.35);
    box-shadow: 0 6px 24px rgba(95, 49, 121, 0.2);
    transform: translateY(-2px);
}

.modal-bundle-option:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(249, 245, 255, 0.98) 0%, rgba(238, 230, 255, 0.98) 100%);
    box-shadow: 0 6px 24px rgba(95, 49, 121, 0.3);
}

.modal-bundle-option:has(input:checked)::before {
    background: linear-gradient(135deg, #5f3179 0%, #9575cd 100%);
    box-shadow: 0 2px 8px rgba(95, 49, 121, 0.3);
}

.bundle-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.bundle-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.bundle-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.bundle-product-name {
    color: var(--primary-color);
}

.bundle-addon-price {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

.bundle-pricing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bundle-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}

.bundle-discounted-price {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    font-size: 1rem;
}

.bundle-savings {
    display: inline-block;
    color: white;
    background: var(--primary-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    margin-left: 4px;
}

/* Price Display */
.modal-price-section {
    padding: 16px 0;
    border-top: 2px solid var(--light-color);
    margin-top: 8px;
}

.modal-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(95, 49, 121, 0.15);
}

.price-amount.updating {
    animation: priceUpdate 0.4s ease;
}

@keyframes priceUpdate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Checkout Button */
.modal-checkout-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(95, 49, 121, 0.25);
}

.modal-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(95, 49, 121, 0.35);
}

.modal-checkout-btn:active {
    transform: translateY(0);
}

/* Trust Signals */
.modal-trust-signals {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.trust-signal i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Stripe Checkout Embed Container */
#stripe-checkout-embed {
    margin-top: 20px;
    min-height: 500px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Adjust description max-height when checkout appears */
.modal-content-section {
    position: relative;
}

.modal-description {
    transition: max-height 0.3s ease;
}

/* When checkout embed is visible, reduce description height slightly */
#stripe-checkout-embed[style*="display: block"] ~ * .modal-description {
    max-height: 300px;
}

/* ========================================
   Entrance Animations
   ======================================== */

.modal-overlay.active .modal-badge {
    animation: slideInDown 0.4s ease 0.1s both;
}

.modal-overlay.active .modal-title {
    animation: slideInDown 0.4s ease 0.15s both;
}

.modal-overlay.active .modal-description {
    animation: slideInDown 0.4s ease 0.2s both;
}

.modal-overlay.active .modal-bundle-option {
    animation: slideInUp 0.4s ease 0.25s both;
}

.modal-overlay.active .modal-carousel {
    animation: scaleIn 0.5s ease 0.1s both;
}

.modal-overlay.active .modal-price-section {
    animation: slideInUp 0.4s ease 0.2s both;
}

.modal-overlay.active .modal-checkout-btn {
    animation: slideInUp 0.4s ease 0.25s both;
}

.modal-overlay.active .modal-trust-signals {
    animation: fadeIn 0.4s ease 0.3s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-start;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-overlay.active {
        display: block;
    }
    
    .modal-container {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
        margin: 0;
        max-height: none;
        overflow: visible;
        min-height: 100vh;
        border-radius: 0;
    }
    
    .modal-image-section {
        height: auto;
        overflow-y: visible;
        max-height: none;
    }
    
    /* Stripe Checkout Embed - Mobile specific */
    #stripe-checkout-embed {
        min-height: 600px;
        max-height: none;
        overflow: visible;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    /* Ensure Stripe iframe fits properly on mobile */
    #stripe-checkout-embed iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 600px !important;
    }
    
    .modal-carousel {
        aspect-ratio: 4/5;
        min-height: 300px;
        flex: 0 0 auto;
    }
    
    .modal-left-cta {
        margin-top: 0;
        min-height: auto;
        padding-bottom: 20px;
    }
    
    .modal-content-section {
        max-height: none;
        height: auto;
        overflow-y: visible;
    }
    
    .modal-features {
        flex: 0 0 auto;
    }
    
    .features-list {
        max-height: 250px;
        flex: 0 0 auto;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .modal-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .modal-trust-signals {
        gap: 16px;
    }
    
    .trust-signal {
        font-size: 0.75rem;
    }
    
    /* Bundle option mobile adjustments */
    .modal-bundle-option {
        margin: 16px 0;
        padding: 14px;
    }
    
    .bundle-text {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
    }
    
    .modal-container {
        padding: 20px;
        min-height: 100vh;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-description {
        font-size: 0.88rem;
    }
    
    .modal-features {
        padding: 12px;
    }
    
    .features-list {
        max-height: 200px;
    }
    
    .features-list li {
        font-size: 0.85rem;
    }
    
    /* Ensure Stripe embed is fully visible on smaller screens */
    #stripe-checkout-embed {
        min-height: 650px;
        margin-bottom: 60px;
    }
    
    #stripe-checkout-embed iframe {
        min-height: 650px !important;
    }
}

/* ========================================
   Loading States
   ======================================== */

.modal-checkout-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.modal-checkout-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: -10px;
    margin-top: -10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Audio Product Checkout Minimization
   ======================================== */

/* When checkout is active for audio products, hide the carousel completely */
.modal-container.audio-checkout-active .modal-carousel {
    display: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand the stripe checkout embed when active */
.modal-container.audio-checkout-active #stripe-checkout-embed {
    margin-top: 20px;
}

/* Smooth transition for the entire left section */
.modal-image-section {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Image Lightbox for Enlarged View
   ======================================== */

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.image-lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

.image-lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    font-family: Arial, sans-serif;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* Make carousel images clickable for enlargement */
.carousel-images img {
    cursor: zoom-in;
}

/* Responsive adjustments for lightbox navigation */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 0.85rem;
    }
}

.carousel-images img:hover {
    opacity: 0.95;
}
