/* Store styles — matches BeatVault theme */

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.store-page { padding-top: 80px; min-height: 100vh; }
.store-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.store-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 8px; }
.store-subtitle { color: var(--text-dim); font-size: 16px; margin-bottom: 24px; }

/* Promo banner */
.promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 24px;
}
.promo-badge {
  background: var(--teal);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promo-badge.small { font-size: 9px; }

/* Genre filter */
.genre-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #0a0a0f;
  font-weight: 600;
}

/* Search + filter row */
.store-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.filter-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
}
.filter-input:focus { outline: none; border-color: var(--teal); }
.filter-input::placeholder { color: var(--text-muted); }

.filter-search { min-width: 200px; }
.filter-bpm   { width: 90px; }

.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--teal); }

.bpm-range { display: flex; align-items: center; gap: 6px; }
.bpm-sep   { color: var(--text-muted); font-size: 12px; }

/* Empty state */
.empty-state { text-align: center; padding: 80px 0; color: var(--text-dim); }
.empty-icon { margin-bottom: 16px; }

/* Beats grid */
.beats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; padding-bottom: 80px; }
.beat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s;
}
.beat-card:hover { border-color: var(--teal-border); transform: translateY(-2px); box-shadow: 0 0 20px rgba(0,245,255,0.08), 0 8px 24px rgba(0,0,0,0.3); }

/* Art */
.beat-art { position: relative; aspect-ratio: 1; background: #111; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.beat-art img { width: 100%; height: 100%; object-fit: cover; }
.beat-art-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a1a, #0f0f0f); }
.beat-art-placeholder.large { min-height: 300px; }
.beat-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.2s; }
.beat-card:hover .beat-play-overlay { opacity: 1; }
.sold-badge { position: absolute; top: 10px; right: 10px; background: #333; color: var(--text-dim); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em; }

/* Beat info */
.beat-info { padding: 16px; }
.beat-meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.beat-genre { font-size: 11px; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.exclusive-tag { font-size: 10px; background: var(--pink); color: #fff; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.beat-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.beat-details { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.beat-price-row { display: flex; align-items: baseline; gap: 4px; }
.price-from { font-size: 11px; color: var(--text-muted); }
.price-amount { font-size: 18px; font-weight: 700; color: var(--text); }
.dot { font-size: 12px; }

/* Beat detail page */
.beat-detail-page { padding-top: 80px; min-height: 100vh; }
.back-link { display: inline-block; color: var(--text-dim); font-size: 14px; margin: 24px 0; text-decoration: none; }
.back-link:hover { color: var(--teal); }
.beat-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 80px; align-items: start; }
.beat-art-large { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.beat-art-large img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Audio player */
.audio-player { margin-bottom: 24px; }

/* Preview player */
.preview-section { margin-bottom: 16px; }
.preview-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.preview-section audio { height: 32px; }
.audio-placeholder {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  color: var(--text-dim); font-size: 14px;
}
audio { height: 40px; border-radius: var(--radius); }

/* Custom preview player */
.beat-preview-row { margin-top: 8px; }
.preview-section .preview-player,
.beat-preview-row .preview-player {
  margin-top: 10px;
}
.preview-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 0.2s;
}
.preview-player:hover { border-color: var(--teal-border); }
.preview-player[data-playing="true"] { border-color: var(--teal-border); box-shadow: 0 0 12px rgba(0,245,255,0.15); }

/* Play/pause button */
.preview-play-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1.5px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.preview-play-btn:hover { background: var(--teal); border-color: var(--teal); }
.preview-play-btn.playing { background: var(--teal); border-color: var(--teal); }
.preview-play-btn svg { width: 12px; height: 12px; fill: var(--teal); transition: fill 0.15s; }
.preview-play-btn:hover svg, .preview-play-btn.playing svg { fill: #0a0a0f; }

/* Waveform canvas */
.preview-waveform {
  flex: 1;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}

/* Progress bar below waveform */
.preview-progress-wrap {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.preview-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* Time label */
.preview-time {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 28px;
  text-align: right;
}

/* Beat meta */
.beat-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.meta-value { font-size: 15px; font-weight: 600; color: var(--text); }
.beat-description { color: var(--text-dim); font-size: 14px; line-height: 1.6; border-top: 1px solid var(--border); padding-top: 16px; }

/* License section */
.licenses-header { margin-bottom: 20px; }
.licenses-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.b2g1f-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }

.licenses-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.license-card { cursor: pointer; }
.license-card input { display: none; }
.license-card-inner {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s;
}
.license-card:hover .license-card-inner { border-color: var(--teal-border); }
.license-card.selected .license-card-inner { border-color: var(--teal); background: var(--teal-dim); }
.license-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.license-name { font-size: 15px; font-weight: 600; color: var(--text); }
.license-streams { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.license-price { font-size: 18px; font-weight: 700; color: var(--text); }
.license-includes { display: flex; gap: 6px; }
.include-tag { font-size: 10px; padding: 2px 8px; border-radius: 3px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.include-tag.exclusive { background: var(--pink); border-color: var(--pink); color: #fff; }

/* Buyer form */
.buyer-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.buyer-form h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--text); font-size: 14px; font-family: var(--font-body); }
.form-group input:focus { outline: none; border-color: var(--teal); }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Checkout summary */
.checkout-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; color: var(--text-dim); }
.summary-row strong { color: var(--text); }
.checkout-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal); color: #0a0a0f;
  border: none; border-radius: var(--radius);
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 0 20px rgba(0,245,255,0.15);
}
.checkout-btn:hover:not(:disabled) { background: #00d8e8; }
.checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.checkout-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 10px; }
.error-msg { background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3); border-radius: var(--radius); padding: 10px 14px; color: #ff6b6b; font-size: 13px; margin-top: 8px; }

/* Success page */
.success-page { padding-top: 80px; min-height: 100vh; }
.success-header { text-align: center; padding: 60px 0 40px; }
.success-icon { margin-bottom: 20px; }
.success-header h1 { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.success-header p { color: var(--text-dim); font-size: 16px; }

.order-card {
  max-width: 680px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.order-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px; background: var(--teal-dim); border-bottom: 1px solid var(--teal-border);
}
.order-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.order-beat-title { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.order-beat-meta { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.order-id { font-family: monospace; font-size: 12px; color: var(--text-dim); }
.order-id-wrap { text-align: right; }

.order-details-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.order-detail { background: var(--surface); padding: 16px; }
.detail-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.detail-value { font-size: 14px; font-weight: 600; color: var(--text); }
.detail-value.amber, .detail-value.teal { color: var(--teal); }

.terms-summary { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.terms-summary h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.terms-summary ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.terms-summary li { font-size: 13px; color: var(--text-dim); padding-left: 16px; position: relative; }
.terms-summary li::before { content: '·'; position: absolute; left: 4px; color: var(--teal); }

.success-actions { display: flex; gap: 12px; padding: 20px 24px; }
.btn-primary {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal); color: #0a0a0f; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: var(--radius); text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 0 12px rgba(0,245,255,0.12);
}
.btn-primary:hover { background: #00d8e8; }
.btn-secondary {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-dim); font-size: 14px;
  padding: 12px 20px; border-radius: var(--radius); text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.pdf-notice { display: flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 12px; color: var(--text-muted); }

/* Share buttons */
.share-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.15s;
}
.share-btn:hover {
  border-color: var(--teal-border);
  color: var(--teal);
  background: var(--teal-dim);
}

/* Inquiry section */
.inquiry-section {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.inquiry-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.inquiry-section textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 80px;
}
.inquiry-section textarea:focus { outline: none; border-color: var(--teal); }
.inquiry-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.inquiry-btn:hover:not(:disabled) { border-color: var(--teal-border); color: var(--teal); }
.inquiry-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-feedback {
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 8px;
}
.form-feedback.success { background: rgba(0,245,255,0.08); border: 1px solid var(--teal-border); color: var(--teal); }
.form-feedback.error { background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3); color: #ff6b6b; }

/* Responsive */
@media (max-width: 768px) {
  .beat-detail-grid { grid-template-columns: 1fr; }
  .order-details-grid { grid-template-columns: 1fr 1fr; }
  .beats-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .beat-meta-grid { grid-template-columns: 1fr; }
  .filter-search { min-width: 100%; }
  .store-filters { gap: 8px; }
}