/* garage-sale shop additions on top of style.css (same tokens) */
.salepill { background: var(--amber); color: var(--ink); font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.salepill:hover { color: var(--ink); filter: brightness(1.05); }

.shop-hero { padding: 36px 0 18px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .shop-hero { grid-template-columns: 1fr; } }
.shop-hero h1 { margin: 0 0 10px; font-weight: 800; font-size: clamp(32px, 5vw, 50px); line-height: 1.04; letter-spacing: -0.02em; }
.shop-hero p { margin: 0; font-size: 18px; color: var(--text-2); max-width: 600px; }
.salebox { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.salebox .k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.salebox h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.salebox p { margin: 0; color: var(--on-dark); font-size: 15px; }
.salebox .btn { align-self: flex-start; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 14px; }
.toolbar input[type=search] { flex: 1 1 260px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 16px; background: #fff; }
.toolbar select { height: 48px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 12px; background: #fff; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.cats .chip { flex: 0 0 auto; height: 40px; font-size: 14px; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip[aria-pressed=true] small { color: var(--on-dark); }

.item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.item:hover { border-color: var(--line-2); color: inherit; }
.item .ph { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; }
.item .ph img { width: 100%; height: 100%; object-fit: contain; }
.item .ph .noimg { color: var(--muted); font-size: 13px; }
.item .tag { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.item .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.item h3 { margin: 0; font-family: Inter, sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .cond { position: static; background: none; padding: 0; border-radius: 0; font-weight: 500; font-size: 13px; color: var(--muted); }
.price { font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); }
.price s { font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 6px; }
.retail { font-size: 13px; color: var(--ok); font-weight: 600; }

.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding: 28px 0; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.gallery .main { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 2px; }
.thumbs button[aria-current=true] { border-color: var(--accent); border-width: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { display: flex; flex-direction: column; gap: 14px; }
.buy h1 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; }
.buy .price { font-size: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note { background: var(--note); border: 1px solid var(--note-line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--text-2); }
.ok { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.err { color: var(--urgent); font-weight: 600; }

.form { max-width: 560px; display: flex; flex-direction: column; gap: 14px; padding: 28px 0; }
.form h1 { margin: 0; font-size: 34px; line-height: 1.1; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=date], .form input[type=time] { height: 48px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 14px; background: #fff; width: 100%; }
.form textarea { border-radius: 10px; border: 1px solid var(--line-2); padding: 10px 14px; min-height: 80px; font: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.mini th, table.mini td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.section { padding: 24px 0; }
.empty { padding: 40px 0; color: var(--muted); }
.details { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }

/* logo (owner 12-02: sticker block with a gavel I) */
.brand .logo { height: 46px; width: auto; display: block; }
.logo.foot { height: 38px; width: auto; align-self: flex-start; }
/* welcome after sign-up */
.welcome { max-width: 860px; padding: 28px 0 48px; display: flex; flex-direction: column; gap: 14px; }
.welcome-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--ink); }
.welcome-go { display: flex; flex-wrap: wrap; gap: 12px; }
/* tour */
.tour-hole { position: absolute; z-index: 50; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(20, 32, 43, 0.62); pointer-events: none; transition: all .2s; }
.tour-tip { position: absolute; z-index: 51; max-width: 340px; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tour-tip.center { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.tour-tip small { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.tour-tip h3 { margin: 4px 0 6px; font-size: 20px; }
.tour-tip p { margin: 0 0 12px; color: var(--text-2); }
.tour-btns { display: flex; gap: 8px; }

/* 12-02 high-end pass: links as chips, sticky search on phones, skeletons, chat, pay modal */
a.chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
a.chip[aria-current=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.chip[aria-current=true] small { color: var(--on-dark); }
nav.main a[aria-current=true] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
header.top { position: sticky; top: 0; z-index: 40; }
.pagetitle { margin: 26px 0 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
.crumbs { padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.item .tag.dark { background: var(--ink); left: auto; right: 10px; }
.item.sk .ph { background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.item.sk .body span { display: block; height: 12px; border-radius: 6px; background: #eee; margin: 6px 0; }
.item.sk .body span + span { width: 40%; height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }
.more { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 20px; }
.btn.icon { padding: 0 16px; }
@media (max-width: 720px) {
  .toolbar { position: sticky; top: var(--hdr, 64px); z-index: 30; background: var(--paper); padding: 8px 0; margin: 0 0 8px; }
  .toolbar select { flex: 1 1 40%; }
  .detail { grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
  .actions .btn { flex: 1 1 100%; }
}
/* chat helper */
.chatbtn { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px;
  border: 0; border-radius: 26px; background: var(--accent); color: #fff; font: 700 16px Inter, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; }
.chat { position: fixed; right: 18px; bottom: 80px; z-index: 46; width: min(390px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
  background: #fff; border-radius: 18px; box-shadow: 0 16px 48px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; }
.chat.hidden { display: none; }
.chat header { background: var(--ink); color: var(--paper); padding: 12px 44px 12px 16px; position: relative; display: flex; flex-direction: column; }
.chat header small { color: var(--on-dark); font-size: 12px; }
.chat header button { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; background: none; color: var(--paper); font-size: 24px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); overscroll-behavior: contain; }
.cmsg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.cmsg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.cmsg.me { background: var(--ink); color: var(--paper); align-self: flex-end; }
.cmsg.typing { color: var(--muted); }
.cmsg .btn { margin-top: 8px; }
.citem { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); white-space: normal; }
.citem img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; }
.citem span { display: flex; flex-direction: column; font-size: 13px; }
.citem b { font-size: 15px; }
.cmsg.hunt { display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.cmsg.hunt input[type=text], .cmsg.hunt input:not([type]), .cmsg.hunt input[type=email], .cmsg.hunt input[type=tel] { height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font: inherit; }
.cmsg.hunt .check { font-size: 12px; }
.chat-quick { display: flex; gap: 6px; padding: 8px 10px 0; flex-wrap: wrap; background: #fff; }
.chat-quick button { border: 1px solid var(--line-2); background: #fff; border-radius: 16px; padding: 6px 10px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.chat-in { display: flex; gap: 8px; padding: 10px; background: #fff; }
.chat-in input { flex: 1; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; }
@media (max-width: 720px) { .chat { right: 6px; left: 6px; width: auto; bottom: 76px; height: calc(100vh - 160px); } .chatbtn span { display: none; } .chatbtn { padding: 0 15px; } }
/* modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,32,43,.55); display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal-card { background: #fff; border-radius: 18px; width: min(480px, 100%); max-height: calc(100vh - 28px); overflow: auto; padding: 22px; position: relative; }
.modal-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.form.tight { padding: 8px 0 0; }

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .item .body { padding: 8px 10px 10px; }
  .item h3 { font-size: 13px; }
  .item .price { font-size: 18px; }
  .item .retail, .item .cond { font-size: 11px; }
  .shop-hero { grid-template-columns: 1fr; padding-top: 18px; }
  .shop-hero h1 { font-size: 28px; }
  .shop-hero p { font-size: 15px; }
  header.top .wrap { padding-top: 8px; padding-bottom: 8px; gap: 6px 16px; }
  .brand .logo { height: 34px; }
  nav.main { gap: 14px; font-size: 14px; }
}
