/* Product detail — premium VIP number marketplace, fully responsive */
.pd-page {
  --pd-purple: #5d4e8c;
  --pd-purple-deep: #3f335f;
  --pd-gold: #f6bf33;
  --pd-ink: #152033;
  --pd-muted: #6b7280;
  --pd-line: #e8ecf3;
  --pd-soft: #f7f5fb;
  --pd-radius: 16px;
  --pd-shadow: 0 8px 24px rgba(21, 32, 51, 0.07);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--pd-ink);
  background: #f4f2f8;
  padding: 16px 0 40px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.pd-page *,
.pd-page *::before,
.pd-page *::after {
  box-sizing: border-box;
}

.pd-page h1,
.pd-page h2,
.pd-page h4,
.pd-page h5,
.pd-page p,
.pd-page ul {
  margin: 0;
  padding: 0;
}

.pd-page button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.pd-page .container.vip-page-wrap,
.pd-page .vip-page-wrap.container {
  width: 100%;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Compact header overflow guard (this page only) */
#b-header .b-logo {
  min-width: 0;
  overflow: hidden;
}

#b-header .b-logo img {
  max-height: 40px;
  max-width: min(240px, 62vw);
  width: auto;
  height: auto;
}

#b-header .b-header_right {
  min-width: 0;
}

#b-header .b-nav_icon {
  font-size: 22px;
  line-height: 1;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pd-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  max-width: 100%;
  min-width: 0;
}

.pd-crumb li {
  display: inline-flex;
  align-items: center;
  color: var(--pd-muted);
  font-size: clamp(12px, 2.8vw, 13px);
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
}

.pd-crumb li a {
  color: var(--pd-purple);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.pd-crumb li a:hover,
.pd-crumb li a:focus-visible {
  color: var(--pd-purple-deep);
}

.pd-crumb li.active {
  color: var(--pd-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pd-crumb .sep {
  font-size: 9px;
  color: #c5bed6;
  padding: 0 2px;
  flex-shrink: 0;
}

.pd-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
  min-width: 0;
  width: 100%;
}

.pd-main,
.pd-buy,
.pd-seller {
  background: #fff;
  border: 1px solid rgba(93, 78, 140, 0.12);
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.pd-main {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pd-main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #5d4e8c 0%, #8b7bb8 45%, #f6bf33 100%);
  z-index: 2;
}

.pd-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: sticky;
  top: 16px;
}

.pd-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  width: 100%;
  padding: 24px 24px 18px;
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 72%);
}

.pd-badges {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.2;
}

.pd-badge-gold {
  background: #f8edd0;
  color: #7a5410;
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.pd-badge-status {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pd-badge-status.is-unavailable {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.pd-badge-sponsored {
  background: #f59e0b;
  color: #1f2937;
}

.pd-badge-prebook {
  background: #2563eb;
  color: #fff;
  white-space: normal;
  height: auto;
}

.pd-number-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.pd-number {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #5d4e8c;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pd-number-rule {
  display: none;
}

.pd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.pd-stats.has-four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-stats.has-four .pd-stat:nth-child(4) {
  grid-column: 1 / -1;
}

.pd-stat {
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: #f6f4fb;
  border: 1px solid #eceaf2;
  border-radius: 12px;
}

.pd-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 4px;
}

.pd-stat-value {
  font-size: clamp(12px, 0.4vw + 11px, 15px);
  font-weight: 800;
  color: var(--pd-ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  max-width: 100%;
}

.pd-buy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px 20px;
}

.pd-price-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-price-main {
  min-width: 0;
  flex: 1 1 auto;
}

.pd-price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 6px;
}

.pd-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--pd-purple-deep);
  line-height: 1;
  min-width: 0;
}

.pd-price-mark {
  font-size: clamp(16px, 1.2vw + 12px, 20px);
  font-weight: 700;
}

.pd-price-value {
  font-size: clamp(28px, 2vw + 18px, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.pd-price-note {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  overflow-wrap: anywhere;
}

.pd-avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.pd-avail.is-unavailable {
  color: #b91c1c;
}

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-cta-row > a {
  min-width: 0;
}

.action-btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.action-btn-large:focus-visible,
.whatsapp-contact-btn:focus-visible,
.pd-pinlist-link:focus-visible,
.login-prompt-btn:focus-visible,
.login-prompt-cancel:focus-visible,
.pd-crumb a:focus-visible {
  outline: 2px solid #5d4e8c;
  outline-offset: 2px;
}

.btn-buy-now {
  background: #f6bf33;
  color: #1a2332;
  box-shadow: 0 4px 12px rgba(245, 179, 53, 0.28);
  border-color: rgba(217, 119, 6, 0.18);
}

.btn-buy-now:hover {
  background: #ffd24d;
  color: #1a2332;
  text-decoration: none;
}

.btn-buy-now.btn-prebook {
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.btn-enquiry {
  background: var(--pd-purple);
  color: #fff;
}

.btn-enquiry:hover {
  background: var(--pd-purple-deep);
  color: #fff;
  text-decoration: none;
}

.pd-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pd-actions-row > * {
  min-width: 0;
}

.btn-wishlist,
.btn-pin,
.btn-share {
  min-height: 44px;
  font-size: 13px;
  background: #fff;
  color: var(--pd-purple);
  border-color: #d9d3e8;
  box-shadow: none;
}

.btn-wishlist:hover,
.btn-pin:hover,
.btn-share:hover {
  background: var(--pd-soft);
  color: var(--pd-purple-deep);
  text-decoration: none;
}

.btn-pin.active,
.btn-wishlist.active {
  background: #fff1f5;
  color: #be185d;
  border-color: #f9a8d4;
}

.pd-pinlist-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-purple);
  text-decoration: none;
  min-height: 44px;
}

.pd-pinlist-link:hover {
  color: var(--pd-purple-deep);
  text-decoration: none;
}

.pd-details {
  padding: 4px 24px 22px;
  background: #fff;
}

.pd-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.pd-meta-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: #faf9fc;
}

.pd-meta-item .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 4px;
}

.pd-meta-item .val {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pd-desc-title,
.pd-seller-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--pd-ink);
  margin-bottom: 8px;
}

.pd-desc-title i,
.pd-seller-title i {
  color: var(--pd-purple);
}

.pd-desc-body {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  overflow-wrap: anywhere;
}

.pd-seller {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
}

.pd-seller-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.pd-seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pd-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-seller-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.pd-seller-meta h5 {
  font-size: 14px;
  font-weight: 800;
  color: var(--pd-ink);
  margin: 0 0 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pd-seller-meta p {
  font-size: 12px;
  color: var(--pd-muted);
  overflow-wrap: anywhere;
}

.whatsapp-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-contact-btn:hover {
  background: #15803d;
  color: #fff;
  text-decoration: none;
}

.similar-products-section {
  padding: 36px 0 8px;
  min-width: 0;
}

.section-title {
  font-size: clamp(18px, 1.5vw + 12px, 20px);
  font-weight: 800;
  color: var(--pd-ink);
  margin: 0 0 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 8px;
  background: var(--pd-purple);
  border-radius: 2px;
}

.similar-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.similar-products-grid .simple-number-card {
  height: 100%;
  max-width: 100%;
}

.login-prompt-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-prompt-modal.show {
  display: flex;
}

.login-prompt-content {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.login-prompt-content i.main-icon {
  font-size: 40px;
  color: #5d4e8c;
  margin-bottom: 12px;
}

.login-prompt-content h4 {
  font-size: 18px;
  font-weight: 800;
  color: #1b2030;
  margin-bottom: 8px;
}

.login-prompt-content p {
  color: #6b7280;
  margin-bottom: 18px;
  line-height: 1.5;
}

.login-prompt-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

a.login-prompt-btn,
button.login-prompt-cancel {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 120px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

a.login-prompt-btn {
  background: #5d4e8c !important;
  color: #fff !important;
}

a.login-prompt-btn:hover,
a.login-prompt-btn:focus {
  background: #3f335f !important;
  color: #fff !important;
  text-decoration: none !important;
}

button.login-prompt-cancel {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
}

/* Large desktop */
@media (min-width: 1440px) {
  .pd-shell {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

@media (min-width: 1920px) {
  .pd-page .container.vip-page-wrap {
    max-width: 1180px !important;
  }
}

/* 1280–1366 */
@media (min-width: 1024px) and (max-width: 1365.98px) {
  .pd-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px;
  }

  .pd-hero,
  .pd-details {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Tablet and below: stacked cards, buy between number and details */
@media (max-width: 1023.98px) {
  .pd-page {
    padding: 14px 0 28px;
  }

  .pd-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .pd-aside {
    position: static;
    display: contents;
  }

  .pd-main {
    display: contents;
  }

  .pd-main::before {
    display: none;
  }

  .pd-hero,
  .pd-details,
  .pd-buy,
  .pd-seller {
    background: #fff;
    border: 1px solid rgba(93, 78, 140, 0.12);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    width: 100%;
    max-width: 100%;
  }

  .pd-hero {
    order: 1;
    position: relative;
    padding: 20px 20px 16px;
  }

  .pd-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #5d4e8c 0%, #8b7bb8 45%, #f6bf33 100%);
  }

  .pd-buy {
    order: 2;
    padding: 20px;
  }

  .pd-seller {
    order: 3;
  }

  .pd-details {
    order: 4;
    padding: 18px 20px;
  }

  .pd-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .pd-meta {
    grid-template-columns: 1fr 1fr;
  }

  .similar-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone */
@media (max-width: 767.98px) {
  .pd-page {
    padding: 10px 0 16px;
  }

  .pd-page .container.vip-page-wrap,
  .pd-page .vip-page-wrap.container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .pd-shell {
    gap: 12px;
  }

  .pd-hero {
    padding: 16px 14px 14px;
    gap: 12px;
  }

  .pd-number {
    font-size: clamp(1.5rem, 7.4vw, 2rem);
    letter-spacing: 0.08em;
  }

  .pd-stats,
  .pd-stats.has-four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .pd-stat {
    min-height: 52px;
    padding: 7px 4px;
    border-radius: 10px;
  }

  .pd-stat-label {
    font-size: 10px;
  }

  .pd-stat-value {
    font-size: clamp(11px, 3vw, 13px);
  }

  .pd-buy,
  .pd-details,
  .pd-seller {
    padding: 14px;
  }

  .action-btn-large {
    min-height: 48px;
    font-size: 13px;
    padding: 10px 8px;
  }

  .pd-cta-row {
    gap: 8px;
  }

  .pd-meta {
    gap: 8px;
    margin-bottom: 12px;
  }

  .similar-products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .similar-products-grid .simple-number-card:hover {
    transform: none;
  }
}

/* 360–414 */
@media (max-width: 414px) {
  .pd-badge {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .pd-price-value {
    font-size: clamp(24px, 7.2vw, 30px);
  }
}

/* 320–359 */
@media (max-width: 359.98px) {
  .pd-page .container.vip-page-wrap,
  .pd-page .vip-page-wrap.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .pd-hero,
  .pd-buy,
  .pd-details,
  .pd-seller {
    padding: 12px;
    border-radius: 14px;
  }

  .pd-number {
    font-size: clamp(1.35rem, 7.6vw, 1.6rem);
    letter-spacing: 0.06em;
  }

  .pd-stat {
    min-height: 48px;
    padding: 6px 3px;
  }

  .pd-stat-value {
    font-size: 11px;
  }

  .action-btn-large {
    font-size: 12px;
    gap: 5px;
    min-height: 46px;
  }

  .pd-avail {
    font-size: 12px;
  }

  .login-prompt-content {
    padding: 22px 16px;
  }

  a.login-prompt-btn,
  button.login-prompt-cancel {
    min-width: 0;
    flex: 1 1 110px;
  }
}
