/* theme/basic/coupang/index.php — 공개 쇼룸 전용 */

.cpshop--store {
    --store-bg: #f0ece8;
    --store-surface: #ffffff;
    --store-ink: #141210;
    --store-muted: #6b6560;
    --store-accent: #e85d2c;
    --store-accent-dark: #c44a1f;
    --store-brand: #7c3aed;
    --store-brand-soft: #a855f7;
    --store-line: rgba(20, 18, 16, 0.08);
    --store-radius: 16px;
    --store-shadow: 0 12px 40px rgba(20, 18, 16, 0.08);
    padding: 0 0 48px;
}

body.cpshop-body #registration_root {
    background: var(--store-bg);
}

/* beautyshop.php — PC는 좌우 패딩 없음, 모바일은 16px */
body.cpshop-body .main_content_wrap:has(.cpshop--store) {
    padding-left: 0;
    padding-right: 0;
}

.cpshop-store {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .cpshop-store {
        padding: 0;
    }
}

/* ── 히어로 배너 (파트너스 쇼핑몰형) ── */
.cpshop-store__banner {
    position: relative;
    margin: 8px 0 0;
    border-radius: calc(var(--store-radius) + 4px);
    overflow: hidden;
    color: #fff;
}

.cpshop-store__banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 100% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(232, 93, 44, 0.35) 0%, transparent 50%),
        linear-gradient(125deg, #2a1838 0%, #4c2d5c 38%, #6b3a52 72%, #8f4540 100%);
}

.cpshop-store__banner-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px 36px;
    align-items: center;
}

@media (min-width: 768px) {
    .cpshop-store__banner-inner {
        grid-template-columns: 1.15fr 0.85fr;
        padding: 40px 40px 44px;
        gap: 32px;
    }
}

.cpshop-store__banner-tag {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.cpshop-store__banner-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.cpshop-store__banner-accent {
    display: inline-block;
    margin-top: 4px;
    background: linear-gradient(90deg, #ffd4a8 0%, #ff9a6c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cpshop-store__banner-lead {
    margin: 0 0 18px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.cpshop-store__banner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cpshop-store__banner-badges li {
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.cpshop-store__banner-admin {
    margin: 16px 0 0;
    font-size: 13px;
}

.cpshop-store__banner-admin a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cpshop-store__banner-admin a:hover {
    color: #fff;
}

/* 배너 우측 장식 */
.cpshop-store__banner-visual {
    position: relative;
    min-height: 180px;
    display: none;
}

@media (min-width: 768px) {
    .cpshop-store__banner-visual {
        display: block;
        min-height: 220px;
    }
}

.cpshop-store__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.cpshop-store__orb--1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 18%;
    background: rgba(255, 180, 120, 0.35);
}

.cpshop-store__orb--2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 55%;
    background: rgba(168, 85, 247, 0.4);
}

.cpshop-store__orb--3 {
    width: 160px;
    height: 160px;
    bottom: -10%;
    right: -5%;
    background: rgba(255, 255, 255, 0.08);
}

.cpshop-store__banner-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(240px, 100%);
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.cpshop-store__banner-card-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.cpshop-store__banner-card strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cpshop-store__banner-card-note {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── 카테고리 (배너 위로 겹침) ── */
.cpshop-store__nav {
    margin-bottom: 28px;
}

.cpshop-store__nav--lift {
    position: relative;
    z-index: 2;
    margin-top: -18px;
    margin-bottom: 32px;
    padding: 20px 18px 18px;
    background: var(--store-surface);
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
    border: 1px solid var(--store-line);
}

.cpshop-store__nav-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--store-line);
}

.cpshop-store__nav-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--store-ink);
    letter-spacing: -0.02em;
}

.cpshop-store__nav-hint {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--store-accent);
}

.cpshop-store__nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cpshop-store__nav-select-wrap {
    display: none;
}

.cpshop-store__nav-select {
    width: 100%;
    height: 46px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--store-line);
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6560' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--store-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.cpshop-store__nav-select:focus {
    outline: none;
    border-color: rgba(232, 93, 44, 0.45);
    box-shadow: 0 0 0 3px rgba(232, 93, 44, 0.12);
}

@media (max-width: 767px) {
    .cpshop-store__nav-list {
        display: none;
    }

    .cpshop-store__nav-select-wrap {
        display: block;
    }

    .cpshop-store__nav-head {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
}

.cpshop-store__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: 10px;
    background: #f8f6f4;
    border: 1px solid transparent;
    color: var(--store-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cpshop-store__cat:hover {
    background: #fff;
    border-color: rgba(232, 93, 44, 0.3);
    color: var(--store-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 18, 16, 0.08);
}

.cpshop-store__cat.is-active {
    background: linear-gradient(135deg, #2a1838 0%, #5c3a62 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(42, 24, 56, 0.35);
}

/* ── 쿠팡 검색 위젯 ── */
.cpshop-store__search {
    margin: 0 0 20px;
    padding: 18px 20px;
    border-radius: var(--store-radius);
    background: var(--store-surface);
    box-shadow: var(--store-shadow);
}

.cpshop-store__search-label {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--store-ink);
    letter-spacing: -0.02em;
}

.cpshop-store__search-widget {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.cpshop-store__search-widget iframe {
    display: block;
    width: 100%;
    min-height: 75px;
    border: 0;
}

.cpshop-store__search-note {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--store-muted);
}

/* ── 상품 영역 ── */
.cpshop-store__catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.cpshop-store__catalog-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-left: auto;
}

.cpshop-store__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cpshop-store__sort-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--store-muted);
    white-space: nowrap;
}

.cpshop-store__sort-select {
    min-width: 128px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--store-line);
    border-radius: 999px;
    background: var(--store-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 13px;
    font-weight: 600;
    color: var(--store-ink);
    cursor: pointer;
    appearance: none;
}

.cpshop-store__sort-select:focus {
    outline: none;
    border-color: var(--store-accent);
    box-shadow: 0 0 0 3px rgba(90, 58, 110, 0.12);
}

.cpshop-store__catalog-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--store-ink);
}

.cpshop-store__catalog-count {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--store-muted);
}

.cpshop--store .cpshop__grid {
    gap: 18px 14px;
}

@media (min-width: 640px) {
    .cpshop--store .cpshop__grid {
        gap: 22px 16px;
    }
}

/* ── 상품 카드 ── */
.cpshop--store .cpshop-card {
    border: none;
    border-radius: var(--store-radius);
    background: var(--store-surface);
    box-shadow: var(--store-shadow);
}

.cpshop--store .cpshop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(20, 18, 16, 0.12);
}

.cpshop--store .cpshop-card__thumb {
    aspect-ratio: 1 / 1;
    background: #faf8f6;
    padding: 12px;
}

.cpshop--store .cpshop-card__thumb img {
    object-fit: contain;
    border-radius: 8px;
}

.cpshop--store .cpshop-card__badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(0, 116, 233, 0.92);
    font-size: 10px;
    letter-spacing: 0.02em;
}

.cpshop--store .cpshop-card__body {
    padding: 14px 14px 16px;
}

.cpshop--store .cpshop-card__name {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    min-height: 2.95em;
}

.cpshop--store .cpshop-card__price {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--store-accent-dark);
}

.cpshop--store .cpshop-card__price--unverified {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cpshop--store .cpshop-card__price--unverified .cpshop-card__price-main {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--store-accent-dark);
}

.cpshop--store .cpshop-card__price--no-amount .cpshop-card__price-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--store-muted);
}

.cpshop--store .cpshop-card__price-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--store-muted);
}

.cpshop-card__price-hint--link::after {
    content: ' →';
    color: var(--store-accent);
}

.cpshop--store .cpshop__pager-link {
    border-radius: 999px;
    min-width: 38px;
    border-color: var(--store-line);
}

.cpshop--store .cpshop__pager-link.is-current {
    background: linear-gradient(135deg, #2a1838 0%, #5c3a62 100%);
    border-color: transparent;
    color: #fff;
}

.cpshop--store .cpshop__disclosure {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--store-line);
    text-align: center;
    font-size: 12px;
    color: var(--store-muted);
    background: transparent;
}

.cpshop--store .cpshop__grid-empty,
.cpshop--store .cpshop__empty {
    padding: 48px 16px;
    background: var(--store-surface);
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
}

@media (max-width: 767px) {
    .cpshop-store__banner-inner {
        padding: 28px 20px 32px;
    }

    .cpshop-store__nav--lift {
        margin-top: -12px;
        padding: 16px 14px 14px;
    }

    .cpshop-store__cat {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cpshop-store__cat,
    .cpshop--store .cpshop-card {
        transition: none;
    }
}
