/**
 * Vivaia Editorial Slider Styles
 */

/* =============================================
   Reset & Base
   ============================================= */

.vivaia-eds-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vivaia-eds-wrapper *,
.vivaia-eds-wrapper *::before,
.vivaia-eds-wrapper *::after {
    box-sizing: border-box;
}

/* =============================================
   Responsive Toggle
   ============================================= */

.vivaia-eds-mobile {
    display: none;
}

.vivaia-eds-desktop {
    display: block;
    position: relative;
}

@media (max-width: 767px) {
    .vivaia-eds-desktop {
        display: none;
    }
    .vivaia-eds-mobile {
        display: block;
    }
}

/* =============================================
   Desktop Layout
   ============================================= */

.vivaia-eds-swiper {
    width: 100%;
    height: auto !important;
    overflow: hidden;
}

.vivaia-eds-slide {
    position: relative;
    width: 100%;
}

/* Layer 1: Full background image */
.vivaia-eds-slide-bg {
    position: relative;
    z-index: 1;
}

.vivaia-eds-main-img,
.vivaia-eds-main-img img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Layer 2: Content panel overlay */
.vivaia-eds-panel {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 460px;
    padding: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vivaia-eds-panel-heading {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
}

.vivaia-eds-panel-image {
    margin-bottom: 16px;
}

.vivaia-eds-panel-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.vivaia-eds-panel-quote {
    margin-bottom: 16px;
}

.vivaia-eds-panel-quote p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

.vivaia-eds-panel-cta {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    transition: background-color 0.2s ease, color 0.2s ease;
    letter-spacing: 0.05em;
}

.vivaia-eds-panel-cta:hover {
    background-color: #000;
    color: #fff;
}

/* =============================================
   Desktop Navigation Arrows
   ============================================= */

.vivaia-eds-wrapper button.vivaia-eds-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8) !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #000 !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    padding: 0;
}

.vivaia-eds-wrapper button.vivaia-eds-arrow:hover {
    color: #555 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.vivaia-eds-arrow-prev {
    left: 16px;
}

.vivaia-eds-arrow-next {
    right: 16px;
}

/* =============================================
   Mobile Layout
   ============================================= */

.vivaia-eds-mobile-heading {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px;
    padding: 0 16px;
}

.vivaia-eds-mobile-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 24px;
}

.vivaia-eds-mobile-slide {
    width: 100%;
}

.vivaia-eds-mobile-main-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.vivaia-eds-mobile-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vivaia-eds-mobile-bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 14px 16px;
    align-items: start;
}

.vivaia-eds-mobile-product img {
    width: 90px;
    height: auto;
    object-fit: contain;
    display: block;
}

.vivaia-eds-mobile-quote p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* =============================================
   Mobile Scrollbar
   ============================================= */

.vivaia-eds-mobile-scrollbar {
    height: 3px;
    margin: 12px 16px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.vivaia-eds-mobile-scrollbar .swiper-scrollbar-drag {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}
