@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #1a2b1a;
    --line: #eeeeee;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --space-lg: 80px;
    --space-xl: 160px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

/* --- Navigation --- */
.nav {
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-main);
}

.nav-meta {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- Hero --- */
.magazine-hero {
    padding: var(--space-lg) 20px;
    text-align: center;
}

.magazine-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 6vw, 64px);
    /* Slightly refined for better stability */
    font-weight: 400;
    line-height: 1.3;
    /* Increased for better Korean legibility */
    margin-bottom: 32px;
    /* Increased spacing to editorial letter */
    word-break: keep-all;
    /* Prevent awkward word splits */
}

.magazine-hero p {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-style: italic;
}

/* --- Product Entry --- */
.product-entry {
    margin-bottom: var(--space-xl);
    padding: 0 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .product-layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 80px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .product-entry:nth-child(even) .product-layout {
        flex-direction: row-reverse;
    }
}

.product-media {
    flex: 1;
    /* 1:1 대칭을 위해 1.2에서 1로 조정 */
    overflow: hidden;
    position: relative;
}

.product-media img {
    width: 100%;
    max-width: 800px;
    /* 이미지 가시성을 위해 소폭 확장 */
    height: auto;
    /* 고정 비율 해제하여 원본 비율 존중 */
    max-height: 80vh;
    /* 화면을 너무 많이 차지하지 않도록 제한 */
    object-fit: contain;
    /* 절대 자르지 않음 */
    filter: none;
    /* 제품 본연의 색상을 위해 그레이스케일 제거 */
    transition: transform 1.5s ease;
    display: block;
    margin: 0 auto;
    background-color: #f9f9f9;
    /* 여백 발생 시 부드러운 처리 */
}

.product-entry:hover .product-media img {
    transform: scale(1.05);
}

/* --- Trust Stamps --- */
.verified-badge {
    position: absolute;
    bottom: 20px;
    /* 이미지 영역 하단으로 이동하여 제품을 가리지 않게 함 */
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--line);
    color: var(--accent);
}

.product-info {
    flex: 1;
    width: 100%;
    max-width: 720px;
    /* 텍스트 가독성 너비 소폭 확장 */
    text-align: center;
    padding-top: 60px;
    /* 이미지와 텍스트 사이의 우아한 여백 */
}

.expert-score {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.score-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
}

.info-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 32px;
}

.curation-note {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 32px;
    line-height: 1.9;
    position: relative;
    text-align: left;
}

@media (max-width: 991px) {
    .curation-note {
        text-align: center;
    }
}

.psychology-point {
    font-size: 12.5px;
    color: var(--text-main);
    background: #f9faf9;
    /* Subtle forest hint */
    padding: 24px 32px;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    margin: 40px 0;
    text-align: left;
    position: relative;
}

@media (max-width: 991px) {
    .psychology-point {
        text-align: center;
        padding: 20px;
    }
}

.psychology-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    opacity: 0.8;
}

.info-action {
    display: inline-block;
    padding: 10px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
    transition: all 0.3s ease;
    font-weight: 600;
}

.info-action:hover {
    opacity: 0.5;
    padding-left: 8px;
}

/* --- Filter Container --- */
.filter-bar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-group-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    align-self: center;
    margin-right: -8px;
    opacity: 0.6;
}

.filter-item {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 20px;
    white-space: nowrap;
}

.filter-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-main);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-item.active {
    color: white;
    background: #1a2b1a;
}

.filter-item.active::after {
    transform: scaleX(0);
    /* Hide underline when background is dark */
}

.situational-guide {
    text-align: center;
    padding: 20px;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: #f9faf9;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Modals --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    max-width: 480px;
    width: 85%;
    background-color: white;
    padding: 60px 40px;
    border: 1px solid var(--line);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* --- Home --- */
.home-container {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-container h2 {
    font-family: var(--font-serif);
    font-size: clamp(48px, 10vw, 84px);
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1;
}