/* Hallmark · built: the project · redesign: full · scope: app · signature: paired prices under the product photograph */
/* Critique: keep the original listing photographs, group closed deals last and put both prices above the purchase conditions. */
:root {
  color-scheme: light;
  --paper: #fbf3ee;
  --white: #fffefc;
  --ink: #30251f;
  --muted: #645850;
  --line: #d9c9bf;
  --soft-line: #ece0d7;
  --wash: #f8f3ee;
  --red: #a6311e;
  --red-hover: #862716;
  --price-bg: #fce8dc;
  --ad-bg: #ffe4b3;
  --ad-ink: #452d15;
  --ad-line: #dbb578;
  --green: #1e6346;
  --field-line: #87776d;
  --focus: #005caa;
  --shade: #30251f65;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-family: var(--font); background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 10px; }
body { margin: 0; font-size: 16px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
button, select { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden], .symbols { display: none !important; }
::selection { color: var(--ad-ink); background: var(--ad-bg); }
.wrap { width: min(1010px, calc(100% - 64px)); margin-inline: auto; }
.icon { width: 1.13em; height: 1.13em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; padding: 8px; background: var(--white); }
.ad-notice, .disclosure { background: var(--ad-bg); color: var(--ad-ink); border-bottom: 1px solid var(--ad-line); }
.ad-notice p { font-weight: 700; font-size: 15px; padding-block: 8px; }
header { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead, .brand, nav button, .list-heading, .state-picker, .category-nav, .list-summary, .order, .meta, .checked, .buy, .reason, footer, footer a { display: flex; align-items: center; }
.masthead, .list-heading, .list-summary, footer { justify-content: space-between; }
.masthead { min-height: 60px; }
.brand { gap: 8px; font-size: 26px; font-weight: 850; letter-spacing: -.06em; }
nav button, footer a { min-height: 44px; gap: 4px; font-size: 14px; }
nav button { background: transparent; border: 0; padding: 0 2px; }
nav button:hover, footer a:hover { text-decoration: underline; }
.list-heading { margin: 24px 0 12px; gap: 8px; }
h1 { font-size: clamp(29px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.055em; }
.state-picker { flex: none; gap: 8px; color: var(--muted); font-size: 13px; }
.state-picker select { min-height: 44px; max-width: 150px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--white); padding: 4px 8px; font-weight: 700; color: var(--ink); }
.category-nav { flex-wrap: wrap; gap: 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.category-filter { position: relative; isolation: isolate; min-height: 44px; border: 0; background: transparent; padding: 0 12px; font-size: 15px; font-weight: 650; }
.category-filter::before { position: absolute; z-index: -1; content: ""; inset: 5px 0; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.category-filter[aria-pressed=true] { color: var(--white); }
.category-filter[aria-pressed=true]::before { background: var(--ink); border-color: var(--ink); }
.category-filter:hover::before { border-color: var(--ink); }
button:active, a:active { opacity: .88; }
select:disabled { color: var(--muted); cursor: not-allowed; }
.list-summary { padding: 8px 0; font-size: 13px; color: var(--muted); }
.list-summary p { font-weight: 700; }
.order, .checked { gap: 4px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.card { --pad: 20px; display: grid; grid-template-columns: clamp(104px, 11vw, 150px) minmax(0, 1fr); gap: 0 16px; padding: var(--pad); min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.disclosure { grid-column: 1/-1; margin: calc(0px - var(--pad)) calc(0px - var(--pad)) 12px; padding: 8px var(--pad); border-radius: 11px 11px 0 0; font-size: 14px; font-weight: 650; }
.product { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; aspect-ratio: 1; border-radius: 5px; overflow: hidden; align-self: start; }
.product img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.placeholder { font-size: 13px; color: var(--muted); text-align: center; }
.identity { min-width: 0; align-self: center; }
.meta { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.status { color: var(--green); font-weight: 800; }
.ended .status { color: var(--ink); }
.sample { margin-left: 1px; border: 1px solid var(--line); border-radius: 3px; padding-inline: 4px; }
.card h3 { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.22; letter-spacing: -.05em; }
.option { color: var(--muted); font-size: 15px; margin-top: 4px; }
.details { grid-column: 1/-1; min-width: 0; }
.price-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr); margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.price-board > div { padding: 8px 12px 8px; }
.base-price { background: var(--wash); border-radius: 6px 0 0 6px; }
.deal-price { color: var(--red); background: var(--price-bg); border-radius: 0 6px 6px 0; }
.ended .deal-price { background: var(--wash); color: var(--ink); border-left: 1px solid var(--line); }
.price-board dt { font-size: 13px; font-weight: 700; line-height: 1.35; }
.amount { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 23px; line-height: 1.45; letter-spacing: -.045em; }
.deal-price .amount { font-variant-numeric: tabular-nums; font-size: 30px; line-height: 1.115; font-weight: 820; }
.currency { margin-left: 2px; font-size: .65em; }
.price-note, .unit-price { font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-source { text-decoration: underline; text-underline-offset: 3px; }
.price-source:hover { color: var(--ink); }
.conditions { display: grid; gap: 2px; font-size: 14px; }
.condition { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px; }
.condition dt { color: var(--muted); }
.condition dd { font-weight: 650; }
.reason { gap: 4px; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--soft-line); font-size: 14px; }
.reason .icon { color: var(--muted); align-self: start; margin-top: 4px; }
.checked { margin: 4px 0 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.buy, .close, #reset-filter { min-height: 44px; padding: 8px 12px; border-radius: 5px; border: 1px solid transparent; font-weight: 750; }
.buy, .close { justify-content: center; gap: 8px; background: var(--red); color: var(--white); font-size: 15px; }
a.buy:hover, .close:hover { background: var(--red-hover); }
.ended a.buy, #reset-filter { color: var(--ink); background: var(--white); border-color: var(--field-line); }
.ended a.buy:hover, #reset-filter:hover { background: var(--wash); }
.unavailable { background: var(--wash); color: var(--muted); }
.ended-heading { grid-column: 1/-1; display: flex; align-items: baseline; gap: 8px; border-top: 2px solid var(--line); padding-top: 16px; margin-top: 8px; font-size: 22px; letter-spacing: -.035em; }
.ended-heading span { color: var(--muted); font-size: 15px; }
.empty { padding: 32px 12px; text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); }
#reset-filter { margin-top: 12px; }
footer { gap: 8px; border-top: 1px solid var(--line); padding: 12px 0 16px; margin-top: 28px !important; font-size: 13px; color: var(--muted); }
footer a { flex: none; }
dialog { width: min(415px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 12px; padding: 0; color: var(--ink); }
dialog::backdrop { background: var(--shade); }
.dialog-body { padding: 20px; }
dialog p { margin: 12px 0; }
.close { width: 100%; }
@media (max-width: 740px) {
  .wrap { width: min(540px, calc(100% - 26px)); }
  .ad-notice p { padding-block: 8px; font-size: 14px; }
  .masthead { min-height: 45px; }
  .brand { font-size: 22px; }
  .brand img { width: 29px; height: 29px; }
  .list-heading { margin: 8px 0 4px; }
  .category-nav { gap: 0 4px; padding-bottom: 4px; }
  .category-filter { padding: 0 8px; font-size: 13px; }
  .list-summary { padding-block: 4px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { --pad: 12px; grid-template-columns: clamp(90px, 27vw, 132px) minmax(0, 1fr); column-gap: 12px; }
  .option { font-size: 14px; }
  .price-board { margin-top: 8px; }
}
@media (max-width: 355px) {
  .category-filter { padding-inline: 4px; }
  .card { --pad: 12px; }
  .price-board > div { padding-inline: 8px; }
  .card h3 { font-size: 18px; }
}

@media (max-width: 375px) and (max-height: 670px) {
  .ad-notice p { padding-block: 4px; line-height: 1.35; }
  .category-nav { flex-wrap: nowrap; overflow-x: auto; }
  .category-filter { flex: none; }
  .list-heading { margin-top: 4px; }
  .list-summary { padding-block: 0; }
  .card { grid-template-columns: 64px minmax(0, 1fr); }
  .card .option { margin-top: 0; }
  .card .meta { margin-bottom: 0; }
  .price-board { margin-block: 4px; }
  .price-board > div { padding-block: 4px; }
  .conditions { gap: 0; line-height: 1.35; }
  .reason { margin-top: 4px; padding-top: 4px; }
  .checked { margin-block: 4px; }
}
