/* A readable product story, using the existing SOC cream and brass palette. */
#product-dialog {
  width:min(1120px,94vw);
  max-width:1120px;
  max-height:92dvh;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  border:1px solid #e6dece;
  border-radius:18px;
  background:#fffdf9;
}
.detail-toolbar {
  position:sticky;
  top:0;
  z-index:4;
  min-height:64px;
  padding:10px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  background:#fffdf9;
}
.detail-toolbar>span {font:27px Georgia,serif;color:var(--gold)}
.detail-toolbar small {margin-left:14px;font-size:10px;letter-spacing:2px;vertical-align:middle}
.detail-toolbar .dialog-close {position:static;flex-shrink:0;width:44px;height:44px;line-height:1;background:#f7f2e9}
#product-dialog .detail-layout {display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);align-items:start}
#product-dialog .detail-gallery {
  position:sticky;
  top:65px;
  margin:24px 0 24px 24px;
  padding:20px;
  border:1px solid #e9e2d7;
  border-radius:12px;
  background:#f3eee5;
  gap:16px;
  min-width:0;
}
#product-dialog .detail-gallery .detail-main {width:100%;height:auto;aspect-ratio:1;max-height:420px;object-fit:contain;border-radius:7px;mix-blend-mode:normal}
#product-dialog .gallery-thumbs {justify-content:center;gap:10px}
#product-dialog .gallery-thumbs button {width:58px;height:58px;border-radius:7px;overflow:hidden;border:1px solid #d9cdbc}
#product-dialog .gallery-thumbs button[aria-pressed=true] {border:2px solid var(--gold);box-shadow:0 0 0 2px #fffdf9}
#product-dialog .gallery-thumbs img {width:100%;height:100%;object-fit:cover}
#product-dialog .original-link {align-self:center;margin:0;font-size:12px}
#product-dialog .detail-caption {padding:0;text-align:center;font:10px Georgia,serif;letter-spacing:1.8px;color:#877553}
#product-dialog .detail-copy {padding:32px 36px 38px;min-width:0}
.product-intro .eyebrow {font-size:11px;letter-spacing:2px;margin-bottom:11px;overflow-wrap:anywhere}
#product-dialog .product-intro h2 {font-size:30px;line-height:1.5;letter-spacing:-1px;margin:0 0 18px}
.product-lead {font-size:15px;line-height:1.9;color:#62574b;overflow-wrap:anywhere}
.product-tags {display:flex;flex-wrap:wrap;gap:7px;margin:20px 0 0;padding:0;list-style:none}
.product-tags li {padding:5px 11px;border:1px solid #e5d9c4;border-radius:30px;background:#f8f3e9;font-size:12px;line-height:1.65;color:#74572c;font-weight:400}
.product-story-section {margin-top:32px}
.story-section-heading {display:flex;align-items:center;gap:10px;margin-bottom:15px}
.story-section-heading>span {font:12px Georgia,serif;color:var(--gold);letter-spacing:1px}
.story-section-heading h3 {font-family:'Noto Sans KR',sans-serif;font-size:18px;font-weight:500;letter-spacing:-.4px}
.benefit-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.benefit-card {padding:18px 16px;border:1px solid #eae2d6;border-radius:10px;background:#fbf8f2}
.benefit-index {display:block;font:11px Georgia,serif;letter-spacing:1px;color:#a78955;margin-bottom:9px}
.benefit-card h4 {font-size:15px;font-weight:500;line-height:1.7;margin:0 0 7px;word-break:keep-all;overflow-wrap:anywhere}
.benefit-card p {font-size:13px;line-height:1.85;color:#6b6053;overflow-wrap:anywhere}
.fragrance-note {margin-top:15px;padding:17px 20px;border-radius:9px;background:#eee9dd;border-left:3px solid #a98849}
.fragrance-note>span,.traceability-note>span {display:block;font:10px Georgia,serif;letter-spacing:1.8px;color:#826333;margin-bottom:6px}
.fragrance-note p {font-size:13px;line-height:1.8;color:#5d5140}
#product-dialog .ingredient-list {margin:0;border-top:1px solid var(--line)}
.ingredient-list>div {padding:14px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px;align-items:start}
#product-dialog .ingredient-list dt {margin:0;font-size:14px;line-height:1.85;font-weight:500;overflow-wrap:anywhere}
#product-dialog .ingredient-list dd {margin:0;font-size:13px;line-height:1.85;color:#756956}
.ingredient-role {font-size:12px;color:#866a3a;font-weight:400}
.ingredient-list dd p {font-size:12px;line-height:1.8;margin-top:3px;overflow-wrap:anywhere}
.traceability-note {margin-top:22px;border:1px solid #dfd6c8;border-radius:10px;padding:20px;background:#f5f1e9}
.traceability-note h3 {font-family:'Noto Sans KR',sans-serif;font-size:16px;font-weight:500;margin:8px 0}
.traceability-note p {font-size:13px;line-height:1.85;color:#675b4a}
.product-information {margin-top:30px;border-top:1px solid #cdbc9e}
.product-accordion summary {padding:18px 32px 18px 0;font-size:14px;font-weight:500;line-height:1.7}
.product-accordion summary>span {margin-left:8px;font-size:11px;font-weight:400;color:#927947}
.product-accordion summary:after {top:12px}
.usage-list,.caution-list {padding:0 4px 20px 22px;margin:0;font-size:13px;color:#675b4a}
.usage-list li,.caution-list li {padding-left:4px;margin:0 0 10px;line-height:1.85;word-break:keep-all;overflow-wrap:anywhere}
.usage-list li::marker {font-weight:500;color:var(--gold)}
.product-accordion .full-ingredients {font-size:13px;line-height:2;padding:0 0 22px;word-break:normal;overflow-wrap:anywhere;color:#675b4a}
#product-dialog .product-facts {margin:0 0 22px;font-size:13px}
.product-facts>div {display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;margin:10px 0}
#product-dialog .product-facts dt,#product-dialog .product-facts dd {margin:0;font-size:13px}
#product-dialog .detail-copy .packaging-note {font-size:12px;line-height:1.85;margin-top:20px;color:#6c765c}
#product-dialog .detail-note {border:0;padding:0;margin-top:20px;font-size:11px!important;line-height:1.85;color:#827460;overflow-wrap:anywhere}
#product-dialog .back-button {display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;padding:13px 22px;margin-top:28px;border-radius:8px;font-size:13px}
@media (max-width:900px) and (min-width:761px) {
  #product-dialog .detail-copy {padding:28px 24px}
  #product-dialog .detail-gallery {margin-left:18px;padding:14px}
  .benefit-grid {grid-template-columns:1fr}
}
@media (max-width:760px) {
  #product-dialog {width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;scrollbar-gutter:auto}
  .detail-toolbar {padding:8px 18px;min-height:60px}
  .detail-toolbar>span {font-size:25px}
  .detail-toolbar small {font-size:9px;letter-spacing:1.4px;margin-left:10px}
  #product-dialog .detail-layout {grid-template-columns:minmax(0,1fr)}
  #product-dialog .detail-gallery {position:static;margin:16px 20px 0;padding:14px;gap:12px}
  #product-dialog .detail-gallery .detail-main {height:250px;max-height:250px;width:100%;aspect-ratio:auto;object-fit:contain}
  #product-dialog .gallery-thumbs button {width:48px;height:48px}
  #product-dialog .detail-copy {padding:26px 22px max(32px,env(safe-area-inset-bottom))}
  #product-dialog .product-intro h2 {font-size:27px;line-height:1.5;margin-bottom:14px}
  .product-lead {font-size:14px}
  .product-tags {margin-top:16px;gap:6px}
  .product-tags li {font-size:11px;padding:5px 10px}
  .product-story-section {margin-top:28px}
  .benefit-grid {grid-template-columns:1fr;gap:9px}
  .benefit-card {padding:17px 18px}
  .benefit-index {display:none}
  .benefit-card h4 {font-size:15px;margin-bottom:5px}
  .benefit-card p {font-size:13px}
  .ingredient-list>div {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  #product-dialog .ingredient-list dt {font-size:13px}
  .story-section-heading h3 {font-size:17px}
}
@media (max-width:360px) {
  #product-dialog .detail-gallery {margin:12px 14px 0}
  #product-dialog .detail-copy {padding-left:18px;padding-right:18px}
  #product-dialog .product-intro h2 {font-size:24px}
  #product-dialog .detail-gallery .detail-main {height:220px}
}
