/* ============================================================
   EYRIE — detail.css  (상품 상세 페이지 전용)
   ============================================================ */

/* ── BREADCRUMB BAR ── */
.breadcrumb-bar {
  padding-top: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-bar .breadcrumb { padding: 16px 80px; }

/* ── DETAIL LAYOUT ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 108px);
}

/* ── LEFT: IMAGES ── */
.detail-images {
  background: var(--cream);
  padding: 48px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image {
  flex: 1;
  background: linear-gradient(145deg, #B5C9A4, #8AAA78 50%, #6A8A58);
  border-radius: 2px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease;
}
.main-image::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 35% 35%, rgba(255,255,255,0.25) 0%, transparent 60%);
}
.main-image-label {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.6); letter-spacing: 0.06em;
  position: relative; z-index: 1; text-align: center;
}
.main-image-label span {
  display: block; font-style: normal;
  font-size: 11px; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.45); margin-top: 8px;
}
.image-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--terracotta); color: #fff;
  font-size: 10px; letter-spacing: 0.15em;
  padding: 5px 14px; z-index: 2;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; flex-shrink: 0;
}
.thumb {
  aspect-ratio: 1; border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer; transition: border-color 0.2s; overflow: hidden;
}
.thumb:first-child { border-color: var(--earth-dark); }
.thumb:hover { border-color: var(--earth); }
.thumb-inner { width: 100%; height: 100%; }
.thumb-1 { background: linear-gradient(145deg, #B5C9A4, #8AAA78); }
.thumb-2 { background: linear-gradient(145deg, #C8D5B9, #9AAB8A); }
.thumb-3 { background: linear-gradient(145deg, #D4C8A8, #A8946A); }
.thumb-4 { background: linear-gradient(145deg, #B8C4A0, #8A9E7A); }

/* ── RIGHT: INFO ── */
.detail-info {
  padding: 56px 72px 80px 64px;
  background: var(--warm-white);
  overflow-y: auto;
}

.product-eyebrow {
  font-size: 10px; letter-spacing: 0.25em;
  color: var(--sage); text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.product-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--sage); }

.product-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 8px;
}
.product-title em { font-style: italic; color: var(--earth); }
.product-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; letter-spacing: 0.03em; }

.rating-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.stars { color: var(--terracotta); font-size: 14px; letter-spacing: 2px; }
.rating-score { font-size: 13px; color: var(--earth-dark); font-weight: 500; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.rating-divider { width: 1px; height: 14px; background: var(--border); }
.review-link {
  font-size: 12px; color: var(--sage); text-decoration: none;
  letter-spacing: 0.06em; border-bottom: 1px solid var(--sage-light);
}

.price-block { margin-bottom: 32px; }
.price-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.price-main { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.price-now { font-family: var(--font-display); font-size: 40px; font-weight: 500; color: var(--earth-dark); }
.price-was { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: 13px; color: var(--terracotta); font-weight: 500; letter-spacing: 0.05em; }
.price-note { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }
.tag { padding: 5px 13px; border: 1px solid var(--border); font-size: 11px; letter-spacing: 0.08em; color: var(--text-muted); border-radius: 1px; }
.tag.highlight { background: rgba(122,140,110,0.12); border-color: var(--sage-light); color: var(--sage); }

.option-block { margin-bottom: 28px; }
.option-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.option-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.option-btn {
  padding: 9px 20px; border: 1px solid var(--border);
  background: none; font-family: var(--font-body);
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; border-radius: 1px; letter-spacing: 0.04em;
}
.option-btn:hover { border-color: var(--earth); color: var(--earth-dark); }
.option-btn.selected { background: var(--earth-dark); color: var(--cream); border-color: var(--earth-dark); }
.option-btn.disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.qty-block { margin-bottom: 36px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 1px; }
.qty-btn {
  width: 44px; height: 44px; background: none; border: none;
  font-size: 18px; color: var(--earth-dark); cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(139,115,85,0.08); }
.qty-value {
  width: 52px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 400; color: var(--text-main);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-family: var(--font-display);
}

.total-bar {
  background: var(--cream); padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; border-radius: 2px;
}
.total-label { font-size: 12px; letter-spacing: 0.1em; color: var(--text-muted); }
.total-amount { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--earth-dark); }

.cta-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.btn-cart {
  background: var(--earth-dark); color: var(--cream);
  border: none; padding: 16px; font-family: var(--font-body);
  font-size: 13px; letter-spacing: 0.1em; cursor: pointer; transition: background 0.2s;
}
.btn-cart:hover { background: var(--terracotta); }
.btn-buy {
  background: var(--terracotta); color: #fff;
  border: none; padding: 16px; font-family: var(--font-body);
  font-size: 13px; letter-spacing: 0.1em; cursor: pointer; transition: background 0.2s;
}
.btn-buy:hover { background: #a85c3a; }
.btn-wish {
  grid-column: 1 / -1; background: none; border: 1px solid var(--border);
  color: var(--text-muted); padding: 13px; font-family: var(--font-body);
  font-size: 13px; letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-wish:hover { border-color: var(--earth-dark); color: var(--earth-dark); }

.delivery-info { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 8px; }
.delivery-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.delivery-key { font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); min-width: 72px; padding-top: 2px; }
.delivery-val { font-size: 13px; color: var(--text-main); line-height: 1.6; letter-spacing: 0.03em; }
.delivery-val strong { color: var(--earth-dark); font-weight: 400; }
.delivery-val .free { color: var(--sage); font-weight: 500; }

/* ── TABS ── */
.detail-tabs { border-top: 1px solid var(--border); background: var(--warm-white); }
.tab-nav { display: flex; padding: 0 80px; border-bottom: 1px solid var(--border); background: var(--cream); }
.tab-btn {
  padding: 20px 28px; background: none; border: none;
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.06em;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.tab-btn:hover { color: var(--earth-dark); }
.tab-btn.active { color: var(--earth-dark); font-weight: 400; border-bottom-color: var(--earth-dark); }

.tab-content { padding: 72px 80px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.detail-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 72px; }
.detail-section-title { font-family: var(--font-display); font-size: 36px; font-weight: 300; color: var(--charcoal); margin-bottom: 20px; line-height: 1.2; }
.detail-section-title em { font-style: italic; color: var(--earth); }
.detail-text { font-size: 14px; line-height: 2; color: var(--text-muted); margin-bottom: 24px; }

.detail-img-block {
  background: linear-gradient(145deg, #C8D5B9, #8AAA78);
  border-radius: 2px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.detail-img-label { font-family: var(--font-display); font-size: 28px; font-style: italic; color: rgba(255,255,255,0.6); }

.ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.ingredient-item { padding: 20px; background: var(--cream); border-radius: 2px; text-align: center; }
.ing-icon { font-size: 24px; margin-bottom: 8px; }
.ing-name { font-size: 13px; font-weight: 400; color: var(--earth-dark); margin-bottom: 4px; }
.ing-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

.nutrition-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.nutrition-table tr { border-bottom: 1px solid var(--border); }
.nutrition-table td { padding: 12px 0; font-size: 13px; }
.nutrition-table td:first-child { color: var(--text-muted); }
.nutrition-table td:last-child { text-align: right; font-weight: 400; color: var(--earth-dark); }

/* ── REVIEWS ── */
.review-summary { display: grid; grid-template-columns: 200px 1fr; gap: 48px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.review-score-big { text-align: center; padding: 32px; background: var(--cream); border-radius: 2px; }
.score-number { font-family: var(--font-display); font-size: 72px; font-weight: 300; color: var(--earth-dark); line-height: 1; }
.score-stars { font-size: 20px; color: var(--terracotta); margin: 8px 0; }
.score-count { font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; }

.rating-bars { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.rating-bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: 12px; color: var(--text-muted); min-width: 24px; text-align: right; }
.bar-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--sage); border-radius: 2px; }
.bar-count { font-size: 11px; color: var(--text-muted); min-width: 20px; }

.review-list { display: flex; flex-direction: column; gap: 32px; }
.review-item { padding: 32px; background: var(--cream); border-radius: 2px; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar { width: 36px; height: 36px; background: var(--sage-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sage); font-weight: 500; }
.reviewer-name { font-size: 13px; font-weight: 400; color: var(--text-main); margin-bottom: 2px; }
.review-meta { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; }
.review-stars { font-size: 13px; color: var(--terracotta); }
.review-text { font-size: 14px; line-height: 1.85; color: var(--text-main); margin-bottom: 12px; }
.review-product-info { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; }

/* ── RELATED PRODUCTS ── */
.related-section { padding: 80px; background: var(--cream); border-top: 1px solid var(--border); }
.related-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.related-grid .product-image { aspect-ratio: 1; }
.related-grid .price-current { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--earth-dark); }
