/* Luxury Category Slider - Frontend Styles */
/* Ultra-lightweight & Optimized */
/* Version 3.7.0 - Fast Loading with Smooth Transitions + WebP Support */

/* Outer Section */
.lcs-slider-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    clear: both;
    isolation: isolate;

    /* 기본 아래 여백 제거 (설정된 margin은 inline style로 적용됨) */
    margin-bottom: 0;
    padding-bottom: 0;

    /* 초기 로딩 시 숨김 (FOUC 방지) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* 초기화 완료 후 부드럽게 표시 */
.lcs-slider-section.lcs-initialized {
    opacity: 1;
    visibility: visible;
}

/* Container */
.lcs-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Main Wrapper */
.luxury-category-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 40px; /* 좌우 패딩만 유지 (네비게이션 버튼 공간) */
    margin-bottom: 0;
    box-sizing: border-box;

    /* 초기 최소 높이 설정 (Layout Shift 방지) */
    min-height: 120px;
}

/* Swiper Container */
.luxury-category-slider-wrapper .swiper {
    overflow: visible;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Swiper Wrapper */
.luxury-category-slider-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Swiper Slide */
.luxury-category-slider-wrapper .swiper-slide {
    height: auto;
    display: flex;
    flex-shrink: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Category Item */
.lcs-category-item {
    display: block !important;
    position: relative;
    width: 100% !important;
    max-width: 80px !important;
    margin: 0 auto; /* 좌우 가운데 정렬만, 위아래는 0 */
    padding-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.lcs-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lcs-category-item picture {
    display: block;
    width: 100% !important;
    max-width: 80px !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lcs-category-item img {
    width: 100% !important;
    max-width: 80px !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lcs-no-image {
    width: 100% !important;
    max-width: 80px !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1em;
    font-weight: bold;
}

/* Labels */
.lcs-labels {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
    pointer-events: none;
}

.lcs-label {
    display: inline-block;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    color: white;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.lcs-label-trending {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lcs-label-sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.lcs-label-new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.lcs-label-hot {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Category Name */
.lcs-category-name {
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    background: white;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Navigation Buttons - Standard Swiper Classes */
.luxury-category-slider-wrapper .swiper-button-prev,
.luxury-category-slider-wrapper .swiper-button-next,
.lcs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px !important;
    height: 36px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.luxury-category-slider-wrapper .swiper-button-prev:after,
.luxury-category-slider-wrapper .swiper-button-next:after {
    font-size: 14px !important;
    font-weight: bold !important;
    color: white !important;
}

.luxury-category-slider-wrapper .swiper-button-prev:hover,
.luxury-category-slider-wrapper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.luxury-category-slider-wrapper .swiper-button-disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

.luxury-category-slider-wrapper .swiper-button-prev {
    left: 0 !important;
}

.luxury-category-slider-wrapper .swiper-button-next {
    right: 0 !important;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .luxury-category-slider-wrapper {
        padding: 0 30px;
    }

    .lcs-category-item {
        max-width: 70px !important;
    }

    .lcs-category-item img,
    .lcs-no-image {
        max-width: 70px !important;
    }
}

@media (max-width: 768px) {
    .luxury-category-slider-wrapper {
        padding: 0 25px;
    }

    .lcs-category-item {
        max-width: 60px !important;
    }

    .lcs-category-item img,
    .lcs-no-image {
        max-width: 60px !important;
    }

    .luxury-category-slider-wrapper .swiper-button-prev,
    .luxury-category-slider-wrapper .swiper-button-next {
        width: 30px !important;
        height: 30px !important;
    }

    .luxury-category-slider-wrapper .swiper-button-prev:after,
    .luxury-category-slider-wrapper .swiper-button-next:after {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .luxury-category-slider-wrapper {
        padding: 0 30px;
    }

    .lcs-category-item {
        max-width: 65px !important;
    }

    .lcs-category-item img,
    .lcs-no-image {
        max-width: 65px !important;
    }

    .luxury-category-slider-wrapper .swiper-button-prev,
    .luxury-category-slider-wrapper .swiper-button-next {
        width: 24px !important;
        height: 24px !important;
    }

    .luxury-category-slider-wrapper .swiper-button-prev:after,
    .luxury-category-slider-wrapper .swiper-button-next:after {
        font-size: 9px !important;
    }
}

/* Loading State */
.lcs-category-item.loading {
    animation: lcs-pulse 1.5s ease-in-out infinite;
}

@keyframes lcs-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Performance Optimization */
.lcs-category-item,
.lcs-nav-btn {
    will-change: transform;
}

.lcs-category-item img {
    content-visibility: auto;
}
