/* [pliki 테마] 메인페이지 전용 */

/* ① 히어로 슬라이더 — 풀폭, 데스크탑 460px 내외 */
.pk-hero { position: relative; overflow: hidden; background: #10241c; }
.pk-hero .swiper-slide a { display: block; }
.pk-hero .swiper-slide img {
    width: 100%; height: 460px; object-fit: cover; display: block;
}
.pk-hero .swiper-pagination-bullet { background: #fff; opacity: .45; }
.pk-hero .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 4px; }
.pk-hero-prev, .pk-hero-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    font-size: 40px; color: #fff; opacity: .75; padding: 20px;
}
.pk-hero-prev { left: 14px; } .pk-hero-next { right: 14px; }
.pk-hero-prev:hover, .pk-hero-next:hover { opacity: 1; }

/* ② 퀵메뉴 */
.pk-quick { padding: 34px 0 6px; }
.pk-quick-list {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 14px;
    max-width: 1240px; margin: 0 auto;
}
.pk-quick-list a { display: block; text-align: center; }
.pk-quick-img {
    display: block; aspect-ratio: 16/7; border-radius: 12px; overflow: hidden;
    background: var(--bg-soft); margin-bottom: 10px;
}
.pk-quick-img img { width: 100%; height: 100%; object-fit: cover; }
.pk-quick-ico { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #333; }
.pk-quick-list em { font-style: normal; font-size: 14px; font-weight: 600; color: #222; }

/* ③ For You 2단 박스 */
.pk-foryou { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pk-foryou-box {
    border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px 20px;
}
.pk-foryou-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.pk-foryou-box h3 em { font-style: normal; color: var(--red); }
.pk-grid-3f { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
.pk-foryou-box .pk-card-name { min-height: auto; -webkit-line-clamp: 1; }
.pk-foryou-box .pk-card-market, .pk-foryou-box .pk-card-badges, .pk-foryou-box .pk-card-buynow { display: none; }
.pk-foryou-box .pk-card-price { font-size: 14px; }
.pk-foryou-more {
    display: block; text-align: center; margin-top: 18px; padding: 11px 0;
    border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; color: #444;
}
.pk-foryou-more:hover { border-color: #999; }

/* ④ 타임세일 */
.pk-timesale { margin: 44px 0 0; background: var(--bg-soft); }
.pk-timesale img { width: 100%; max-height: 340px; object-fit: cover; display: block; }

/* ⑤ MD PICK 슬라이드 */
.pk-mdpick { overflow: hidden; }

/* ⑥ 띠배너 */
.pk-strip { display: grid; gap: 14px; margin-top: 44px; }
.pk-strip a { border-radius: 14px; overflow: hidden; display: block; }
.pk-strip img { width: 100%; display: block; }
.pk-strip:has(a + a) { grid-template-columns: 1fr 1fr; }

/* 반응형 */
@media (max-width: 1024px) {
    .pk-hero .swiper-slide img { height: 380px; }
    .pk-quick-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    /* 모바일: 배너 원본 비율 유지 (좌우 크롭으로 카피가 잘리지 않게) */
    .pk-hero .swiper-slide img { height: auto; aspect-ratio: auto; }
    .pk-hero-prev, .pk-hero-next { display: none; }
    .pk-quick { padding: 22px 0 0; }
    .pk-quick-list { grid-template-columns: repeat(5, 1fr); gap: 14px 8px; }
    .pk-quick-img { aspect-ratio: 1; border-radius: 50%; width: 56px; margin: 0 auto 8px; }
    .pk-quick-ico { font-size: 20px; }
    .pk-quick-list em { font-size: 12px; }
    .pk-foryou { grid-template-columns: 1fr; }
    .pk-grid-3f { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
    .pk-timesale { margin-top: 32px; }
    .pk-strip { grid-template-columns: 1fr !important; margin-top: 32px; }
}

/* ══ 2026-08 레퍼런스 재대조 추가 섹션 ══════════════════ */

/* Top Brand */
.pk-brandgrid { gap: 14px; }
.pk-brand { display: block; text-align: center; }
.pk-brand-img {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10;
    background: var(--bg-soft); border-radius: var(--radius); overflow: hidden;
}
.pk-brand-img img { width: 60%; height: 74%; object-fit: contain; mix-blend-mode: multiply; }
.pk-brand em { display: block; font-style: normal; font-size: 13.5px; font-weight: 600; color: #222; margin-top: 8px; }
.pk-brand:hover em { color: #000; }

/* TIME SALE 상품형 */
.pk-timesale-item { background: var(--bg-soft); margin-top: 44px; }
.pk-ts-flex { display: flex; align-items: center; gap: 50px; padding-top: 40px; padding-bottom: 40px; }
.pk-ts-thumb { flex: 0 0 380px; }
.pk-ts-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; background: #fff; }
.pk-ts-info h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.pk-ts-brand { font-size: 14px; font-weight: 700; color: #222; }
.pk-ts-name { display: block; font-size: 17px; font-weight: 600; color: #333; margin: 4px 0 12px; }
.pk-ts-price b { font-size: 24px; font-weight: 800; color: var(--red); }
.pk-ts-price del { font-size: 15px; color: var(--gray-l); margin-left: 8px; }
.pk-ts-price .rate { font-size: 14px; font-weight: 800; color: var(--red); margin-left: 6px; }
.pk-ts-more { display: inline-block; margin-top: 18px; padding: 11px 22px; border: 1px solid #111; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.pk-ts-more:hover { background: #111; color: #fff; }

/* 셀럽 PICK */
.pk-celebgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pk-celeb { display: block; min-width: 0; }
.pk-celeb-img { display: block; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--bg-thumb); }
.pk-celeb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pk-celeb:hover .pk-celeb-img img { transform: scale(1.03); }
.pk-celeb-meta { display: block; padding: 10px 2px 0; }
.pk-celeb-meta b { display: block; font-size: 13.5px; font-weight: 800; }
.pk-celeb-meta em { display: block; font-style: normal; font-size: 13px; color: #555; margin: 3px 0;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pk-celeb-meta strong { font-size: 14.5px; font-weight: 800; }

/* 대형배너 + TOP3 콤보 */
.pk-combo { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: stretch; }
.pk-combo-bn {
    display: flex; align-items: flex-end; min-height: 380px; border-radius: 14px; overflow: hidden;
    background: #222 center/cover no-repeat; position: relative;
}
.pk-combo-bn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.12) 60%); }
.pk-combo-txt { position: relative; padding: 28px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.pk-combo-txt b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.7px; line-height: 1.35; }
.pk-combo-txt em { display: block; font-style: normal; font-size: 14px; opacity: .85; margin-top: 6px; }
.pk-combo-rank { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.pk-rank-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pk-rank-item .no {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff;
    font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pk-rank-item .thumb { flex: 0 0 96px; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--bg-thumb); }
.pk-rank-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk-rank-item .meta { min-width: 0; }
.pk-rank-item .meta b { display: block; font-size: 13px; font-weight: 800; }
.pk-rank-item .meta em { display: block; font-style: normal; font-size: 13px; color: #555; margin: 2px 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-rank-item .meta strong { font-size: 14.5px; font-weight: 800; }

/* 브랜드 스포트라이트 */
.pk-spot-sec { padding-bottom: 50px; }
.pk-spot-title { text-align: center; font-size: 23px; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 22px; }
.pk-spot-tabs { display: flex; justify-content: center; gap: 22px; margin-bottom: 24px; }
.pk-spot-tab { text-align: center; opacity: .55; transition: opacity .2s; }
.pk-spot-tab.on, .pk-spot-tab:hover { opacity: 1; }
.pk-spot-tab .av { display: block; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: var(--bg-thumb); margin: 0 auto; border: 2px solid transparent; }
.pk-spot-tab.on .av { border-color: #111; }
.pk-spot-tab .av img { width: 100%; height: 100%; object-fit: cover; }
.pk-spot-tab em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; margin-top: 7px; max-width: 76px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-spot { display: grid; grid-template-columns: 1fr 400px; border-radius: 14px; overflow: hidden; background: #2b2320; }
.pk-spot-bn { min-height: 420px; background: #2b2320 center/cover no-repeat; position: relative; }
.pk-spot-bn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,14,12,.25), rgba(20,14,12,.7)); }
.pk-spot-bn-txt { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); text-align: right; color: #fff; }
.pk-spot-bn-txt em { display: block; font-style: normal; font-size: 13.5px; opacity: .8; }
.pk-spot-bn-txt b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin: 6px 0 16px; }
.pk-spot-bn-txt a { display: inline-block; padding: 9px 18px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; }
.pk-spot-bn-txt a:hover { background: #fff; color: #111; }
.pk-spot-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 26px; background: #241d1a; }
/* 다크 배경 위 카드 텍스트 — 실제 카드 클래스 기준으로 전부 밝게 */
.pk-spot-items .pk-card-brand { color: #fff; }
.pk-spot-items .pk-card-name { color: #ddd; }
.pk-spot-items .pk-card-price { color: #fff; }
.pk-spot-items .pk-card-price del { color: #9a8f89; }
.pk-spot-items .pk-card-market, .pk-spot-items .pk-card-buynow { color: #9a8f89; }
.pk-spot-items .pk-card-badges span { background: rgba(255,255,255,.12); color: #cfc7c2; }
.pk-spot-items .pk-card-wish { color: rgba(255,255,255,.55); }

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .pk-celebgrid { grid-template-columns: repeat(2, 1fr); }
    .pk-combo { grid-template-columns: 1fr; }
    .pk-combo-bn { min-height: 240px; }
    .pk-spot { grid-template-columns: 1fr; }
    .pk-spot-items { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pk-brandgrid { grid-template-columns: repeat(3, 1fr) !important; }
    .pk-ts-flex { flex-direction: column; gap: 22px; text-align: center; }
    .pk-ts-thumb { flex: none; width: 240px; }
    .pk-spot-tabs { flex-wrap: wrap; gap: 14px; }
    .pk-spot-items { grid-template-columns: repeat(2, 1fr); padding: 16px; }
    .pk-spot-bn { min-height: 280px; }
    .pk-spot-bn-txt b { font-size: 26px; }
}
