/* Shop screens: home feed, discover, product, creator store, wishlist. */

/* ---------- Shared: product + post cards ---------- */
.shop-thumb { position: relative; }
.shop-thumb > .tr-btn { position: absolute; top: 6px; right: 6px; z-index: 1; }
.shop-thumb > .tl-badge { position: absolute; top: 8px; left: 8px; z-index: 1; }
.shop-thumb > a.media, .shop-thumb > .media { display: grid; }
.shop-card { display: flex; flex-direction: column; }
.shop-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.shop-card-body a.h3:hover { color: var(--gold-2); }
.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .shop-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; } }
.shop-wish.on { color: var(--red); }
.shop-save.on { color: var(--gold-2); }
.shop-inline { display: inline-block; vertical-align: -2px; }
.shop-mini { width: 52px; flex: none; border-radius: 12px; }

.shop-post .media { cursor: pointer; }
.shop-photo-g { position: absolute; inset: 14% 16% 2%; display: grid; place-items: center; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.shop-photo-g > svg { width: 100%; height: 100%; }
.shop-post-body { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-author { min-width: 0; }
.shop-author:hover .bold { color: var(--gold-2); }
.shop-tags { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.shop-ptag { align-self: flex-start; max-width: 100%; min-height: 30px; padding: 0 10px; font-size: 12.5px; margin-top: 4px; }
.shop-ptag .clamp-1 { min-width: 0; }
.shop-actions { gap: 2px; margin: 4px -8px 0; }
.shop-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 650; font-size: 13px; justify-content: center; }
.shop-act:hover { background: var(--surface-2); color: var(--text); }
.shop-act.on { color: var(--red); }
.shop-act.on svg { fill: currentColor; }
.shop-burst::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; color: #fff; text-shadow: 0 6px 24px rgba(0, 0, 0, .5); animation: shop-burst .7s ease-out forwards; pointer-events: none; }
@keyframes shop-burst { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- Home: stories, spotlight, challenge ---------- */
.shop-stories { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 8px; scrollbar-width: none; }
.shop-stories::-webkit-scrollbar { display: none; }
.shop-story { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--text); text-align: center; }
.shop-story .tiny { max-width: 100%; color: var(--muted); }
.shop-story-av { position: relative; display: grid; place-items: center; padding: 4px; }
.shop-story.seen .avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--surface-3); }
.shop-story-plus { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); border: 2px solid var(--bg); }
.shop-sv-bars { display: flex; gap: 4px; }
.shop-sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); }
.shop-sv-bars i.on { background: var(--gold); }
.shop-sv-media { border-radius: var(--radius); max-height: 52dvh; width: 100%; }
.shop-sv-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-weight: 750; font-size: 17px; background: linear-gradient(transparent, rgba(5, 8, 18, .85)); }

.shop-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.shop-spot { flex: none; width: 210px; scroll-snap-align: start; }
.shop-spot .media svg { height: 92%; }
.shop-spot-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Discover ---------- */
.shop-search { position: relative; }
.shop-search > svg { position: absolute; left: 14px; top: 14px; color: var(--muted); pointer-events: none; }
.shop-search .input { padding-left: 44px; min-height: 50px; border-radius: 14px; font-size: 16px; }
.shop-discover { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.shop-filters { display: none; margin-top: 10px; }
.shop-filters.open { display: block; }
.shop-filters .swatch { width: 30px; height: 30px; }
@media (min-width: 960px) {
  .shop-discover { grid-template-columns: 270px minmax(0, 1fr); gap: 22px; }
  .shop-filter-toggle { display: none; }
  .shop-filters { display: block; margin-top: 0; position: sticky; top: calc(var(--top-h) + 16px); }
}

/* ---------- Product ---------- */
.shop-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shop-gallery .shop-thumb > .media { border-radius: var(--radius); max-height: 70dvh; width: 100%; }
.shop-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; }
.shop-thumbs button { border: 2px solid var(--line-soft); border-radius: 12px; padding: 0; cursor: pointer; }
.shop-thumbs button.active { border-color: var(--gold); }
.shop-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.shop-linkbtn { border: 0; background: none; padding: 0; color: var(--gold-2); font-weight: 650; text-decoration: underline; cursor: pointer; }
.shop-linkbtn.plain { color: var(--text); text-decoration: none; font-weight: 500; min-height: 32px; }
.shop-linkbtn.plain:hover .small { text-decoration: underline; }
.shop-reviews { display: flex; flex-direction: column; }
.shop-reviews > li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.shop-reviews > li:last-child { border-bottom: 0; }
.shop-review-photo { width: 84px; border-radius: 12px; }
.shop-qa { display: flex; flex-direction: column; gap: 12px; }
.shop-qa > li { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; }

/* ---------- Creator store ---------- */
.shop-creator-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 0; text-align: center; }
.shop-creator-stats > div { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 4px; }
.shop-creator-stats dd { margin: 0; font-weight: 800; font-size: 18px; }
.shop-creator-stats dt { font-size: 12px; color: var(--muted); }
.shop-ach { padding: 5px 11px; font-size: 12.5px; }
@media (max-width: 420px) { .shop-creator .profile-head { flex-direction: column; align-items: flex-start; } }
