/* Digital products storefront — complements Tailwind */
.dp-body {
  padding-top: 3.5rem;
}

.dp-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dp-icon-btn {
  -webkit-tap-highlight-color: transparent;
}

.dp-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#theme-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.dp-card {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 4px 24px -8px rgba(15, 15, 17, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.dark .dp-card {
  background: rgba(26, 26, 30, 0.92);
  border-color: rgba(42, 42, 48, 0.95);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.45);
}

a.dp-card {
  text-decoration: none;
  color: inherit;
}

a.dp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(232, 93, 117, 0.22);
  border-color: rgba(232, 93, 117, 0.35);
}

.dp-card-media {
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(232, 93, 117, 0.08), rgba(99, 102, 241, 0.06));
}

.dp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

a.dp-card:hover .dp-card-media img {
  transform: scale(1.04);
}

.dp-price {
  font-variant-numeric: tabular-nums;
}

.dp-prose {
  line-height: 1.65;
}

.dp-prose p {
  margin-bottom: 0.75em;
}

.dp-rich ol,
.dp-rich ul {
  margin: 0.5em 0;
  padding-inline-start: 1.5em;
  list-style-position: outside;
}

.dp-rich ol {
  list-style-type: decimal;
}

.dp-rich ul {
  list-style-type: disc;
}

.dp-rich li {
  display: list-item;
  margin: 0.35em 0;
}

/* Keep markers + text on one visual line in RTL layouts */
.dp-rich ol li,
.dp-rich ul li {
  text-align: inherit;
}

.dp-rich a[href] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dp-rich li:empty {
  display: none;
}

.dp-badge-stock {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dp-hero-gradient {
  background: radial-gradient(1200px 400px at 50% -10%, rgba(232, 93, 117, 0.14), transparent 55%),
    radial-gradient(800px 300px at 90% 20%, rgba(99, 102, 241, 0.08), transparent 50%);
}

.dark .dp-hero-gradient {
  background: radial-gradient(1200px 400px at 50% -10%, rgba(232, 93, 117, 0.12), transparent 55%),
    radial-gradient(800px 300px at 90% 20%, rgba(99, 102, 241, 0.06), transparent 50%);
}

@media (prefers-reduced-motion: reduce) {
  .dp-card,
  a.dp-card,
  .dp-card-media img {
    transition: none;
  }
  a.dp-card:hover {
    transform: none;
  }
}
