/* ════════════════════════════════════════════════════════════
   AnimArts — SHOP styles
   /shop list page + /shop/<slug> detail page
   Inherits glass-card / btn / text-gradient from global.css
   ════════════════════════════════════════════════════════════ */

/* ─── Filter bar ─────────────────────────────────────────── */
.shop-filters {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shop-filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.shop-search {
  flex: 1;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  padding: 10px 16px;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.shop-search::placeholder { color: var(--text-muted, #999); }
.shop-search:focus {
  outline: none;
  border-color: var(--primary, #ec4899);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.shop-toggle-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #aaa);
  transition: all 0.15s;
  user-select: none;
}
.shop-pill input { display: none; }
.shop-pill:has(input:checked) {
  background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #f59e0b));
  color: white;
  border-color: transparent;
}

.shop-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-chip-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #aaa);
  min-width: 80px;
}
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted, #aaa);
  transition: all 0.15s;
  white-space: nowrap;
}
.shop-chip svg { width: 13px; height: 13px; }
.shop-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #fff);
}
.shop-chip.is-active {
  background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #f59e0b));
  color: white;
  border-color: transparent;
}

.shop-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted, #aaa);
}
.shop-sort {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--text-primary, #fff);
  font-size: 13px;
  cursor: pointer;
}

/* ─── Product grid ───────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(236, 72, 153, 0.25);
}
.shop-card.is-featured {
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.shop-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(245, 158, 11, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card-media img,
.shop-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.shop-card:hover .shop-card-media img,
.shop-card:hover .shop-card-media video { transform: scale(1.04); }
.shop-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
}
.shop-card-media-placeholder svg { width: 48px; height: 48px; }

.shop-card-badge {
  position: absolute;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  white-space: nowrap;
}
.shop-card-badge-featured {
  top: 10px;
  left: 10px;
  background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #f59e0b));
  color: white;
}

.shop-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.shop-card-meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.shop-card-cat,
.shop-card-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.shop-card-cat {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
}
.shop-card-type {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.shop-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary, #fff);
  margin: 0;
}
.shop-card-desc {
  font-size: 13px;
  color: var(--text-muted, #aaa);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.shop-card-price {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #f59e0b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-card-price-free {
  background: linear-gradient(135deg, #22c55e, #84cc16);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #aaa);
  transition: color 0.15s;
}
.shop-card:hover .shop-card-cta { color: var(--primary, #ec4899); }

.shop-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted, #aaa);
}
.shop-empty svg { width: 48px; height: 48px; opacity: 0.4; margin-bottom: 12px; }
.shop-empty p { margin: 0; font-size: 15px; }

/* ─── Detail page ────────────────────────────────────────── */
.shop-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 880px) {
  .shop-detail-layout { grid-template-columns: 1fr; }
}

.shop-detail-gallery { position: sticky; top: 100px; align-self: start; }
/* Mobile: turn OFF sticky so the gallery scrolls with the page.
   Otherwise the images stay glued to the top while the buyer
   tries to scroll through the description / reviews — bad UX. */
@media (max-width: 880px) {
  .shop-detail-gallery {
    position: static;
    top: auto;
  }
}

/* Override .glass-card's heavy backdrop-filter + transition:all on
   the TALL shop containers. On long elements those two together cause
   a visible shimmer/glow because the browser repaints the entire blur
   region on every scroll tick — looks like a "glitch" to the user. */
.shop-detail-reviews,
.shop-detail-description,
.shop-detail-price-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.025);
  /* Specific transitions only — never `all` */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-detail-reviews:hover,
.shop-detail-description:hover,
.shop-detail-price-card:hover {
  /* Don't shift background on hover — that was triggering the
     shimmer/repaint loop on big cards */
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.1);
}
.shop-detail-main-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.06), rgba(245, 158, 11, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-detail-main-img {
  position: relative;  /* for absolute-positioned arrows + counter */
}
.shop-detail-main-img img,
.shop-detail-main-img video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Slider arrows over the main media */
.shop-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.18s, transform 0.18s, opacity 0.18s;
  opacity: 0;
  backdrop-filter: blur(6px);
}
.shop-detail-main-img:hover .shop-slider-arrow,
.shop-slider-arrow:focus-visible { opacity: 1; }
.shop-slider-arrow:hover {
  background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #f59e0b));
  transform: translateY(-50%) scale(1.06);
}
.shop-slider-arrow svg { width: 22px; height: 22px; }
.shop-slider-prev { left: 10px; }
.shop-slider-next { right: 10px; }

/* Counter pill bottom-right */
.shop-slider-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* Mobile: arrows always visible (no hover state) */
@media (hover: none) {
  .shop-slider-arrow { opacity: 1; }
}
.shop-detail-no-image {
  flex-direction: column;
  color: rgba(255, 255, 255, 0.25);
}
.shop-detail-no-image svg { width: 64px; height: 64px; margin-bottom: 12px; }
.shop-detail-no-image p { font-size: 13px; opacity: 0.7; }

.shop-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}
.shop-detail-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s;
}
.shop-detail-thumb img,
.shop-detail-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-detail-thumb.is-active { border-color: var(--primary, #ec4899); }
.shop-detail-thumb-vid-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
}
.shop-detail-thumb { position: relative; }

.shop-detail-info { display: flex; flex-direction: column; gap: 18px; }
.shop-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-detail-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary, #fff);
}
.shop-detail-tagline {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted, #aaa);
  margin: 0;
}

.shop-detail-price-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shop-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-detail-price {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #f59e0b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-detail-price-free {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #84cc16);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-detail-pk-tag,
.shop-detail-pk-tag-soft {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.shop-detail-pk-tag {
  background: rgba(34, 197, 94, 0.95);
  color: white;
}
.shop-detail-pk-tag-soft {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.shop-detail-buy-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-detail-email-label {
  font-size: 13px;
  color: var(--text-muted, #aaa);
}
.shop-detail-email-input {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-size: 14px;
}
.shop-detail-email-input:focus {
  outline: none;
  border-color: var(--primary, #ec4899);
}
.shop-detail-trust {
  font-size: 12px;
  color: var(--text-muted, #aaa);
  text-align: center;
  margin: 4px 0 0;
}

.shop-detail-features {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 22px;
}
.shop-detail-features h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #aaa);
  margin: 0 0 12px;
}
.shop-detail-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-detail-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary, #fff);
}
.shop-detail-features li svg {
  width: 16px;
  height: 16px;
  color: var(--primary, #ec4899);
  flex-shrink: 0;
}

.shop-detail-description {
  padding: 28px 32px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary, #fff);
}
.shop-detail-description h2 {
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 700;
}
.shop-detail-description h3 { font-size: 18px; margin: 20px 0 10px; }
.shop-detail-description p { margin: 0 0 14px; }
.shop-detail-description ul, .shop-detail-description ol { padding-left: 22px; margin: 0 0 14px; }
.shop-detail-description code {
  background: rgba(0,0,0,0.2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, Menlo, monospace;
}

/* ─── Stars + stats row (under product title) ─────────────── */
.shop-detail-stats-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
.shop-detail-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.shop-stars-text {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-muted, #aaa);
}
.shop-stars-text strong { color: var(--text-primary, #fff); }
.shop-detail-downloads {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #aaa);
  font-size: 13px;
}
.shop-detail-downloads svg { width: 14px; height: 14px; }
.shop-detail-downloads strong { color: var(--text-primary, #fff); }

/* ─── Star icon (display + interactive) ──────────────────── */
.shop-star {
  font-size: 17px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.15s, transform 0.1s;
}
.shop-star.is-filled { color: #fbbf24; }

/* ─── Reviews card ───────────────────────────────────────── */
.shop-detail-reviews {
  padding: 28px 32px;
  margin-top: 24px;
}
.shop-detail-reviews h2 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.shop-reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted, #aaa);
  font-weight: 500;
}
.shop-reviews-summary strong { color: var(--text-primary, #fff); margin-left: 6px; }
.shop-reviews-count { margin-left: 4px; }

.shop-reviews-empty {
  color: var(--text-muted, #aaa);
  font-style: italic;
  margin: 16px 0 0;
}

/* Rating form */
.shop-rating-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-rating-form h3 {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #aaa);
}
.shop-rating-input {
  display: flex;
  align-items: center;
  gap: 4px;
}
.shop-rating-star {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s, transform 0.1s;
}
.shop-rating-star:hover { transform: scale(1.1); }
.shop-rating-star.is-hover,
.shop-rating-star.is-selected { color: #fbbf24; }
.shop-rating-input-label {
  margin-left: 12px;
  font-size: 13px;
  color: var(--text-muted, #aaa);
}
.shop-rating-input-text {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary, #fff);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.shop-rating-input-text:focus {
  outline: none;
  border-color: var(--primary, #ec4899);
}
.shop-rating-hint {
  font-size: 11px;
  color: var(--text-muted, #aaa);
  margin: 0;
}

/* Reviews filter tabs */
.shop-reviews-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}
.shop-reviews-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #aaa);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.shop-reviews-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #fff);
}
.shop-reviews-tab.is-active {
  background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #f59e0b));
  color: white;
  border-color: transparent;
}
.shop-reviews-tab-count {
  opacity: 0.8;
  font-weight: 400;
  margin-left: 2px;
}

/* Reviews list */
.shop-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.shop-review-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
}
.shop-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.shop-review-stars { display: inline-flex; gap: 2px; }
.shop-review-stars .shop-star { font-size: 13px; }
.shop-review-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary, #fff);
}
.shop-review-date {
  font-size: 11px;
  color: var(--text-muted, #aaa);
  margin-left: auto;
}
.shop-review-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted, #aaa);
  margin: 0;
}

/* ─── Stars on cards (small) ─────────────────────────────── */
.shop-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted, #aaa);
}
.shop-card-rating .shop-star { font-size: 13px; }
.shop-card-rating-text { margin-left: 4px; }
.shop-card-downloads {
  font-size: 11px;
  color: var(--text-muted, #aaa);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.shop-card-downloads svg { width: 11px; height: 11px; }
