/*
 * Product detail page. Built on the catalogue's visual system, with the category accent
 * driving the highlights and up to three pack shots beneath the hero.
 *
 * The card styles the related strip reuses live in brands.css, which this page also
 * loads through the same product-card partial.
 */

.pd { position: relative; }

/* ---------------------------------------------------------------- hero band */

.pd-hero { position: relative; overflow: hidden; padding: 132px 50px 72px; background: var(--cream); }

.pd-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 245, 233, .82) 0%, rgba(251, 245, 233, .94) 62%, var(--cream) 100%);
}

.pd-hero-inner { position: relative; max-width: var(--content-max); margin: 0 auto; }

.pd-crumbs { margin-bottom: 26px; }

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ------------------------------------------------------------------ figure */

.pd-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--gold)) 16%, #fff) 0%, color-mix(in srgb, var(--accent, var(--gold)) 5%, #fff) 100%);
  border: 1px solid rgba(201, 162, 75, .3);
  box-shadow: 0 22px 48px rgba(22, 48, 127, .14);
  overflow: hidden;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
  .pd-figure { background: linear-gradient(180deg, var(--cream-2) 0%, #fff 100%); }
}

.pd-packshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 46px;
  filter: drop-shadow(0 18px 30px rgba(22, 48, 127, .18));
}

.pd-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pd-fallback-initial {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: 46px;
  color: var(--gold-dark);
  box-shadow: 0 12px 26px rgba(36, 28, 18, .1);
}

.pd-fallback-label {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .65;
}

/* -------------------------------------------------------------------- copy */

.pd-cat {
  display: inline-block;
  font-family: 'Bricolage Grotesque';
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent, var(--gold));
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--accent, var(--gold)) 45%, transparent);
  padding-bottom: 3px;
}

@supports not (color: color-mix(in srgb, red 10%, white)) {
  .pd-cat { border-bottom-color: rgba(201, 162, 75, .5); }
}

.pd-title {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--blue-deep);
  margin: 16px 0 0;
}

.pd-desc {
  font-family: 'Bricolage Grotesque';
  font-weight: 500;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 16px 0 0;
  max-width: 560px;
}

.pd-specs { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 26px 46px; }
.pd-spec { margin: 0; }

.pd-spec dt {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.pd-spec dd {
  margin: 8px 0 0;
  font-family: 'Bricolage Grotesque';
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.pd-sizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.pd-sizes li {
  font-family: 'Bricolage Grotesque';
  font-weight: 600;
  font-size: 13.5px;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .4);
  border-radius: 999px;
  padding: 7px 14px;
}

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.pd-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .5);
  padding: 13px 26px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pd-btn:hover { border-color: var(--gold-dark); box-shadow: 0 16px 32px rgba(22, 48, 127, .2); transform: translateY(-2px); }

.pd-btn--primary { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); box-shadow: 0 12px 28px rgba(22, 48, 127, .32); }
.pd-btn--primary:hover { background: #1b3a94; border-color: #1b3a94; color: #fff; }

/* foodpanda's own pink, so the button reads as their brand and not ours. */
.pd-btn--panda { gap: 9px; background: #D70F64; color: #fff; border-color: #D70F64; box-shadow: 0 12px 28px rgba(215, 15, 100, .32); }
.pd-panda-mark { display: block; width: 20px; height: 20px; }
.pd-btn--panda:hover { background: #BC0D57; border-color: #BC0D57; color: #fff; box-shadow: 0 16px 32px rgba(215, 15, 100, .38); }
.pd-btn--panda:focus-visible { outline-color: #D70F64; }

/* ----------------------------------------------------------------- related */

.pd-related { padding: 20px 50px 96px; }
.pd-related-inner { max-width: var(--content-max); margin: 0 auto; }

.pd-related-title {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--blue-deep);
  margin: 0 0 24px;
}

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

/* --------------------------------------------------------------- pack images */

.pd-packs { padding: 20px 50px 40px; }
.pd-packs-inner { max-width: var(--content-max); margin: 0 auto; }

.pd-packs-title {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--blue-deep);
  margin: 0 0 24px;
}

.pd-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 20px;
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .35);
  border-radius: 20px;
}

.pd-pack-img { width: 100%; max-width: 220px; height: auto; object-fit: contain; }

.pd-pack-size {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--blue-deep);
  text-align: center;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .pd-hero { padding: 116px 30px 56px; }
  .pd-grid { grid-template-columns: 1fr; gap: 34px; }
  .pd-figure { max-width: 460px; }
  .pd-related { padding: 12px 30px 76px; }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-packs { padding: 12px 30px 30px; }
  .pd-packs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 640px) {
  .pd-hero { padding: 104px 20px 44px; }
  .pd-related { padding: 8px 20px 60px; }
}

@media (max-width: 520px) {
  .pd-related-grid { grid-template-columns: 1fr; }
  .pd-actions { flex-direction: column; align-items: stretch; }
  .pd-btn { justify-content: center; }
}
