/* ===== 메인 키비주얼 배너 (중앙 확대 + 좌우 미리보기) ===== */
/* 좌우로 비어져 나오는 미리보기 슬라이드가 가로 스크롤을 만들지 않도록 클리핑 */
.main-visual-wrap { width: 100%; overflow: hidden; }
.main-slide-container {
    width: 100%;
    max-width: 1280px;
    margin: 20px auto 0;
    padding-bottom: 80px;   /* 하단 컨트롤바 영역 */
}
.mainSwiper { width: 100%; height: 340px; overflow: visible; position: relative; }
.main-slide-container .swiper-slide {
    height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: all .5s ease;
}
/* 배너 이미지 자체가 완성된 디자인이므로 텍스트 오버레이/그라데이션을 씌우지 않는다 */
.main-slide-container .swiper-slide a { display: block; width: 100%; height: 100%; }
.main-slide-container .swiper-slide-active { z-index: 2; }

/* 하단 컨트롤바 (이전 · N/전체 · 다음 · 재생토글) */
.main-slide-container .swiper-autoplay-control {
    position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
    z-index: 10; width: 200px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.main-slide-container .swiper-button-prev,
.main-slide-container .swiper-button-next {
    position: relative; left: 0; right: 0; top: auto; margin: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #ddd;
    color: var(--text-dark) !important;
    transition: all .3s;
}
.main-slide-container .swiper-button-prev::after,
.main-slide-container .swiper-button-next::after { font-size: 11px; font-weight: 700; }
.main-slide-container .swiper-button-prev:hover,
.main-slide-container .swiper-button-next:hover { background: #fff; border-color: #ccc; }
.main-slide-container .swiper-location {
    font-size: 14px; font-weight: 500; color: var(--text-dark);
    min-width: 50px; text-align: center;
}
.main-slide-container .swiper-location span { color: var(--text-light); }
.main-slide-container .autoplay-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #ddd; background: rgba(255, 255, 255, .9);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--text-dark); cursor: pointer; transition: all .3s;
}
.main-slide-container .autoplay-toggle:hover { background: #fff; border-color: #ccc; }

@media (max-width: 1024px) {
    .mainSwiper, .main-slide-container .swiper-slide { height: 240px; }
}

/* ===== BEST 인기상품 카테고리 탭 ===== */
.best-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.best-tab {
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.best-tab:hover { border-color: var(--accent2); color: var(--accent2); }
.best-tab.active {
    background: var(--text-strong);
    border-color: var(--text-strong);
    color: #fff;
}

.best-panel { display: none; }
.best-panel.active { display: block; }

.section-title .best-more { display: none; }
.section-title .best-more.active { display: inline; }

/* ===== 섹션 타이틀 ===== */
.section { padding: 40px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-title h2 { font-size: 22px; font-weight: 800; color: var(--text-strong); }
.section-title .more { font-size: 13px; color: var(--text-muted); }
.section-title .more:hover { color: var(--accent2); }

/* ===== 상품 그리드 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.product-card { display: block; color: inherit; }
.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f6;
    margin-bottom: 10px;
}
.card-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .35s ease;
}
.product-card:hover .card-thumb img { transform: scale(1.07); }
.card-thumb .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 28px; }

/* 썸네일 마우스오버 액션 (장바구니 / 찜하기) */
.card_actions {
    position: absolute; right: 10px; bottom: 10px;
    display: flex; gap: 8px;
    opacity: 0; transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.product-card:hover .card_actions { opacity: 1; transform: translateY(0); pointer-events: auto; }
.card_act {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--text-dark);
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.card_act:hover { background: var(--text-strong); color: #fff; transform: translateY(-2px); }
.card_act.on { background: var(--sale); border-color: var(--sale); color: #fff; }
@media (hover: none) {
    .card_actions { opacity: 1; transform: none; pointer-events: auto; }
}

.card-info { display: flex; flex-direction: column; gap: 4px; }
.card-info .brand { font-size: 12px; color: var(--text-muted); }
.card-info .name {
    font-size: 14px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.card-info .price { display: flex; flex-direction: column; gap: 1px; }
.card-info .price .list_price {
    font-size: 12px; font-weight: 400; color: var(--text-light, #999);
    text-decoration: line-through;
}
.card-info .price .price_now {
    display: flex; align-items: baseline; gap: 5px;
    font-size: 16px; font-weight: 800; color: var(--text-strong);
}
.card-info .price .sale_rate { color: var(--sale); font-weight: 800; }
.card-info .price .won_t { font-size: 13px; font-weight: 500; margin-left: 1px; }

/* ===== 공지사항 ===== */
/* ===== 하단 3단 (고객리뷰 / FAQ / 공지사항) ===== */
.section-board { background: #fafafa; }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.board-col {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
}
.board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--text-strong);
}
.board-head h2 { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.board-head .more { font-size: 12px; color: var(--text-muted); }
.board-head .more:hover { color: var(--accent2); }
.board-col .empty { padding: 30px 4px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* 고객 리뷰 */
.review-list li { padding: 14px 2px; border-bottom: 1px solid var(--border2); }
.review-list li:last-child { border-bottom: none; }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.review-top .stars { color: #ffb400; font-size: 13px; line-height: 1; letter-spacing: -1px; }
.review-top .date { font-size: 12px; color: var(--text-light); }
.review-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.review-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-bottom .pname {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-bottom .writer { flex: none; font-size: 12px; color: var(--text-light); }

/* FAQ */
.faq-list li { border-bottom: 1px solid var(--border2); }
.faq-list li:last-child { border-bottom: none; }
.faq-list li a { display: flex; align-items: center; gap: 8px; padding: 12px 2px; color: var(--text-dark); }
.faq-list li a .q {
    flex: none;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent2);
    color: #fff;
    font-size: 11px; font-weight: 800;
}
.faq-list li a .title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.faq-list li a .cate { flex: none; font-size: 11px; color: var(--text-light); }
.faq-list li a:hover .title { color: var(--accent2); }

/* 공지사항 */
.notice-list li { border-bottom: 1px solid var(--border2); }
.notice-list li:last-child { border-bottom: none; }
.notice-list li a { display: flex; align-items: center; gap: 8px; padding: 12px 2px; color: var(--text-dark); }
.notice-list li a .badge {
    flex: none;
    background: var(--accent2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
}
.notice-list li a .title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-list li a .date { flex: none; font-size: 12px; color: var(--text-light); }
.notice-list li a:hover .title { color: var(--accent2); }

@media (max-width: 1024px) {
    .board-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .main-visual { height: 260px; }
    .visual-text h2 { font-size: 24px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 기획전 / 브랜드관 (인디케이터 스와이프) ===== */
.promoSwiper, .brandSwiper { padding-bottom: 40px; }
.promoSwiper .swiper-pagination, .brandSwiper .swiper-pagination {
    bottom: 0;
    line-height: 1;
}
.promoSwiper .swiper-pagination-bullet, .brandSwiper .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: var(--text-light);
    opacity: .5;
    transition: width .25s ease, opacity .25s ease, background .25s ease;
}
.promoSwiper .swiper-pagination-bullet-active, .brandSwiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--text-strong);
    opacity: 1;
}

/* 기획전 카드 */
.promo_card { display: block; color: inherit; }
.promo_thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f6;
    margin-bottom: 12px;
}
.promo_thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .35s ease;
}
.promo_card:hover .promo_thumb img { transform: scale(1.05); }
.promo_thumb .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 28px;
}
.promo_state {
    position: absolute; left: 12px; top: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px; font-weight: 700; color: #fff;
    backdrop-filter: blur(4px);
}
.promo_state.ongoing { background: rgba(75, 153, 255, .92); }
.promo_state.scheduled { background: rgba(0, 0, 0, .55); }
.promo_info { display: flex; flex-direction: column; gap: 4px; }
.promo_title {
    font-size: 16px; font-weight: 700; color: var(--text-strong);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.promo_card:hover .promo_title { color: var(--accent2); }
.promo_period { font-size: 13px; color: var(--text-muted); }

/* 브랜드 카드 */
.section-brand { background: #fafafa; }
.brand_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: inherit;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand_card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}
.brand_thumb {
    width: 84px; height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f6;
    flex: none;
}
.brand_thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand_thumb .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 24px;
}
.brand_info { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.brand_name {
    font-size: 15px; font-weight: 700; color: var(--text-strong);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand_slogan {
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand_count { font-size: 12px; font-weight: 600; color: var(--accent2); }

/* ===== 고객센터 / 입금안내 / 공식채널 ===== */
.section-cs { padding-top: 0; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cs-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: #f8f9fb;
    border-radius: 12px;
}
.cs-ico {
    flex: none;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--accent2);
    font-size: 22px;
}
.cs-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-label { font-size: 13px; color: var(--text-muted); }
.cs-strong {
    font-size: 20px; font-weight: 800; color: var(--text-strong);
    letter-spacing: -0.5px;
}
.cs-strong.cs-account { font-size: 15px; font-weight: 600; }
.cs-strong.cs-empty { font-size: 14px; font-weight: 500; color: var(--text-light); }
a.cs-strong:hover { color: var(--accent2); }
.cs-sub { font-size: 12px; color: var(--text-muted); }

.cs-sns { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cs-sns a {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    color: var(--text-dark);
    font-size: 19px;
    transition: color .2s ease, transform .2s ease;
}
.cs-sns a:hover { color: var(--accent2); transform: translateY(-2px); }

@media (max-width: 900px) {
    .cs-grid { grid-template-columns: 1fr; }
}

/* 품절 표시 */
.card_soldout {
    position: absolute; left: 0; top: 0;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .72);
    font-size: 15px; font-weight: 700; color: var(--text-strong);
    letter-spacing: 1px;
}
