:root {
  --ink: #1d2433; --muted: #667085; --line: #e6e8ee; --bg: #f7f8fa; --card: #fff;
  --accent: #b8322f; --accent-dark: #8f2422; --head: #23262c; --silver: #d8dadd; --up: #12805c; --down: #c0392b; --new: #2563eb;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .4em 0 .3em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .6em; }
h2 a { text-decoration: none; }

.top { background: var(--head); color: var(--silver); border-bottom: 3px solid var(--accent); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; text-decoration: none; margin-right: auto; line-height: 0; }
.brand img { height: 64px; width: auto; }
.mainnav { display: flex; gap: 4px 26px; width: 100%; font-size: .95rem; }
.grp { position: relative; }
.grp summary { list-style: none; cursor: pointer; padding: 6px 0; color: var(--silver); white-space: nowrap; user-select: none; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.grp[open] summary::after { transform: translateY(0) rotate(-135deg); }
.grp summary:hover, .grp[open] summary, .grp.on summary { color: #fff; }
.grp.on summary { box-shadow: inset 0 -2px 0 var(--accent); }
.drop { position: absolute; top: calc(100% + 8px); left: -12px; z-index: 20; min-width: 270px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.12); }
.drop a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.drop a:hover { background: var(--bg); color: var(--accent-dark); }
.drop a[aria-current="page"] { font-weight: 700; color: var(--accent-dark); }
.menu-btn { display: none; font: inherit; font-weight: 600; color: #fff; background: transparent; border: 1px solid #555a63; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.disclosure { font-size: .8rem; color: var(--muted); margin-top: 10px; }

.hero { display: flex; align-items: center; gap: 28px; background: var(--head); color: #fff; border-radius: 14px; padding: 22px 30px; margin-top: 18px; }
.hero h1 { margin: 0 0 .3em; color: #fff; font-size: 2rem; }
.hero-logo { width: 200px; height: auto; flex: none; }
.hero-lead { color: #e4e6ea; font-size: 1.1rem; margin: 0 0 .6em; max-width: 46ch; }
.hero-sub { color: #aeb3bb; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.crumbs a { text-decoration: none; }
.lead { font-size: 1.1rem; margin: 0 0 .2em; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font-size: .9rem; color: var(--accent-dark); text-decoration: none; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.card img { height: 130px; width: 100%; object-fit: contain; }
.card .t { font-size: .9rem; }
.rankline { font-size: .8rem; font-weight: 600; color: var(--muted); }

ol.mini { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
ol.mini li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
ol.mini li:first-child { border-top: 0; }
ol.mini img { width: 44px; height: 44px; object-fit: contain; flex: none; }
ol.mini a { text-decoration: none; flex: 1; }
ol.mini a:hover { text-decoration: underline; }
.pos { font-weight: 700; color: var(--muted); min-width: 2ch; text-align: right; flex: none; }

ol.list { list-style: none; margin: 18px 0; padding: 0; }
.row { display: grid; grid-template-columns: 2.6rem 96px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.row .pos { font-size: 1.4rem; color: var(--ink); text-align: center; }
.row .thumb img { width: 96px; height: 96px; object-fit: contain; }
.row .t { font-weight: 600; text-decoration: none; }
.row .t:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.buy { text-align: right; min-width: 150px; }
.price { font-weight: 700; font-size: 1.15rem; }
.price.big { font-size: 1.8rem; }
.asof { font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.save { color: var(--up); font-weight: 600; }

.mv { font-size: .75rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.mv.up { color: var(--up); background: #e3f5ee; }
.mv.down { color: var(--down); background: #fbe9e7; }
.mv.new { color: #fff; background: var(--new); }
.mv.same { color: var(--muted); }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: 8px; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); }
.btn.big { font-size: 1.1rem; padding: 13px 24px; }

.product { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 12px; }
.pimg img { width: 100%; max-height: 420px; object-fit: contain; }
.product h1 { font-size: 1.5rem; }
.badges { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.badges li { padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.badges li.on strong { font-size: 1.15rem; }
.badges .sub { display: block; font-size: .82rem; color: var(--muted); }
.badges li.off { color: var(--muted); }
.buybox { margin-top: 18px; }
.fit { background: #eef4ff; border: 1px solid #c9dafc; padding: 9px 12px; border-radius: 8px; font-size: .9rem; max-width: 70ch; }
.notice { background: #fff6e5; border: 1px solid #f3d9a4; padding: 10px 12px; border-radius: 8px; }
.summary p { max-width: 70ch; }
.features { max-width: 80ch; padding-left: 1.2em; }
.features li { margin-bottom: .5em; }
.fine { font-size: .78rem; color: var(--muted); margin-top: 28px; }

footer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 18px; padding-bottom: 30px; }

@media (max-width: 720px) {
  h1 { font-size: 1.5rem; }
  .menu-btn { display: inline-block; order: 1; }
  .search { order: 2; flex-basis: 100%; max-width: none; }
  .mainnav { order: 3; }
  .mainnav { display: none; flex-direction: column; gap: 0; padding: 4px 0 6px; }
  .top.menu-open .mainnav { display: flex; }
  .grp { border-top: 1px solid #3a3e46; }
  .grp summary { padding: 12px 2px; }
  .grp.on summary { box-shadow: none; }
  .drop { position: static; box-shadow: none; min-width: 0; margin: 0 0 10px; }
  .drop a { white-space: normal; }
  .brand img { height: 52px; }
  .hero { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
  .hero h1 { font-size: 1.45rem; }
  .hero-logo { width: 150px; }
  .row { grid-template-columns: 2rem 72px 1fr; }
  .row .thumb img { width: 72px; height: 72px; }
  .buy { grid-column: 2 / -1; text-align: left; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .asof { margin: 0; }
  .product { grid-template-columns: 1fr; padding: 16px; }
}

/* Store labels, eBay offers */
.store { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.ebaybox { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.offers { list-style: none; margin: 6px 0 6px; padding: 0; }
.offers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cond btn" "price btn" "ship btn"; column-gap: 14px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 8px; margin-bottom: 8px; }
.offers .cond { grid-area: cond; font-size: .82rem; color: var(--muted); }
.offers .oprice { grid-area: price; font-weight: 700; font-size: 1.15rem; }
.offers .ship { grid-area: ship; font-size: .8rem; color: var(--muted); }
.offers .btn { grid-area: btn; }
.btn.ebay { background: #0654ba; }
.btn.ebay:hover { background: #04408f; }

/* Search */
.search { display: flex; gap: 0; flex: 1 1 260px; max-width: 420px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px; border: 0; border-radius: 8px 0 0 8px; }
.search button { font: inherit; font-weight: 600; padding: 8px 14px; border: 0; border-radius: 0 8px 8px 0; background: var(--accent); color: #fff; cursor: pointer; }
.search button:hover { background: var(--accent-dark); }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.results { list-style: none; padding: 0; margin: 10px 0 24px; }
.results li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.results img { width: 80px; height: 80px; object-fit: contain; }
.results .t { font-weight: 600; text-decoration: none; }
.results .t:hover { text-decoration: underline; }
.results .rmeta { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.results .rprice { font-weight: 700; text-align: right; white-space: nowrap; }
.big-search { display: flex; max-width: 640px; margin: 8px 0 18px; }
.big-search input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px 0 0 8px; }
.big-search button { font: inherit; font-weight: 600; padding: 12px 20px; border: 0; border-radius: 0 8px 8px 0; background: var(--accent); color: #fff; cursor: pointer; }
@media (max-width: 720px) {
  .results li { grid-template-columns: 60px minmax(0, 1fr); }
  .results img { width: 60px; height: 60px; }
  .results .rprice { grid-column: 2; text-align: left; }
}

/* Footer links, legal pages */
.footlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.footlinks a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footlinks a:hover { text-decoration: underline; }
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.15rem; margin-top: 1.5em; }
.legal li { margin-bottom: .45em; }

/* Category guide */
.today { color: var(--muted); max-width: 80ch; margin: .3em 0 0; }
.today strong { color: var(--ink); }
.about-list { max-width: 72ch; margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.about-list h2 { margin-top: 1em; }

/* Price-alert signup */
.pimg, .pinfo { min-width: 0; }   /* let the two product columns shrink on phones */
.watch { margin-top: 18px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; max-width: 460px; }
.watch label { display: block; margin-bottom: 8px; }
.watch-row { display: flex; }
.watch-row input[type=email] { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; }
.watch-row button { font: inherit; font-weight: 600; background: #23262c; color: #fff; border: 0; padding: 9px 16px; border-radius: 0 8px 8px 0; cursor: pointer; white-space: nowrap; }
.watch-row button:hover { background: #000; }
.watch .small { font-size: .8rem; margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Price-alert list */
.watchlist { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.watchlist th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.watchlist td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.watchlist .sub { display: block; font-size: .8rem; color: var(--muted); }
.watchlist .sub.down { color: #1a7f4b; font-weight: 600; }
.watchlist .sub.up { color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
@media (max-width: 640px) { .watchlist th:nth-child(2), .watchlist td:nth-child(2) { display: none; } }
