/* =========================================================
   Dr. Austin — Pharmacy Detail Page Styles
   Visual reference: Queens Pharmacy third-level page
   ========================================================= */

.pd-main {
  background: var(--white);
}

.pd-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 44px 0 120px;
}

/* ---------- Breadcrumb ---------- */
.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
}
.pd-breadcrumb a { color: var(--muted); transition: color .2s ease; }
.pd-breadcrumb a:hover { color: var(--navy); }
.crumb-sep { opacity: .55; }

/* ---------- Hero: photo + head + facts ---------- */
.pd-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: linear-gradient(180deg, var(--yellow-soft) 0%, var(--cream-2) 100%);
}
.pd-photo img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}
.pd-photo-text {
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(150deg, #1d2d59 0%, #2f4a8f 100%);
}
.pd-photo-initials {
  color: var(--yellow);
  font-size: 80px;
  font-weight: 600;
  letter-spacing: 4px;
}
.pd-photo-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 700;
}

.pd-head {
  text-align: left;
  margin-bottom: 30px;
}
.pd-head h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 600;
}
.pd-desc {
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.pd-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 80px;
}
.fact {
  display: flex;
  flex-direction: row;
  gap: 15px;
  text-align: left;
}
.fact img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.fact-label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin:0;
}
.fact-value {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 2;
  margin:0;
}

/* ---------- Section heads ---------- */
.pd-sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pd-sec-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
}
.pd-sec-tag {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  padding: 5px 20px;
  background: var(--yellow-soft);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.pd-sec-sub {
  margin: 10px 0 50px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- On The Shelf ---------- */
.pd-shelf { margin-bottom: 96px; }
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.shelf-card {
  min-height: 310px;
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.shelf-card img {
  width: 100%;
  object-fit: cover;
}
.shelf-bar {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(18, 35, 79, 0.06);
}
.shelf-bar:nth-child(1) { width: 46%; }
.shelf-bar:nth-child(2) { width: 68%; }
.shelf-bar:nth-child(3) { width: 55%; }
.shelf-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
  color: #5a6788;
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(18, 35, 79, 0.08);
}
.shelf-tag.strong {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

/* ---------- Map ---------- */
.pd-map { margin-bottom: 96px; }
.map-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.map-canvas {
  position: relative;
  height: 380px;
}
.map-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 50% 0;
  background: var(--navy);
  border: 3px solid var(--yellow);
  transform: translate(-50%, -100%) rotate(-45deg);
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
}
.btn-map {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.btn-map:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-2px); }

/* ---------- Products ---------- */
.pd-products { margin-bottom: 96px; }
.pd-prod-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pd-prod-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
}
.shop-all {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shop-all:hover { color: var(--yellow-strong); }
.pd-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pd-prod-card {
  display: block;
  padding: 22px 20px 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pd-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.pd-prod-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin-bottom: 16px;
}
.pd-prod-media img {
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pd-prod-name {
  display: block;
  min-height: 38px;
  margin-bottom: 14px;
  color: #43537b;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}
.pd-prod-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pd-prod-buy strong {
  color: #1d2d59;
  font-size: 16px;
  font-weight: 600;
}
.pd-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 28px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- CTA ---------- */
.pd-cta {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at 50% 50%, rgba(255, 233, 133, 0.5), rgba(255, 255, 255, 0) 100%),
    var(--white);
}
.pd-cta h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 600;
}
.pd-cta p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}
.pd-cta-actions {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-cta-dark,
.btn-cta-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn-cta-dark { background: var(--navy); color: var(--white); }
.btn-cta-dark:hover { background: var(--navy-deep); color: var(--white); transform: scale(1.02); }
.btn-cta-yellow { background: var(--yellow); color: var(--ink); }
.btn-cta-yellow:hover { background: var(--yellow-strong); color: var(--ink); transform: scale(1.02); }
.pd-back {
  display: inline-block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pd-back:hover { color: var(--yellow-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pd-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf-grid { gap: 18px; }
}

@media (max-width: 900px) {
  .pd-inner { padding: 30px 0 64px; }
  .pd-photo img, .pd-photo-text { height: 320px; }
  .pd-facts { grid-template-columns: 1fr; gap: 16px; margin-bottom: 64px; padding: 22px 24px; }
  .pd-shelf, .pd-map, .pd-products { margin-bottom: 64px; }
  .shelf-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .map-canvas { height: 300px; }
  .pd-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 520px) {
  .pd-photo img, .pd-photo-text { height: 240px; }
  .pd-photo-initials { font-size: 56px; }
  .pd-prod-grid { grid-template-columns: 1fr; }
  .pd-prod-card { max-width: 360px; margin: 0 auto; width: 100%; }
  .btn-map { position: static; display: block; margin: 14px; text-align: center; }
  .pd-cta { padding: 40px 22px; }
  .btn-cta-dark, .btn-cta-yellow { min-width: 150px; height: 44px; }
  .pd-prod-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
