/* Bid and Thrift. Colors come from data/brand.json at load time; the values
   below are only the fallback so the page is never unstyled. No inline styles,
   no external fonts, no external files (strict CSP). */

:root {
  --tag-blue: #1D4ED8; --tag-orange: #EA580C; --tag-green: #16A34A; --tag-purple: #7E22CE; --tag-yellow: #FACC15; --tag-teal: #0891B2; --tag-pink: #DB2777; --tag-brown: #78350F;
  --primary: #0B7A3E; --primary-dark: #085A2D; --accent: #E11D2E; --highlight: #FFC400;
  --ink: #111111; --surface: #FFFFFF; --muted: #F1F4F1; --line: #BFC9C2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 30px; } h2 { font-size: 22px; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; padding-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--highlight); color: var(--ink); padding: 10px 16px; font-weight: 800; z-index: 100; border: 2px solid var(--ink); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--highlight); }
main:focus { outline: none; box-shadow: none; }

/* Banners */
.banner-warn { background: var(--highlight); color: var(--ink); padding: 10px 16px; text-align: center; font-weight: 600; border-bottom: 3px solid var(--ink); }
.banner-warn.inline { border: 3px solid var(--ink); border-radius: 8px; margin-top: 16px; }
.fatal { background: #fff; color: var(--ink); border: 4px solid var(--accent); border-radius: 12px; padding: 24px; margin: 24px auto; max-width: 900px; }
.fatal pre { white-space: pre-wrap; background: var(--muted); padding: 12px; border-radius: 8px; font-size: 14px; }

/* Header */
.topbar { background: var(--primary-dark); color: #fff; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; font-weight: 700; }
.topbar-msg { color: var(--highlight); font-size: 15px; letter-spacing: .01em; }
.topbar-links { display: flex; gap: 18px; }
.header { background: var(--primary); color: #fff; }
.header-in { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 26px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-mark { background: var(--highlight); color: var(--ink); padding: 2px 8px; border-radius: 6px; }
.dept { position: relative; }
.dept summary { list-style: none; cursor: pointer; background: var(--primary-dark); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; border: 2px solid #fff; white-space: nowrap; }
.dept summary::-webkit-details-marker { display: none; }
.dept-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 8px; }
.dept-panel a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; font-weight: 600; }
.dept-panel a:hover { background: var(--muted); }
.search { flex: 1; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 12px 18px; border: 2px solid var(--ink); border-right: 0; border-radius: 999px 0 0 999px; color: var(--ink); background: #fff; }
.search button { padding: 0 24px; background: var(--highlight); color: var(--ink); border: 2px solid var(--ink); border-radius: 0 999px 999px 0; font: inherit; font-weight: 800; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid var(--ink); background: var(--highlight); color: var(--ink); cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; }
.btn-small { padding: 8px 16px; }

/* Home */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.hero-panel { border-radius: 14px; padding: 36px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; color: #fff; }
.hero-panel h1, .hero-panel h2 { font-size: 40px; margin: 0; }
.hero-panel p { font-size: 18px; margin: 0 0 12px; }
.hero-a { background: var(--primary); }
.hero-b { background: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: flex; align-items: flex-end; min-height: 110px; padding: 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--muted); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; }
.tile:hover { background: var(--highlight); }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 32px 0 12px; }
.section-h h2 { margin: 0; }
.page-h { margin: 20px 0 12px; }

/* Product grid and cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-shop { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.card:hover { border-color: var(--ink); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--muted); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; font-weight: 600; }
.card-meta { font-size: 14px; color: #3A3F3B; margin-top: auto; }
.badge { display: inline-block; align-self: flex-start; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 4px; }

/* Price */
.price { display: inline-flex; align-items: flex-start; font-weight: 800; line-height: 1; }
.price-cur, .price-c { font-size: .5em; padding-top: .15em; }
.price-md { font-size: 28px; }
.price-lg { font-size: 44px; }

/* Sale price: today's price big and red, the starting price struck through, a "% off" pill */
.price-sale { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-now .price { color: #B3121F; }
.price-was { color: #3F4642; font-weight: 600; font-size: 16px; text-decoration: line-through; text-decoration-thickness: 2px; }
.price-sale-lg .price-was { font-size: 22px; }
.sale-pill { background: #B3121F; color: #fff; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.price-sale-lg .sale-pill { font-size: 15px; padding: 4px 10px; }
.you-save { margin: 8px 0 0; font-weight: 800; color: #0A5C2E; }
.drop-sum p { margin: 6px 0 0; }

/* Tag colors (name is always written out; color is never the only clue) */
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; padding: 3px 9px 3px 7px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); line-height: 1.2; }
.tag-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.tag-blue .tag-dot { background: var(--tag-blue); } .tag-orange .tag-dot { background: var(--tag-orange); } .tag-green .tag-dot { background: var(--tag-green); }
.tag-purple .tag-dot { background: var(--tag-purple); } .tag-yellow .tag-dot { background: var(--tag-yellow); } .tag-teal .tag-dot { background: var(--tag-teal); }
.tag-pink .tag-dot { background: var(--tag-pink); } .tag-brown .tag-dot { background: var(--tag-brown); } .tag-clearance .tag-dot { background: #111; }
.tag-clearance { background: var(--ink); color: #fff; }
.tag-clearance .tag-dot { background: #fff; border-color: #fff; }
.card-img .tag { position: absolute; left: 8px; top: 8px; }

/* Price drop schedule and tag guide */
.drop-table { border-collapse: collapse; width: 100%; max-width: 520px; margin: 12px 0; }
.drop-table th, .drop-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.drop-table thead th { border-bottom: 2px solid var(--ink); }
.drop-table tr.current { background: var(--highlight); font-weight: 800; }
.tag-guide { margin: 32px 0; }
.tg-lead { max-width: 780px; margin: 0 0 12px; }
.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tag-grid li { border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.tag-grid li.tg-zero { border-color: var(--line); }
.tag-grid li.tg-zero .tg-off, .tag-grid li.tg-zero .tg-n { color: #3A3F3B; }
.tag-grid a, .tag-grid .tg-flat { display: grid; align-content: start; justify-items: start; text-align: left; gap: 4px; padding: 12px; color: inherit; text-decoration: none; height: 100%; }
.tag-grid a:hover { background: var(--muted); }
.tag-grid .tag { justify-self: start; }
.tg-off { font-weight: 800; font-size: 18px; }
.tg-when, .tg-n { font-size: 14px; color: #3A3F3B; }

/* Ask-us chat: visible on every page; greyed out until HQ is connected */
.chat-launch { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 3px solid var(--ink); background: var(--primary); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.chat-launch:hover { background: var(--primary-dark); color: #fff; }
.chat-launch .chat-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--highlight); border: 2px solid var(--ink); }
.chat-launch.off, .btn.off { background: #E4E7E5; color: #2B302D; border-color: #6B726D; box-shadow: none; }
.chat-launch.off:hover, .btn.off:hover { background: #D3D8D5; color: #111; }
.chat-launch.off .chat-dot { background: #9AA19C; border-color: #6B726D; }
.chat-panel { position: fixed; right: 16px; bottom: 76px; z-index: 61; width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 100px)); overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.chat-panel[hidden], .chat-hand[hidden] { display: none; }
.chat-panel > * { flex-shrink: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-head h2 { margin: 0; font-size: 18px; }
.chat-note, .chat-soon { margin: 0; }
.chat-log { display: flex; flex-direction: column; gap: 8px; min-height: 120px; max-height: 220px; overflow-y: auto; padding: 8px; background: var(--muted); border-radius: 10px; }
.msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--ink); }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; }
.msg-bot { align-self: flex-start; background: #fff; }
.msg-me { align-self: flex-end; background: var(--highlight); }
.chat-form { display: grid; gap: 8px; }
.chat-form textarea, .chat-hand textarea, .chat-hand input { width: 100%; font: inherit; padding: 8px; border: 2px solid var(--ink); border-radius: 8px; }
.chat-hand { display: grid; gap: 6px; }
.chat-link { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; color: var(--primary-dark); text-decoration: underline; text-align: left; cursor: pointer; }
@media print { .chat-launch, .chat-panel { display: none; } }

/* Shop page */
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.filters { border: 1px solid var(--line); border-radius: 12px; padding: 16px; align-self: start; }
.filters h2 { font-size: 16px; margin: 16px 0 6px; }
.filters h2:first-child { margin-top: 0; }
.filters a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.filters a:hover { background: var(--muted); }
.filters a.active { background: var(--ink); color: #fff; font-weight: 800; }
.count { opacity: .8; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.result-count { margin: 0 auto 0 0; font-weight: 700; }
.sortbar select { font: inherit; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 24px 0; }
.empty { padding: 48px 0; text-align: center; }

/* Item page */
.crumbs { margin: 16px 0 0; font-size: 14px; }
.item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 320px; gap: 24px; margin: 16px 0 24px; }
.gallery-main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: var(--muted); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.thumb:hover { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox { border: 2px solid var(--ink); border-radius: 12px; padding: 20px; align-self: start; position: sticky; top: 12px; }
.stock { margin: 10px 0 14px; font-weight: 700; }
.btn-buy { width: 100%; background: var(--accent); color: #fff; font-size: 18px; padding: 14px; }
.btn-buy[aria-disabled="true"] { background: var(--muted); color: var(--ink); border-style: dashed; cursor: not-allowed; }
.btn-buy[aria-disabled="true"]:hover { background: var(--muted); color: var(--ink); }
.note-test { background: var(--highlight); border: 2px solid var(--ink); border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: 14px; }
.fine { font-size: 14px; color: #3A3F3B; margin: 6px 0; }

/* Footer */
.footer { background: var(--ink); color: #fff; margin-top: 40px; padding: 32px 0 20px; }
.footer a { color: #fff; }
.footer h2 { font-size: 18px; }
.footer li { margin: 6px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-base { border-top: 1px solid #555; margin: 24px 0 0; padding-top: 16px; font-size: 14px; }

/* Tablet and phone: grids stay even (4 -> 3 -> 2 columns, tiles 4 -> 2) */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-shop { grid-template-columns: repeat(2, 1fr); }
  .item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 1 / -1; position: static; }
}
@media (max-width: 700px) {
  .header-in { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { min-height: 200px; padding: 24px; }
  .hero-panel h1, .hero-panel h2 { font-size: 30px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid-shop { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop { grid-template-columns: 1fr; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar-in { flex-direction: column; gap: 2px; }
}

/* ---- Picture tiles ---- */
.pic-tiles { display: grid; gap: 16px; }
.pic-tiles.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pic-tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pic-tile { position: relative; display: block; aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--muted); text-decoration: none; }
.pic-tile img { width: 100%; height: 100%; object-fit: cover; }
.pic-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; }
.pic-tile:hover .pic-label { background: var(--highlight); color: var(--ink); }

/* ---- Make an offer ---- */
.btn-offer { width: 100%; margin-top: 10px; background: #fff; font-size: 18px; padding: 12px; }
.offer-form { margin-top: 12px; display: grid; gap: 6px; }
.offer-form[hidden] { display: none; }
.offer-form label { font-weight: 700; font-size: 14px; margin-top: 4px; }
.offer-form input { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; width: 100%; }
.offer-form .btn { margin-top: 8px; }
.offer-msg { margin: 6px 0 0; font-weight: 700; font-size: 14px; }

@media (max-width: 1000px) { .pic-tiles.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .pic-tiles, .pic-tiles.cols-4, .pic-tiles.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pic-label { font-size: 15px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.card-img { flex: none; position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; }

/* ---- Store voice blocks (from the eBay listing style) ---- */
.story { display: grid; gap: 20px; margin-block: 24px; }
.story > h1 { margin: 20px 0 0; }
.panel { background: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel h2, .ship-ugly h2, .family h2, .direct h2, .terms h2, .about-sec h2 { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 0 0 12px; }
.spec dt { font-weight: 800; }
.spec dd { margin: 0; }
.cond-notes { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-style: italic; }
.note-pricing { background: #FFF8E1; border: 2px dashed #B8860B; border-radius: 10px; padding: 14px 18px; }
.note-pricing p { margin: 0 0 10px; }
.ship-ugly { border: 2px dashed var(--primary-dark); border-radius: 10px; padding: 16px 18px; }
.ship-ugly p { margin: 0; font-size: 15px; }
.family { background: #FFF3E0; border: 2px solid #E8871E; border-radius: 10px; padding: 16px 18px; }
.family h2 { color: #8A4A00; }
.family p { margin: 0; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.trust li { display: flex; flex-direction: column; gap: 2px; text-align: center; background: var(--muted); border-top: 5px solid var(--accent); padding: 12px 8px; font-size: 15px; }
.trust strong { text-transform: uppercase; letter-spacing: .06em; }
.thanks { background: #FFFDF5; border-left: 6px solid var(--accent); padding: 8px 20px; border-radius: 0 10px 10px 0; }
.direct { background: var(--primary-dark); color: #fff; border: 3px solid var(--highlight); border-radius: 12px; padding: 18px 22px; margin: 16px 0; }
.direct h2 { color: var(--highlight); margin: 0 0 6px; }
.direct p { margin: 0; font-size: 18px; }
.terms { border-top: 4px solid var(--ink); padding-top: 18px; }
.terms h2 { text-align: center; font-size: 22px; }
.terms-sec h3 { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 17px; margin: 18px 0 6px; }
.terms-list { list-style: disc; padding-left: 22px; }
.terms-list li { margin: 6px 0; }
.about-sec { border-left: 6px solid var(--primary); background: #F4FAF6; padding: 4px 20px 8px; border-radius: 0 10px 10px 0; }
.aio { margin: 0; border-top: 1px dotted var(--line); padding-top: 10px; text-align: right; font: 12px/1.5 ui-monospace, Consolas, monospace; color: #4a4f4b; }
@media (max-width: 700px) { .spec-grid, .trust { grid-template-columns: 1fr; } }

/* ---- Auto parts department, fitment boxes, pickup, shipping estimate (new) ---- */
.dept-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; margin: 24px 0; padding: 24px; background: var(--ink); color: #fff; border-radius: 14px; border: 3px solid var(--highlight); }
.dept-feature h2 { font-size: 30px; margin: 0 0 8px; }
.dept-feature p { margin: 0 0 12px; font-size: 17px; }
.dept-feature .kicker { color: var(--highlight); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.dept-feature .fine { color: #ddd; }
.dept-feature-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dept-feature-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; border: 2px solid #fff; background: var(--muted); }
.fitment-note { background: #FFF8E1; border: 2px solid #B8860B; border-radius: 10px; padding: 14px 18px; }
.fitment-note h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.fitment-note p { margin: 0; }
.part-facts { margin: 10px 0 14px; display: grid; gap: 6px; padding: 12px 14px; background: var(--muted); border: 1px solid var(--line); border-radius: 10px; }
.part-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.part-facts dt { font-weight: 800; }
.part-facts dd { margin: 0; }
.ack { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px 12px; margin: 12px 0; }
.ack legend { font-weight: 800; padding: 0 6px; }
.ack-row { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 15px; cursor: pointer; }
.ack-row input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--primary-dark); }
.ack-msg { margin: 6px 0 0; font-weight: 700; color: var(--accent); min-height: 1.2em; }
.ful { border: 2px solid var(--ink); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; background: var(--muted); }
.ful p { margin: 0 0 6px; }
.ship-est { margin: 0 0 12px; }
.ship-est label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ship-row { display: flex; gap: 8px; }
.ship-row input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 8px; }
.ship-out { margin: 6px 0 0; font-weight: 700; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 8px 0 14px; }
.post-list h2 { margin: 0 0 4px; }
.post-body { max-width: 70ch; }
.post-body img { border-radius: 8px; margin: 12px 0; }
.post-body blockquote { margin: 12px 0; padding: 4px 16px; border-left: 5px solid var(--primary); background: var(--muted); }
.md-list { list-style: disc; padding-left: 24px; margin: 8px 0; }
ol.md-list { list-style: decimal; }
@media (max-width: 700px) {
  .dept-feature { grid-template-columns: 1fr; padding: 18px; }
  .dept-feature h2 { font-size: 24px; }
  .part-facts div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 700px) { .tag-grid { grid-template-columns: repeat(2, 1fr); } .tag-grid li:last-child { grid-column: 1 / -1; } }

/* ---- Cart, cart link and email sign-up ---- */
.cart-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.cart-link:hover { background: var(--ink); color: #fff; }
.cart-n { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; text-align: center; }
.cart-n[hidden] { display: none; }
.btn-cart { width: 100%; margin-top: 10px; background: var(--primary); color: #fff; border-color: var(--ink); font-size: 18px; padding: 12px; }
.btn-cart:hover { background: var(--primary-dark); color: #fff; }
.btn-cart[aria-disabled="true"] { background: #fff; color: var(--ink); cursor: default; }
.cart-msg { margin: 6px 0 0; font-weight: 700; font-size: 14px; }
.cart-page h1 { margin: 20px 0 12px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-bottom: 24px; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; padding: 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.cart-line.sold { background: var(--muted); border-style: dashed; }
.cl-img img { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: var(--muted); display: block; }
.cl-title { font-weight: 800; font-size: 18px; color: var(--ink); }
.cl-info .fine select { font: inherit; padding: 4px 6px; border: 2px solid var(--ink); border-radius: 8px; }
.cl-sold { margin: 6px 0 0; padding: 6px 8px; background: var(--highlight); border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; font-size: 14px; }
.cl-price { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-sum { border: 2px solid var(--ink); border-radius: 12px; padding: 20px; position: sticky; top: 12px; background: #fff; }
.cart-sum h2 { margin: 0 0 8px; font-size: 20px; }
.cart-sum label { display: block; font-weight: 700; font-size: 14px; margin-top: 10px; }
.cart-sum input[type="text"] { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; width: 100%; }
.cart-sum .ack-row { display: flex; margin: 8px 0; font-weight: 400; }
.cart-sum .btn-buy { margin-top: 12px; }
.cart-sum .ship-row { display: flex; gap: 8px; }
.cs-row { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.cs-total { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 18px; }
.cart-empty { margin: 16px 0 32px; padding: 24px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--muted); }
.signup-band { margin: 0 0 24px; padding: 18px 20px; border-radius: 12px; background: #fff; color: var(--ink); border: 3px solid var(--highlight); }
.signup-band h2 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.signup-band a { color: var(--primary-dark); font-weight: 700; }
.signup { display: grid; gap: 6px; max-width: 560px; }
.signup label { font-weight: 700; font-size: 14px; }
.signup input[type="email"] { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
.signup .ack-row { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.signup .ack-row input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.signup .btn { justify-self: start; margin-top: 6px; }
.signup.off input, .signup.off .btn { cursor: not-allowed; }
.signup.off input[type="email"] { background: #E4E7E5; border-color: #6B726D; }
.su-types { display: grid; gap: 8px; margin: 4px 0; }
.su-type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 170px); gap: 10px; align-items: center; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.su-type .ack-row { margin: 0; }
.su-freq select { font: inherit; width: 100%; padding: 8px 8px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
.signup.off .su-type { border-color: #6B726D; background: #E4E7E5; }
.signup.off select { cursor: not-allowed; background: #E4E7E5; border-color: #6B726D; }
.su-also { margin: 8px 0 0; font-weight: 700; }
.su-tip { background: #FFF6CC; border: 2px solid #8A6D00; border-radius: 8px; padding: 8px 10px; color: var(--ink); }
@media (max-width: 480px) { .su-type { grid-template-columns: minmax(0, 1fr); } }
.su-msg { margin: 4px 0 0; font-weight: 700; font-size: 14px; min-height: 1em; }
.su-fb { margin: 6px 0 0; }
@media (max-width: 1000px) { .cart-grid { grid-template-columns: 1fr; } .cart-sum { position: static; } }
@media (max-width: 700px) {
  .cart-line { grid-template-columns: 88px minmax(0, 1fr); }
  .cl-img img { width: 88px; height: 88px; }
  .cl-price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-link { margin-left: 0; }
}
@media print { .cart-link, .signup-band { display: none; } }

/* ---- Request to buy form (cart page) */
.rtb { margin: 24px 0; padding: 20px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; }
.rtb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rtb-head h2 { margin: 0; font-size: 24px; }
.rtb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 12px 0; }
.rtb-f { min-width: 0; }
.rtb-wide { grid-column: 1 / -1; }
.rtb-f label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.rtb-f input, .rtb-f select, .rtb-f textarea { font: inherit; width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); box-sizing: border-box; }
.rtb-f input, .rtb-f select { min-height: 44px; }
.rtb-f textarea { resize: vertical; }
.rtb-f [aria-invalid="true"], .rtb .ack-row input[aria-invalid="true"] { outline: 3px solid var(--accent); outline-offset: 1px; }
.rtb-err { margin: 4px 0 0; font-weight: 700; color: var(--accent); font-size: 14px; }
.rtb .btn-buy { margin-top: 8px; }
.rtb-msg { margin: 10px 0 0; font-weight: 700; min-height: 1.2em; }
.rtb-done { margin: 16px 0 32px; padding: 24px; border: 3px solid var(--primary-dark); border-radius: 12px; background: var(--highlight); color: var(--ink); }
.rtb-done-big { font-size: 20px; font-weight: 800; margin-top: 0; }
@media (max-width: 600px) {
  .rtb-grid { grid-template-columns: minmax(0, 1fr); }
  .rtb-head { flex-direction: column; align-items: flex-start; }
}

/* ---- Top bar "More" menu ---- */

/* ---- Hero cards: optional designer picture behind the words ---- */
.hero-panel { position: relative; overflow: hidden; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-panel.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); z-index: 0; }
.hero-panel .btn-white { background: #fff; }

/* ---- Welcome band ---- */
.welcome-band { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 20px; }
.wb-col { border: 2px solid var(--ink); border-radius: 14px; padding: 22px 26px; background: #fff; }
.wb-col h2 { font-size: 24px; margin: 0 0 8px; }
.wb-col p { margin: 0 0 12px; max-width: 62ch; }
.wb-intro { border-top: 8px solid var(--primary); }
.wb-color { border-top: 8px solid var(--highlight); background: #FFFDF2; }
.wb-hint { min-height: 1.5em; margin: 10px 0 0; }
.wb-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag-big { font-size: 20px; padding: 6px 16px 6px 12px; }
.tag-big .tag-dot { width: 22px; height: 22px; }
.wb-week { font-weight: 700; }

/* ---- Department icon row ---- */
.di-emoji { font-size: 38px; line-height: 1; }
.di-img { width: 52px; height: 52px; object-fit: contain; }
.di-name { font-size: 15px; line-height: 1.2; }

/* ---- Story cards: thank-you, ship ugly, family. One look, same type size, readable line length ---- */
.story-card { background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--primary); border-radius: 12px; padding: 20px 24px 22px; }
.story-card.sc-red { border-top-color: var(--accent); } .story-card.sc-green { border-top-color: var(--primary); } .story-card.sc-yellow { border-top-color: var(--highlight); }
.story-card h2 { font-size: 20px; letter-spacing: 0; text-transform: none; margin: 0 0 10px; color: var(--ink); }
.story-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; max-width: 70ch; }
.story-card p:last-child { margin-bottom: 0; }
.story-card .sc-trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.story-card .sc-trio li { background: var(--muted); border-radius: 8px; padding: 10px 14px; line-height: 1.5; }
.story-card .sc-trio strong { display: block; }
.story-home { grid-template-columns: 1fr 1fr; align-items: stretch; }
.story-home .thanks { grid-column: 1 / -1; }

/* ---- Returns warning box and pickup box on the Shipping page ---- */
.notice-warn { background: #FFF6D6; border: 3px solid var(--ink); border-left: 12px solid var(--accent); border-radius: 10px; padding: 14px 20px; }
.notice-warn h2 { font-size: 20px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.notice-warn ul { margin: 0; padding-left: 20px; }
.notice-warn li { margin: 6px 0; font-size: 16px; }
.notice-warn li.first { font-weight: 800; font-size: 18px; }
.notice-pickup { background: #E9F6EE; border: 3px solid var(--primary); border-radius: 10px; padding: 14px 20px; }
.notice-pickup h2 { font-size: 20px; margin: 0 0 6px; }
.notice-pickup p { margin: 0 0 10px; }

@media (max-width: 1000px) {
  .welcome-band, .story-home { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar-msg { text-align: center; }
  .topbar-links { justify-content: center; }
  .di-ico { width: 64px; height: 64px; } .di-emoji { font-size: 32px; }
}

/* ---- Icon bar (every page) ---- */
.icobar { background: #fff; border-bottom: 1px solid var(--line); }
.icobar ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; list-style: none; margin: 0; padding: 10px 0; }
.icobar a, .icobar summary { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; color: var(--ink); text-decoration: none; font-weight: 800; text-align: center; border-radius: 12px; cursor: pointer; list-style: none; }
.icobar summary::-webkit-details-marker { display: none; }
.icobar a:hover, .icobar summary:hover, .icobar .more[open] summary { background: var(--muted); }
.icobar a.feat .di-name { color: var(--accent); }
.icobar .more { position: relative; }
.icobar .more .dept-panel { left: auto; right: 0; text-align: left; }
.di-ico { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: #FFF6D6; border: 3px solid var(--ink); }
.icobar a:hover .di-ico, .icobar summary:hover .di-ico { background: var(--highlight); }
.di-emoji { font-size: 34px; line-height: 1; }
.di-img { width: 46px; height: 46px; object-fit: contain; }
.di-name { font-size: 15px; line-height: 1.2; }

/* ---- Home cards: words left, picture right ---- */
.hero-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; align-items: center; justify-items: start; }
.hero-split .hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero-art { justify-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-trio .ph { display: block; flex: none; width: 100px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.4); line-height: 0; }
.hero-trio .ph img { width: 100%; height: auto; display: block; }
.hero-trio .ph-2 { width: 140px; margin: 0 -10px; position: relative; z-index: 2; }
.hero-trio.n2 .ph-2 { margin: 0 0 0 -10px; }
.hero-gavel img { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
@media (max-width: 700px) {
  .hero-split { grid-template-columns: 1fr; justify-items: stretch; }
  .hero-art { margin-top: 8px; }
  .di-ico { width: 56px; height: 56px; } .di-emoji { font-size: 28px; } .di-name { font-size: 13px; }
  .hero-trio .ph { width: 28%; } .hero-trio .ph-2 { width: 38%; }
}

@media (max-width: 1000px) { .icobar ul { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); } }
