/* ============================================================
    모플플러스 프론트엔드 스타일 v2
    위치: /www/css/style.css
============================================================ */
@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    background: #f0f2f0;
    color: var(--color-text-primary);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ── 헤더 ── */
.header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    padding: 8px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 0.5px solid var(--color-border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.header-logo { display: flex; align-items: flex-start; line-height: 1; flex-shrink: 0; }
.header-logo-m {
    font-size: 20px; font-weight: 700;
    color: var(--color-main); letter-spacing: -1.5px;
}
.header-logo-p {
    font-size: 10px; font-weight: 700;
    color: var(--color-point);
    vertical-align: super; margin-left: 1px;
}
.header-logo-sub {
    font-size: 10px; color: #aaa;
    margin-left: 7px; align-self: center; margin-top: 2px;
}
.header-search-bar {
    display: flex; align-items: center; justify-content: space-between;
    width: 110px;
    background: #f5f5f5; border-radius: 20px;
    padding: 5px 10px; cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s;
    flex-shrink: 0;
}
.header-search-bar:active { background: #ececec; }
.header-search-bar span { flex: 1; }

/* ── 배너 ── */
.banner-wrap { overflow: hidden; position: relative; background: var(--color-main); }
.banner-slider { display: flex; transition: transform 0.45s cubic-bezier(.4,0,.2,1); }
.banner-item {
    min-width: 100%; padding: 40px 18px 24px;
    position: relative; overflow: hidden;
    background-size: cover; background-position: center;
    min-height: 150px;
}
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}
.banner-content { position: relative; z-index: 1; }
.banner-deco {
    position: absolute; right: -20px; top: -20px;
    width: 110px; height: 110px; border-radius: 50%;
    background: rgba(255,255,255,0.06); pointer-events: none;
}
.banner-deco2 {
    position: absolute; right: 30px; bottom: -30px;
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,0.04); pointer-events: none;
}
.banner-sub { font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 5px; }
.banner-title { font-size: 17px; font-weight: 500; color: #fff; line-height: 1.5; white-space: pre-line; }
.banner-badge {
    display: inline-block; margin-top: 10px;
    font-size: 10px; color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px; border-radius: 20px;
    border: 0.5px solid rgba(255,255,255,0.3);
}
.banner-dots {
    display: flex; justify-content: center; gap: 5px;
    padding: 9px 0; background: #fff;
}
.banner-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #e0e0e0; transition: all 0.25s;
    cursor: pointer;
}
.banner-dot.on { background: var(--color-main); width: 18px; border-radius: 3px; }

/* ── 신뢰지표 ── */
.trust-section {
    background: #fff;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-bottom: 0.5px solid var(--color-border);
}
.trust-item {
    padding: 15px 8px; text-align: center;
    border-right: 0.5px solid var(--color-border);
}
.trust-item:last-child { border-right: none; }
.trust-num {
    font-size: 19px; font-weight: 700;
    color: var(--color-main); letter-spacing: -0.5px;
}
.trust-label { font-size: 10px; color: #999; margin-top: 3px; }

/* ── 이용방법 ── */
.how-section { background: var(--color-main); padding: 14px 16px 16px; text-align: center; }
.how-title {
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    display: inline-block;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 3px;
    margin-bottom: 14px;
}
.how-steps { display: flex; }
.how-step { flex: 1; text-align: center; position: relative; }
.how-step:not(:last-child)::after {
    content: '›';
    position: absolute; right: 0; top: 13px;
    font-size: 13px; color: rgba(255,255,255,0.25);
    transform: translateY(-50%);
}
.how-step-num {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; color: #fff;
    margin: 0 auto 8px;
}
.how-step-label { font-size: 11px; font-weight: 500; color: #fff; }
.how-step-sub { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* ── 상품 섹션 ── */
.goods-section { background: #f0f2f0; padding: 18px 0 28px; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; margin-bottom: 12px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--color-text-primary); }
.section-count { font-size: 12px; color: #aaa; }

/* 카테고리 탭 */
.cat-tabs {
    display: flex; gap: 7px; overflow-x: auto;
    padding: 0 16px 14px; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex-shrink: 0; padding: 6px 15px;
    border-radius: 20px; font-size: 12px; font-weight: 500;
    border: 1.5px solid #ddd; background: #fff; color: #888;
    cursor: pointer; transition: all 0.15s;
}
.cat-tab.on {
    border-color: var(--color-main);
    background: var(--color-main); color: #fff;
}

/* 상품 카드 */
.goods-list { padding: 0 14px; display: flex; flex-direction: column; gap: 12px; }
.goods-card {
    background: #fff; border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.goods-card:active {
    transform: scale(0.985);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.goods-thumb-wrap {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a2e1a, #2d4d2d);
    overflow: hidden;
}
.goods-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.goods-thumb-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center;
}
.goods-thumb-play::after {
    content: ''; width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid var(--color-main, #1B5E3B);
    margin-left: 4px;
}
.goods-thumb-duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.72);
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 2px 7px; border-radius: 5px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(2px);
}
.goods-cat-badge {
    position: absolute; top: 9px; left: 9px;
    font-size: 10px; font-weight: 500; color: #fff;
    padding: 3px 9px; border-radius: 20px;
    backdrop-filter: blur(4px);
}
.goods-info { padding: 13px 14px 14px; }
.goods-brand {
    font-size: 10px; font-weight: 500;
    color: var(--color-main); margin-bottom: 5px;
    opacity: 0.8;
}
.goods-name {
    font-size: 15px; font-weight: 500;
    color: var(--color-text-primary); margin-bottom: 11px;
    line-height: 1.4;
}
.goods-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 0.5px solid var(--color-border);
}
.goods-gift-tag {
    font-size: 11px; color: #666;
    background: #f5f5f5; border-radius: 20px;
    padding: 4px 10px;
}
.goods-reserve-btn {
    font-size: 12px; font-weight: 700;
    color: var(--color-main);
    display: flex; align-items: center; gap: 3px;
}

/* ── FAQ ── */
.faq-section { background: #fff; padding: 20px 16px 24px; }
.faq-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.faq-item {
    border-bottom: 0.5px solid var(--color-border);
    transition: background 0.15s;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 0; cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--color-text-primary);
    gap: 10px; user-select: none;
}
.faq-q-icon {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--color-main-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--color-main);
    font-weight: 300; flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
    display: none; padding: 0 0 15px;
    font-size: 13px; color: #555; line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* ── 푸터 ── */
.disclaimer-section {
    background: var(--color-footer-bg);
    padding: 18px 16px 24px;
}
.disclaimer-logo { display: flex; align-items: flex-start; margin-bottom: 10px; }
.disclaimer-logo-m {
    font-size: 14px; font-weight: 700;
    color: rgba(255,255,255,0.4); letter-spacing: -0.5px;
}
.disclaimer-logo-p {
    font-size: 8px; font-weight: 700;
    color: var(--color-point); vertical-align: super; margin-left: 1px;
}
.disclaimer-text { font-size: 10px; color: rgba(255,255,255,0.25); line-height: 1.8; }

/* ── 공통 ── */
.section-divider { height: 8px; background: #f0f2f0; }
