/* Product collection and individual scent pages. */
body.collection-page, body.product-page {
  --scent-ink: #481c39;
  --scent-paper: #fbf8f4;
  --scent-blush: #f5e6e9;
  --scent-rule: #d8cbd1;
  background: var(--scent-paper);
  color: #30232c;
}
.collection-page main, .product-page main { min-width: 0; }
.collection-page [id] { scroll-margin-top: calc(var(--nav-h) + 4rem); }
.product-skip { position: fixed; left: 1rem; top: -6rem; z-index: 1100; padding: 1rem; background: #292724; color: #fff; }
.product-skip:focus { top: 1rem; }
:is(.collection-page, .product-page) a:focus-visible,
:is(.collection-page, .product-page) button:focus-visible,
.product-buying-guide summary:focus-visible,
.comparison-scroll:focus-visible { outline: 2px solid #72594a; outline-offset: 5px; }
.product-breadcrumb { max-width: 1440px; margin: auto; padding: 1rem 6% .65rem; font-size: .8rem; color: #625d58; }
.product-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .65rem; }
.product-breadcrumb li + li::before { content: '/'; padding-right: .65rem; color: #9a9187; }
.product-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; text-decoration: none; }
.product-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-hero {
  display: grid;
  grid-template: 'photo heading' auto 'photo choices' 1fr / minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  max-width: 1440px;
  margin: auto;
  padding: 0 6% clamp(3rem, 7vw, 6rem);
  column-gap: clamp(2rem, 6vw, 6rem);
}
.product-heading { grid-area: heading; padding-top: clamp(1rem, 3vw, 3rem); min-width: 0; }
.product-hero-photo { grid-area: photo; margin: 0; overflow: hidden; }
.product-hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; display: block; object-fit: cover; object-position: center 62%; }
.product-hero-copy { grid-area: choices; min-width: 0; }
@media(min-width: 701px) and (min-height: 720px) {
  .product-hero-photo { position: sticky; top: calc(var(--nav-h) + 1rem); }
  .product-hero-photo img { max-height: calc(100svh - var(--nav-h) - 2rem); }
}
.product-hero h1 { font-family: 'Pretendard', Arial, sans-serif; font-weight: 500; color: var(--scent-ink); font-size: clamp(3rem, 5.8vw, 5.25rem); letter-spacing: -.065em; line-height: 1.05; margin: 0; }
.product-korean-name { font-size: .93rem; color: #5e5954; margin-top: .65rem; }
.product-aroma { font-size: clamp(1.05rem, 1.55vw, 1.4rem); line-height: 1.55; letter-spacing: -.035em; margin: 1.75rem 0 .25rem; word-break: keep-all; }
.product-purchase { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.product-purchase:focus-visible { outline: 2px solid #72594a; outline-offset: 5px; }
.product-purchase a { display: flex; align-items: center; justify-content: center; padding: 1rem .5rem; text-align: center; font-size: .8rem; text-decoration: none; color: #292724; border: 1px solid #82786e; transition: background .2s; }
.product-purchase a:first-child { background: var(--detail-accent); color: #fff; border-color: var(--detail-accent); }
.product-purchase a:hover { background: #e9e3da; color: #292724; }
.product-purchase-note { margin-top: .65rem; font-size: .8rem; line-height: 1.7; color: #625d58; }
.product-purchase-note a { color: inherit; text-underline-offset: 4px; }
.product-buying-guide { margin-top: 1.5rem; border-top: 1px solid #d5cdc2; }
.product-buying-guide details { border-bottom: 1px solid #d5cdc2; }
.product-buying-guide summary { min-height: 48px; padding: .9rem .3rem; color: #3f352d; font-size: .84rem; line-height: 1.5; cursor: pointer; }
.product-buying-guide summary::marker { color: #776554; font-size: .75em; }
.product-guide-answer { padding: 0 .3rem .95rem; }
.product-guide-answer p { font-size: .8rem; color: #68625c; line-height: 1.85; }
.product-guide-answer p + p { margin-top: .65rem; }
.product-guide-answer a { display: inline-flex; align-items: center; min-height: 44px; color: #3f352d; text-underline-offset: 4px; }
.product-context-actions { display: flex; gap: .2rem 1.4rem; flex-wrap: wrap; margin-top: .75rem; }
.product-context-actions a { display: inline-flex; align-items: center; min-height: 44px; color: #3f352d; font-size: .82rem; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.product-story-section { max-width: 1440px; padding: 4.5rem 6%; margin: auto; border-top: 1px solid #dfd8cf; display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); }
.product-story-section h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); font-weight: 500; line-height: 1.35; letter-spacing: -.05em; color: var(--scent-ink); }
.product-story-copy p { font-size: .96rem; line-height: 1.95; color: #59534c; margin-bottom: 1rem; }
.product-story-copy .product-small { font-size: .78rem; color: #68625c; }
.product-story-copy a { color: #3f352d; text-underline-offset: 4px; }
.product-story-copy > a { display: inline-flex; align-items: center; min-height: 44px; }
.product-more { max-width: 1440px; margin: auto; padding: 4rem 6% 1rem; border-top: 1px solid #dfd8cf; }
.product-more h2 { font-size: 1.8rem; font-weight: 400; margin-bottom: 2rem; }
.related-scents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.related-scents a { color: #292724; text-decoration: none; }
.related-scents img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 63%; display: block; }
.related-scents h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 400; margin: .9rem 0 .4rem; }
.related-scents p { color: #68625c; font-size: .78rem; line-height: 1.7; }
.product-journal { max-width: 1440px; margin: auto; padding: 4rem 6%; border-top: 1px solid #dfd8cf; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.product-journal h2 { font-size: 1.8rem; font-weight: 400; margin-bottom: 2rem; }
.product-journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.product-journal-card a { display: block; color: inherit; text-decoration: none; }
.product-journal-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.product-journal-card h3 { font-size: 1.2rem; line-height: 1.55; font-weight: 500; margin: .55rem 0 .7rem; }
.product-journal-card p { color: #68625c; font-size: .85rem; line-height: 1.8; }
.product-journal-card .product-journal-meta { font-size: .72rem; margin-top: 1.1rem; }
.product-journal-card a > span { display: inline-block; font-size: .8rem; margin-top: 1rem; border-bottom: 1px solid #82786e; padding-bottom: .2rem; }
.product-journal-card a:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.product-mobile-actions { display: none; }
.product-page .footer-mini, .collection-page .footer-mini { margin-top: 4rem; }
@media (max-width: 1100px) {
}
@media (max-width: 700px) {
  html:has(body.product-page) { scroll-padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .product-page :is(a, summary) { scroll-margin-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .product-breadcrumb { padding-block: .45rem .25rem; }
  .product-breadcrumb a { min-height: 44px; }
  .product-breadcrumb li { display: flex; align-items: center; }
  .product-hero { grid-template: 'heading' auto 'photo' auto 'choices' auto / 1fr; gap: 1.1rem; padding-bottom: 3rem; }
  .product-heading { padding-top: .15rem; }
  .product-hero-photo img { aspect-ratio: 4 / 3; object-position: center 60%; }
  .product-hero h1 { font-size: clamp(2.7rem, 10vw, 4.4rem); }
  .product-korean-name { margin-top: .3rem; }
  .product-aroma { margin: .75rem 0 0; }
  .product-purchase { margin-top: 0; }
  .product-purchase a { min-height: 48px; font-size: .9rem; padding-block: .75rem; }
  .product-story-section { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 3rem; padding-bottom: 3rem; }
  .product-story-section h2 br { display: none; }
  .related-scents { grid-template-columns: 1fr; gap: 1.5rem; }
  .related-scents a { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 1.2rem; }
  .related-scents img { aspect-ratio: 1; }
  .related-scents h3 { margin-top: 0; }
  .product-journal { padding-top: 3rem; padding-bottom: 3rem; }
  .product-journal-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  /* Keep the purchase shortcut within main so it leaves the viewport before the footer. */
  .product-mobile-actions { position: sticky; bottom: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .55rem; padding: .75rem 6% max(.75rem, env(safe-area-inset-bottom)); margin-top: 2rem; border-top: 1px solid #d5cdc2; background: #faf8f4; }
  .product-mobile-label { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
  .product-mobile-label strong { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 400; line-height: 1.2; }
  .product-mobile-label span { font-size: .65rem; color: #68625c; }
  .product-mobile-actions > a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem .65rem; font-size: .75rem; text-decoration: none; white-space: nowrap; }
  .product-mobile-compare { color: #3f352d; border: 1px solid #b7ab9d; }
  .product-mobile-buy { background: var(--detail-accent); color: #fff; border: 1px solid var(--detail-accent); }
  .product-mobile-actions > a:focus-visible { outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-page .product-img-wrap img, .product-purchase a { transition: none; }
}
