/* MedsNMore — Product detail page (PDP) */

.is-pdp {
  background: var(--bg);
}

.is-pdp .store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.is-pdp .pdp-buy {
  /* Full header includes catbar — keep buy box below chrome */
  --pdp-sticky-top: calc(var(--header-h) + 3.25rem);
}

.pdp-main {
  padding: 1.1rem 0 3.5rem;
  min-height: 58vh;
}

.pdp-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-flash {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pdp-flash--ok {
  background: var(--alert-ok-bg);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
}

.pdp-flash--err {
  background: var(--alert-err-bg);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--line));
}

.pdp-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.pdp-crumb a {
  color: var(--brand-deep);
  font-weight: 600;
}

.pdp-crumb span:last-child {
  color: var(--navy);
  font-weight: 600;
}

.pdp-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pdp-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.25rem;
  }
}

/* Gallery */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdp-gallery-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  max-height: min(480px, 72vw);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  align-self: flex-start;
}

.pdp-gallery-img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  background: var(--surface-2);
}

.pdp-gallery-empty {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--placeholder-bg);
}

.pdp-badge {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.pdp-badge--off {
  background: color-mix(in srgb, var(--sale) 12%, var(--surface));
  color: var(--sale);
  border: 1px solid color-mix(in srgb, var(--sale) 28%, var(--line));
}

.pdp-badge--rx {
  top: auto;
  bottom: 0.85rem;
  left: 0.85rem;
  background: color-mix(in srgb, var(--rx) 12%, var(--surface));
  color: var(--rx);
  border: 1px solid color-mix(in srgb, var(--rx) 28%, var(--line));
}

.pdp-badge--sm {
  top: 0.55rem;
  left: auto;
  right: 0.55rem;
  bottom: auto;
  font-size: 0.68rem;
}

.pdp-gallery-stage .pdp-badge--off + .pdp-badge--rx,
.pdp-gallery-stage .pdp-badge--rx:only-of-type {
  /* keep readable stacking */
}

.pdp-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.pdp-thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--well);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  box-sizing: border-box;
}

.pdp-thumb:hover,
.pdp-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* Buy box — one quiet card; product identity in the middle reads first */
.pdp-buy {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  box-shadow: none;
  overflow-x: hidden;
}

.pdp-buy > * {
  min-width: 0;
  max-width: 100%;
}

.pdp-col-main .pdp-buy,
.pdp-rail .pdp-buy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.pdp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0;
}

.pdp-brand__by {
  flex: 0 0 auto;
  line-height: 1;
}

.pdp-brand__logo {
  display: block;
  height: 24px;
  width: auto;
  max-height: 24px;
  max-width: 8rem;
  object-fit: contain;
  object-position: left center;
}

.pdp-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--navy);
}

.pdp-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.55rem;
}

.pdp-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.pdp-col-main .pdp-price {
  font-size: clamp(1.85rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.pdp-mrp {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.pdp-col-main .pdp-mrp {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pdp-off {
  color: var(--sale);
  font-size: 0.86rem;
  font-weight: 700;
}

.pdp-col-main .pdp-off {
  color: var(--sale);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pdp-price-note {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.pdp-col-main .pdp-price-note {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pdp-tax-note {
  margin: 0.05rem 0 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.pdp-col-main .pdp-tax-note {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--muted);
}

.pdp-tax-note .pdp-stock {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.15rem 0 0.65rem;
}

.pdp-stock.is-in { color: var(--brand-deep); }
.pdp-stock.is-out { color: var(--danger); }

.pdp-col-main .pdp-stock.is-in {
  color: var(--brand-deep);
}

.pdp-col-main .pdp-stock {
  margin: 0;
}

.pdp-stock em {
  font-style: normal;
  font-weight: 600;
  color: var(--sale);
}

.pdp-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pdp-rx-callout {
  background: color-mix(in srgb, var(--rx) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--rx) 22%, var(--line));
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.pdp-rx-callout strong {
  display: block;
  color: var(--rx);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.pdp-rx-callout p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.pdp-rx-callout a {
  font-size: 0.84rem;
  font-weight: 700;
}

.pdp-eta-slot {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.pdp-eta-slot .delivery-eta,
.pdp-eta-slot .delivery-eta--pdp {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pdp-eta-slot .delivery-eta__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.pdp-eta-slot .delivery-eta__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.3rem;
}

.pdp-eta-slot .delivery-eta__title {
  display: none;
}

.pdp-eta-slot .delivery-eta__message {
  order: 1;
  flex: 1 1 9rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pdp-eta-slot .delivery-eta__form {
  order: 2;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pdp-eta-slot .delivery-eta__addr {
  order: 3;
  flex: 1 1 100%;
  margin: 0;
  min-width: 0;
}

.pdp-eta-slot .delivery-eta__addr-line {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pdp-eta-slot .delivery-eta__addr-select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.pdp-eta-slot .delivery-eta__form input[type="text"],
.pdp-eta-slot .delivery-eta__form input {
  flex: 0 1 5.75rem;
  width: 5.75rem;
  min-width: 4.75rem;
  max-width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 36px;
  box-sizing: border-box;
}

.pdp-eta-slot .delivery-eta__form .btn,
.pdp-eta-slot .delivery-eta__check {
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pdp-eta-slot .delivery-eta__form .btn:hover,
.pdp-eta-slot .delivery-eta__check:hover {
  background: var(--hover-bg);
  color: var(--ink);
}

.pdp-rail .pdp-rx-cta {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--rx) 35%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--rx) 8%, var(--surface));
}

.pdp-rail .pdp-rx-cta__badge {
  background: color-mix(in srgb, var(--rx) 14%, var(--surface));
  color: var(--rx);
}

.pdp-cart-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
}

.pdp-qty {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  height: 40px;
}

.pdp-qty-label {
  display: none;
}

.pdp-qty-ctrl {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  flex: 0 0 auto;
  height: 40px;
  min-width: 0;
}

.pdp-qty-btn {
  width: 34px;
  height: 40px;
  min-width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.pdp-qty-btn:hover {
  background: var(--hover-bg);
}

.pdp-qty-ctrl input[type="number"],
.pdp-qty-ctrl input {
  box-sizing: border-box;
  width: 2.15rem;
  min-width: 2.15rem;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 40px;
  color: var(--navy);
  appearance: textfield;
  -moz-appearance: textfield;
}

.pdp-qty-ctrl input::-webkit-outer-spin-button,
.pdp-qty-ctrl input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.pdp-qty .btn.pdp-add,
.pdp-add.btn,
.pdp-add {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--on-fill);
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: none;
}

.pdp-add:hover {
  background: var(--btn-bg-hover);
  color: var(--on-fill);
}

.pdp-add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--muted) 55%, var(--line));
  color: var(--on-fill);
  width: 100%;
}

.pdp-assurances {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}

.pdp-assurances li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.pdp-assurances .ico {
  color: var(--brand);
}

/* Details */
.pdp-details {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pdp-details {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.pdp-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.pdp-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.pdp-highlights {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.pdp-highlights > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.pdp-highlights > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pdp-highlights dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.pdp-highlights dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.pdp-prose {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Related — full-width 4-col grid; do not treat section as a card grid */
.pdp-related {
  margin-top: 0.5rem;
  display: block;
}

.pdp-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.pdp-related-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.pdp-related-head a {
  font-size: 0.86rem;
  font-weight: 700;
}

.pdp-related-rail.plp-grid,
.pdp-related-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
}

@media (min-width: 640px) {
  .pdp-related-rail.plp-grid,
  .pdp-related-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .pdp-related-rail.plp-grid,
  .pdp-related-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pdp-related .plp-item {
  min-width: 0;
  height: 100%;
}

@media (max-width: 599px) {
  .pdp-buy {
    padding: 0.7rem 0.75rem;
  }

  .pdp-col-main .pdp-buy,
  .pdp-rail .pdp-buy {
    padding: 0;
  }

  .pdp-eta-slot .delivery-eta__form {
    flex: 1 1 100%;
  }

  .pdp-highlights > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .pdp-gallery-stage {
    max-height: min(360px, 85vw);
  }
}

/* —— Pharmacy PDP: gallery | title + buy —— */
.pdp-hero {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: stretch;
}

.pdp-col-main {
  --pdp-stack: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: var(--pdp-stack);
  min-width: 0;
  font-family: var(--font);
}

@media (min-width: 980px) {
  .pdp-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
    column-gap: 2rem;
    row-gap: 0;
    align-items: start;
  }

  .pdp-gallery {
    position: sticky;
    top: calc(var(--header-h, 64px) + var(--catbar-h, 44px) + 0.75rem);
    align-self: start;
  }
}

.pdp-gallery {
  flex-direction: row;
  align-items: flex-start;
}

.pdp-thumbs--vert {
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(480px, 72vw);
  width: 76px;
  flex: 0 0 76px;
  padding-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.pdp-thumbs--vert::-webkit-scrollbar {
  width: var(--scrollbar-size-nested);
  height: var(--scrollbar-size-nested);
}

.pdp-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: none;
}

.pdp-gallery-nav.is-prev { left: 0.55rem; }
.pdp-gallery-nav.is-next { right: 0.55rem; }

.pdp-gallery-nav:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.pdp-identity {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0;
}

.pdp-id-head {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem 0.5rem;
  min-width: 0;
}

.pdp-id-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.25rem;
  margin: 0;
  min-height: calc(clamp(1.28rem, 2vw, 1.55rem) * 1.2);
}

.pdp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.pdp-chip--otc {
  background: var(--chip-bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

.pdp-chip--rx {
  background: color-mix(in srgb, var(--rx) 12%, var(--chip-bg));
  color: var(--rx);
  border: 1px solid color-mix(in srgb, var(--rx) 28%, var(--line));
}

.pdp-chip--kind {
  background: var(--chip-bg);
  color: var(--navy);
  border: 1px solid var(--line);
}

.pdp-identity .pdp-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pdp-id-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  min-width: 0;
}

.pdp-identity .pdp-brand {
  display: inline-flex;
  width: auto;
  margin: 0;
}

.pdp-id-dot {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 600;
  line-height: 1;
}

.pdp-pack {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

.pdp-id-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.85rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
  font-weight: 500;
}

.pdp-identity .pdp-lead {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 42rem;
}

.pdp-rating-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.pdp-rating-sum strong {
  color: var(--navy);
}

.pdp-rating-sum span[aria-hidden] {
  color: var(--gold);
  letter-spacing: 0.04em;
}

.pdp-fact,
.pdp-fact-chips {
  margin: 0.05rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.3rem;
}

.pdp-fact-chips > div,
.pdp-fact > div {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: baseline;
  gap: 0.22rem;
  margin: 0;
  padding: 0.08rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 0.68rem;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
}

.pdp-fact-chips dt,
.pdp-fact dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.pdp-fact-chips dd,
.pdp-fact dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.pdp-identity,
.pdp-peek,
.pdp-read,
.pdp-offer,
.pdp-col-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pdp-peek,
.pdp-read {
  padding-top: 0.15rem;
}

.pdp-read-block {
  padding: 0.75rem 0 0.1rem;
  border-top: 1px solid var(--line);
  max-width: 42rem;
}

.pdp-read-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.pdp-read-block h2 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.pdp-read .pdp-prose {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink);
}

.pdp-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  z-index: 2;
}

.pdp-offer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
  max-width: 100%;
}

.pdp-welcome {
  display: inline-flex;
  align-items: center;
  flex: 1 0 100%;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 0.08rem 0 0;
  padding: 0.12rem 0.48rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-welcome strong {
  display: inline;
  margin-right: 0.28rem;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: inherit;
}

.pdp-buy-extras {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.pdp-coupons {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.pdp-coupons ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.pdp-coupons ul::-webkit-scrollbar {
  width: var(--scrollbar-size-nested);
  height: var(--scrollbar-size-nested);
}

.pdp-coupon {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 17rem;
  height: 54px;
  padding: 0 0.55rem 0 0.75rem;
  border: 1px dashed var(--brand);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  scroll-snap-align: start;
}

.pdp-coupon__benefit {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.pdp-coupon__l1 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand-deep);
}

.pdp-coupon__l2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pdp-coupon__code {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pdp-coupon__copy {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.pdp-coupon__copy:hover,
.pdp-coupon__copy.is-copied {
  color: var(--brand-deep);
  border-color: var(--brand);
  background: var(--chip-hover);
}

.pdp-coupon--extra {
  display: none;
}

.pdp-coupons ul:has(.pdp-coupons-more details[open]) .pdp-coupon--extra {
  display: flex;
}

.pdp-coupons-more {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  scroll-snap-align: start;
}

.pdp-coupons-more details {
  height: auto;
}

.pdp-coupons-more summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  text-align: left;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  white-space: nowrap;
}

.pdp-coupons-more summary::-webkit-details-marker {
  display: none;
}

.pdp-coupons-more summary::marker {
  content: "";
}

.pdp-coupons-more__less {
  display: none;
}

.pdp-coupons-more details[open] .pdp-coupons-more__more {
  display: none;
}

.pdp-coupons-more details[open] .pdp-coupons-more__less {
  display: inline;
}

form.pdp-plan,
.pdp-plan {
  --pdp-plan-navy: var(--navy-fill);
  --pdp-plan-navy-deep: var(--navy-fill-deep);
  --pdp-plan-ink: var(--footer-ink);
  --pdp-plan-muted: var(--footer-muted);
  --pdp-plan-accent: var(--brand-solid);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px 7px;
  min-height: 68px;
  border: 1px solid color-mix(in srgb, var(--pdp-plan-accent) 42%, var(--pdp-plan-navy));
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      var(--pdp-plan-navy-deep) 0%,
      var(--pdp-plan-navy) 68%,
      color-mix(in srgb, var(--pdp-plan-accent) 22%, var(--pdp-plan-navy)) 100%
    );
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--brand-on-navy) 16%, transparent);
  min-width: 0;
  max-width: 100%;
  color: var(--pdp-plan-ink);
}

.pdp-plan.is-on {
  background:
    linear-gradient(
      135deg,
      var(--pdp-plan-navy-deep) 0%,
      color-mix(in srgb, var(--pdp-plan-accent) 28%, var(--pdp-plan-navy)) 100%
    );
  border-color: color-mix(in srgb, var(--pdp-plan-accent) 62%, var(--pdp-plan-ink));
}

.pdp-plan__fx,
.pdp-plan__shimmer,
.pdp-plan__holo {
  position: absolute;
  pointer-events: none;
}

.pdp-plan__fx {
  inset: -40%;
  z-index: 0;
  opacity: 0.28;
  background: radial-gradient(
    ellipse 48% 50% at 88% 12%,
    color-mix(in srgb, var(--pdp-plan-accent) 32%, transparent),
    transparent 58%
  );
  filter: blur(18px);
  animation: none;
}

.pdp-plan__shimmer {
  display: none;
}

.pdp-plan__holo {
  display: none;
}

.pdp-plan__body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.pdp-plan__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.65rem;
  align-items: center;
  min-width: 0;
}

.pdp-plan__copy,
.pdp-plan__line {
  display: grid;
  gap: 0.06rem;
  min-width: 0;
}

.pdp-plan__title,
.pdp-plan__copy strong,
.pdp-plan__line strong {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--pdp-plan-ink);
}

.pdp-plan__chip {
  display: none;
}

.pdp-plan__member {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-on-navy);
}

.pdp-plan__brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--pdp-plan-ink);
}

.pdp-plan__pack,
.pdp-plan__perks,
.pdp-plan__line span {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--pdp-plan-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdp-plan__perks {
  display: none;
}

.pdp-plan__pack s {
  margin-right: 0.35rem;
  color: color-mix(in srgb, var(--pdp-plan-ink) 48%, transparent);
  font-weight: 500;
}

.pdp-plan__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  justify-self: end;
  align-self: center;
  min-width: max-content;
  width: max-content;
  max-width: none;
  height: 36px;
  margin: 0;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--pdp-plan-accent);
  color: var(--on-fill);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.pdp-plan__cta:hover {
  background: var(--brand-solid-deep);
  color: var(--on-fill);
}

.pdp-plan__cta.is-on,
.pdp-plan.is-on .pdp-plan__cta {
  background: color-mix(in srgb, var(--pdp-plan-navy-deep) 55%, transparent);
  color: var(--brand-on-navy);
  border: 1px solid color-mix(in srgb, var(--pdp-plan-accent) 55%, var(--pdp-plan-ink));
  box-shadow: none;
  cursor: pointer;
}

span.pdp-plan__cta {
  cursor: default;
}

.pdp-plan.is-member {
  pointer-events: auto;
}

.pdp-plan.is-member .pdp-plan__cta {
  cursor: default;
}

.pdp-plan__cta-mark {
  font-weight: 800;
}

.pdp-plan__more {
  margin: 0;
  min-width: 0;
}

.pdp-plan__more summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  width: fit-content;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-on-navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-transform: none;
  letter-spacing: 0;
}

.pdp-plan__more summary::-webkit-details-marker {
  display: none;
}

.pdp-plan__more summary::marker {
  content: "";
}

.pdp-plan__more ul {
  margin: 0.35rem 0 0.05rem;
  padding: 0.35rem 0 0 1.05rem;
  border-top: 1px solid color-mix(in srgb, var(--pdp-plan-accent) 28%, transparent);
  color: var(--pdp-plan-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.pdp-plan__more li + li {
  margin-top: 0.18rem;
}

@keyframes pdp-plan-mesh {
  from { transform: translate3d(-5%, -4%, 0) scale(1.04); }
  to { transform: translate3d(6%, 5%, 0) scale(1.12); }
}

@keyframes pdp-plan-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -30% 0; }
}

@media (max-width: 420px) {
  .pdp-plan__bar {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.4rem;
  }

  .pdp-plan__cta {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-plan__fx,
  .pdp-plan__shimmer {
    animation: none;
  }

  .pdp-plan__shimmer {
    background-position: 50% 0;
    opacity: 0.25;
  }
}

.pdp-reviews {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: none;
}

.pdp-review {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.pdp-review:last-of-type {
  border-bottom: 0;
}

.pdp-review h3 {
  margin: 0.25rem 0 0.2rem;
  font-size: 0.95rem;
}

.pdp-review p {
  margin: 0.2rem 0;
}

.pdp-stars {
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
  font-size: 0.86rem;
}

.pdp-review-form {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}

.pdp-review-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.pdp-review-form input,
.pdp-review-form select,
.pdp-review-form textarea {
  font: inherit;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: var(--input-bg);
  color: var(--ink);
}

.pdp-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.pdp-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 0.45rem;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.pdp-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0 0.65rem;
  margin: 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pdp-tab__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: inherit;
}

.pdp-tab__icon .ico,
.pdp-tab .ico {
  width: 16px;
  height: 16px;
}

.pdp-tab:hover {
  color: var(--navy);
}

.pdp-tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--brand);
}

.pdp-tab-panel {
  display: none;
  padding: 0.85rem 1.1rem 1rem;
}

.pdp-tab-panel.is-active {
  display: block;
}

.pdp-info .pdp-read-block {
  max-width: 46rem;
}

.pdp-info .pdp-read-block + .pdp-read-block {
  margin-top: 0.35rem;
}

.pdp-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pdp-specs th,
.pdp-specs td {
  text-align: left;
  vertical-align: top;
  padding: 0.62rem 0.75rem 0.62rem 0;
  border-bottom: 1px solid var(--line);
}

.pdp-specs tr:last-child th,
.pdp-specs tr:last-child td {
  border-bottom: 0;
}

.pdp-specs th {
  width: 11.5rem;
  max-width: 40%;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.pdp-specs td {
  color: var(--ink);
  font-weight: 600;
}

.pdp-brand-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pdp-brand-card__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  flex-shrink: 0;
}

.pdp-brand-card__body {
  min-width: 0;
}

.pdp-brand-card__body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.pdp-brand-card__meta {
  margin: 0 0 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.pdp-brand-card__shop {
  margin: 0.85rem 0 0;
}

.pdp-brand-card__shop a {
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 719px) {
  .pdp-gallery {
    flex-direction: column-reverse;
  }

  .pdp-thumbs--vert {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* =============================================================================
   Dark theme — follow html[data-theme="dark"] tokens (same as PLP)
   ============================================================================= */

html[data-theme="dark"] .is-pdp .store-header {
  background: var(--header-bg);
}

html[data-theme="dark"] .pdp-gallery-nav {
  background: var(--header-bg);
}

html[data-theme="dark"] .pdp-buy,
html[data-theme="dark"] .pdp-reviews,
html[data-theme="dark"] .pdp-info,
html[data-theme="dark"] .pdp-panel {
  background: var(--surface);
}

html[data-theme="dark"] .pdp-col-main .pdp-buy,
html[data-theme="dark"] .pdp-rail .pdp-buy {
  background: transparent;
}

html[data-theme="dark"] .pdp-welcome {
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  color: var(--brand-deep);
}

html[data-theme="dark"] .pdp-coupon {
  background: var(--surface);
  border-color: var(--brand);
}

html[data-theme="dark"] .pdp-coupon__copy {
  background: var(--chip-bg);
  color: var(--navy);
  border-color: var(--line);
}

html[data-theme="dark"] .pdp-plan {
  --pdp-plan-navy: var(--navy-fill);
  --pdp-plan-navy-deep: var(--footer-bg);
}

html[data-theme="dark"] .pdp-add:hover {
  background: var(--btn-bg-hover);
  color: var(--on-fill);
}

/* Refined purchase panel — clearer product, price, membership and offer hierarchy */
.pdp-product-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 10%, var(--line));
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--navy) 7%, transparent);
}

.pdp-product-panel .pdp-identity {
  gap: 0.45rem;
  padding: 1.35rem 1.45rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.pdp-product-panel .pdp-id-meta {
  min-height: 0;
  margin-bottom: 0.05rem;
}

.pdp-product-panel .pdp-chip {
  padding: 0.24rem 0.55rem;
  border: 0;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand-deep);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

.pdp-product-panel .pdp-title {
  max-width: 40rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.pdp-product-panel .pdp-id-byline {
  margin-top: 0.1rem;
}

.pdp-product-panel .pdp-brand {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.pdp-product-panel .pdp-id-facts {
  gap: 0.4rem;
}

.pdp-product-panel .pdp-id-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 0.7rem;
}

.pdp-product-panel .pdp-buy {
  gap: 1rem;
  padding: 1.15rem 1.45rem 1.35rem;
}

.pdp-product-panel .pdp-offer {
  gap: 0.35rem;
}

.pdp-product-panel .pdp-price-row {
  gap: 0.35rem 0.65rem;
}

.pdp-product-panel .pdp-price {
  font-size: clamp(2rem, 3vw, 2.45rem);
  line-height: 1;
}

.pdp-product-panel .pdp-off {
  padding: 0.24rem 0.48rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--sale) 10%, var(--surface));
  font-size: 0.78rem;
}

.pdp-price-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
}

.pdp-product-panel .pdp-tax-note,
.pdp-product-panel .pdp-stock {
  margin: 0;
  font-size: 0.74rem;
}

.pdp-product-panel .pdp-stock span {
  color: var(--brand);
  font-size: 0.56rem;
}

.pdp-saving {
  width: fit-content;
  margin: 0.05rem 0 0;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.pdp-product-panel .pdp-welcome {
  margin-top: 0.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.pdp-product-panel .pdp-cart-form {
  padding-top: 0.1rem;
}

.pdp-product-panel .pdp-qty,
.pdp-product-panel .pdp-qty-ctrl,
.pdp-product-panel .pdp-qty-btn,
.pdp-product-panel .pdp-qty-ctrl input,
.pdp-product-panel .pdp-qty .btn.pdp-add {
  height: 46px;
  min-height: 46px;
}

.pdp-product-panel .pdp-qty-ctrl input {
  line-height: 46px;
}

.pdp-product-panel .pdp-qty .btn.pdp-add {
  font-size: 0.86rem;
  text-transform: none;
}

.pdp-product-panel .pdp-buy-extras {
  gap: 1.1rem;
  padding-top: 1.15rem;
}

form.pdp-plan,
.pdp-plan {
  padding: 1rem;
  min-height: 90px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0, color-mix(in srgb, var(--brand) 14%, transparent), transparent 36%),
    color-mix(in srgb, var(--brand) 5%, var(--surface));
  box-shadow: none;
  color: var(--ink);
}

.pdp-plan.is-on {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

.pdp-plan__bar {
  column-gap: 1rem;
}

.pdp-plan__title {
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.pdp-plan__title > span:last-child {
  display: grid;
  gap: 0.1rem;
}

.pdp-plan__icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy-fill);
  color: var(--brand-on-navy);
  font-size: 1.25rem;
  font-weight: 500;
}

.pdp-plan__member {
  color: var(--brand-deep);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.pdp-plan__brand {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.pdp-plan__pack,
.pdp-plan__line span {
  margin-top: 0.35rem;
  padding-left: 2.65rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.pdp-plan__pack strong {
  color: var(--brand-deep);
}

.pdp-plan__cta {
  height: 38px;
  padding-inline: 1rem;
  background: var(--navy-fill);
  color: var(--on-fill);
}

.pdp-plan__cta:hover {
  background: var(--btn-bg-hover);
}

.pdp-plan__cta.is-on,
.pdp-plan.is-on .pdp-plan__cta {
  border: 0;
  background: var(--navy-fill);
  color: var(--on-fill);
}

.pdp-plan__cta.is-on:hover,
.pdp-plan.is-on button.pdp-plan__cta:hover {
  background: var(--btn-bg-hover);
  color: var(--on-fill);
}

.pdp-plan__more {
  padding-left: 2.65rem;
}

.pdp-plan__more summary {
  margin-top: 0.3rem;
  color: var(--brand-deep);
  font-size: 0.68rem;
  text-decoration: none;
}

.pdp-plan__more summary::after {
  content: " →";
}

.pdp-plan__more ul {
  color: var(--muted);
  border-top-color: var(--line);
}

.pdp-section-heading {
  margin-bottom: 0.7rem;
}

.pdp-section-heading > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pdp-section-heading__icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand) 11%, var(--surface));
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.pdp-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pdp-section-heading p {
  margin: 0.08rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.pdp-coupons ul {
  gap: 0.75rem;
  padding-bottom: 0.2rem;
}

.pdp-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  width: min(17.5rem, 78vw);
  max-width: none;
  height: auto;
  min-height: 94px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 50%, var(--surface) 0 7px, transparent 7.5px),
    radial-gradient(circle at 100% 50%, var(--surface) 0 7px, transparent 7.5px),
    color-mix(in srgb, var(--brand) 4%, var(--surface));
}

.pdp-coupon__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
}

.pdp-coupon__eyebrow {
  margin-bottom: 0.2rem;
  color: var(--brand-deep);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pdp-coupon__benefit {
  font-size: 0.78rem;
}

.pdp-coupon__l1 {
  color: var(--navy);
  font-size: 0.82rem;
}

.pdp-coupon__l2 {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-top: 0.16rem;
  overflow: visible;
  clip: auto;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  white-space: normal;
}

.pdp-coupon__code {
  width: fit-content;
  max-width: 100%;
  margin-top: 0.4rem;
  padding: 0.16rem 0.36rem;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 4px;
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.pdp-coupon__form {
  display: flex;
  align-items: center;
  padding: 0.65rem;
  border-left: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
}

.pdp-coupon__apply {
  height: 34px;
  padding: 0 0.78rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.pdp-coupon__apply:hover {
  background: var(--brand);
  color: var(--on-fill);
}

.pdp-coupon-error {
  margin: 0.5rem 0 0;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 600;
}

html[data-theme="dark"] .pdp-product-panel,
html[data-theme="dark"] .pdp-coupon {
  background-color: var(--surface);
}

@media (max-width: 719px) {
  .pdp-product-panel {
    border-radius: 16px;
  }

  .pdp-product-panel .pdp-identity,
  .pdp-product-panel .pdp-buy {
    padding-inline: 1rem;
  }
}

@media (max-width: 420px) {
  .pdp-plan__pack,
  .pdp-plan__more {
    padding-left: 0;
  }

  .pdp-coupon {
    width: min(17rem, 86vw);
  }
}

