/* Band shop: product cards, item sheet, add / edit form */

.shp-tip { margin: 14px 16px 2px; }
.shp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 4px; }
.shp-bar > span:empty { display: none; }
.shp-filter { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.shp-filter::-webkit-scrollbar { display: none; }
.shp-add { flex: none; height: 36px; padding: 0 14px; margin-left: auto; font-size: 14px; }
.shp-add svg { width: 14px; height: 14px; }

.shp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding: 12px 16px 24px; }
.shp-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; padding: 4px 16px 8px; scroll-padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shp-strip::-webkit-scrollbar { display: none; }
.shp-strip .shp-card { scroll-snap-align: start; }

.shp-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; text-align: left; color: var(--color-ink); background: none; -webkit-tap-highlight-color: transparent; }
.shp-card__img { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 8px; border-radius: 12px; overflow: hidden; background: var(--color-field); box-shadow: inset 0 0 0 var(--hairline) var(--color-line); }
.shp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shp-card__name { font-size: 15px; line-height: 20px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shp-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.shp-card__meta small { min-width: 0; font-size: 13px; color: var(--color-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shp-card__meta span { flex: none; font-size: 15px; font-weight: 700; }
.shp-card.is-sold .shp-card__img > :not(.shp-card__badge) { opacity: .45; filter: grayscale(.6); }
.shp-card.is-sold .shp-card__meta span { color: var(--color-ink-muted); text-decoration: line-through; font-weight: 400; }
.shp-card__badge { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--color-ink); background: var(--color-surface); box-shadow: 0 0 0 var(--hairline) var(--color-line); }
.shp-card:active .shp-card__img { transform: scale(.98); transition: transform .1s ease; }

/* No photo: a record for records, a quiet icon for the rest */
.shp-ph { color: var(--color-ink-muted); }
.shp-ph svg { width: 34px; height: 34px; }
.shp-disc { position: relative; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #141418 0 1.5px, #1F1F25 1.5px 3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.shp-disc i { position: absolute; inset: 34%; border-radius: 50%; background: var(--color-accent); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .12); }
.shp-disc i::after { content: ''; position: absolute; inset: 44%; border-radius: 50%; background: var(--color-field); }
.shp-disc--cd { background: conic-gradient(from 30deg, #D9DCE3, #F5F6F8, #B9BDC8, #EEF0F4, #C9CDD6, #D9DCE3); }
.shp-disc--cd i { inset: 40%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* Item sheet */
.shp-item { display: flex; flex-direction: column; gap: 0; }
.shp-item__img { display: grid; place-items: center; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 4px auto 0; border-radius: 14px; overflow: hidden; background: var(--color-field); }
.shp-item__img img { width: 100%; height: 100%; object-fit: cover; }
.shp-item__img.is-sold > * { opacity: .5; filter: grayscale(.6); }
.shp-item__img .shp-disc.is-big { width: 70%; }
.shp-item__txt { padding: 14px 4px 4px; }
.shp-item__txt small { font-size: 13px; color: var(--color-ink-muted); }
.shp-item__txt h3 { margin: 2px 0 0; font-size: 20px; line-height: 26px; font-weight: 800; }
.shp-item__price { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.shp-item__price:empty { display: none; }
.shp-item__note { margin: 8px 0 0; font-size: 15px; line-height: 21px; color: var(--color-ink-2); white-space: pre-line; }
.shp-buy { width: 100%; height: 50px; margin-top: 14px; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; border-radius: 14px; text-decoration: none; }
.shp-buy svg { width: 16px; height: 16px; }
.shp-buy:disabled { opacity: .6; }
.shp-shows { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--color-field); }
.shp-shows > svg { flex: none; width: 20px; height: 20px; color: var(--color-ink-2); }
.shp-shows span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shp-shows b { font-size: 15px; }
.shp-shows small { font-size: 13px; color: var(--color-ink-muted); }
.shp-own { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: var(--hairline) solid var(--color-line); }
.shp-own .pf-btn { flex: 1 1 auto; height: 42px; justify-content: center; font-size: 14px; }
.shp-own .pf-btn svg { width: 15px; height: 15px; }
.shp-del { color: var(--color-danger); }
.shp-del.is-sure { background: var(--color-danger); color: #FFFFFF; }

/* Add / edit form: tall sheet with its own scroll and the Save button always in reach */
.shp-sheet--form .fsheet__panel { display: flex; flex-direction: column; max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px)); padding: 8px 0 0; }
.shp-sheet--form .pf-sheet__bar { padding: 0 8px 0 16px; }
.shp-form__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 12px; }
.shp-form__foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: var(--hairline) solid var(--color-line); }
.shp-form__foot .pf-btn { width: 100%; height: 50px; justify-content: center; font-size: 16px; font-weight: 700; border-radius: 14px; }
.shp-form__photo { display: flex; align-items: center; gap: 14px; width: 100%; padding: 4px 0 10px; text-align: left; color: var(--color-ink); background: none; }
.shp-form__pic { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--color-field); color: var(--color-ink-muted); box-shadow: inset 0 0 0 var(--hairline) var(--color-line); }
.shp-form__pic img { width: 100%; height: 100%; object-fit: cover; }
.shp-form__pic svg { width: 24px; height: 24px; }
.shp-form__photoTxt { font-size: 15px; font-weight: 700; color: var(--color-accent-text); }
.shp-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.shp-field > span { font-size: 13px; font-weight: 700; color: var(--color-ink-muted); }
.shp-field > small { font-size: 13px; line-height: 18px; color: var(--color-ink-muted); }
.shp-field input, .shp-field textarea, .shp-field .sel__btn { width: 100%; min-height: 46px; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--color-field); color: var(--color-ink); font: inherit; font-size: 16px; line-height: 22px; }
.shp-field textarea { resize: vertical; }
.shp-field input:focus, .shp-field textarea:focus, .shp-field .sel__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--color-line-strong); background: var(--color-surface); }
.shp-price { display: flex; gap: 8px; }
.shp-price input { flex: 1; min-width: 0; }
.shp-price .sel__btn { flex: none; width: 112px; }
.shp-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.shp-switch { margin: 16px 0 0; padding: 12px 0 4px; border-bottom: 0; border-top: var(--hairline) solid var(--color-line); }

@media (min-width: 640px) {
  .shp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; padding: 14px 0 28px; }
  .shp-bar { padding: 14px 0 4px; }
  .shp-tip { margin: 14px 0 2px; }
  .shp-strip { grid-auto-columns: 168px; }
  .shp-sheet .fsheet__panel { max-width: 460px; }
  .shp-sheet--form .fsheet__panel { max-height: min(760px, calc(100dvh - 48px)); }
}
@media (hover: hover) and (pointer: fine) {
  .shp-card:hover .shp-card__img img { transform: scale(1.04); }
  .shp-card:hover .shp-card__name { text-decoration: underline; text-underline-offset: 3px; }
}

/* item sheet: the band on top opens its shop */
.shp-item__band { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none !important; border-radius: 999px; padding: 2px 10px 2px 2px; }
@media (hover: hover) { .shp-item__band:hover { background: var(--color-hover); } }
.shp-item__av { flex: none; width: 28px; height: 28px; font-size: 11px; }
.shp-card__band { font-size: 13px; line-height: 18px; color: var(--color-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Marketplace › Band shops (marketplace.js) */
.mp-tabs { margin: 4px 0 6px; }
.mps-sec { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.mps-h { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.005em; }
.mps-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.mps-rail::-webkit-scrollbar { display: none; }
.mps-shop { flex: none; width: 220px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none !important; }
.mps-shop__art { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--color-field); }
.mps-shop__art > span { display: grid; place-items: center; background: var(--color-field); color: var(--color-ink-muted); min-height: 0; }
.mps-shop__art > span:first-child { grid-row: 1 / 3; }
.mps-shop__art > span:only-child { grid-column: 1 / 3; }
.mps-shop__art > span:first-child:nth-last-child(2) { grid-row: 1 / 3; }
.mps-shop__art > span:nth-child(2):last-child { grid-row: 1 / 3; }
.mps-shop__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mps-shop__art svg { width: 22px; height: 22px; }
@media (hover: hover) { .mps-shop:hover .mps-shop__art img { transform: scale(1.03); } .mps-shop:hover b { color: var(--color-accent-text); } }
.mps-shop__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mps-shop__av { flex: none; width: 34px; height: 34px; font-size: 12px; }
.mps-shop__t { min-width: 0; display: flex; flex-direction: column; }
.mps-shop__t b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.mps-shop__t small { font-size: 12.5px; color: var(--color-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mps-chips { margin: 0 0 4px; }
.mps-own { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 18px; color: inherit; text-decoration: none !important; background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 22%, transparent), 0 0 26px -10px color-mix(in srgb, var(--color-accent) 45%, transparent); }
.mps-own__av { flex: none; width: 42px; height: 42px; }
.mps-own__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--color-surface); color: var(--color-accent-text); }
.mps-own__ic svg { width: 20px; height: 20px; }
.mps-own__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mps-own__t b { font-size: 15px; }
.mps-own__t small { font-size: 13px; line-height: 18px; color: var(--color-ink-muted); }
.mps-own .dx-btn, .mps-own .dx-cta { flex: none; }
@media (max-width: 560px) { .mps-own { flex-wrap: wrap; } .mps-own .dx-cta { width: 100%; justify-content: center; } .mps-shop { width: 180px; } }
@media (min-width: 1024px) { .mps-rail { margin: 0; padding: 2px 0 6px; } }

.mps-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important; gap: 18px 14px; padding: 4px 0 24px !important; }
@media (max-width: 560px) { .mps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.mps-own .dx-cta, .mps-own .dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mps-own .dx-cta svg { flex: none; width: 18px; height: 18px; }
.mps-shop__art .shp-disc { width: 78%; }
.mps-shop__art > span:not(:first-child) .shp-disc { width: 70%; }
.mps-own > .dx-cta, .mps-own > .dx-btn { flex: 0 0 auto; width: auto; height: 42px; padding: 0 18px; border-radius: 999px; }
@media (max-width: 560px) { .mps-own > .dx-cta { flex: 1 1 100%; width: 100%; } }
