/* ============================================
   STORE SLIDING SECTION STYLES
   ============================================ */

.store-sliding-section {
    position: relative;
    width: 100%;
    padding: 100px 0 80px;
    background: #fff;
    overflow: hidden;
}

/* Container padding 제거 */
.store-sliding-section .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* 제목 부분만 패딩 추가 */
.store-sliding-section .section-title {
    padding-left: 15px;
    padding-right: 15px;
}

/* Section Headline Styles */
.store-sliding-section .section-title {
    margin-bottom: 70px;
}

.store-sliding-section .section-headline {
    text-align: center;
    margin: 0 auto;
    max-width: 880px;
    padding: 0 24px;
}

.store-sliding-section .headline-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(233, 60, 26, 0.12);
    color: #e93c1a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.store-sliding-section .headline-title {
    margin-top: 20px;
    margin-bottom: 24px;
    font-family: 'GmarketSans', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #222;
}

.store-sliding-section .headline-title .headline-accent {
    display: inline-block;
    color: #e93c1a;
    border-bottom: 6px solid #e93c1a;
    padding-bottom: 6px;
}

.store-sliding-section .headline-lead {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: #404040;
}

.store-sliding-section .headline-desc {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.7;
    color: #626262;
}

.store-sliding-section .headline-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    margin-top: 24px;
    border-radius: 999px;
    background: #1f2a44;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.store-sliding-section .headline-meta strong {
    color: #ffd23c;
    font-weight: 700;
}

/* Store Sliding Wrapper */
.store-sliding-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Store Sliding Container */
.store-sliding-container {
    position: relative;
    width: 100%;
    height: auto; /* 자동 높이 조정 */
    min-height: 400px; /* 최소 높이 보장 */
}

/* Store Sliding Track */
.store-sliding-track {
    display: flex;
    height: auto;
    width: 200%; /* 무한 루프를 위한 고정 너비 */
    gap: 10px; /* 아이템 간격 */
    align-items: stretch; /* 모든 아이템이 동일한 높이를 가지도록 */
}

/* Store Item Styles */
.store-sliding-section .store-item {
    flex-shrink: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 10px solid #e93c1a;
    padding: 0; /* 내부 여백 제거 */
}

/* PC에서 5개 매장이 보이도록 설정 */
.store-sliding-section .store-item {
    width: 10%; /* 200% ÷ 20개 = 10% (PC에서 5개 보이도록) */
}

/* Store Image Styles */
.store-sliding-section .store-image {
    width: 100%;
    height: 300px; /* PC 이미지 높이 */
    background: #ddd;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0; /* 이미지와 매장명 사이 여백 제거 */
    border-radius: 0 !important; /* 이미지 모서리 둥글기 제거 */
}

.store-sliding-section .store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0 !important; /* 이미지 모서리 둥글기 제거 */
}

/* Store Name Styles */
.store-sliding-section .store-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: 'GmarketSans', sans-serif;
    text-align: center;
    line-height: 1.3;
    height: 50px;
    background-color: #b70002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0; /* 불필요한 외부 여백 제거 */
}

/* CSS 무한 슬라이딩 애니메이션 - 왼쪽에서 오른쪽으로 */
@keyframes slideInfinite {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* PC 애니메이션 - 빠른 속도 */
.store-sliding-track {
    animation: slideInfinite 15s linear infinite;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 750px) {
    .store-sliding-section {
        padding: 60px 0 50px;
    }

    .store-sliding-section .section-title {
        margin-bottom: 50px;
    }

    .store-sliding-section .section-headline {
        padding: 0 18px;
    }

    .store-sliding-section .headline-title {
        font-size: 32px;
    }

    .store-sliding-section .headline-lead,
    .store-sliding-section .headline-desc {
        font-size: 17px;
    }

    .store-sliding-section .headline-meta {
        margin-top: 20px;
        padding: 8px 18px;
        font-size: 15px;
    }

    .store-sliding-container {
        height: auto; /* 자동 높이 조정 */
        min-height: 200px; /* 최소 높이 보장 */
    }

    /* 모바일에서 2.5개 매장이 보이도록 */
    .store-sliding-section .store-item {
        width: 35%; /* 모바일에서 2.5개 보이도록 (2.5개 × 35% = 87.5% 화면 사용) */
    }

    .store-sliding-section .store-image {
        height: 150px; /* 모바일 이미지 높이 */
        margin-bottom: 10px;
    }

    .store-sliding-section .store-name {
        font-size: 14px;
        height: 50px;
        background-color: #b70002;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 모바일 애니메이션 - 빠른 속도 */
    .store-sliding-track {
        animation: slideInfinite 10s linear infinite;
    }
}

@media (max-width: 480px) {
    .store-sliding-section {
        padding: 40px 0 30px;
    }
    
    .store-sliding-section .section-title {
        margin-bottom: 40px;
    }

    .store-sliding-section .section-headline {
        padding: 0 16px;
    }
    
    .store-sliding-section .headline-title {
        font-size: 28px;
    }

    .store-sliding-section .headline-lead,
    .store-sliding-section .headline-desc {
        font-size: 16px;
    }

    .store-sliding-section .headline-meta {
        flex-direction: column;
        gap: 4px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .store-sliding-container {
        height: auto;
        min-height: 180px;
    }
    
    .store-sliding-section .store-item {
        width: 35%; /* 모바일 2.5개 표시 유지 */
    }
    
    .store-sliding-section .store-image {
        height: 120px;
        margin-bottom: 8px;
    }
    
    .store-sliding-section .store-name {
        font-size: 12px;
        height: 50px;
        background-color: #b70002;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .store-sliding-section .section-headline {
        padding: 0 14px;
    }

    .store-sliding-section .headline-title {
        font-size: 24px;
    }

    .store-sliding-section .headline-lead,
    .store-sliding-section .headline-desc {
        font-size: 15px;
    }
    
    .store-sliding-container {
        height: auto;
        min-height: 160px;
    }
    
    .store-sliding-section .store-item {
        width: 35%; /* 모바일 2.5개 표시 유지 */
    }
    
    .store-sliding-section .store-image {
        height: 100px;
        margin-bottom: 6px;
    }
    
    .store-sliding-section .store-name {
        font-size: 11px;
        height: 50px;
        background-color: #b70002;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}