
* { box-sizing: border-box; }

:root {
    --primary: #4D7C0F;
    --secondary: #365314;
    --accent: #D97706;
    --bg: #FEFCE8;
    --card: #FFFFFF;
    --text: #1A2E05;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: rgba(15,23,42,0.06);
    --soft2: rgba(255,255,255,0.72);
    --shadow: 0 12px 34px rgba(15,23,42,0.10);
    --shadow2: 0 20px 60px rgba(15,23,42,0.16);
}

body {
    margin: 0;
    font-family: Arial, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    background: var(--bg);
    color: var(--text);
    word-break: keep-all;
}

body.font-premium,
body.font-curation,
body.font-trust { font-family: Georgia, "Noto Serif KR", "Noto Sans KR", serif; }
body.font-data,
body.font-office,
body.font-expert { font-family: "Segoe UI", Arial, "Noto Sans KR", sans-serif; }
body.font-compact,
body.font-mobile { font-size: 15px; }
body.font-easy,
body.font-friendly { font-size: 16px; }

img { max-width: 100%; }
a { color: inherit; }

.site-header {
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    text-decoration: none;
    font-size: 21px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.nav { display: flex; gap: 8px; flex-wrap: wrap; }

.nav a {
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,0.04);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.nav a:hover { background: var(--primary); color: white; }

.header-thin_line .site-header { background: var(--bg); }
.header-dark_logo .site-header { background: var(--primary); border-bottom-color: rgba(255,255,255,0.18); }
.header-dark_logo .logo,
.header-dark_logo .nav a { color: white; }
.header-dark_logo .nav a { background: rgba(255,255,255,0.13); }
.header-pill_nav .nav a { background: var(--primary); color: white; }
.header-soft_rounded .site-header { background: transparent; border-bottom: 0; padding: 12px 14px 0; }
.header-soft_rounded .header-inner { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.header-compact_top .header-inner { padding: 10px 20px; }
.header-compact_top .nav a { padding: 6px 9px; font-size: 13px; }
.header-mega_like .header-inner { align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
.header-mega_like .logo { font-size: 26px; }
.header-mega_like .nav a { border: 1px solid var(--line); background: white; }
.header-bottom_like .site-header { position: relative; top: auto; }
.header-bottom_like .header-inner { flex-direction: column; align-items: flex-start; }
.header-bottom_like .nav { width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }

.notice {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
}

.notice-inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; }

.hero {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 36%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 76px 20px;
}

.hero-inner { max-width: 1180px; margin: 0 auto; }

.hero h1 {
    font-size: 44px;
    line-height: 1.22;
    margin: 0 0 14px;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    font-size: 17px;
}

.hero-center_big_title .hero-inner,
.hero-question_first .hero-inner,
.hero-deal_banner .hero-inner,
.hero-gift_hero .hero-inner,
.hero-price_focus .hero-inner,
.hero-trust_notice .hero-inner { text-align: center; }
.hero-center_big_title .hero p,
.hero-question_first .hero p,
.hero-deal_banner .hero p,
.hero-gift_hero .hero p,
.hero-price_focus .hero p,
.hero-trust_notice .hero p { margin-left: auto; margin-right: auto; }

.hero-split_text_first .hero-inner,
.hero-data_summary .hero-inner,
.hero-business_split .hero-inner,
.hero-family_life .hero-inner,
.hero-category_map .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}
.hero-split_text_first .hero-inner::after,
.hero-data_summary .hero-inner::after,
.hero-business_split .hero-inner::after,
.hero-family_life .hero-inner::after,
.hero-category_map .hero-inner::after {
    content: "구매 기준 · 가격 확인 · 배송 조건 · 후기 비교";
    display: block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 28px;
    padding: 32px;
    line-height: 1.9;
    font-size: 21px;
    font-weight: 900;
}
.hero-business_split .hero-inner::after { content: "업무용 기준 · 반복 사용 · 안정성 · 관리 편의"; }
.hero-family_life .hero-inner::after { content: "가정용 기준 · 쉬운 사용 · 보관 · 안전성"; }
.hero-category_map .hero-inner::after { content: "유형별 비교 · 예산별 선택 · 용도별 추천"; }
.hero-dark_premium .hero { background: linear-gradient(135deg, #020617, var(--secondary)); }
.hero-deal_banner .hero { padding: 58px 20px; background: linear-gradient(135deg, var(--accent), var(--primary)); }
.hero-gift_hero .hero { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.hero-price_focus .hero { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.hero-beginner_guide .hero { background: linear-gradient(135deg, var(--primary), #0ea5e9); }
.hero-mobile_stack .hero { padding: 48px 20px; }
.hero-trust_notice .hero { background: linear-gradient(135deg, #111827, var(--primary)); }
.hero-soft_guide .hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); }

.container { max-width: 1180px; margin: 0 auto; padding: 36px 20px 64px; }

.section-block { margin-top: 28px; }
.section-block:first-child { margin-top: 0; }

.section-title { font-size: 29px; margin: 0 0 14px; letter-spacing: -0.03em; }
.section-desc { color: var(--muted); line-height: 1.75; margin: 0 0 22px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15,23,42,0.07);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f4f6;
}

.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }

.badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.product-card h2 { font-size: 17px; line-height: 1.38; margin: 0 0 8px; }
.price { color: var(--accent); font-size: 17px; font-weight: 900; margin: 8px 0; }
.product-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 14px; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    border: 1px solid transparent;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--secondary); }
.btn-secondary { background: white; color: var(--primary); border-color: var(--primary); }
.button-deal_button .btn-primary { background: var(--accent); color: #111827; }
.button-outline_mix .btn-primary { background: white; color: var(--primary); border-color: var(--primary); }
.button-solid_accent .btn-primary { background: var(--accent); color: #04111d; }
.button-soft_solid .btn-primary { background: color-mix(in srgb, var(--primary) 86%, white); border-radius: 999px; }
.button-full_width .btn-row { width: 100%; }
.button-full_width .btn { flex: 1 1 180px; width: 100%; }
.button-rounded_solid .btn { border-radius: 999px; }

.info-box,
.article,
.product-info,
.image-box,
.dynamic-box,
.compare-box,
.check-box,
.summary-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 4px 18px rgba(15,23,42,0.07);
}

.info-box,
.article,
.dynamic-box,
.summary-box { line-height: 1.8; }
.dynamic-box h2,
.compare-box h2,
.check-box h2,
.summary-box h2 { margin-top: 0; letter-spacing: -0.03em; }

.keyword-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.keyword-list span,
.keyword-list a {
    display: inline-block;
    text-decoration: none;
    background: rgba(0,0,0,0.05);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--text);
}

.compare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.compare-item { background: rgba(0,0,0,0.035); border-radius: 16px; padding: 16px; line-height: 1.7; }
.compare-item strong { display: block; margin-bottom: 6px; color: var(--primary); }

.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.check-list li { background: rgba(0,0,0,0.035); border-radius: 14px; padding: 13px 14px; line-height: 1.6; }
.check-list li::before { content: "✓ "; color: var(--primary); font-weight: 900; }

/* 메인 레이아웃 */
.layout-ranking_list .product-grid,
.layout-compact_deal .product-grid,
.layout-mobile_first .product-grid,
.layout-simple_catalog .product-grid { grid-template-columns: 1fr; }
.layout-ranking_list .product-card,
.layout-compact_deal .product-card,
.layout-mobile_first .product-card,
.layout-simple_catalog .product-card { display: grid; grid-template-columns: 210px 1fr; }
.layout-ranking_list .product-card img,
.layout-compact_deal .product-card img,
.layout-mobile_first .product-card img,
.layout-simple_catalog .product-card img { height: 100%; aspect-ratio: auto; }
.layout-ranking_list .card-body,
.layout-compact_deal .card-body,
.layout-mobile_first .card-body,
.layout-simple_catalog .card-body { padding: 22px; }
.layout-ranking_list .product-card h2 { font-size: 23px; }

.layout-magazine_grid .product-grid,
.layout-blog_grid .product-grid,
.layout-review_curation .product-grid,
.layout-story_first .product-grid { grid-template-columns: repeat(3, 1fr); }
.layout-magazine_grid .product-card:first-child,
.layout-blog_grid .product-card:first-child,
.layout-review_curation .product-card:first-child,
.layout-story_first .product-card:first-child { grid-column: span 2; }
.layout-magazine_grid .product-card:first-child h2,
.layout-blog_grid .product-card:first-child h2,
.layout-review_curation .product-card:first-child h2,
.layout-story_first .product-card:first-child h2 { font-size: 24px; }

.layout-comparison_first .compare-box,
.layout-table_heavy .compare-box,
.layout-checklist_first .check-box,
.layout-guide_first .info-box,
.layout-faq_first .faq-section,
.layout-trust_first .dynamic-box:first-child,
.layout-price_first .dynamic-box:first-child,
.layout-beginner_first .dynamic-box:first-child,
.layout-business_first .dynamic-box:first-child,
.layout-gift_first .dynamic-box:first-child,
.layout-family_first .dynamic-box:first-child { border-top: 5px solid var(--primary); }
.layout-price_first .product-card { border-left: 6px solid var(--accent); }
.layout-gift_first .product-card { border-radius: 30px; }
.layout-beginner_first .section-title::before { content: "처음이라면 "; color: var(--primary); }
.layout-category_hub .dynamic-box,
.layout-category_hub .compare-box { background: linear-gradient(180deg, white, rgba(255,255,255,0.72)); }
.layout-longform_review .article,
.layout-longform_review .info-box { font-size: 17px; line-height: 1.95; }

.layout-editorial_split .section-products-wrap,
.layout-expert_first .section-products-wrap,
.layout-business_first .section-products-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start; }
.layout-editorial_split .product-grid,
.layout-expert_first .product-grid,
.layout-business_first .product-grid { grid-template-columns: repeat(2, 1fr); }

/* 카드 스타일 */
.card-premium_card .product-card,
.card-expert_card .product-card,
.card-trust_card .product-card { border-radius: 28px; box-shadow: var(--shadow); }
.card-minimal_card .product-card { box-shadow: none; border-radius: 12px; }
.card-compact_deal_card .product-card { border-left: 6px solid var(--accent); }
.card-question_card .product-card { border-style: dashed; }
.card-check_card .product-card { border-top: 5px solid var(--primary); }
.card-gift_card .product-card { border-radius: 32px; background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.76)); }
.card-price_card .product-card { border-bottom: 5px solid var(--accent); }
.card-easy_card .product-card { border-radius: 18px; border-width: 2px; }
.card-office_card .product-card { border-radius: 10px; }
.card-family_card .product-card { border-radius: 26px; }
.card-mobile_card .product-card { border-radius: 16px; }
.card-category_card .product-card { border-radius: 0 26px 26px 26px; }
.card-compare_card .product-card { border-top: 4px solid var(--primary); }
.card-editor_pick .product-card:first-child { box-shadow: var(--shadow2); }
.card-rank_badge_card .rank-number { width: 48px; height: 48px; font-size: 20px; }
.card-soft_life_card .product-card { background: linear-gradient(180deg, white, rgba(255,255,255,0.75)); }
.card-blog_card .product-card { border-radius: 12px 32px 12px 32px; }

/* 상세페이지 */
.detail-layout {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 28px;
    align-items: start;
}

.product-image { width: 100%; border-radius: 16px; background: #f3f4f6; }

.product-info h1 {
    font-size: 34px;
    line-height: 1.28;
    margin: 12px 0;
    letter-spacing: -0.04em;
}

.lead { color: var(--muted); font-size: 17px; line-height: 1.78; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.meta span { background: rgba(0,0,0,0.05); border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.article { margin-top: 24px; line-height: 1.85; }
.article h2 { margin-top: 0; letter-spacing: -0.03em; }
.article li { margin: 8px 0; }

.detail-pros_cons .detail-extra-grid,
.detail-compare_analysis .detail-extra-grid,
.detail-checklist_style .detail-extra-grid,
.detail-budget_check .detail-extra-grid,
.detail-category_compare .detail-extra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-faq_heavy .faq-section,
.detail-safety_first .article:first-of-type,
.detail-negative_check .article:first-of-type { border-top: 5px solid var(--primary); }
.detail-spec_first .product-info,
.detail-price_check .product-info,
.detail-budget_check .product-info { border-top: 5px solid var(--accent); }
.detail-blog_review .article,
.detail-long_review .article { font-size: 17px; line-height: 1.95; }
.detail-quick_review .article,
.detail-one_minute_summary .article { padding: 20px; }
.detail-target_gift .badge { background: var(--accent); }
.detail-work_usage .product-info,
.detail-family_usage .product-info { box-shadow: var(--shadow); }

.faq-item { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-item:first-child { border-top: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 17px; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; color: var(--primary); font-weight: 800; }

.site-footer {
    background: var(--card);
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 32px 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 1080px) {
    .product-grid,
    .layout-magazine_grid .product-grid,
    .layout-blog_grid .product-grid,
    .layout-editorial_split .product-grid,
    .layout-expert_first .product-grid,
    .layout-business_first .product-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout,
    .layout-editorial_split .section-products-wrap,
    .layout-expert_first .section-products-wrap,
    .layout-business_first .section-products-wrap,
    .hero-split_text_first .hero-inner,
    .hero-data_summary .hero-inner,
    .hero-business_split .hero-inner,
    .hero-family_life .hero-inner,
    .hero-category_map .hero-inner { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .header-soft_rounded .header-inner { border-radius: 24px; }
    .hero { padding: 52px 20px; }
    .hero h1 { font-size: 32px; }
    .product-grid,
    .layout-magazine_grid .product-grid,
    .layout-blog_grid .product-grid,
    .layout-editorial_split .product-grid,
    .layout-expert_first .product-grid,
    .layout-business_first .product-grid { grid-template-columns: 1fr; }
    .layout-magazine_grid .product-card:first-child,
    .layout-blog_grid .product-card:first-child,
    .layout-review_curation .product-card:first-child,
    .layout-story_first .product-card:first-child { grid-column: auto; }
    .layout-ranking_list .product-card,
    .layout-compact_deal .product-card,
    .layout-mobile_first .product-card,
    .layout-simple_catalog .product-card { grid-template-columns: 1fr; }
    .product-info h1 { font-size: 28px; }
    .check-list,
    .compare-grid,
    .detail-pros_cons .detail-extra-grid,
    .detail-compare_analysis .detail-extra-grid,
    .detail-checklist_style .detail-extra-grid,
    .detail-budget_check .detail-extra-grid,
    .detail-category_compare .detail-extra-grid { grid-template-columns: 1fr; }
}
