/* 상세 조각 1·2·3. 목록·주문 CSS를 바꾸지 않고 상세 안에서만 배치한다. */
.bean-detail { min-width: 0; font-size: 15px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.bean-detail-shell { max-width: 1200px; padding-top: 16px; padding-bottom: 56px; }
.bean-detail-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ink-2); font-size: 14px; }
.bean-detail-crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.bean-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
.bean-detail-hero > * { min-width: 0; }
.bean-detail-hero-text { grid-template-columns: minmax(0, 1fr); }
.bean-detail-visual { display: flex; justify-content: center; margin: 0; }
.bean-detail-visual img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(65vh, 500px); object-fit: contain; }
.bean-detail-buy .bean-kind { font-size: 14px; }
.bean-detail-buy h1 { margin: 0 0 10px; font-family: var(--font-sans); font-size: clamp(28px, 3vw, 36px); font-style: normal; font-weight: 500; line-height: 1.25; }
.bean-detail-buy .bean-origin { font-size: 14px; margin: 0 0 12px; }
.bean-detail-lead { margin: 0 0 4px; }
.bean-detail-lead strong { font-weight: 500; }
.bean-detail-notes { margin: 0 0 18px; color: var(--ink-2); }
.bean-detail .bean-grind, .bean-detail .bean-grind-note, .bean-detail .bean-added { font-size: 14px; }
.bean-detail .bean-grind select, .bean-detail .bean-qty input { font-size: 16px; }
.bean-detail-shipping { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.bean-detail-shipping a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bean-detail-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.bean-detail-section h2 { margin: 0 0 16px; font-size: 22px; font-weight: 500; line-height: 1.4; }
.bean-detail-section p { margin: 0 0 14px; max-width: 72ch; }
.bean-detail-full-notes, .bean-detail-legacy { color: var(--ink-2); }
.bean-detail-others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.bean-detail-others a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bean-detail a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.bean-detail-section h3 { margin: 24px 0 12px; font-size: 18px; font-weight: 500; line-height: 1.4; }
.bean-detail-table { width: 100%; margin: 0 0 20px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.bean-detail-table th, .bean-detail-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.bean-detail-table th { font-weight: 500; }
#bean-specs th { width: 30%; }
.bean-return-costs th:first-child { width: 56%; }
.bean-return-costs thead { background: var(--paper-2); }
.bean-drip-recipe th:first-child { width: 23%; }
.bean-grind-guide th:first-child { width: 36%; }
.bean-grind-guide th:nth-child(2) { width: 27%; }
.bean-drip-recipe thead, .bean-grind-guide thead { background: var(--paper-2); }
.bean-detail-delivery { max-width: 72ch; }
.bean-detail .bean-taste-map { margin-top: 40px; margin-bottom: 0; padding: 24px 16px; }
.bean-detail .bean-taste-map h2 { font-size: 22px; }
.bean-detail .bean-taste-intro, .bean-detail .bean-taste-ends, .bean-detail .bean-taste-label { font-size: 14px; }
.bean-detail .bean-taste-point { position: absolute; left: -14px; width: 28px; height: 28px; border-radius: 50%; }
.bean-detail .bean-taste-points [aria-current="true"] .bean-taste-dot { background: var(--ink); }
.bean-detail .bean-taste-points [aria-current="true"] .bean-taste-label { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bean-detail .bean-roast { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.bean-detail .bean-roast p { font-weight: 500; }
.bean-roast-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.bean-roast-levels li { padding: 10px 4px; border-top: 3px solid var(--line); text-align: center; }
.bean-roast-levels [aria-current="true"] { border-color: var(--ink); background: var(--paper-2); font-weight: 700; }
#bean-shipping { scroll-margin-top: calc(var(--header-h) + 84px); }
#bean-shipping a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
/* 조각 6a: 기존 글·표를 그대로 둔 채 그림 칸만 더한다. */
.bean-fig { margin: 0; min-width: 0; }
.bean-fig img { display: block; max-width: 100%; height: auto; }
.bean-fig-icon { float: left; width: 48px; margin: 20px 12px 0 0; }
.bean-fig-icon img { width: 48px; }
.bean-grind-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; margin: 0 0 12px; padding: 0; list-style: none; }
.bean-grind-gallery li { min-width: 0; text-align: center; }
.bean-grind-pictures { position: relative; width: 100%; max-width: 176px; margin: 0 auto 8px; padding-right: 24px; }
.bean-grind-photo { display: block; width: 100%; max-width: 128px; height: auto; aspect-ratio: 1; border-radius: 50%; }
.bean-grind-tool { position: absolute; right: 0; bottom: 0; width: 42%; max-width: 72px; height: auto; aspect-ratio: 1; background: #fff; border-radius: 50%; }
.bean-grind-name { display: block; font-size: 14px; }
.bean-detail-section .bean-fig-note { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.bean-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.bean-brand-copy { min-width: 0; }
.bean-fig-logo { width: 160px; margin-bottom: 16px; }
.bean-brand-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.bean-fig-store { width: 100%; max-width: 320px; }
.bean-fig-store img { width: 100%; }
.bean-fig-bag { width: 100%; max-width: 400px; margin: 28px auto 0; }
.bean-fig-bag figcaption { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.bean-roast-levels li::before { content: ''; display: block; width: 24px; height: 24px; margin: 0 auto 8px; border-radius: 50%; }
.bean-roast-levels li:nth-child(1)::before { background: #C69C6D; }
.bean-roast-levels li:nth-child(2)::before { background: #B08155; }
.bean-roast-levels li:nth-child(3)::before { background: #8B5E3C; }
.bean-roast-levels li:nth-child(4)::before { background: #6B4429; }
.bean-roast-levels li:nth-child(5)::before { background: #4A2C1A; }
/* 조각 6c: I2 taste artwork and I4 common brewing pair. */
.bean-fig-mood { width: 100%; max-width: 420px; margin: 0 auto 20px; }
.bean-fig-mood img { width: 100%; aspect-ratio: 640 / 427; object-fit: contain; }
.bean-fig figcaption { position: static; left: auto; bottom: auto; background: none; padding: 0; margin-top: 8px; color: var(--ink-2); font-size: 14px; }
#bean-story:has(> .bean-fig-mood) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: 32px; align-items: start; }
#bean-story:has(> .bean-fig-mood) > :not(.bean-fig-mood) { grid-column: 1; }
#bean-story > .bean-fig-mood { grid-column: 2; grid-row: 1 / span 4; }
.bean-fig-pair { width: 100%; max-width: 624px; margin: 0 auto 20px; }
.bean-brew-pictures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.bean-brew-item { display: block; min-width: 0; }
.bean-brew-art { width: 100%; max-width: 300px; }
.bean-brew-label { display: block; margin-top: 4px; font-size: 14px; text-align: center; }
@media (max-width: 860px) {
  .bean-detail-shell { padding-top: 8px; padding-bottom: 40px; }
  .bean-detail-crumb { margin-bottom: 10px; }
  .bean-detail-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bean-detail-visual img { max-height: min(34vh, 260px); }
  .bean-detail-section { margin-top: 32px; padding-top: 24px; }
  .bean-detail-others { grid-template-columns: minmax(0, 1fr); }
  .bean-detail .bean-taste-map { margin-top: 32px; }
  .bean-detail-table { font-size: 14px; }
  .bean-detail-table th, .bean-detail-table td { padding: 10px 6px; }
  .bean-grind-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  #bean-story:has(> .bean-fig-mood) { grid-template-columns: minmax(0, 1fr); }
  #bean-story > .bean-fig-mood { grid-column: 1; grid-row: auto; }
  .bean-brand { grid-template-columns: minmax(0, 1fr); }
}
/* §4-10: long legal labels and values wrap within the 320px table. */
#bean-product-info { scroll-margin-top: calc(var(--header-h) + 84px); }
.bean-product-info th { width: 30%; }
