/* ============================================================
   RNDeals — product detail page
   Builds on the tokens in app.css (--color-*, --font-*, --radius-*).
   Everything is scoped under .pdp or prefixed pdp- so nothing here
   leaks into the rest of the storefront.
   ============================================================ */

.pdp {
  --pdp-gold: #e0a527;
  --pdp-star-off: #d9d6cf;
  --pdp-deal: var(--color-danger);
  --pdp-ink: #14181b;
  --pdp-ink-2: #3d454b;
  --pdp-radius: 14px;
  --pdp-nav-h: 56px;
  padding-bottom: 4.5rem;
}

/* The bottom add-to-cart bar is used wherever the buy box is not a side column (< xl). */
@media (min-width: 1200px) {
  .pdp {
    padding-bottom: 2rem;
  }
}

/* `display` rules below would otherwise beat the [hidden] attribute */
.pdp [hidden] {
  display: none !important;
}

.pdp button {
  font-family: inherit;
}

/* ---------- breadcrumb ---------- */
.pdp-crumbs {
  padding: 1rem 0 0.9rem;
  font-size: 0.82rem;
}

.pdp-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
}

.pdp-crumbs li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #c8c5bc;
}

.pdp-crumbs a {
  color: var(--color-muted);
}

.pdp-crumbs a:hover {
  color: var(--color-primary);
}

.pdp-crumbs [aria-current] {
  color: var(--pdp-ink);
}

@media (max-width: 767.98px) {
  .pdp-crumbs {
    display: none;
  }
}

/* ---------- star display (fractional) ---------- */
.pdp-stars {
  --size: 1rem;
  display: inline-block;
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-size: var(--size);
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--pdp-gold) calc(var(--rating) / 5 * 100%), var(--pdp-star-off) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  vertical-align: middle;
}

.pdp-stars::before {
  content: "\f586\f586\f586\f586\f586";
}

.pdp-stars--lg {
  --size: 1.4rem;
}

/* ---------- gallery ---------- */
.pdp-gallery {
  display: grid;
  gap: 0.75rem;
  max-width: 640px;
  margin-inline: auto;
}

.pdp-thumbs {
  order: 2;
  position: relative;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.pdp-stage {
  order: 1;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--pdp-radius);
  overflow: hidden;
  cursor: zoom-in;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.pdp-stage.is-video {
  cursor: default;
}

.pdp-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease-out, opacity 0.15s ease;
  will-change: transform;
}

.pdp-main-img.is-swapping {
  opacity: 0.35;
}

.pdp-stage.is-zoomed .pdp-main-img {
  transform: scale(2.2);
  transition: transform 0.12s ease-out;
}

.pdp-media-frame {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 1;
}

.pdp-media-frame iframe,
.pdp-media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pdp-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-thumb:hover {
  border-color: var(--color-primary);
}

.pdp-thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.pdp-thumb .pdp-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 24, 27, 0.38);
  color: #fff;
  font-size: 1.5rem;
}

.pdp-deal-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--pdp-deal);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}

.pdp-round-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--pdp-ink);
  box-shadow: 0 2px 8px rgba(20, 24, 27, 0.1);
  padding: 0;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.pdp-round-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.pdp-stage-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdp-wish-round .when-on {
  display: none;
}

.pdp-wish-round:hover,
.pdp-wish-round:focus-visible {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.pdp-wish-round.active {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.pdp-wish-round.active .when-on {
  display: inline;
}

.pdp-wish-round.active .when-off {
  display: none;
}

.pdp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pdp-arrow--prev {
  left: 0.6rem;
}

.pdp-arrow--next {
  right: 0.6rem;
}

.pdp-stage:hover .pdp-arrow,
.pdp-arrow:focus-visible {
  opacity: 1;
}

.pdp-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  color: var(--color-muted);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.pdp-stage.is-zoomed .pdp-zoom-hint,
.pdp-stage.is-video .pdp-zoom-hint {
  opacity: 0;
}

@media (hover: none) {

  .pdp-arrow,
  .pdp-zoom-hint {
    display: none;
  }
}

@media (min-width: 768px) {
  .pdp-gallery {
    position: relative;
    display: block;
  }

  .pdp-gallery.has-thumbs {
    padding-left: 88px;
  }

  .pdp-thumbs {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 76px;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (min-width: 992px) {
  .pdp-gallery {
    position: sticky;
    top: 1rem;
    margin-inline: 0;
  }
}

@media (max-width: 767.98px) {
  .pdp-gallery {
    margin-top: 1rem;
  }

  .pdp-stage {
    border-radius: 12px;
  }
}

/* ---------- info column ---------- */

/* ---------- info + buy box grid ----------
   Replaces the old Bootstrap row/col split so "About this item" + SKU can live
   in their own grid area: stacked under the buy box on mobile (source order),
   and tucked into the left column below the title block on desktop, with the
   buy box spanning both rows to its right — matching the original layout. */
.pdp-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "buybox"
    "about";
  gap: 1.5rem;
}

.pdp-info-grid>.pdp-info-main {
  grid-area: main;
  min-width: 0;
}

.pdp-info-grid>.pdp-buybox {
  grid-area: buybox;
  min-width: 0;
}

.pdp-info-grid>.pdp-about {
  grid-area: about;
  min-width: 0;
}

.pdp-info-grid>.pdp-about .pdp-sku:first-child {
  margin-top: 0;
}

@media (min-width: 1200px) {
  .pdp-info-grid {
    grid-template-columns: 7fr 5fr;
    column-gap: 1.75rem;
    row-gap: 1.5rem;
    grid-template-areas:
      "main buybox"
      "about buybox";
    align-items: start;
  }
}

.pdp-title {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

@media (min-width: 1200px) {
  .pdp-title {
    font-size: 1.65rem;
  }
}

.pdp-rating-row {
  min-height: 1.5rem;
}

.pdp-buyers {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pdp-buyers i {
  color: var(--color-primary);
}

.pdp-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pdp-ink);
  font-size: 0.9rem;
}

.pdp-rating-num {
  font-weight: 600;
}

.pdp-rating-count {
  color: var(--color-primary-dark);
}

.pdp-rating-link:hover .pdp-rating-count {
  text-decoration: underline;
}

.pdp-rating-link.is-empty .pdp-rating-count {
  color: var(--color-muted);
}

.pdp-rule {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1rem 0;
  opacity: 1;
}

.pdp-price-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pdp-deal-pct {
  color: var(--pdp-deal);
  font-size: 1.55rem;
  font-weight: 500;
}

.pdp-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pdp-price-sub {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
}

.pdp-price-sub s {
  color: var(--color-price-strike);
}

.pdp-save {
  color: var(--color-save-text);
  font-weight: 600;
}

/* option pickers */
.pdp-options {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.pdp-opt-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--pdp-ink-2);
}

.pdp-opt-label strong {
  color: var(--pdp-ink);
  font-weight: 600;
}

.pdp-opt-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pdp-swatch {
  --swatch: #ccc;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(20, 24, 27, 0.2);
  background: var(--swatch);
  cursor: pointer;
  transition: box-shadow 0.12s ease, opacity 0.12s ease;
}

.pdp-swatch:hover {
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px #b9d6c5;
}

.pdp-swatch.is-active {
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary);
}

.pdp-swatch.is-oos {
  opacity: 0.55;
}

.pdp-swatch.is-oos::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(20, 24, 27, 0.6) 50%, transparent calc(50% + 1px));
}

.pdp-swatch.is-na {
  opacity: 0.4;
}

.pdp-chip {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pdp-ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.pdp-chip:hover {
  border-color: var(--color-primary);
}

.pdp-chip.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.pdp-chip.is-oos {
  color: #9aa0a6;
  background: repeating-linear-gradient(135deg, #fff 0 6px, #f1f0ec 6px 7px);
  text-decoration: line-through;
}

.pdp-chip.is-na {
  opacity: 0.5;
  border-style: dashed;
}

.pdp-h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.65rem;
}

.pdp-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.pdp-highlights li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--pdp-ink-2);
  line-height: 1.5;
}

.pdp-highlights i {
  color: var(--color-primary);
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.pdp-highlights + .pdp-readmore {
  margin-top: 0.6rem;
}

.pdp-sku {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ---------- buy box ---------- */
.pdp-buybox {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--pdp-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 28px rgba(20, 24, 27, 0.07);
}

@media (min-width: 1200px) {
  .pdp-buybox {
    position: sticky;
    top: 1rem;
  }
}

.pdp-bb-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pdp-bb-was {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.pdp-bb-was s {
  color: var(--color-price-strike);
}

.pdp-bb-line {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  margin: 0.9rem 0 0.6rem;
  color: var(--pdp-ink-2);
}

.pdp-ship {
  margin: 0.9rem 0 0.6rem;
  padding: 0.85rem 0.9rem;
  background: #f4f6f5;
  border-radius: 10px;
}

.pdp-ship-head {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--pdp-ink-2);
}

.pdp-ship-head > i {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--pdp-ink);
}

.pdp-ship-body {
  min-width: 0;
  flex: 1;
}

.pdp-ship-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--pdp-ink);
}

.pdp-ship[data-state="free"] .pdp-ship-title {
  color: var(--pdp-ink);
}

.pdp-ship-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.pdp-ship-sub[hidden],
.pdp-ship-form[hidden],
.pdp-ship-msg[hidden],
.pdp-ship-carrier[hidden],
.pdp-ship-handling[hidden],
.pdp-ship-note[hidden] {
  display: none;
}

.pdp-ship-change {
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.pdp-ship-carrier,
.pdp-ship-handling,
.pdp-ship-note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.pdp-ship-form {
  margin-top: 0.6rem;
}

.pdp-ship-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pdp-ink);
}

.pdp-ship-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.pdp-ship-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  font-size: 16px;           /* 16px stops iOS zooming into the field */
  border-radius: 6px;
  background: #fff;
}

.pdp-ship-input.is-invalid,
.pdp-ship-input.is-invalid:focus {
  border-color: var(--bs-danger, #dc3545);
  box-shadow: none;
  background-image: none;
}

.pdp-ship-btn {
  flex: 0 0 auto;
  min-width: 5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  color: var(--color-primary);
  background: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.pdp-ship-btn:hover,
.pdp-ship-btn:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.pdp-ship-btn:disabled,
.pdp-ship-btn.is-checking {
  border-color: #d5d9d7;
  background: #e6e9e7;
  color: #8a918e;
  opacity: 1;
  cursor: default;
}

.pdp-ship-msg {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--bs-danger, #dc3545);
}

.pdp-ship.is-loading .pdp-ship-head {
  opacity: 0.55;
}

@media (max-width: 340px) {
  .pdp-ship {
    padding: 0.75rem;
  }
  .pdp-ship-btn {
    min-width: 4.25rem;
    padding: 0 0.75rem;
  }
}

.pdp-bb-line i,
.pdp-bb-trust i {
  color: var(--color-primary);
}

.pdp-stock {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.pdp-stock.is-in {
  color: var(--color-save-text);
}

.pdp-stock.is-low {
  color: #b45309;
}

.pdp-stock.is-out {
  color: var(--color-danger);
}

.pdp-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pdp-qty-label {
  font-size: 0.9rem;
  color: var(--pdp-ink-2);
}

.pdp-qty {
  height: 42px;
  align-items: stretch;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.pdp-qty button {
  width: 40px;
  font-size: 1.05rem;
  color: var(--pdp-ink);
}

.pdp-qty button:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}

.pdp-qty input {
  width: 48px;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-cta-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pdp-cta-btn.is-added {
  background: var(--color-primary-dark);
}

.pdp-buy-now {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--pdp-ink);
  border: 1px solid var(--pdp-ink);
  color: #fff;
  font-weight: 600;
}

.pdp-buy-now:hover,
.pdp-buy-now:focus {
  background: #2a3136;
  border-color: #2a3136;
  color: #fff;
}

.pdp-buy-now:disabled,
.pdp-cta-btn:disabled {
  opacity: 0.5;
}

.pdp-notify-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.pdp-notify-btn:hover,
.pdp-notify-btn:focus {
  background: var(--color-primary-tint);
}

.pdp-bb-trust {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-muted);
  display: grid;
  gap: 0.4rem;
}

/* ---------- sold-by (supplier) card ---------- */
.pdp-sold-by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.pdp-sold-by-shop {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.pdp-sold-by-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  overflow: hidden;
}

.pdp-sold-by-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.pdp-sold-by-logo i {
  font-size: 1.15rem;
  color: var(--pdp-ink);
}

.pdp-sold-by-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.pdp-sold-by-label {
  font-size: 0.92rem;
  color: var(--pdp-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-sold-by-label strong {
  color: var(--pdp-ink);
}

.pdp-sold-by-sub {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.pdp-sold-by-map {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 1rem;
  transition: background 0.15s ease;
}

.pdp-sold-by-map:hover,
.pdp-sold-by-map:focus {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- in-page nav ---------- */
.pdp-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(250, 249, 246, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pdp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--pdp-nav-h);
}

/* wrapper holds the scrolling tab row plus the edge arrows (indicators only) */
.pdp-nav-scroll {
  position: relative;
  display: flex;
  align-self: stretch;
  min-width: 0;
  max-width: 100%;
}

.pdp-nav-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 40px;
  display: none;
  align-items: center;
  pointer-events: none; /* indicator only: the tab row itself scrolls */
  color: var(--color-primary-dark);
}

.pdp-nav-arrow i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(20, 24, 27, 0.15);
  font-size: 0.75rem;
}

.pdp-nav-arrow--prev {
  left: 0;
  justify-content: flex-start;
  background: linear-gradient(90deg, #faf9f6 55%, rgba(250, 249, 246, 0));
}

.pdp-nav-arrow--next {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(270deg, #faf9f6 55%, rgba(250, 249, 246, 0));
}

.pdp-nav-scroll.can-prev .pdp-nav-arrow--prev,
.pdp-nav-scroll.can-next .pdp-nav-arrow--next {
  display: flex;
}

/* a gentle nudge so the right arrow reads as "more this way" */
.pdp-nav-scroll.can-next .pdp-nav-arrow--next i {
  animation: pdpNavNudge 1.6s ease-in-out 3;
}

@keyframes pdpNavNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-nav-scroll.can-next .pdp-nav-arrow--next i { animation: none; }
}

.pdp-nav-links {
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  align-self: stretch;
}

.pdp-nav-links::-webkit-scrollbar {
  display: none;
}

.pdp-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.9rem;
  color: var(--pdp-ink-2);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pdp-nav-links a:hover {
  color: var(--color-primary);
}

.pdp-nav-links a.is-active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.pdp-nav-count {
  font-size: 0.75rem;
  background: #ebe9e3;
  color: var(--pdp-ink-2);
  border-radius: 99px;
  padding: 0.05rem 0.5rem;
  font-weight: 600;
}

.pdp-nav-buy {
  display: none;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pdp-nav-buy.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pdp-nav-buy img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.pdp-nav-buy-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pdp-nav-buy-name {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.pdp-nav-buy-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.pdp-nav-buy-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1200px) {
  .pdp-nav-buy {
    display: flex;
  }
}

/* ---------- content sections ---------- */
.pdp-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--pdp-nav-h) + 0.25rem);
}

.pdp-section:first-child {
  border-top: 0;
}

.pdp-h2 {
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
}

.pdp-prose {
  color: var(--pdp-ink-2);
  line-height: 1.7;
}

.pdp-prose p {
  margin: 0 0 1rem;
}

.pdp-prose.is-clamped {
  max-height: 9.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.pdp-readmore {
  border: 0;
  background: none;
  padding: 0;
  margin-top: 0.4rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.pdp-readmore:hover {
  text-decoration: underline;
}

.pdp-spec-group {
  margin-bottom: 1.75rem;
}

.pdp-spec-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0;
}

.pdp-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.pdp-spec-table th,
.pdp-spec-table td {
  padding: 0.65rem 0.95rem;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.pdp-spec-table tr:last-child th,
.pdp-spec-table tr:last-child td {
  border-bottom: 0;
}

.pdp-spec-table th {
  width: 34%;
  background: #f4f3ef;
  font-weight: 500;
  color: var(--pdp-ink-2);
  text-align: left;
}

@media (max-width: 575.98px) {
  .pdp-spec-table th {
    width: 42%;
  }
}

/* ---------- specifications accordion (brand theme) ----------
   Retheme Bootstrap's accordion via its own CSS variables so it picks up
   RNDeals' green/cream palette instead of Bootstrap's default blue. */
.pdp-spec-group .accordion {
  --bs-accordion-border-color: var(--color-border);
  --bs-accordion-border-radius: var(--radius-md);
  --bs-accordion-inner-border-radius: calc(var(--radius-md) - 1px);
  --bs-accordion-btn-color: var(--color-text);
  --bs-accordion-btn-bg: var(--color-surface);
  --bs-accordion-active-color: var(--color-primary-dark);
  --bs-accordion-active-bg: var(--color-primary-tint);
  --bs-accordion-btn-focus-border-color: var(--color-primary);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(31, 111, 67, 0.15);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2315502f'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  margin-bottom: 0;
}

.pdp-spec-group .accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.pdp-spec-group .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.pdp-spec-group .accordion-body {
  padding: 0;
  background: var(--color-surface);
}

.pdp-spec-group .accordion-body .pdp-spec-table {
  border: 0;
  border-radius: 0;
}

.pdp-spec-group .accordion-body .pdp-spec-table th {
  background: var(--color-bg);
}

/* ---------- brand story banners (admin-uploaded "from the brand" content) ----------
   Styled like Amazon's "From the manufacturer" module: images run flush, full
   viewport width (breaking out of the .container like the homepage hero), with
   no gaps/borders/radius between them so it reads as one continuous story strip
   rather than a stack of separate cards. */
.pdp-brand-story {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
}

.pdp-brand-story-img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Peek: a short, fading sliver of the next hidden image sits under the first
   two, signalling there's more to see before the "View more" click expands it.
   Uses an overlay gradient (not mask-image) so it renders reliably everywhere. */
.pdp-brand-story-peek {
  position: relative;
  height: 56px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: height 0.25s ease;
}

.pdp-brand-story-peek .pdp-brand-story-img {
  margin-bottom: 0;
}

.pdp-brand-story-peek::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-surface, #fff) 92%);
  pointer-events: none;
}

.pdp-brand-story.is-expanded .pdp-brand-story-peek {
  height: auto;
}

.pdp-brand-story.is-expanded .pdp-brand-story-peek::after {
  content: none;
}

.pdp-brand-story-toggle {
  display: block;
  margin: 0.5rem auto 0;
  text-align: center;
}

/* ---------- reviews ---------- */
@media (min-width: 992px) {
  .pdp-reviews-side {
    position: sticky;
    top: calc(var(--pdp-nav-h) + 1rem);
  }
}

.pdp-score {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.pdp-score-num {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pdp-score-sub {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.pdp-score--empty {
  margin-bottom: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.pdp-histogram {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.pdp-hist-row {
  display: grid;
  grid-template-columns: 3.3rem 1fr 2.6rem;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  text-align: left;
  transition: background 0.12s ease;
}

.pdp-hist-row:not(:disabled):hover {
  background: var(--color-primary-tint);
}

.pdp-hist-row.is-active {
  background: var(--color-primary-tint);
  font-weight: 600;
}

.pdp-hist-row:disabled {
  color: var(--color-muted);
  cursor: default;
}

.pdp-hist-bar {
  height: 12px;
  border-radius: 99px;
  background: #ebe9e3;
  overflow: hidden;
}

.pdp-hist-bar span {
  display: block;
  height: 100%;
  background: var(--pdp-gold);
  border-radius: 99px;
}

.pdp-hist-pct {
  text-align: right;
  color: var(--color-muted);
}

.pdp-cta-wrap {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.pdp-cta-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.pdp-cta-text {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.pdp-own-stars {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pdp-own-hint {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.pdp-own-title {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.pdp-form {
  margin-top: 0.25rem;
}

.pdp-form-label {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.pdp-optional {
  font-weight: 400;
  color: var(--color-muted);
}

.pdp-rate {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.pdp-rate-stars {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.pdp-rate-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pdp-rate-stars label {
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.1rem;
  color: var(--pdp-star-off);
  transition: transform 0.1s ease;
}

.pdp-rate-stars label::before {
  font-family: "bootstrap-icons";
  font-style: normal;
  content: "\f588";
}

.pdp-rate-stars label.is-on {
  color: var(--pdp-gold);
}

.pdp-rate-stars label.is-on::before {
  content: "\f586";
}

.pdp-rate-stars label.is-pop {
  animation: pdp-pop 0.22s ease;
}

.pdp-rate-stars input:focus-visible+label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.pdp-rate-hint {
  margin-left: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

@keyframes pdp-pop {
  0% {
    transform: scale(0.85);
  }

  60% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

.pdp-field-error {
  color: var(--color-danger);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.pdp-field-error:empty {
  display: none;
}

.pdp-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.pdp-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 67, 0.15);
}

.pdp-form .form-control.is-invalid {
  border-color: var(--color-danger);
  background-image: none;
}

.pdp-toolbar {
  scroll-margin-top: calc(var(--pdp-nav-h) + 0.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.pdp-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pdp-toolbar-title {
  font-weight: 600;
}

.pdp-toolbar .form-select {
  width: auto;
  border-radius: 10px;
}

.pdp-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--color-primary);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  border-radius: 99px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.pdp-filter-chip i {
  font-size: 0.7rem;
}

.pdp-review-list {
  transition: opacity 0.15s ease;
}

.pdp-review-list.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.pdp-review {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.pdp-review.is-mine {
  background: #f1f8f4;
  margin-inline: -1rem;
  padding-inline: 1rem;
  border-radius: 12px;
  border-bottom-color: transparent;
}

.pdp-review-who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.pdp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--fg);
  flex: 0 0 auto;
}

.pdp-av-0 {
  --bg: #e4f1e9;
  --fg: #15502f;
}

.pdp-av-1 {
  --bg: #e4eefb;
  --fg: #1c4f8f;
}

.pdp-av-2 {
  --bg: #fbf0df;
  --fg: #8a5a10;
}

.pdp-av-3 {
  --bg: #fbe6ea;
  --fg: #a02033;
}

.pdp-av-4 {
  --bg: #ece8fa;
  --fg: #4b3aa0;
}

.pdp-av-5 {
  --bg: #dff2ef;
  --fg: #0f6b63;
}

.pdp-review-name {
  font-weight: 500;
  font-size: 0.92rem;
}

.pdp-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border-radius: 99px;
  padding: 0.1rem 0.55rem;
}

.pdp-review-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pdp-review-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.pdp-review-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin: 0.3rem 0 0.65rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.pdp-verified {
  color: var(--color-save-text);
  font-weight: 600;
}

.pdp-review-body {
  max-width: 70ch;
  line-height: 1.65;
  color: var(--pdp-ink-2);
  overflow-wrap: anywhere;
}

.pdp-review-body.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdp-review .pdp-readmore {
  margin-top: 0.25rem;
}

.pdp-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-muted);
}

.pdp-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- mobile add-to-cart bar ---------- */
.pdp-mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(20, 24, 27, 0.06);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}

.pdp-mbar.is-on {
  transform: none;
}

.pdp-mbar-price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.pdp-mbar-price small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.pdp-mbar-price small:empty {
  display: none;
}

.pdp-mbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.pdp-mbar .btn {
  flex: 1;
  padding: 0.7rem;
  border-radius: 12px;
  font-weight: 600;
}

@media (min-width: 1200px) {
  .pdp-mbar {
    display: none;
  }
}

/* ---------- image viewer ---------- */
.pdp-lightbox .modal-content {
  min-height: 100%;
  background: rgba(12, 14, 16, 0.95);
  border: 0;
  border-radius: 0;
  justify-content: center;
}

.pdp-lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(100vh - 7rem);
  padding: 0 3.5rem;
}

.pdp-lb-stage img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.pdp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.pdp-lb-prev {
  left: 0.75rem;
}

.pdp-lb-next {
  right: 0.75rem;
}

.pdp-lb-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.pdp-lb-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pdp-lb-count {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

@media (max-width: 575.98px) {
  .pdp-lb-stage {
    padding: 0 0.5rem;
  }

  .pdp-lb-nav {
    display: none;
  }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {

  .pdp *,
  .pdp *::before,
  .pdp *::after {
    transition: none !important;
    animation: none !important;
  }

  .pdp-stage.is-zoomed .pdp-main-img {
    transform: none;
  }
}

/* ---------- toasts: keep them clear of the sticky section bar ---------- */
#toast-container.toast-top-right {
  top: calc(var(--pdp-nav-h, 56px) + 0.75rem);
}

#toast-container>div {
  opacity: 1;
  box-shadow: 0 6px 20px rgba(20, 24, 27, 0.18);
}

/* Cart total badge on the top-right corner of the Add to cart buttons */
.js-pdp-add {
  position: relative;
  overflow: visible;
}

.js-pdp-add .pdp-add-count {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.js-pdp-add .pdp-add-count[hidden] {
  display: none;
}
/* ============================================================
   3D model in the gallery (<model-viewer>, loaded on demand)
   ============================================================ */

.pdp-stage.is-model {
  cursor: default;
}

.pdp-stage.is-model .pdp-media-frame {
  background: radial-gradient(circle at 50% 38%, #fff 0%, #eef0f1 100%);
}

.pdp-model {
  display: block;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  --progress-bar-color: var(--color-primary);
}

.pdp-model:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -4px;
}

/* Thumbnail marker so a 3D view reads differently from a photo or a video. */
.pdp-thumb .pdp-badge3d {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  padding: 0.12rem 0.28rem;
  border-radius: 6px;
  background: rgba(20, 24, 27, 0.8);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

/* "Drag to rotate" — unlike the zoom hint it is kept on touch screens, where it matters most. */
.pdp-3d-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 2;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  color: var(--color-muted);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pdp-stage.is-model .pdp-3d-hint {
  display: inline-flex;
}

.pdp-stage.is-model.is-touched .pdp-3d-hint {
  opacity: 0;
}

.pdp-stage.is-model .pdp-zoom-hint {
  display: none;
}

.pdp-model-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  background: #f4f3f0;
}

.pdp-model-error i {
  font-size: 1.5rem;
}

/* ---------- delivery method (home delivery / store pickup) ---------- */
.pdp-method {
  margin: 1rem 0 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.pdp-method-title {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pdp-ink);
}

.pdp-method-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pdp-method-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border, #d5d9d7);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.pdp-method-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pdp-method-radio {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #8a918e;
  border-radius: 50%;
  background: #fff;
}

.pdp-method-icon {
  font-size: 1.3rem;
  color: var(--pdp-ink);
}

.pdp-method-label {
  flex: 1;
  font-weight: 600;
  color: var(--pdp-ink);
}

.pdp-method-tick {
  display: none;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.pdp-method-opt.is-selected {
  border-color: var(--color-primary);
  background: #eaf7ef;
}

.pdp-method-opt.is-selected .pdp-method-radio {
  border-color: var(--color-primary);
  background: radial-gradient(circle, var(--color-primary) 0 45%, #fff 50%);
}

.pdp-method-opt.is-selected .pdp-method-tick {
  display: block;
}

.pdp-method-opt:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pdp-method-panel {
  margin-top: 0.8rem;
}

.pdp-method-panel[hidden] {
  display: none;
}

.pdp-method-panel .pdp-ship {
  margin: 0;
}

.pdp-pickup {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem;
  border-radius: 10px;
  background: #f4f6f5;
  font-size: 0.92rem;
  color: var(--pdp-ink-2);
}

.pdp-pickup-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: var(--pdp-ink);
}

.pdp-pickup-fee {
  font-weight: 400;
  color: var(--pdp-ink-2);
}

.pdp-pickup-name {
  font-weight: 700;
  color: var(--pdp-ink);
}

.pdp-pickup-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.pdp-pickup-src {
  margin-top: -0.6rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.pdp-method-note {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: var(--pdp-ink-2);
}

.pdp-method-note--error {
  color: var(--bs-danger, #dc3545);
}
