@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700;900&display=swap');

/* 조선일보명조 (헤드라인용) */
@font-face {
    font-family: 'ChosunIlboMyungjo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Chosunilbo_myungjo.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* 조선신명조 (본문 뉴스용) */
@font-face {
    font-family: 'ChosunSm';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.1/ChosunSm.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 조선굴림체 (기능/버튼용) */
@font-face {
    font-family: 'ChosunGu';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGu.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 조선로고체 (브랜드용) */
@font-face {
    font-family: 'ChosunLo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunLo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 조선굵은명조 (강조/타이틀용) */
@font-face {
    font-family: 'ChosunBg';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunBg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 조선굵은고딕 (강조/타이틀용) */
@font-face {
    font-family: 'ChosunKg';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunKg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  /* Newspaper & News Style Palette */
  --bg-paper: #f4f1ea; 
  --ink-black: #111111;
  --ink-gray: #333333;
  --primary-trad: #1a1a1a;
  --accent-red: #8b2c2c;
  
  /* Fonts */
  --font-trad-heading: 'ChosunIlboMyungjo', serif;
  --font-trad-body: 'ChosunSm', serif;
  --font-trad-util: 'ChosunGu', sans-serif;
  --font-trad-logo: 'ChosunLo', sans-serif;
  --font-trad-heavy-myungjo: 'ChosunBg', serif;
  --font-trad-heavy-gothic: 'ChosunKg', sans-serif;
}

/* Global Reset & Body */
body.traditional-theme {
  background-color: var(--bg-paper);
  color: var(--ink-black);
  font-family: var(--font-trad-body);
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(0,0,0,0.03) 1.2px, transparent 0);
  background-size: 24px 24px;
  line-height: 1.7;
}

/* [Sticky Header Fix] 헤더 상단 고정 강제 */
html, body.traditional-theme {
    overflow-x: visible !important;
}

body.traditional-theme #header-placeholder {
    position: sticky !important;
    top: 0 !important;
    z-index: 2001 !important; /* 내부 glass-nav보다 1 높거나 같게 */
}

body.traditional-theme .glass-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 2000 !important;
    background: var(--bg-paper) !important;
    border-bottom: 2px solid var(--ink-black) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}
body.traditional-theme .brand {
    font-family: var(--font-trad-logo) !important;
    letter-spacing: -1px;
}
body.traditional-theme .brand span {
    color: var(--ink-black) !important;
}
body.traditional-theme .nav-main-item a {
    font-family: var(--font-trad-util);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink-black) !important;
    position: relative;
}
body.traditional-theme .nav-main-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ink-black);
    transition: width 0.3s ease;
}
body.traditional-theme .nav-main-item a:hover::after {
    width: 100%;
}

body.traditional-theme .nav-util-btn {
    font-family: var(--font-trad-util);
    background: var(--ink-black) !important;
    color: white !important;
    border-radius: 2px !important;
}

/* Page Headers & Common UI */
body.traditional-theme h1, 
body.traditional-theme h2, 
body.traditional-theme h3 {
    font-family: var(--font-trad-heading);
    color: var(--ink-black);
}

body.traditional-theme .products-page-header {
    background: var(--bg-paper) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

body.traditional-theme .search-input {
    background: white !important;
    border: 1px solid var(--ink-black) !important;
    border-radius: 0 !important;
    font-family: var(--font-trad-body) !important;
}

body.traditional-theme .filter-btn {
    border-radius: 0 !important;
    border: 1px solid var(--ink-black) !important;
    font-family: var(--font-trad-util) !important;
    background: white !important;
    color: var(--ink-black) !important;
}

body.traditional-theme .filter-btn.active {
    background: var(--ink-black) !important;
    color: white !important;
    box-shadow: none !important;
}

/* Product Cards & Grid */
body.traditional-theme .product-card {
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease;
}

body.traditional-theme .product-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.08) !important;
}

/* 상품 목록의 카드 제목 스타일 수정 (폰트 본연의 굵기 활용을 위해 볼드 강제 해제) */
body.traditional-theme .product-card .product-info h3,
body.traditional-theme .product-card h3 {
    font-family: var(--font-trad-heavy-gothic), sans-serif !important;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: normal; /* 조선굵은고딕 자체 두께만 사용 */
    color: var(--ink-black) !important;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

body.traditional-theme .product-card .card-content .description {
    font-family: var(--font-trad-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

body.traditional-theme .product-card .price-box .price {
    font-family: var(--font-trad-util);
    color: var(--accent-red) !important;
    font-weight: 800;
}

/* Utility Overrides */
body.traditional-theme {
    --primary: var(--ink-black);
    --primary-hover: #000;
}

/* Footer Styling */
body.traditional-theme footer {
    background: #e5e2d9 !important;
    border-top: 3px solid var(--ink-black) !important;
    color: var(--ink-gray) !important;
    font-family: var(--font-trad-body);
}

body.traditional-theme footer h4 {
    font-family: var(--font-trad-heading);
    color: var(--ink-black);
}

.hanji-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('https://www.transparenttextures.com/patterns/handmade-paper.png');
  opacity: 0.3;
  z-index: -1;
}

/* 3D Hero Section - Updated to Clean News Style */
.hero-trad {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  background-color: var(--bg-paper);
  padding: 120px 24px;
}

.artwork-frame {
  display: none; /* Removed background images as requested */
}

.artwork-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.artwork-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* News-like content box */
.hero-content-trad {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
  padding: 60px 48px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 95%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  margin-top: 40px;
}

/* Typography for Traditional Theme */
.trad-title {
  font-family: var(--font-trad-heading);
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 24px;
  letter-spacing: -2.5px;
  color: var(--ink-black);
  word-break: keep-all;
  line-height: 1.15;
  text-shadow: 0.5px 0.5px 0px rgba(0,0,0,0.1);
}

.trad-subtitle {
  font-family: var(--font-trad-body);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-gray);
  margin-bottom: 40px;
  letter-spacing: -0.8px;
  word-break: keep-all;
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions-trad {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Premium Buttons - Flat, News Style */
.btn-trad-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: var(--ink-black);
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-trad-util);
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

.btn-trad-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: white;
  color: var(--ink-black) !important;
  font-size: 1.15rem;
  font-weight: 700;
  border: 4px double var(--ink-black); /* Double line for news look */
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-trad-util);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-trad-premium:hover {
  background: var(--accent-red);
  transform: translateY(-2px);
}

.btn-trad-outline:hover {
  background: rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* Centered Layout Adjustments */
.trad-nav {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 40px 0;
  z-index: 100;
  background: transparent;
}

.trad-nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.trad-logo {
  width: 70px;
  height: 70px;
}

.trad-menu {
  display: flex;
  gap: 48px;
  list-style: none;
}

.trad-menu a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-black);
  letter-spacing: 2px;
  transition: color 0.3s;
}

.trad-menu a:hover {
  color: var(--primary-trad);
}

/* Feature Section Theming */
.feature-series-section {
  background: transparent !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.feature-content h2 {
  font-family: var(--font-trad-serif);
  font-weight: 800;
  color: var(--ink-black);
}

.feature-content h2 span {
  color: var(--primary-trad) !important;
  font-family: var(--font-trad-heading);
  font-style: italic;
}

.feature-content p {
  color: var(--ink-gray) !important;
}

.feature-link {
  color: var(--primary-trad) !important;
  font-weight: 800;
}
/* Image refinements */
.feature-image img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  /* Hide desktop menu elements from traditional flex */
  .trad-menu {
    display: none;
  }
  
  /* Hero Content Mobile Optimization */
  .hero-content-trad {
    padding: 30px 24px;
    margin-top: 40px;
    width: 100%;
    max-width: calc(100% - 32px);
    border-radius: 16px;
  }
  .trad-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .trad-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .btn-trad-premium {
    padding: 16px 24px;
    font-size: 1rem;
    width: 100%;
    display: block;
    box-sizing: border-box;
  }
  
  /* Feature Series Mobile Fix */
  .feature-series-section {
    padding: 60px 16px !important;
  }
  .feature-container {
    flex-direction: column !important;
    gap: 40px !important;
    align-items: center;
  }
  .feature-content {
    text-align: center;
  }
  .feature-link {
    justify-content: center;
  }
  .feature-content h2 {
    font-size: 1.8rem !important;
  }

  /* Story Section */
  .story-section {
    padding: 60px 24px !important;
  }
  .story-text h2 {
    font-size: 1.6rem !important;
    line-height: 1.4;
  }
  .story-text p {
    font-size: 1rem !important;
    margin-top: 16px !important;
  }
}
