/* ==========================================================================
   OrchestraVault — Detail Page V2: Complete Redesign
   A modern, editorial-style product detail page
   ========================================================================== */

/* Body override for detail pages — white canvas */
body {
  background: #ffffff !important;
  color: var(--c-ink);
}

/* ==========================================================================
   1. PRODUCT HEADER — Split layout: artwork left, info right
   ========================================================================== */
.dp-header {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  border-bottom: 1px solid var(--color-neutral-100);
}

.dp-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}

.dp-header-artwork {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a1a1a 0%, #2d2d2d 100%);
  overflow: hidden;
  padding: 48px;
}

.dp-header-artwork img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s ease;
}

.dp-header-artwork:hover img {
  transform: scale(1.03);
}

.dp-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 56px;
}

.dp-breadcrumb {
  font-size: 12px;
  color: #8a8a8a;
  margin-bottom: 24px;
}

.dp-breadcrumb a {
  color: var(--c-main);
  text-decoration: none;
  font-weight: 500;
}

.dp-breadcrumb a:hover {
  text-decoration: underline;
}

.dp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-main);
  background: rgba(99, 159, 171, 0.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}

.dp-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.dp-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #444444;
  margin: 0 0 32px;
  max-width: 480px;
}

.dp-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dp-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.5px;
}

.dp-price-original {
  font-size: 16px;
  color: #8a8a8a;
  text-decoration: line-through;
}

.dp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: var(--c-main);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(99, 159, 171, 0.3);
}

.dp-cta:hover {
  background: var(--c-main-hover);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(99, 159, 171, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. STICKY TAB NAVIGATION
   ========================================================================== */
.dp-tabs {
  position: sticky;
  top: var(--nav-height);
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-neutral-100);
}

.dp-tabs-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dp-tabs-inner::-webkit-scrollbar { display: none; }

.dp-tab {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: #8a8a8a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.dp-tab:hover {
  color: var(--c-ink);
}

.dp-tab.active {
  color: var(--c-ink);
  font-weight: 700;
  border-bottom-color: var(--c-main);
}

/* ==========================================================================
   3. CONTENT SECTIONS — Alternating white / light gray
   ========================================================================== */
.dp-section {
  padding: 72px 0;
  scroll-margin-top: 120px;
}

.dp-section--alt {
  background: #f7f7f7;
}

.dp-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.dp-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-main);
  margin-bottom: 8px;
}

.dp-heading {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 32px;
  letter-spacing: -0.3px;
}

.dp-heading--sm {
  font-size: 24px;
}

/* ==========================================================================
   4. TWO-COLUMN LAYOUT
   ========================================================================== */
.dp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.dp-two-col--reverse {
  direction: rtl;
}

.dp-two-col--reverse > * {
  direction: ltr;
}

.dp-col-text {
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

.dp-col-text p + p {
  margin-top: 16px;
}

.dp-col-text h2,
.dp-col-text .section-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.dp-col-text .section-overline,
.dp-col-text p.section-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-main);
  margin-bottom: 8px;
}

.dp-col-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   5. HIGHLIGHT CHIPS
   ========================================================================== */
.dp-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dp-chips li {
  font-size: 14px;
  line-height: 1.4;
  color: #444444;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--color-neutral-100);
  border-radius: 100px;
  transition: all 0.25s ease;
}

.dp-chips li:hover {
  border-color: var(--c-main);
  color: var(--c-main);
  box-shadow: 0 2px 8px rgba(99, 159, 171, 0.1);
}

/* ==========================================================================
   6. CARD GRID — For features, instruments
   ========================================================================== */
.dp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dp-card {
  background: #ffffff;
  border: 1px solid var(--color-neutral-100);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.dp-card:hover {
  border-color: var(--color-neutral-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.dp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 8px;
}

.dp-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
}

/* ==========================================================================
   7. AUDIO TRACKLIST
   ========================================================================== */
.dp-tracklist {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-neutral-100);
  border-radius: 12px;
  overflow: hidden;
}

.dp-tracklist .audio-track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-neutral-50);
  transition: background 0.2s ease;
}

.dp-tracklist .audio-track:last-child {
  border-bottom: none;
}

.dp-tracklist .audio-track:hover {
  background: var(--color-neutral-50);
  padding-left: 20px;
  padding-right: 20px;
}

.dp-tracklist .audio-play-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-neutral-50);
  border: none;
  color: var(--c-ink);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.dp-tracklist .audio-play-btn:hover {
  background: var(--c-main);
  color: #ffffff;
}

.dp-tracklist .audio-play-btn.playing {
  background: var(--c-main);
  color: #ffffff;
}

.dp-tracklist .audio-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.dp-tracklist .audio-track-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}

.dp-tracklist .audio-track-artist {
  font-size: 12px;
  color: #8a8a8a;
}

.dp-tracklist .audio-progress {
  flex: 0 0 100px;
  height: 4px;
  background: var(--color-neutral-100);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.dp-tracklist .audio-progress-bar {
  height: 100%;
  width: 0;
  background: var(--c-main);
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
}

.dp-tracklist .audio-time {
  font-size: 12px;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

.dp-tracklist .audio-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-main);
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-neutral-50);
  background: var(--color-neutral-50);
}

/* ==========================================================================
   8. INSTRUMENTS SECTION
   ========================================================================== */
.dp-instruments .instrument-list {
  gap: 6px;
}

.dp-instruments .instrument-item {
  background: #ffffff;
  border: 1px solid var(--color-neutral-100);
  border-radius: 10px;
  overflow: hidden;
}

.dp-instruments .instrument-header {
  padding: 18px 24px;
}

.dp-instruments .instrument-header:hover {
  background: var(--color-neutral-50);
}

.dp-instruments .instrument-name {
  font-weight: 700;
  color: var(--c-ink);
}

.dp-instruments .instrument-toggle {
  color: #8a8a8a;
}

.dp-instruments .instrument-details {
  background: var(--color-neutral-50);
}

.dp-instruments .instrument-specs {
  color: #444444;
}

/* Collection profiles inside instruments */
.dp-instruments .collection-profile {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid var(--color-neutral-100);
  border-radius: 12px;
  padding: 28px;
}

.dp-instruments .collection-profile + .collection-profile {
  margin-top: 20px;
}

.dp-instruments .collection-profile-head {
  gap: 20px;
  margin-bottom: 20px;
}

.dp-instruments .collection-profile-artwork {
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dp-instruments .collection-profile-kicker {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--c-main);
}

.dp-instruments .collection-profile-title {
  font-weight: 700;
  color: var(--c-ink);
}

.dp-instruments .collection-profile-meta {
  color: #8a8a8a;
}

.dp-instruments .collection-profile-desc {
  color: #444444;
  font-size: 15px;
  line-height: 1.65;
}

.dp-instruments .collection-feature-grid {
  gap: 10px;
}

.dp-instruments .collection-feature {
  background: var(--color-neutral-50);
  border-radius: 8px;
  padding: 20px;
  border: none;
}

.dp-instruments .collection-feature h3 {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.dp-instruments .collection-feature p {
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
}

.dp-instruments .collection-profile-note {
  border-left: 3px solid var(--c-main);
  background: rgba(99, 159, 171, 0.06);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  color: #444444;
  margin-top: 16px;
}

/* ==========================================================================
   9. SPECS TABLE
   ========================================================================== */
.dp-section .glance-table-wrap {
  border: 1px solid var(--color-neutral-100);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.dp-section .glance-table th {
  background: var(--color-neutral-50);
  color: var(--c-main);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.dp-section .glance-table td {
  color: #444444;
  border-bottom-color: var(--color-neutral-50);
}

.dp-section .glance-table strong {
  color: var(--c-ink);
  font-weight: 600;
}

.dp-section .specs-grid {
  gap: 32px;
}

.dp-section .spec-block-title {
  font-weight: 700;
  color: var(--c-ink);
  border-bottom-color: var(--color-neutral-100);
}

.dp-section .spec-item {
  color: #444444;
}

/* ==========================================================================
   10. RELATED PRODUCTS
   ========================================================================== */
.dp-related {
  background: var(--color-neutral-50) !important;
}

.dp-related .related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dp-related h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-ink);
  margin: 0 0 32px;
  letter-spacing: -0.3px;
}

.dp-related .related-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-neutral-100);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.dp-related .related-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.dp-related .related-card-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.dp-related .related-card-body {
  padding: 16px;
}

.dp-related .related-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 4px;
}

.dp-related .related-card-body p {
  font-size: 13px;
  color: #8a8a8a;
  line-height: 1.4;
}

/* ==========================================================================
   11. BUNDLE-SPECIFIC: Included collections
   ========================================================================== */
.dp-section .included-grid {
  gap: 16px;
}

.dp-section .included-card {
  background: #ffffff;
  border: 1px solid var(--color-neutral-100);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.dp-section .included-card:hover {
  background: #ffffff;
  border-color: var(--color-neutral-200);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dp-section .included-card-image {
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dp-section .included-card-title {
  font-weight: 700;
  color: var(--c-ink);
}

.dp-section .included-card-desc {
  color: #666666;
}

.dp-section .included-card-price {
  color: var(--c-ink);
  font-weight: 700;
}

/* Bundle cover grid */
.dp-section .bundle-cover-grid {
  gap: 16px;
}

.dp-section .bundle-cover-grid img {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   12. BOTTOM CTA
   ========================================================================== */
.dp-section .bottom-cta {
  padding: 48px 0;
  border-top: none;
}

.dp-section .bottom-cta-image {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   13. STORY SECTIONS (inside dp-col-text)
   ========================================================================== */
.dp-col-text .story-copy {
  max-width: none;
}

.dp-col-text .story-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

.dp-section .story-image {
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* Quote blocks */
.dp-section .overview-quote,
.dp-section .collection-profile-note {
  border-left: 3px solid var(--c-main);
  background: rgba(99, 159, 171, 0.06);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  color: #444444;
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .dp-header-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dp-header-artwork {
    padding: 32px;
    min-height: 280px;
  }

  .dp-header-artwork img {
    max-height: 260px;
  }

  .dp-header-info {
    padding: 32px 24px 40px;
  }

  .dp-title {
    font-size: 32px;
  }

  .dp-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dp-two-col--reverse {
    direction: ltr;
  }

  .dp-card-grid {
    grid-template-columns: 1fr;
  }

  .dp-related .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dp-section {
    padding: 48px 0;
  }
}

@media (max-width: 767px) {
  .dp-header-artwork {
    padding: 24px;
    min-height: 220px;
  }

  .dp-header-artwork img {
    max-height: 200px;
  }

  .dp-header-info {
    padding: 24px 16px 32px;
  }

  .dp-title {
    font-size: 26px;
  }

  .dp-subtitle {
    font-size: 14px;
  }

  .dp-price {
    font-size: 22px;
  }

  .dp-cta {
    height: 44px;
    padding: 0 24px;
    font-size: 13px;
  }

  .dp-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dp-heading {
    font-size: 24px;
  }

  .dp-section {
    padding: 36px 0;
  }

  .dp-chips li {
    font-size: 13px;
    padding: 8px 16px;
  }

  .dp-related .related-grid {
    grid-template-columns: 1fr;
  }

  .dp-tracklist .audio-progress {
    display: none;
  }

  .dp-instruments .collection-profile {
    padding: 20px;
  }

  .dp-instruments .collection-feature-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   15. HIDE OLD COMPONENTS when new structure is in place
   ========================================================================== */
/* Hide old product hero, bar, breadcrumb (replaced by dp- equivalents) */
.dp-header ~ .product-hero,
.dp-header ~ .product-bar,
.dp-header ~ .seo-breadcrumb,
main > .seo-breadcrumb,
main > .product-hero,
main > .product-bar {
  display: none !important;
}

/* Override old detail-section padding when inside dp-section */
.dp-section .detail-section {
  max-width: none;
  padding: 0;
  margin: 0;
}
