/* garlicoin.org: marketplace, shops, sell, stickers (and their review pages).
   Loaded after /assets/site.css by the pages that need it (their <head> links it). Split out of site.css on
   2026-10-21: keep a rule here only if just these pages use it; anything shared goes in site.css. */

.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.shop-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--gold-soft); display: grid; gap: 6px; align-content: start; }
.shop-card h3 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.shop-card .wall-tag { justify-self: start; }
.shop-card p { margin: 0; overflow-wrap: anywhere; }
.shop-card .btn { justify-self: start; text-decoration: none; margin-top: 4px; }
.checkout-tip { display: grid; gap: 6px; margin: 4px 0 14px; }
.checkout-tip input, .checkout-tip textarea { font: inherit; padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.merchant-overlay-url { word-break: break-all; }
/* ---------- /stickers/ ---------- */
.sticker-kinds { display: grid; gap: 6px; }
.sticker-preview { display: flex; justify-content: center; padding: 18px; background: repeating-linear-gradient(45deg, var(--gold-soft) 0 12px, var(--card) 12px 24px); border-radius: 14px; }
.sticker { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #2b2416; font-family: inherit;
  background: radial-gradient(circle at 30% 20%, #fff6d6, #ffd96a 65%, #f2b632); border: 0.04in solid #e09a12; -webkit-print-color-adjust: exact; print-color-adjust: exact; overflow: hidden; }
.sticker.round { width: 2in; height: 2in; border-radius: 50%; padding: 0.16in 0.22in; }
.sticker.biz { width: 3.5in; height: 2in; border-radius: 0.14in; padding: 0.14in 0.2in; display: grid; grid-template-columns: 1.25in 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 0.15in; text-align: left; align-items: start; }
.sticker-top { display: flex; align-items: center; gap: 0.04in; font-weight: 900; font-size: 0.11in; letter-spacing: .02em; }
.sticker-top img { width: 0.18in; height: 0.18in; }
.sticker-qr { width: 0.95in; height: 0.95in; margin: 0.05in 0; background: #fff; border-radius: 0.06in; padding: 0.03in; }
.sticker-qr svg { width: 100%; height: 100%; display: block; }
.sticker-title { font-family: Fredoka, inherit; font-weight: 800; font-size: 0.13in; line-height: 1.1; overflow-wrap: anywhere; max-width: 100%; }
.sticker-line { font-size: 0.09in; font-weight: 700; overflow-wrap: anywhere; }
.sticker-url { font-size: 0.07in; font-weight: 700; color: #6b4a00; overflow-wrap: anywhere; margin-top: 0.02in; }
.sticker.biz .sticker-qr { grid-column: 1; grid-row: 1 / span 4; width: 1.25in; height: 1.25in; margin: 0.2in 0 0; }
.sticker.biz .sticker-top { grid-column: 2; font-size: 0.13in; margin-top: 0.1in; }
.sticker.biz .sticker-title { grid-column: 2; font-size: 0.22in; margin-top: 0.08in; }
.sticker.biz .sticker-line { grid-column: 2; font-size: 0.13in; margin-top: 0.04in; }
.sticker.biz .sticker-url { grid-column: 2; font-size: 0.09in; align-self: end; margin-bottom: 0.08in; }
.sticker-sheet { display: none; }
@media print {
  .sticker-sheet { display: grid !important; gap: 0.15in; justify-content: center; margin: 0 !important; }
  .sticker-sheet.biz { row-gap: 0.04in; }
  /* 5 rows of 2 in fit a letter page */
  .sticker-sheet.round { grid-template-columns: repeat(3, 2in); }
  .sticker-sheet.biz { grid-template-columns: repeat(2, 3.5in); }
}
/* ---------- /sell/ ---------- */
.sell-as { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); }
.sell-price { display: flex; gap: 8px; }
.sell-price input { flex: 1 1 8em; min-width: 0; }
.sell-price select { flex: 0 0 auto; width: auto; }
#s-who { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
#s-who[hidden] { display: none; }
#s-form #s-secret { margin-top: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sell-done { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.sell-qr { width: 160px; flex: none; border-radius: 10px; overflow: hidden; }
.sell-qr svg { display: block; width: 100%; height: auto; }
.sell-done-text { flex: 1 1 240px; min-width: 0; }
.sell-done-text .merchant-code, .sell-key .merchant-code { white-space: pre-wrap; overflow-wrap: anywhere; }
.sell-key { margin: 18px 0 4px; padding: 12px 14px; border: 2px dashed var(--gold); border-radius: 12px; }
.sell-key p { margin-top: 0; }
.sell-faq { padding-left: 1.2em; }
.sell-faq li { margin: 8px 0; }
.sell-list { display: grid; gap: 10px; margin-top: 10px; }
.sell-item { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; min-width: 0; }
.sell-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; overflow-wrap: anywhere; }
.sell-item p { margin: 4px 0 0; }
.sell-state { flex: none; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); }
.sell-state.on { background: var(--gold-soft); color: var(--gold-text); }
.sell-edit { grid-template-columns: minmax(0, 1fr); }
.sell-edit textarea, #k-form textarea { font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; box-sizing: border-box; resize: vertical; }
#k-form, #m-set { grid-template-columns: minmax(0, 1fr); }
#signin summary { cursor: pointer; }
#j-form { grid-template-columns: minmax(0, 1fr); }
.sell-alt { margin-top: 10px; }
#m-who { overflow-wrap: anywhere; }
/* /marketplace/ */
.mkt-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.mkt-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
.mkt-filters input, .mkt-filters select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; }
@media (max-width: 640px) {
  .mkt-filters { grid-template-columns: 1fr 1fr; }
  .mkt-filters input { grid-column: 1 / -1; }
}
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mkt-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.mkt-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 35, 0, .12); }
.mkt-pic { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg, #fbf5e6); font-size: 2.4rem; }
.mkt-pic img { width: 100%; height: 100%; object-fit: cover; }
.mkt-card-body { display: grid; gap: 2px; padding: 10px 12px 12px; }
.mkt-card-title { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.mkt-card-price { font-weight: 800; color: var(--gold-text, #8a5a00); }
.mkt-badges { font-size: .95rem; }
.mkt-item-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) {
  .mkt-item-grid { grid-template-columns: 1fr; }
}
.mkt-item-grid.no-photo { grid-template-columns: 1fr; max-width: 680px; }
.mkt-item-grid.no-photo .mkt-gallery { display: none; }
.mkt-gallery img#mi-photo { width: 100%; max-height: 460px; object-fit: contain; border-radius: 14px; background: var(--bg, #fbf5e6); }
.mkt-thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mkt-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; width: 64px; height: 64px; }
.mkt-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mkt-price { font-size: 1.35rem; font-weight: 800; color: var(--gold-text, #8a5a00); margin: 4px 0; }
.mkt-descr { white-space: pre-line; overflow-wrap: anywhere; }
.mkt-buy { margin: 14px 0; }
.mkt-seller { margin: 14px 0 6px; }
.mkt-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mkt-reviews li { padding: 6px 10px; border-radius: 10px; background: var(--bg, #fbf5e6); }
.mkt-report { margin-top: 16px; }
.mkt-report textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); margin: 8px 0; }
