:root {
  --bg:          #0f0f11;
  --bg-card:     #18181c;
  --text:        #f0f0f0;
  --text-muted:  #888;
  --amber:       #e8a44a;
  --amber-light: #f5c06e;
  --amber-dim:   rgba(232, 164, 74, 0.12);
  --border:      rgba(255, 255, 255, 0.07);
  --border-amber: rgba(232, 164, 74, 0.25);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Page wrapper ---- */
.pd-page {
  min-height: 100vh;
  padding: 3rem 1.5rem 5rem;
}

.pd-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ---- Preview ---- */
.pd-preview {
  position: sticky;
  top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-preview img,
.pd-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Info panel ---- */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pd-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--border-amber);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.pd-info h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pd-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.pd-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.pd-desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ---- What you get ---- */
.pd-includes {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pd-includes-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.pd-file {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text);
}

.pd-file em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.85rem;
}

.pd-file-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- Tags ---- */
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pd-tag {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---- Add to cart button ---- */
.pd-btn-free {
  background: #16a34a;
  color: #fff;
}

.pd-btn-free:hover {
  background: #15803d !important;
}

.pd-btn-cart {
  width: 100%;
  padding: 1rem;
  background: var(--amber);
  color: #0f0f11;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.pd-btn-cart:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
}

.pd-btn-cart:active {
  transform: translateY(0);
}

/* ---- License ---- */
.pd-license {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* ---- Back link ---- */
.pd-back {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
}

.pd-back:hover {
  color: var(--amber);
}

/* ---- Toast (cart feedback) ---- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 9999;
  font-weight: 600;
  font-size: 0.9rem;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .pd-preview {
    position: static;
    aspect-ratio: 4 / 3;
  }

  .pd-info h1 {
    font-size: 1.6rem;
  }

  .pd-price {
    font-size: 1.6rem;
  }
}
