/**
 * Swiper 커스텀 스타일
 * 제품 슬라이더 전용 CSS
 */

/* ========================================
   제품 슬라이더 섹션 기본 스타일
======================================== */
.product-slider-section {
    padding: 80px 0 120px;
    background: #f8f9fa;
    overflow: hidden;
    background: url('../img/section-bg-02.jpg') no-repeat bottom;
}

.ps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* 헤더 영역 */
.ps-header {
    margin-bottom: 50px;
}

.ps-main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.ps-main-title .highlight {
    color: #ffd700;
}

.ps-sub-title {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   제품 슬라이더 컨테이너
======================================== */
.product-swiper-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 0;
    overflow: visible;
}

.product-swiper {
    width: 100%;
    padding: 0px 0 60px;
    overflow: hidden;
}

.product-swiper .swiper-wrapper {
    width:1600px;
    display: flex;
    align-items: flex-end;
    padding-left: 25.8%;
}

/* ========================================
   제품 슬라이드 기본 스타일
======================================== */
.product-swiper .swiper-slide {
    height: auto;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-swiper .swiper-slide-active {
    z-index: 10;
}

/* ========================================
   슬라이드 컨텐츠 - 활성화된 슬라이드만 세로 크기 증가
======================================== */
.ps-slide-content {
    position: relative;
    width: 100%;
    height: 360px !important;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-swiper .swiper-slide-active .ps-slide-content,
.product-swiper .ps-active .ps-slide-content {
    height: 480px !important;
    transform: translateY(0px);
}

.ps-slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.swiper-slide-active .ps-slide-content img:hover {
    transform: scale(1.15);
}

/* ========================================
   슬라이드 오버레이
======================================== */
.ps-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.35), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.swiper-slide-active .ps-slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.ps-slide-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-top: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

.ps-slide-description {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.ps-detail-btn {
    position: absolute;
    bottom:50px;
    display: inline-block;
    padding: 10px 24px;
    border:0;
    background: #000;
    color: #ffdd00;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ps-detail-btn:hover {
    background: #ffdd00;
    border-color: #ffdd00;
    transform: translateY(-2px);
    color:#000;
}

/* ========================================
   컨트롤 영역
======================================== */
.ps-controls {
    position: absolute;
    top: 20px;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 50px;
    gap: 30px;
    padding: 0;
    z-index: 10;
}

.ps-nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ps-swiper-button-prev,
.ps-swiper-button-next {
    width: 40px;
    height: 40px;
    border: 0;
    background: #c7c7c7;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.ps-swiper-button-prev:hover,
.ps-swiper-button-next:hover {
    background: #333;
}

.ps-counter {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ps-current {
    font-size: 20px;
    color: #333;
}

.ps-total {
    color: #666;
}

/* ========================================
   탭 메뉴
======================================== */
.ps-tabs {
    display: flex;
    gap: 1px;
    flex: 1;
    justify-content: flex-end;
}

.ps-tab {
    background: #ffdd00;
    color: #000;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    white-space: nowrap;
}

.ps-tab:hover {
    background: #d8d8d8;
}

.ps-tab.active {
    background: #000;
    color: #ffd700;
    z-index: 10;
}

/* ========================================
   슬라이드 활성 효과 (애니메이션 강조)
======================================== */
.slide-active-effect {
    animation: pulseGlow 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

/* ========================================
   반응형 - 태블릿
======================================== */
@media screen and (max-width: 1024px) {
    .product-swiper .swiper-slide {
        width: calc(33.333% - 10px) !important;
    }
    
    .ps-slide-content {
        height: 350px !important;
    }
    
    .swiper-slide-active .ps-slide-content,
    .ps-active .ps-slide-content {
        height: 350px !important;
        transform: translateY(0);
    }
    
    .ps-controls {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .ps-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   반응형 - 모바일
======================================== */
@media screen and (max-width: 768px) {
    .product-slider-section{
        padding: 50px 0;
    }
    .ps-container{
        width:100%;
        padding:20px
    }
    .ps-header{
        margin-bottom: 10px;
    }
    .ps-header h2{
        font-size:36px;
    }
    .ps-header br{
        display:none;
    }
    .product-swiper .swiper-slide {
        width: calc(50% - 7.5px) !important;
    }
    
    .ps-slide-content {
        height: 320px !important;
    }
    
    .swiper-slide-active .ps-slide-content,
    .ps-active .ps-slide-content {
        height: 320px !important;
        transform: translateY(0);
    }
    
    .ps-slide-overlay {
        padding: 20px;
    }
    
    .ps-slide-title {
        font-size: 18px;
    }
    
    .ps-slide-description {
        font-size: 13px;
    }
    
    .ps-tab {
        width: 140px;
        padding: 8px 16px;
        font-size: 13px;
    }
    .ps-controls{
        position:relative;
        max-width: 100%;
        margin: 0;
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 480px) {
    .product-swiper .swiper-wrapper{
        width:100%;
        padding: 0;
    }
    .product-swiper .swiper-slide {
        width: 100% !important;
    }
    .ps-slide-content img{
        /* display: flex; */
        /* width:100%; */
        /* height: auto; */
    }
    .product-swiper .swiper-slide-active .ps-slide-content, .product-swiper .ps-active .ps-slide-content{
        height: auto !important;
    }
    .ps-slide-content {
        /* width: 100%; */
        height: auto !important;
    }
    
    .swiper-slide-active .ps-slide-content,
    .ps-active .ps-slide-content {
        height: 280px !important;
        transform: translateY(0);
    }
    
    .ps-slide-title {
        font-size: 16px;
    }
    
    .ps-slide-description {
        font-size: 12px;
    }
}

