/* ── Earthy Organic Palette ─────────────────────── */
:root {
  --store-bg: #111a14;
  --store-card: rgba(30, 50, 35, 0.6);
  --store-border: rgba(82, 183, 136, 0.15);
  --store-border-hover: rgba(82, 183, 136, 0.3);
  --store-text: #e8efe9;
  --store-text-dim: rgba(232, 239, 233, 0.6);
  --store-accent: #52b788;
  --store-accent-light: #74c69d;
  --store-tag: rgba(45, 106, 79, 0.35);
  --store-button: #2d6a4f;
  --store-button-hover: #1b4332;
}

/* ── Store Hero ──────────────────────────────────── */
.store-hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  color: var(--store-text);
}

.store-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--store-accent-light);
}

.store-hero p {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Filter Bar ──────────────────────────────────── */
.store-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  background: transparent;
  color: var(--store-text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s;
}

.filter-btn:hover {
  border-color: var(--store-border-hover);
  color: var(--store-accent-light);
}

.filter-btn.active {
  background: var(--store-button);
  border-color: var(--store-button);
  color: #fff;
}

/* ── Store List View ─────────────────────────────── */
.store-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  background: var(--store-card);
  transition: all 0.3s;
}

.store-row:hover {
  border-color: var(--store-accent);
  background: rgba(45, 106, 79, 0.12);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(82, 183, 136, 0.2);
}

.store-row-thumb {
  display: flex;
  align-items: center;
}

.store-row-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.store-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-row-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-row-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0;
  color: #f0f5f2;
  letter-spacing: -0.005em;
}

.store-row-type {
  margin: 0 0.5rem;
}

.store-row-price {
  margin-left: auto;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--store-accent-light);
  white-space: nowrap;
}

.store-row-meta {
  font-size: 0.85rem;
  color: rgba(232, 239, 233, 0.75);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-weight: 500;
}

.store-row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.store-row-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.store-row-preview {
  height: 28px;
  max-width: 200px;
  accent-color: var(--store-accent);
}

.btn-view {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--store-accent-light);
  border-radius: 999px;
  background: transparent;
  color: var(--store-accent-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  margin-left: auto;
}

.btn-view:hover {
  background: var(--store-accent-light);
  color: #0a0f0d;
  border-color: var(--store-accent-light);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(116, 198, 157, 0.3);
}

/* ── Product Grid (Legacy) ────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ── Product Card ────────────────────────────────── */
.product-card {
  border: 1px solid var(--store-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--store-card);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.product-card:hover {
  border-color: var(--store-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(82, 183, 136, 0.15);
}

/* Product Image */
.product-image {
  position: relative;
  overflow: hidden;
  background: rgba(82, 183, 136, 0.05);
}

.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-type {
  color: #fff;
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  align-self: flex-start;
  margin: -1.5rem 0 0.5rem 1.5rem;
  display: inline-block;
  width: fit-content;
}

.product-type-beats {
  background: #2d6a4f;
}

.product-type-sample-pack {
  background: #1a535c;
}

.product-type-ambient {
  background: #3d405b;
}

.product-type-healing {
  background: #4a3728;
}

/* Product Body */
.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--store-text);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--store-accent-light);
  white-space: nowrap;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--store-text-dim);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.meta-separator {
  opacity: 0.4;
}

.meta-item {
  display: inline;
}

.product-specs {
  font-size: 0.8rem;
  color: var(--store-text-dim);
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.spec-separator {
  opacity: 0.3;
}

.spec-item {
  display: inline;
}

/* Audio Player */
.product-preview {
  margin: 0.5rem 0;
}

.product-preview audio {
  width: 100%;
  height: 32px;
  accent-color: var(--store-accent);
  border-radius: 8px;
}

.product-preview audio::-webkit-media-controls-panel {
  background-color: rgba(82, 183, 136, 0.1);
}

/* Tags */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--store-tag);
  color: var(--store-accent-light);
  text-transform: capitalize;
  white-space: nowrap;
}

/* Buy Button */
.btn-buy {
  background: var(--store-button);
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin: 1rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.btn-buy:hover {
  background: var(--store-button-hover);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.3);
}

.btn-buy:active {
  transform: scale(0.98);
}

/* ── Product Detail Page ─────────────────────────── */
.product-detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.btn-back {
  display: inline-block;
  color: var(--store-accent-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--store-accent);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-image {
  position: relative;
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.product-detail-image .product-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
}

.product-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: #f0f5f2;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.product-detail-meta {
  font-size: 0.95rem;
  color: rgba(232, 239, 233, 0.8);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-weight: 500;
}

.product-detail-specs {
  font-size: 0.9rem;
  color: var(--store-text-dim);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.product-detail-body {
  color: rgba(232, 239, 233, 0.95);
  line-height: 1.8;
  font-weight: 500;
}

.product-detail-body p {
  margin-bottom: 1rem;
}

.product-detail-body strong {
  color: var(--store-accent-light);
  font-weight: 600;
}

.product-detail-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.product-detail-body li {
  margin-bottom: 0.5rem;
}

.product-detail-preview {
  border-top: 1px solid var(--store-border);
  border-bottom: 1px solid var(--store-border);
  padding: 1.5rem 0;
}

.product-detail-preview .preview-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--store-text-dim);
  margin-bottom: 0.75rem;
}

.product-detail-preview audio {
  width: 100%;
  height: 40px;
  accent-color: var(--store-accent);
}

.product-detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-detail-purchase {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--store-border);
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--store-accent-light);
}

.product-detail-purchase .btn-buy {
  flex: 1;
  margin: 0;
  padding: 1rem 1.5rem;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-detail-image img {
    max-width: 100%;
  }

  .product-detail-title {
    font-size: 1.6rem;
  }

  .store-row {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .store-row-thumb img {
    width: 80px;
    height: 80px;
  }

  .store-row-title {
    font-size: 1rem;
  }

  .store-row-price {
    font-size: 1rem;
  }

  .store-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .store-row-price {
    margin-left: 0;
  }

  .store-row-preview {
    max-width: 150px;
    height: 24px;
  }

  .btn-view {
    margin-left: 0;
  }
}
  .store-hero h1 {
    font-size: 2rem;
  }

  .store-hero p {
    font-size: 0.95rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
    padding: 0 1rem 3rem;
  }

  .product-body {
    padding: 1.25rem;
    gap: 0.6rem;
  }

  .product-title {
    font-size: 1.05rem;
  }

  .btn-buy {
    padding: 0.65rem 1.25rem;
    margin: 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .store-filters {
    gap: 0.5rem;
    margin: 1.5rem auto;
  }

  .filter-btn {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem 2.5rem;
  }

  .product-body {
    padding: 1rem;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .btn-buy {
    padding: 0.6rem 1rem;
    margin: 0.5rem;
    font-size: 0.85rem;
  }
}
