/* =============================================================
   몽연 (Mongyeon) - main.css
   컬러: 퍼플 #8B35C8 | 다크 네이비 #1A1A2E | 골드 #C9A853
============================================================= */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary:   #8B35C8;
    --color-primary-dark: #6B1FA8;
    --color-navy:      #1A1A2E;
    --color-gold:      #C9A853;
    --color-white:     #FFFFFF;
    --color-bg:        #FAFAFA;
    --color-text:      #111111;
    --color-text-muted:#666666;
    --color-border:    #E8E8E8;

    --font-sans:  'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 68px;
    --section-padding: 80px;
    --container-width: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── CONTAINER ─── */
.section-inner,
.header-inner,
.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-navy);
    color: var(--color-white);
}
.btn-primary:hover {
    background: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}
.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-navy);
}
.btn-gold:hover {
    background: #b8923e;
}


/* =============================================================
   HEADER
============================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* 로고 */
.header-logo a {
    display: flex;
    align-items: center;
}
.header-logo img {
    height: var(--header-height);
    width: auto;
}
.site-title-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

/* GNB */
.header-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-nav .nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    transition: color 0.2s;
}
.header-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.header-nav .nav-list a:hover { color: var(--color-primary); }
.header-nav .nav-list a:hover::after { transform: scaleX(1); }

/* 우측 액션 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-action-link {
    font-size: 13px;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.header-action-link:hover { color: var(--color-primary); }

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text);
    transition: color 0.2s;
}
.header-cart:hover { color: var(--color-primary); }

.cart-count {
    position: absolute;
    top: -8px; right: -10px;
    min-width: 18px; height: 18px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* 햄버거 */
.mobile-menu-toggle { display: none; }


/* =============================================================
   MAIN (헤더 높이만큼 밀어내기)
============================================================= */
.site-main { padding-top: var(--header-height); }


/* =============================================================
   SECTION 1. 히어로 배너
============================================================= */
.hero-section {
    background: var(--color-primary);
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(201,168,83,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}

.hero-copy {
    flex: 0 0 auto;
    max-width: 500px;
    color: var(--color-white);
    z-index: 1;
}

.hero-sub {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-cta {
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 15px;
    padding: 16px 36px;
}
.hero-cta:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

.hero-image {
    flex: 0 0 auto;
    max-width: 480px;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

.hero-image-placeholder {
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

/* 배경 이미지 모드 */
.hero-section--bg {
    background-color: transparent;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-section--bg::before { display: none; }
.hero-section--bg .hero-inner { justify-content: flex-start; }


/* =============================================================
   SECTION 2. BEST 상품
============================================================= */
.best-products-section {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.section-header {
    margin-bottom: 40px;
}

.section-title-en {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-title-ko {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* 상품 그리드 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--color-white);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.product-card-link { display: block; }

/* 상품 이미지 */
.product-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* 배지 (묶음 수량 등) */
.product-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* 상품 정보 */
.product-card-info {
    padding: 16px;
}

.product-sub-text {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.product-discount-rate {
    font-size: 14px;
    font-weight: 900;
    color: var(--color-primary);
}

.product-price-wrap del,
.product-price-wrap del .woocommerce-Price-amount {
    font-size: 12px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-price-wrap ins,
.product-price-wrap ins .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-text);
    text-decoration: none;
}

.product-price-wrap .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 900;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.rating-star { color: #F5A623; }
.rating-score { font-weight: 700; color: var(--color-text); }

/* 상품 미등록 안내 */
.no-products-notice {
    text-align: center;
    padding: 60px 24px;
    color: var(--color-text-muted);
    background: #f9f9f9;
    border-radius: 8px;
}

/* 상품 카드 액션 버튼 */
.product-card-actions {
    padding: 0 16px 16px;
}
.product-cart-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    border-radius: 4px;
}

/* 상점 페이지 */
.shop-hero {
    background: #f7f7f7;
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0;
}
.shop-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
}
.shop-hero .woocommerce-result-count {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}
.shop-section {
    padding: 40px 0 80px;
}
.shop-section .woocommerce-ordering {
    margin-bottom: 24px;
    text-align: right;
}
.shop-section .woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-sans);
    background: #fff;
}
.shop-grid {
    margin-bottom: 48px;
}
/* WC 페이지네이션 */
.woocommerce-pagination {
    text-align: center;
}
.woocommerce-pagination ul {
    display: inline-flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.2s;
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}


/* =============================================================
   SECTION 3. 소셜 증거
============================================================= */
.social-proof-section {
    padding: var(--section-padding) 0;
    background: var(--color-navy);
    text-align: center;
}

.social-proof-content {
    color: var(--color-white);
}

.social-proof-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.social-proof-count {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 16px;
}

.social-proof-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    font-weight: 300;
}

.social-proof-section .rv-grid {
    margin: 40px 0 48px;
}

.social-proof-section .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}
.social-proof-section .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-navy);
}


/* =============================================================
   SECTION 4. 브랜드 스토리
============================================================= */
.brand-story-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-story-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.brand-story-content {
    position: relative;
    color: var(--color-white);
    z-index: 1;
}

.brand-story-en {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.brand-story-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 36px;
    letter-spacing: -0.01em;
}

.brand-story-section .btn-primary {
    background: var(--color-gold);
    color: var(--color-navy);
    font-weight: 700;
}
.brand-story-section .btn-primary:hover {
    background: var(--color-white);
    color: var(--color-navy);
}


/* =============================================================
   FOOTER
============================================================= */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-info-list { display: flex; flex-direction: column; gap: 6px; }
.footer-info-list li { display: flex; gap: 8px; }
.footer-info-list span { color: rgba(255,255,255,0.4); white-space: nowrap; }
.footer-info-list strong { color: rgba(255,255,255,0.9); font-weight: 500; }

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.footer-tel {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.footer-cs-hours,
.footer-cs-lunch {
    margin-bottom: 4px;
    line-height: 1.6;
}

.footer-bank-info {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin-bottom: 4px;
}

.footer-bank-holder,
.footer-bank-note { color: rgba(255,255,255,0.5); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-white); }
.footer-links strong { color: rgba(255,255,255,0.9); }

.footer-copyright {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}


/* =============================================================
   RESPONSIVE – 태블릿 (≤ 1024px)
============================================================= */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-col.footer-bank { grid-column: span 2; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-image { max-width: 320px; }
}


/* =============================================================
   RESPONSIVE – 모바일 (≤ 768px)
============================================================= */
@media (max-width: 768px) {
    :root { --header-height: 56px; --section-padding: 56px; }

    /* 헤더 */
    .header-nav { display: none; }
    .header-actions .header-action-link { display: none; }
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 4px;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 22px; height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* 히어로 */
    .hero-inner { padding: 56px 24px; }
    .hero-title { font-size: 28px; }

    /* 상품 그리드 */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-info { padding: 12px; }
    .product-name { font-size: 13px; }

    /* 푸터 */
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-col.footer-bank { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 모바일 메뉴 오픈 상태 */
@media (max-width: 768px) {
    .header-nav.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 24px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .header-nav.is-open .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .header-nav.is-open .nav-list a {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .social-proof-count { font-size: 48px; }
}
