/* Soul and Funk Music shop — uses the soulandfunkmusic template variables, with fallbacks. */
.sf-shop {
  --shop-gold: var(--sf-gold, #ffc83d);
  --shop-gold-deep: var(--sf-gold-deep, #c98a00);
  --shop-surface: var(--sf-surface, #2b1650);
  --shop-surface-2: var(--sf-surface-2, #3a1f68);
  --shop-text: var(--sf-text, #fff3de);
  --shop-muted: var(--sf-muted, rgba(255, 243, 222, .7));
  --shop-accent: var(--sf-accent, #17e3d0);
  --shop-primary: var(--sf-primary, #ff2e88);
  --shop-secondary: var(--sf-secondary, #ff7a1a);
  --shop-radius: var(--sf-radius, 14px);
  --shop-radius-sm: var(--sf-radius-sm, 8px);
  --shop-cover: var(--sf-cover, 300px);
  color: var(--shop-text);
}

.sf-shop__title { margin-bottom: .5rem; }
.sf-shop__intro { margin-bottom: 1rem; }

/* Search bar */
.sf-shop__search {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
}
.sf-shop__search input[type="search"] {
  flex: 1 1 14rem;
  min-width: 0;
  width: auto;
}
.sf-shop__search input,
.sf-shop__search select,
.sf-shop__form input:not([type="checkbox"]),
.sf-shop__form select,
.sf-shop__form textarea {
  background: rgba(0, 0, 0, .25);
  color: var(--shop-text);
  border: 2px solid var(--shop-gold);
  border-radius: 999px;
  padding: .5rem 1rem;
  font: inherit;
  max-width: 100%;
}
.sf-shop__form textarea { border-radius: var(--shop-radius-sm); width: 100%; }
.sf-shop__form input:not([type="checkbox"]), .sf-shop__form select { width: 100%; }
.sf-shop__search select option, .sf-shop__form select option { background: var(--shop-surface); }
.sf-shop input:focus-visible, .sf-shop select:focus-visible, .sf-shop textarea:focus-visible {
  outline: 3px solid var(--shop-accent);
  outline-offset: 2px;
}

/* Format pills */
.sf-shop__formats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.sf-shop__pill {
  display: inline-block;
  padding: .3rem .9rem;
  border: 2px solid var(--shop-gold);
  border-radius: 999px;
  color: var(--shop-text);
  text-decoration: none;
  font-weight: 700;
}
.sf-shop__pill:hover, .sf-shop__pill:focus-visible { background: rgba(255, 200, 61, .15); color: var(--shop-text); }
.sf-shop__pill.is-active { background: var(--shop-gold); color: #1a0b2e; }

.sf-shop__count, .sf-shop__empty { color: var(--shop-muted); }

/* Grid: same 300px tiles as the album pages */
.sf-shop__grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--shop-cover)), 1fr));
  gap: var(--sf-gap, 1.25rem);
  justify-items: center;
}
.sf-shop__tile { width: 100%; max-width: var(--shop-cover); }
.sf-shop__tile-link {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  color: var(--shop-text);
  text-decoration: none;
}
.sf-shop__tile-link:hover .sf-shop__cover img,
.sf-shop__tile-link:focus-visible .sf-shop__cover img {
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow-cover-hover, 0 10px 24px rgba(0, 0, 0, .6));
}
.sf-shop__tile.is-reserved .sf-shop__cover img { opacity: .6; }

.sf-shop__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: .4rem;
}
.sf-shop__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--shop-radius-sm);
  box-shadow: var(--sf-shadow-cover, 0 6px 18px rgba(0, 0, 0, .55));
  transition: transform .2s ease, box-shadow .2s ease;
}
.sf-shop__nocover {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--shop-gold) 0 14%, #111 15% 16%, #1b1b1b 17% 100%);
}
.sf-shop__format {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--shop-gold);
  color: #1a0b2e;
  font-weight: 700;
  font-size: .8rem;
}
.sf-shop__ribbon {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--shop-primary);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sf-shop__artist { font-weight: 700; color: var(--shop-gold); }
.sf-shop__name { color: var(--shop-text); }
.sf-shop__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-top: .2rem;
}
.sf-shop__grade { color: var(--shop-muted); font-size: .9rem; }
.sf-shop__price { font-weight: 700; color: var(--shop-accent); white-space: nowrap; }
.sf-shop__pagination { display: flex; justify-content: center; }

/* Item page */
.sf-shop__back a { color: var(--shop-gold); }
.sf-shop__detail {
  display: grid;
  grid-template-columns: minmax(0, var(--shop-cover)) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.sf-shop__detail-cover { display: flex; flex-direction: column; gap: .75rem; }
.sf-shop__musiclink { align-self: flex-start; }
.sf-shop__detail-title { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 .5rem; }
.sf-shop__detail-title .sf-shop__artist { font-size: .65em; }
.sf-shop__bigprice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--shop-accent);
  margin-bottom: 1rem;
}
.sf-shop__status {
  font-size: .85rem;
  padding: .15rem .7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sf-shop__status--0 { background: var(--shop-accent); color: #08201d; }
.sf-shop__status--1 { background: var(--shop-secondary); color: #1a0b2e; }
.sf-shop__status--2 { background: var(--shop-surface-2); color: var(--shop-muted); }

.sf-shop__specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .3rem 1rem;
  margin: 0 0 1rem;
}
.sf-shop__specs dt { color: var(--shop-gold); font-weight: 700; }
.sf-shop__specs dd { margin: 0; }
.sf-shop__description {
  border-left: 3px solid var(--shop-gold-deep);
  padding-left: 1rem;
  color: var(--shop-text);
}

.sf-shop__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}
.sf-shop__box {
  background: var(--shop-surface);
  border: 2px solid rgba(255, 200, 61, .55);
  border-radius: var(--shop-radius);
  padding: 1.25rem;
}
.sf-shop__box h2 { margin-top: 0; }
.sf-shop__note { color: var(--shop-muted); font-size: .95rem; }

.sf-shop__form { display: flex; flex-direction: column; gap: .85rem; }
.sf-shop__field { display: flex; flex-direction: column; gap: .3rem; }
.sf-shop__field label { font-weight: 700; }
.sf-shop__field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.sf-shop__field--check label { font-weight: 400; font-size: .9rem; }
.sf-shop__field--check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--shop-gold); }
.sf-shop__buy { align-self: flex-start; }

/* Honeypot: off-screen for people, still in the DOM for bots */
.sf-shop__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "For sale" module on album / single pages */
.sf-forsale { display: flex; flex-direction: column; gap: .6rem; }
.sf-forsale__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .6rem .9rem;
  border: 2px solid var(--shop-gold);
  border-radius: var(--shop-radius-sm);
  background: rgba(255, 200, 61, .08);
}
.sf-forsale__what { display: flex; flex-direction: column; }
.sf-forsale__price { font-weight: 700; color: var(--shop-accent); }

/* Latest items module */
.sf-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.sf-latest a { display: flex; gap: .6rem; align-items: center; color: var(--shop-text); text-decoration: none; text-align: left; }
.sf-latest img, .sf-latest .sf-shop__nocover { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 6px; object-fit: cover; }
.sf-latest__text { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; line-height: 1.25; }
.sf-latest__text .sf-shop__artist, .sf-latest__text .sf-shop__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-latest__more { margin-top: .75rem; text-align: center; }

@media (max-width: 640px) {
  .sf-shop__detail { grid-template-columns: 1fr; justify-items: center; }
  .sf-shop__detail-info { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-shop__cover img { transition: none; }
  .sf-shop__tile-link:hover .sf-shop__cover img { transform: none; }
}
