/* Product Showcase Widget Styles */

.lg-product-showcase {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

/* Tab Navigation */
.lg-ps-tabs {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
    /* Spacing below tabs */
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.lg-ps-tab-btn {
    position: relative;
    background-color: #fce7f3;
    /* Pink-100 */
    color: #be185d;
    /* Pink-700 */
    font-weight: 500;
    cursor: pointer;
    z-index: 20;
    border: 1px solid #f9a8d4;
    /* Pink-300 */
    border-radius: 9999px;
    /* Pill shape */
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    outline: none;
}

.lg-ps-tab-btn:hover {
    background-color: #f9a8d4;
    /* Pink-300 */
    color: #831843;
    /* Pink-900 */
}

.lg-ps-tab-btn.active {
    background-color: #f472b6;
    /* Pink-400 */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #f472b6;
}

.lg-ps-tab-btn::after {
    display: none;
    /* Remove previous underline style */
}

/* Tab Content Animation */
.lg-ps-tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.lg-ps-tab-pane.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Slider */
.lg-ps-main-swiper {
    width: 100%;
    border-radius: 0.5rem;
    /* Matches rectangle in diagram */
    background-color: transparent;
}

/* Mobile slider fixes */
@media (max-width: 767px) {
    .lg-ps-main-swiper {
        height: auto !important;
    }
    
    .lg-ps-main-swiper .swiper-slide {
        height: auto !important;
    }
    
    .lg-ps-main-swiper .swiper-slide img {
        width: 100%;
        height: auto !important;
        object-fit: contain;
    }
}

/* Prevent selection highlight when dragging/swiping */
.lg-ps-main-swiper img,
.lg-ps-main-swiper .swiper-slide {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.lg-ps-main-swiper .swiper-wrapper {
    -webkit-user-select: none;
    user-select: none;
}

.lg-ps-main-swiper .swiper-button-next,
.lg-ps-main-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50 !important;
    /* Force on top */
    cursor: pointer;
    pointer-events: auto;
    /* Ensure clickable */
}

.lg-ps-main-swiper .swiper-button-next::after,
.lg-ps-main-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.lg-ps-main-swiper .swiper-pagination-bullet-active {
    background: #1e3a8a;
}

/* Colors Section - Slider */
.lg-ps-colors-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.lg-ps-colors-swiper {
    padding: 10px 40px !important;
    /* Padding for arrows */
}

.lg-ps-colors-swiper .swiper-button-next,
.lg-ps-colors-swiper .swiper-button-prev {
    color: #1f2937;
    background: transparent;
    transform: scale(0.8);
}

/* Gallery Section */
.lg-ps-gallery-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Description Section */
.lg-ps-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Mobile Dropdown */
.lg-ps-mobile-nav select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Responsive: Mobile - show dropdown, hide tabs */
/* Desktop - show tabs, hide dropdown */
.lg-ps-mobile-nav {
    display: block;
}

.lg-ps-tabs {
    display: none !important;
}

@media (min-width: 768px) {
    .lg-ps-mobile-nav {
        display: none !important;
    }
    
    .lg-ps-tabs {
        display: flex !important;
    }
}