:root {
  color-scheme: light;
  --ink: #203329;
  --muted: #52635b;
  --paper: #f8f8f2;
  --line: #dde3d8;
  --green: #215943;
  --mint: #e0f0d7;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #368263; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-action { min-height: 34px; border-radius: 25px; padding: 6px 13px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-link { display: grid; place-items: center; width: 40px; height: 40px; font-size: 26px; color: var(--green); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 22px; white-space: nowrap; letter-spacing: -.06em; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--green); color: white; font-size: 25px; }
nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 700; }
nav a { white-space: nowrap; padding-block: 10px; color: var(--muted); }
nav a[aria-current] { color: var(--green); box-shadow: inset 0 -2px var(--green); }
#saved-count { margin-inline-start: 3px; color: var(--green); }
.hero { margin-block: 28px 20px; border-radius: 28px; padding: clamp(28px, 5vw, 66px); display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; background: radial-gradient(ellipse at 95% 10%, #426a47, transparent 65%), #1e3e31; color: white; }
.eyebrow { font-size: 12px; letter-spacing: .12em; font-weight: 800; margin: 0 0 13px; color: var(--green); }
.hero .eyebrow { color: #c6eba8; }
h1, h2 { margin: 0; letter-spacing: -.065em; }
h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.13; }
.hero p:not(.eyebrow) { color: #e1eee5; line-height: 1.65; margin: 17px 0 23px; }
.button { display: inline-flex; min-height: 44px; justify-content: center; align-items: center; gap: 12px; border-radius: 10px; background: var(--green); color: #fff; padding: 10px 16px; font-weight: 800; font-size: 14px; }
.hero .button { background: #d9f7ad; color: #203b28; }
.hero-card { padding: clamp(17px, 3vw, 25px); border-radius: 20px; color: var(--ink); background: #fbfdf5; box-shadow: 0 14px 26px #10231940; }
.chart-heading, .axis { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart-heading { font-size: 14px; font-weight: 750; }
.pill { background: var(--mint); color: var(--green); padding: 5px 9px; border-radius: 30px; }
.hero-product { display: block; margin-top: 13px; font-size: 14px; color: var(--muted); }
.hero-price { display: block; font-size: 34px; margin-top: 3px; letter-spacing: -.07em; }
.chart { width: 100%; height: auto; display: block; }
.chart-grid { fill: none; stroke: #d9e5d8; stroke-dasharray: 4 4; }
.chart-fill { fill: #d7edcb; opacity: .65; }
.chart-line { stroke: #367650; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #215943; stroke: white; stroke-width: 2; }
.axis { color: var(--muted); font-size: 12px; }
.axis a { display: inline-flex; align-items: center; min-height: 32px; color: var(--green); font-weight: 800; }
.notice { margin: 20px 0 0; background: #eff1e7; border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.notice strong { color: var(--green); margin-right: 6px; }
.catalog { padding-block: 32px 45px; }
.section-head, .filters { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-head h2 { font-size: clamp(25px, 4vw, 37px); }
.section-head p, .results { color: var(--muted); font-size: 14px; }
.section-head p { margin: 6px 0 0; }
.search { flex: 0 1 255px; }
input, select { background: white; border: 1px solid var(--line); border-radius: 10px; min-height: 43px; padding: 0 12px; }
input { width: 100%; }
.filters { margin-top: 16px; }
.filters label { min-width: 0; }
.filters select { max-width: 100%; }
#categories { width: 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 42px; border-radius: 24px; padding: 7px 13px; background: white; border: 1px solid var(--line); white-space: nowrap; font-weight: 700; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shelf + .shelf { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.shelf h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.04em; }
.live-shelf h3 { display: flex; align-items: center; gap: 9px; font-size: clamp(23px, 4vw, 32px); }
.live-shelf h3 small { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.live-shelf + .live-shelf { margin-top: 36px; }
.product { border: 1px solid var(--line); border-radius: 18px; padding: 8px; background: white; position: relative; }
.product:focus-within, .product:hover { border-color: #a6bdab; }
.product-open { width: 100%; padding: 0; display: block; text-align: left; background: transparent; border: 0; border-radius: 12px; }
.product-art { display: grid; place-items: center; min-height: 110px; aspect-ratio: 1.65; background: radial-gradient(circle at 40% 30%, #fff9, transparent 62%), var(--art); border-radius: 12px; font-size: clamp(40px, 6vw, 75px); }
.product-art > span { filter: drop-shadow(0 5px 6px #1e3e3130); }
.product-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: inherit; background: white; }
.product-text { display: grid; gap: 6px; padding: 12px 8px 8px; }
.product-category, .option, del { color: var(--muted); font-size: 12px; }
.product-name { line-height: 1.35; word-break: keep-all; }
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 5px; }
.price b { color: #ae4031; font-size: 14px; }
.price strong { font-size: 19px; letter-spacing: -.04em; }
.heart { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; background: white; border: 1px solid var(--line); border-radius: 50%; font-size: 24px; padding: 0; top: 13px; right: 13px; }
.heart[aria-pressed="true"] { color: #ad3d31; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 12px; background: white; border: 1px dashed var(--line); border-radius: 16px; }
.footer { border-top: 1px solid var(--line); padding-block: 20px max(24px, env(safe-area-inset-bottom)); display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.product-page { background: #fff; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
#product-detail { max-width: 1060px; padding-block: 20px 36px; }
.back-link { display: inline-block; margin-bottom: 15px; font-size: 13px; font-weight: 700; color: var(--green); }
.product-summary { display: grid; grid-template-columns: clamp(98px, 28vw, 168px) 1fr; gap: clamp(12px, 3vw, 22px); align-items: center; }
.product-summary .product-art { aspect-ratio: 1; min-height: 0; font-size: clamp(42px, 11vw, 77px); }
.product-summary .eyebrow { margin-bottom: 6px; }
.product-summary h1 { font-size: clamp(19px, 5vw, 34px); word-break: keep-all; }
.product-summary .option { margin-block: 5px 10px; }
.product-summary .price strong { font-size: clamp(22px, 5vw, 30px); }
.product-summary:has(.product-summary-copy) {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 60px);
  padding-block: 12px 26px;
  border-bottom: 1px solid var(--line);
}
.product-summary:has(.product-summary-copy) .product-art { aspect-ratio: 1.2; background: #f6f7f3; }
.product-summary:has(.product-summary-copy) .product-art img { width: 86%; height: 86%; background: transparent; }
.product-summary-copy { min-width: 0; }
.product-summary-copy h1 { overflow-wrap: anywhere; }
.summary-price { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.summary-price .price strong { color: var(--ink); }
.product-summary-copy .summary-price .price strong { font-size: clamp(28px, 5vw, 44px); }
.summary-actions { margin-top: 20px; }
.summary-actions #detail-save[aria-pressed="false"] { background: var(--mint); color: var(--green); }
.price-summary { margin-block: 12px 22px; padding: 5px 16px; background: #f2f5f0; border-radius: 14px; }
.price-summary div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 13px; }
.price-summary div + div { border-top: 1px solid var(--line); }
.price-summary dt { font-size: 14px; color: var(--muted); }
.price-summary dd { margin: 0; text-align: right; font-weight: 800; }
.price-summary div:last-child dd { color: var(--green); }
.detail-chart { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.chart-range { color: var(--muted); font-size: 13px; }
.observed-chart { margin-top: 20px; }
.observed-chart h2 { font-size: 20px; }
.observed-chart figure { margin: 10px 0 0; }
.observed-chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.observed-chart figcaption span:only-child { margin-inline: auto; }
.detail-layout { display: grid; gap: 22px; margin-top: 24px; }
.detail-layout .observed-chart { margin-top: 0; padding: clamp(14px, 3vw, 26px); }
.observed-chart .chart { height: clamp(112px, 28vw, 270px); }
.chart-count { color: var(--muted); font-size: 12px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block: 12px 4px; }
.detail-metrics div { padding: 9px 7px; border-radius: 8px; background: #fff; }
.detail-metrics dt, .detail-info dt { color: var(--muted); font-size: 12px; }
.detail-metrics dd, .detail-info dd { margin: 4px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.detail-metrics dd { font-size: clamp(13px, 2.5vw, 18px); }
.observation-log { border-top: 1px solid var(--line); padding-top: 10px; }
.observation-log ul { list-style: none; padding: 0; margin-bottom: 0; max-height: 180px; overflow: auto; }
.observation-log li { display: flex; justify-content: space-between; gap: 8px; padding-block: 6px; }
.detail-info { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.detail-info h2 { font-size: 20px; }
.detail-info dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; margin: 8px 0; }
.detail-info dl div { padding-block: 10px; border-bottom: 1px solid var(--line); }
.detail-info p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.detail-section { margin-top: 27px; }
.detail-section h2 { font-size: 22px; margin-bottom: 11px; }
.option-list { padding: 0; margin: 0; list-style: none; }
.option-row { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 12px; border-radius: 10px; }
.option-row.active { background: #eef5eb; }
a.option-row:hover { background: var(--paper); }
.option-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; background: var(--art); border-radius: 8px; font-size: 23px; }
.option-price { display: block; margin-top: 3px; font-size: 13px; color: var(--green); }
.option-arrow { margin-left: auto; }
details { margin-top: 10px; font-size: 13px; }
details summary { cursor: pointer; }
.purchase-bar { position: fixed; z-index: 1; inset: auto 0 0; padding: 9px 0 max(9px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.detail-actions { max-width: 760px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.detail-actions button { border: 0; }
.purchase-link { background: #edf2eb; color: var(--green); }
#detail-save[aria-pressed="true"] { background: #376b52; }
.missing-product h1 { font-size: 24px; margin-bottom: 15px; }
.fashion-page { background: #edf0f3; }
.fashion-feed { max-width: 1060px; margin-inline: auto; padding-block: 26px 42px; }
.fashion-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fashion-heading h1 { font-size: clamp(24px, 4vw, 36px); }
.fashion-heading a { color: var(--green); font-size: 13px; font-weight: 800; white-space: nowrap; }
.fashion-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fashion-side { display: grid; gap: 14px; }
.fashion-panel { min-width: 0; background: #fff; border: 1px solid #e4e7e9; border-radius: 17px; padding: clamp(13px, 2vw, 20px); }
.fashion-panel h2 { font-size: clamp(17px, 2.5vw, 22px); margin-bottom: 12px; }
.fashion-panel h2 em { color: #6b49a4; font-style: normal; }
.fashion-panel h3 { margin: 11px 0 0; letter-spacing: -.035em; line-height: 1.35; word-break: keep-all; }
.fashion-panel p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.fashion-photo { position: relative; margin: 0; border-radius: 11px; overflow: hidden; background: #e9e2d7; }
.fashion-cover { aspect-ratio: 1.38; }
.fashion-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fashion-cover img { object-position: center 59%; }
.fashion-photo figcaption { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; background: #222d; color: #fff; border-radius: 6px; font-size: 11px; }
.fashion-tip-image { aspect-ratio: 2.1; }
.fashion-tip-image img { object-position: center 58%; }
.fashion-items { display: grid; gap: 8px; }
.fashion-items .product { padding: 7px; border-radius: 12px; }
.fashion-items .product-open { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; padding-right: 44px; }
.fashion-items .product-art { aspect-ratio: 1; min-height: 0; font-size: 38px; }
.fashion-items .product-text { padding: 4px 0; }
.fashion-items .heart { top: 50%; right: 7px; transform: translateY(-50%); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .header { min-height: 53px; }
  nav { gap: 2px clamp(10px, 3vw, 23px); flex-wrap: wrap; }
  .search-link { flex-shrink: 0; }
  nav a { padding-block: 12px; }
  .hero { grid-template-columns: 1fr; margin-top: 15px; gap: 21px; border-radius: 18px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .search { flex-basis: auto; }
  .filters { gap: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product { padding: 5px; border-radius: 13px; }
  .product-art { min-height: 89px; }
  .product-text { padding-inline: 5px; }
  .heart { top: 8px; right: 8px; }
  .catalog { padding-top: 23px; }
  .product-summary:has(.product-summary-copy) { grid-template-columns: 1fr; gap: 12px; padding-block: 4px 16px; }
  .product-summary:has(.product-summary-copy) .product-art { aspect-ratio: 1.6; }
  .detail-layout { gap: 12px; margin-top: 14px; }
  .summary-price { margin-top: 8px; padding-top: 8px; }
  .summary-actions { position: fixed; z-index: 1; inset: auto 0 0; margin: 0; padding: 9px 14px max(9px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .fashion-feed { padding-block: 20px 28px; }
  .fashion-layout { grid-template-columns: 1fr; gap: 10px; }
  .fashion-side { gap: 10px; }
}
