/* 기본 box-sizing 설정 */
* { box-sizing: border-box; }

/* 페이지 전체 기본 스타일 */
:root {
  --bg: #f7f7f4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(18, 33, 51, 0.08);
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #b99866;
  --accent-soft: #efe6d8;
  --shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 213, 194, 0.35), transparent 28%),
    linear-gradient(180deg, #f8f7f3 0%, #f4f4f1 100%);
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 공통 컨테이너 */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* 상단 히어로 영역 */
.hero {
  padding: 34px 0 22px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.brand-block,
.hero-side-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.brand-block {
  padding: 38px 36px;
}

.eyebrow,
.section-kicker,
.side-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b6f46;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.hero-side-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

/* 본문 */
.page-body {
  padding: 10px 0 56px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* 제품 리스트 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--surface-strong);
  border: 1px solid rgba(18, 33, 51, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.06);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(31, 41, 55, 0.11);
  border-color: rgba(185, 152, 102, 0.3);
}

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

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 4.5;
  background: linear-gradient(180deg, #f5f2ec 0%, #ece7df 100%);
  overflow: hidden;
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 33, 51, 0.08);
  color: #6f5732;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.product-info {
  padding: 18px 18px 20px;
}

.product-name {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.product-short-desc {
  margin: 0 0 14px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6f3ee;
  color: #7c6240;
  font-size: 18px;
  flex-shrink: 0;
}

/* 상세 페이지 */
.sub-header {
  padding: 20px 0 0;
}

.sub-header-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 16px 18px;
}

.back-link {
  color: #6c5538;
  font-weight: 700;
  font-size: 14px;
}

.detail-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 28px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.product-detail-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f2ec 0%, #ece7df 100%);
}

.product-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

.product-detail-name {
  margin: 6px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.product-detail-price {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-detail-description {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.detail-meta-box {
  padding: 18px;
  border: 1px solid rgba(18, 33, 51, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

.feature-title {
  margin: 0 0 10px;
  font-size: 16px;
  color: #6c5538;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: #45505f;
  line-height: 1.9;
  font-size: 15px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.action-button:hover { transform: translateY(-2px); }

.action-button.primary {
  color: #fff;
  background: #1f2937;
}

.action-button.secondary {
  color: #5f4a2f;
  background: var(--accent-soft);
}

.not-found-box {
  text-align: center;
  padding: 48px 20px;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-inner,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-head {
    display: block;
  }

  .section-note { margin-top: 10px; }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 100%);
  }

  .hero {
    padding-top: 18px;
  }

  .brand-block,
  .hero-side-card,
  .detail-shell {
    border-radius: 22px;
  }

  .brand-block {
    padding: 28px 22px;
  }

  .hero-side-card {
    padding: 22px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-image-wrap {
    aspect-ratio: 4 / 3.4;
  }

  .product-short-desc {
    min-height: auto;
  }

  .detail-shell {
    padding: 20px;
  }

  .product-detail-image {
    aspect-ratio: 4 / 3.5;
  }

  .product-detail-price {
    font-size: 24px;
  }
}
