.shop-guide {
  --shop-ink: #203c36;
  --shop-quiet: #506259;
  --shop-line: #cdd2c1;
  --shop-green: #285749;
  --shop-warm: #854b2a;
  color: var(--shop-ink);
  container: shop / inline-size;
}
.shop-guide [hidden] { display: none !important; }
.shop-guide .shop-heading, .shop-compare header, .shop-compare header > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.shop-guide :is(.shop-heading, .shop-compare, .shop-advice) h3 {
  font: 730 clamp(24px, 3vw, 36px)/1.05 var(--fg-display); letter-spacing: -.045em;
}
.shop-heading h3 { text-wrap: balance; }
.shop-guide .shop-dateline, .shop-guide .shop-status {
  margin: 6px 0 0; color: var(--shop-quiet); font-size: 13px; line-height: 1.45;
}
.shop-tools { margin: 17px 0 7px; padding-block: 12px; border-block: 1px solid var(--shop-line); display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; }
.shop-filters { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px; }
.shop-search { display: flex; align-items: center; gap: 7px; border: 1px solid #b8c4b3; border-radius: 5px; padding-inline: 9px; min-height: 38px; background: #fffbf3; }
.shop-search svg { flex: none; color: var(--shop-quiet); }
.shop-search:focus-within { outline: 2px solid var(--shop-green); outline-offset: 1px; }
.shop-guide .shop-search input { background: transparent; color: var(--shop-ink); font-size: 14px; padding: 6px 0; width: 22ch; min-width: 0; border: 0; outline: none; }
.shop-guide .shop-clear { padding: 7px 12px; min-height: 40px; border: 1px solid var(--shop-green); border-radius: 5px; background: transparent; font-weight: 650; color: var(--shop-green); }
.shop-guide .shop-filters button {
  border: 1px solid #c7cfbd; border-radius: 5px; background: transparent; color: var(--shop-ink);
  font-size: 13px; font-weight: 650; min-height: 36px; padding: 5px 10px;
}
.shop-guide .shop-filters button:is(:hover,:focus-visible) { background: #e7ecdd; }
.shop-guide .shop-filters button[aria-pressed="true"] { background: var(--shop-green); color: #fff9e9; border-color: var(--shop-green); }
.shop-guide .shop-jump { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; background: transparent; color: var(--shop-green); font-size: 13px; font-weight: 650; padding: 4px 0; margin-left: auto; border: 0; }
.shop-jump:hover { text-decoration: underline; }
.shop-guide .shop-status { font-variant-numeric: tabular-nums; margin-block: 9px 15px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px clamp(14px, 2vw, 24px); align-items: start; }
.shop-find { min-width: 0; }
.shop-find .shop-photo { display: grid; margin: 0; }
.shop-photo img { width: 100%; height: auto; aspect-ratio: 1.45; display: block; object-fit: cover; background: #eeeadf; border: 1px solid #182e3212; border-radius: 6px; }
.shop-photo figcaption { margin-top: 4px; color: var(--shop-quiet); font-size: 11px; line-height: 1.35; }
.shop-find:is([data-category="Games & collectibles"], [data-category="Watches"]) img, .shop-photo[data-framing="full"] img { object-fit: contain; background: #f1eee7; }
.shop-photo[data-framing="top"] img { object-position: center 7%; }
.shop-find-copy { padding-top: 11px; }
.shop-kind { display: block; font: 650 10px/1.45 var(--label,ui-monospace,monospace); text-transform: uppercase; letter-spacing: .08em; color: var(--shop-warm); margin-bottom: 5px; }
.shop-guide .shop-find h4 { font-size: clamp(21px, 2vw, 27px); font-weight: 720; line-height: 1.08; letter-spacing: -.04em; }
.shop-guide .shop-summary { color: var(--shop-quiet); font-size: 14px; line-height: 1.5; margin: 8px 0; }
.shop-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; margin: 11px 0; font-variant-numeric: tabular-nums; }
.shop-price strong { font-size: 19px; line-height: 1.3; color: var(--shop-green); }
.shop-price small { font-size: 12px; color: var(--shop-quiet); }
.shop-buy { border-block: 1px solid var(--shop-line); }
.shop-guide summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; line-height: 1.35; font-size: 14px; color: var(--shop-green); font-weight: 680; }
.shop-guide summary::-webkit-details-marker { display: none; }
.shop-guide summary svg { flex: none; }
.shop-guide summary:hover { color: var(--shop-warm); }
.shop-guide details[open] > summary svg { transform: rotate(180deg); }
.shop-record { padding: 0 0 14px; }
.shop-record h5 { margin: 15px 0 4px; font-size: 15px; line-height: 1.15; color: var(--shop-ink); }
.shop-record h5:first-child { margin-top: 0; }
.shop-guide .shop-record p, .shop-guide .shop-advice details > p { font-size: 14px; line-height: 1.55; color: var(--shop-quiet); }
.shop-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 10px; }
.shop-guide a { color: var(--shop-green); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.shop-links a, .shop-example-source a { font-size: 13px; line-height: 1.5; }
.shop-guide a svg { vertical-align: -.1em; }
.shop-record .shop-photo-source { margin-top: 13px; padding-top: 9px; border-top: 1px dotted var(--shop-line); font-size: 11px; }
.shop-guide .shop-photo-source a { font-size: inherit; font-weight: 500; }
.shop-photo-source svg { width: 10px; height: 10px; }
.shop-compare { margin-top: clamp(32px, 6vw, 64px); padding: clamp(17px, 3vw, 30px); background: #e9eddf; border-radius: 10px; }
.shop-compare header > div { justify-content: start; }
.shop-compare header svg { flex: none; }
.shop-compare h3 { scroll-margin-top: 84px; }
.shop-guide .shop-compare > p { margin: 9px 0 17px; max-width: 52ch; color: var(--shop-quiet); font-size: 15px; }
.shop-example { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 650; }
.shop-example rovomi-select { max-width: 100%; }
.shop-guide :is(.shop-example select, .shop-inputs input) { min-height: 42px; max-width: 100%; font: inherit; color: var(--shop-ink); background: #fffbf1; border: 1px solid #a5b5a5; border-radius: 5px; padding: 6px 8px; }
.shop-inputs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-block: 15px; }
.shop-inputs fieldset { min-width: 0; margin: 0; border: 0; border-top: 1px solid #bbcab9; padding: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.shop-inputs legend { padding: 0 5px 0 0; font-size: 16px; font-weight: 700; }
.shop-inputs legend span { color: var(--shop-quiet); font-size: 12px; font-weight: 500; }
.shop-inputs label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; }
.shop-guide .shop-inputs input { width: 100%; min-width: 0; font-size: 16px; font-weight: 650; }
.shop-output { display: grid; gap: 3px; padding: 12px 0 0; border-top: 1px dashed #a2b69e; font-size: 15px; }
.shop-output strong { font-size: 21px; line-height: 1.25; }
.shop-example-source:not(:empty) { margin-top: 8px; }
.shop-advice { margin-top: 36px; }
.shop-advice h3 { margin-bottom: 16px; }
.shop-advice details { border-top: 1px solid var(--shop-line); }
.shop-advice details:last-child { border-bottom: 1px solid var(--shop-line); }
.shop-advice summary { padding-block: 7px; font-size: 17px; min-height: 48px; }
.shop-advice details[open] { padding-bottom: 14px; }
.shop-advice details > p { max-width: 70ch; }
@container shop (max-width: 815px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@container shop (max-width: 480px) {
  .shop-grid, .shop-inputs { grid-template-columns: minmax(0,1fr); }
  .shop-photo img { aspect-ratio: 1.85; }
  .shop-guide .shop-jump { margin-left: 0; }
  .shop-search { flex: 1 1 135px; min-width: 0; }
  .shop-guide .shop-search input { font-size: 16px; width: 100%; }
  .shop-compare header { align-items: start; }
  .shop-example rovomi-select, .shop-example .rv-select-trigger { width: 100%; }
  .shop-example .rv-select-trigger > span { flex: 1; }
  .shop-compare header > div > svg { display: none; }
}
@media (pointer: coarse) {
  .shop-guide :is(.shop-filters button, .shop-jump, .shop-clear, .shop-search, .shop-inputs input) { min-height: 44px; }
  .shop-guide .shop-search input { font-size: 16px; }
  .shop-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
  }
  .shop-links { gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .shop-guide summary svg { transition: transform .16s ease; }
}
