/**
 * Vivaia Banner Slider
 */

/* ========================================
   Base Wrapper
   ======================================== */
.vivaia-bs-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.vivaia-bs-swiper {
    width: 100%;
    height: 100%;
}

/* ========================================
   Slide
   ======================================== */
.vivaia-bs-slide {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

/* ========================================
   Background Image
   ======================================== */
.vivaia-bs-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.vivaia-bs-bg-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   Overlay
   ======================================== */
.vivaia-bs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.vivaia-bs-overlay--light {
    background-color: rgba(255, 255, 255, 0.3);
}

.vivaia-bs-overlay--dark {
    background-color: rgba(0, 0, 0, 0.3);
}

/* --custom uses inline style */

/* ========================================
   Content Positioning
   ======================================== */
.vivaia-bs-content-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    pointer-events: none;
    padding: 40px;
    box-sizing: border-box;
}

/* Horizontal */
.vivaia-bs-h-left {
    justify-content: flex-start;
}

.vivaia-bs-h-center {
    justify-content: center;
}

.vivaia-bs-h-right {
    justify-content: flex-end;
}

/* Vertical */
.vivaia-bs-v-top {
    align-items: flex-start;
}

.vivaia-bs-v-middle {
    align-items: center;
}

.vivaia-bs-v-bottom {
    align-items: flex-end;
}

/* ========================================
   Content Area
   ======================================== */
.vivaia-bs-content {
    pointer-events: auto;
    max-width: 60%;
    box-sizing: border-box;
}

.vivaia-bs-content > * + * {
    margin-top: 12px;
}

/* ========================================
   Typography Defaults
   ======================================== */
.vivaia-bs-title {
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.vivaia-bs-subtitle {
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.vivaia-bs-description {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* ========================================
   Button Base
   ======================================== */
.vivaia-bs-btn {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    border: 2px solid transparent;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
    box-sizing: border-box;
}

/* Per-slide overrides via CSS custom properties */
.vivaia-bs-btn[style*="--bs-btn-color"] {
    color: var(--bs-btn-color);
}

.vivaia-bs-btn[style*="--bs-btn-bg"] {
    background-color: var(--bs-btn-bg);
}

.vivaia-bs-btn:hover {
    text-decoration: none;
}

.vivaia-bs-btn[style*="--bs-btn-hover-color"]:hover {
    color: var(--bs-btn-hover-color);
}

.vivaia-bs-btn[style*="--bs-btn-hover-bg"]:hover {
    background-color: var(--bs-btn-hover-bg);
}

/* Solid */
.vivaia-bs-btn--solid {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-color: transparent;
}

/* Outline */
.vivaia-bs-btn--outline {
    color: #fff;
    background-color: transparent;
    border-color: #fff;
}

.vivaia-bs-btn--outline:hover {
    background-color: #fff;
    color: #333;
}

/* Text Link */
.vivaia-bs-btn--text-link {
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vivaia-bs-btn--text-link:hover {
    opacity: 0.8;
}

/* ========================================
   Navigation Arrows
   ======================================== */
.vivaia-bs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    padding: 0;
    outline: none;
}

.vivaia-bs-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.vivaia-bs-arrow svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.vivaia-bs-arrow-prev {
    left: 16px;
}

.vivaia-bs-arrow-next {
    right: 16px;
}

/* ========================================
   Pagination
   ======================================== */
.vivaia-bs-pagination {
    position: absolute;
    bottom: 2.5rem;
    left: 10rem;
    width: calc(100% - 20rem);
    height: 1.875rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bar-style bullets (vivaia.com style) */
.vivaia-bs-pagination .swiper-pagination-bullet {
    display: inline-block;
    width: 3.125rem;
    height: 0.25rem;
    border-radius: 0.125rem;
    background-color: #fff;
    opacity: 0.6;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.vivaia-bs-pagination .swiper-pagination-bullet:first-child {
    margin-left: 0;
}

.vivaia-bs-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Fraction */
.vivaia-bs-pagination.swiper-pagination-fraction {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Progressbar */
.vivaia-bs-pagination.swiper-pagination-progressbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    top: auto;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
}

.vivaia-bs-pagination .swiper-pagination-progressbar-fill {
    background-color: #fff;
}

/* ========================================
   Product Showcase Card (within slides)
   ======================================== */
.vivaia-bs-slide .vivaia-bs-showcase-card {
    position: absolute;
    left: 3.13vw;
    bottom: 3.13vw;
    z-index: 3;
    display: flex;
    align-items: center;
    column-gap: 1.04vw;
    padding: 1.04vw;
    max-width: 32.76vw;
    background: rgba(224, 224, 224, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.04vw;
    box-sizing: border-box;
    font-family: 'Graphik', 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    pointer-events: auto;
}

.vivaia-bs-slide .vsc-product-img {
    width: 8.1vw;
    height: 8.1vw;
    object-fit: cover;
    border-radius: 0.52vw;
    flex-shrink: 0;
    display: block;
}

.vivaia-bs-slide .vsc-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.26vw;
}

.vivaia-bs-slide .vsc-product-name {
    font-size: 0.83vw;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vivaia-bs-slide .vsc-product-desc {
    font-size: 0.63vw;
    line-height: 1.4;
    margin: 0;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vivaia-bs-slide .vsc-price-container {
    display: flex;
    align-items: center;
}

.vivaia-bs-slide .vsc-price-display {
    font-size: 0.73vw;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.3vw;
    flex-wrap: wrap;
}

.vivaia-bs-slide .vsc-price-display ins {
    text-decoration: none;
}

.vivaia-bs-slide .vsc-price-display del {
    opacity: 0.5;
    font-weight: 400;
}

.vivaia-bs-slide .vsc-color-size {
    display: flex;
    align-items: center;
    gap: 0.52vw;
    font-size: 0.57vw;
    color: #333;
}

.vivaia-bs-slide .vsc-color,
.vivaia-bs-slide .vsc-size {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vivaia-bs-slide .vsc-divider {
    width: 1px;
    height: 0.83vw;
    background-color: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.vivaia-bs-slide .vsc-button-container {
    display: flex;
    gap: 0.52vw;
    margin-top: 0.26vw;
}

.vivaia-bs-slide .vsc-shop-btn,
.vivaia-bs-slide .vsc-see-more-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.36vw 0;
    font-size: 0.57vw;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 0.26vw;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.4;
}

.vivaia-bs-slide .vsc-shop-btn {
    background-color: #000;
    color: #fff;
    border: 1px solid transparent;
}

.vivaia-bs-slide .vsc-shop-btn:hover {
    background-color: #333;
    color: #fff;
}

.vivaia-bs-slide .vsc-see-more-btn {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}

.vivaia-bs-slide .vsc-see-more-btn:hover {
    background-color: #000;
    color: #fff;
}

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

/* Tablet for showcase card */
@media (max-width: 1024px) {
    .vivaia-bs-slide .vivaia-bs-showcase-card {
        max-width: 50vw;
        padding: 1.5vw;
        column-gap: 1.5vw;
        border-radius: 1.5vw;
        left: 3vw;
        bottom: 3vw;
    }

    .vivaia-bs-slide .vsc-product-img {
        width: 12vw;
        height: 12vw;
        border-radius: 1vw;
    }

    .vivaia-bs-slide .vsc-product-info {
        gap: 0.5vw;
    }

    .vivaia-bs-slide .vsc-product-name {
        font-size: 1.4vw;
    }

    .vivaia-bs-slide .vsc-product-desc {
        font-size: 1.1vw;
    }

    .vivaia-bs-slide .vsc-price-display {
        font-size: 1.2vw;
        gap: 0.5vw;
    }

    .vivaia-bs-slide .vsc-color-size {
        font-size: 1vw;
        gap: 0.8vw;
    }

    .vivaia-bs-slide .vsc-divider {
        height: 1.2vw;
    }

    .vivaia-bs-slide .vsc-button-container {
        gap: 0.8vw;
        margin-top: 0.5vw;
    }

    .vivaia-bs-slide .vsc-shop-btn,
    .vivaia-bs-slide .vsc-see-more-btn {
        font-size: 1vw;
        padding: 0.6vw 0;
        border-radius: 0.5vw;
    }
}

@media (max-width: 767px) {
    .vivaia-bs-slide {
        min-height: 300px;
    }

    .vivaia-bs-content-wrap {
        padding: 20px;
    }

    .vivaia-bs-content {
        max-width: 90%;
    }

    .vivaia-bs-arrow {
        display: none;
    }

    .vivaia-bs-pagination {
        bottom: 1.25rem;
        left: 1.5rem;
        width: calc(100% - 3rem);
    }

    .vivaia-bs-pagination .swiper-pagination-bullet {
        width: 2rem;
        margin: 0 0.25rem;
    }

    .vivaia-bs-slide.vivaia-bs-hide-title-mobile .vivaia-bs-title {
        display: none;
    }

    .vivaia-bs-slide.vivaia-bs-hide-subtitle-mobile .vivaia-bs-subtitle {
        display: none;
    }

    .vivaia-bs-slide.vivaia-bs-hide-description-mobile .vivaia-bs-description {
        display: none;
    }

    .vivaia-bs-slide.vivaia-bs-hide-button-mobile .vivaia-bs-btn {
        display: none;
    }

    /* Showcase card mobile */
    .vivaia-bs-slide .vivaia-bs-showcase-card {
        left: 12px;
        right: 12px;
        bottom: 50px;
        max-width: calc(100% - 24px);
        padding: 12px;
        column-gap: 12px;
        border-radius: 12px;
    }

    .vivaia-bs-slide .vsc-product-img {
        width: 80px;
        height: 80px;
        border-radius: 8px;
    }

    .vivaia-bs-slide .vsc-product-info {
        gap: 4px;
    }

    .vivaia-bs-slide .vsc-product-name {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }

    .vivaia-bs-slide .vsc-product-desc {
        display: none;
    }

    .vivaia-bs-slide .vsc-price-display {
        font-size: 13px;
        gap: 4px;
    }

    .vivaia-bs-slide .vsc-color-size {
        font-size: 11px;
        gap: 8px;
    }

    .vivaia-bs-slide .vsc-divider {
        height: 12px;
    }

    .vivaia-bs-slide .vsc-button-container {
        gap: 8px;
        margin-top: 4px;
    }

    .vivaia-bs-slide .vsc-see-more-btn {
        display: none;
    }

    .vivaia-bs-slide .vsc-shop-btn {
        font-size: 12px;
        padding: 8px 0;
        border-radius: 4px;
    }

    .vivaia-bs-slide.vivaia-bs-hide-showcase-mobile .vivaia-bs-showcase-card {
        display: none;
    }
}
