/* Page wrapper sits under sticky header */
.product-detail-wrapper {
  padding-top: 120px; /* same offset logic as catalog */
  padding-bottom: 4rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background-color: #fff;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== breadcrumb / back link row ===== */
.pd-breadcrumb-row {
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

.pd-breadcrumb-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pd-back-link {
  font-size: 0.9rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.pd-back-link:hover {
  text-decoration: underline;
  color: #4338ca;
}

.pd-breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pd-breadcrumb li a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.pd-breadcrumb li a:hover {
  text-decoration: underline;
  color: #4f46e5;
}

.pd-breadcrumb .pd-current {
  color: #0f172a;
  font-weight: 600;
}

/* ===== main card ===== */
.pd-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1.5rem 2rem;
}

/* layout inside card */
.pd-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pd-card-grid {
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 2rem;
  }
}

/* ===== left column (media/info) ===== */
.pd-card-media {
  display: flex;
  flex-direction: column;
}

.pd-image-shell {
  width: 100%;
  height: 240px;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pd-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* bold, fills the frame like your card banners */
  object-position: center;
  transition: transform 0.3s ease;
}

.pd-image-shell:hover img {
  transform: scale(1.03);
}

.pd-meta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pd-chip {
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
}

.pd-added-on {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #6b7280;
}

/* ===== right column (text body) ===== */
.pd-card-body {
  display: flex;
  flex-direction: column;
}

.pd-title {
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .pd-title {
    font-size: 1.5rem;
  }
}

.pd-desc {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pd-desc ul {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.pd-desc li {
  margin-bottom: 0.5rem;
}

/* dosage box */
.pd-dosage-block {
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
  margin-bottom: 1.5rem;
}

.pd-dosage-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.pd-dosage-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1f2937;
}

/* CTA row */
.pd-cta-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
}

.pd-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 50%, #a21caf 100%); */
  background: linear-gradient(135deg, #0072ff 0%, #00c6ff 40%, #00ff99 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 16px 30px rgba(124, 58, 237, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(124, 58, 237, 0.45);
}
