/**
 * Luxury Persian Mobile & Accessory Storefront - PDP (Product Detail Page) CSS
 * RTL-first, Glassmorphism trust seals, Loupe zoom styling, and Mobile Sticky Buy Bar.
 */

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */
.pdp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #64748b);
  padding: 14px 0 20px 0;
  border-bottom: 1px solid var(--color-border-subtle, #f1f5f9);
  margin-bottom: 24px;
  direction: rtl;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pdp-breadcrumb a {
  color: var(--color-text-muted, #64748b);
  text-decoration: none;
  transition: color 150ms ease;
}

.pdp-breadcrumb a:hover {
  color: var(--bento-amber, #b45309);
}

.pdp-breadcrumb-sep {
  font-size: 0.7rem;
  color: var(--text-muted, #78716c);
}

/* ==========================================================================
   PDP Main Layout Grid
   ========================================================================== */
.pdp-main-grid {
  display: grid;
  grid-template-columns: 420px 1fr 340px;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  direction: rtl;
}

@media (max-width: 1200px) {
  .pdp-main-grid {
    grid-template-columns: 380px 1fr;
  }
  .pdp-sticky-buy-box {
    grid-column: span 2;
  }
}

@media (max-width: 868px) {
  .pdp-main-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .pdp-gallery-wrap,
  .pdp-details-column,
  .pdp-sticky-buy-box {
    min-width: 0;
    max-width: 100%;
  }
  .pdp-sticky-buy-box {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.pdp-gallery-wrap {
  display: flex;
  flex-direction: row-reverse;
  gap: 16px;
  position: sticky;
  top: 90px;
}

@media (max-width: 868px) {
  .pdp-gallery-wrap {
    flex-direction: column;
    position: static;
  }
}

.pdp-thumbs-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 868px) {
  .pdp-thumbs-rail {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding-bottom: 6px;
    overflow-x: auto;
  }
  .pdp-thumb-item {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }
  .pdp-main-stage {
    flex: none !important;
    width: 100%;
    height: 280px !important;
    border-radius: 16px;
  }
}

.pdp-thumb-item {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle, rgba(24, 24, 27, 0.10));
  background: var(--bg-surface, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  transition: all 180ms ease;
}

.pdp-thumb-item.active {
  border: 2px solid var(--bento-amber, #b45309);
  box-shadow: 0 0 0 3px var(--bento-amber-soft, rgba(180, 83, 9, 0.14));
}

.pdp-thumb-item img,
.pdp-thumb-item svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdp-gallery-stage,
.pdp-main-stage {
  flex: 1;
  height: 420px;
  background: var(--warm-stage-bg, radial-gradient(circle at 50% 45%, #fcfaf6 22%, #f1ebe0 100%));
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 18px;
  box-shadow: var(--bento-shadow, 0 12px 30px -14px rgba(42, 34, 24, 0.10), 0 2px 8px rgba(42, 34, 24, 0.03));
}

.pdp-gallery-stage img,
.pdp-main-stage img {
  border-radius: 14px;
  filter: var(--warm-cutout-shadow, drop-shadow(0 12px 18px rgba(34, 26, 18, 0.16)));
}

.pdp-stage-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

/* ==========================================================================
   Center Configurator Column
   ========================================================================== */
.pdp-details-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-title-main {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--color-text-main, #18181b);
}

.pdp-title-en {
  font-size: 0.85rem;
  color: var(--color-text-muted, #64748b);
  direction: ltr;
  text-align: right;
  font-family: monospace, sans-serif;
}

.pdp-meta-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #64748b);
  border-bottom: 1px solid var(--color-border-subtle, #f1f5f9);
  padding-bottom: 14px;
}

.pdp-meta-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #d97706;
}

/* Variant Groups */
.pdp-variant-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-variant-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-main, #18181b);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdp-variant-label span {
  font-weight: 600;
  color: var(--text-primary, #18181b);
}

.pdp-variant-label strong {
  color: var(--bento-amber, #b45309) !important;
  font-weight: 800;
}

.pdp-options-pill-grid,
.pdp-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-pill-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1.5px solid var(--border-subtle, rgba(24, 24, 27, 0.14));
  background: var(--bg-surface, #ffffff);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary, #18181b);
  cursor: pointer;
  transition: all 180ms ease;
  font-family: inherit;
}

#pdpModelsGrid .pdp-pill-btn {
  border-radius: 9999px;
}

.pdp-pill-btn:hover {
  border-color: var(--bento-amber, #b45309);
  color: var(--bento-amber, #b45309);
}

.pdp-pill-btn.is-active {
  border-color: var(--bento-cobalt, #1d4ed8);
  background: var(--bento-cobalt-soft, rgba(29, 78, 216, 0.09));
  color: var(--bento-cobalt, #1d4ed8);
  box-shadow: 0 0 0 1px var(--bento-cobalt, #1d4ed8);
}

/* Color Swatches */
.pdp-colors-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pdp-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pdp-partno-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .pdp-partno-grid {
    grid-template-columns: 1fr;
  }
}

.pdp-color-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle, rgba(24, 24, 27, 0.12));
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  transition: all 180ms ease;
}

.pdp-color-card:hover,
.pdp-partno-card:hover {
  border-color: rgba(180, 83, 9, 0.45);
  background: #fcfaf6;
}

.pdp-color-card.is-active {
  border-color: var(--bento-amber, #b45309);
  background: var(--bento-amber-soft, rgba(180, 83, 9, 0.08));
  box-shadow: 0 0 0 1px var(--bento-amber, #b45309);
}

.pdp-color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.pdp-color-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary, #18181b);
}

/* Part Number Cards */
.pdp-partno-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle, rgba(24, 24, 27, 0.12));
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  transition: all 180ms ease;
  flex: 1;
  min-width: 200px;
}

.pdp-partno-card.is-active {
  border-color: var(--bento-cobalt, #1d4ed8);
  background: var(--bento-cobalt-soft, rgba(29, 78, 216, 0.08));
  box-shadow: 0 0 0 1px var(--bento-cobalt, #1d4ed8);
}

.pdp-partno-head {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary, #18181b);
}

.pdp-partno-desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary, #57534e);
  line-height: 1.4;
}

/* Key Highlights Callouts */
.pdp-highlights-box {
  background: var(--bg-surface-muted, #f2ede3);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  margin-top: 10px;
}

.pdp-highlights-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--bento-amber, #b45309);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdp-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary, #57534e);
}

.pdp-highlights-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Sticky Buy Box (Desktop Column 3)
   ========================================================================== */
.pdp-sticky-buy-box {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

@media (max-width: 1200px) {
  .pdp-sticky-buy-box {
    position: static;
  }
}

.pdp-seller-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
}

.pdp-seller-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary, #18181b);
}

.pdp-price-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-price-amount,
.pdp-main-price,
.pdp-price,
#pdpPriceHero {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary, #18181b);
}

.pdp-price-amount small,
.pdp-main-price small,
.pdp-price small,
#pdpPriceHero small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #57534e);
  white-space: nowrap;
  flex-shrink: 0;
}

.pdp-snapppay-breakdown-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdp-snapppay-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdp-snapppay-title,
#pdpSnappPayWidget .pdp-snapppay-title,
.snapp-pay-widget .pdp-snapppay-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #be123c;
}

.pdp-snapppay-subtitle,
#pdpSnappPayWidget .pdp-snapppay-subtitle,
.snapp-pay-widget .pdp-snapppay-subtitle {
  font-size: 0.78rem;
  color: #881337;
}

.pdp-snapppay-amount,
#pdpSnappPayHero {
  font-size: 0.88rem;
  font-weight: 900;
  text-align: left;
  color: #be123c;
}

.pdp-buy-action-btn,
#pdpDesktopBuyBtn {
  width: 100%;
  padding: 15px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px -4px rgba(24, 24, 27, 0.30);
  transition: all 180ms ease;
  font-family: inherit;
  text-decoration: none;
}

.pdp-buy-action-btn:hover,
#pdpDesktopBuyBtn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 8px 22px -4px rgba(180, 83, 9, 0.40);
}

/* Simulated IMEI Verification Box */
.pdp-imei-box {
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-surface-muted, #f2ede3);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
}

.pdp-imei-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary, #57534e);
  margin-bottom: 6px;
}

.pdp-imei-form {
  display: flex;
  gap: 6px;
}

.pdp-imei-input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-default, rgba(24, 24, 27, 0.16));
  font-family: monospace, sans-serif;
  font-size: 0.8rem;
  outline: none;
  direction: ltr;
}

.pdp-imei-btn {
  padding: 6px 12px;
  border-radius: 9999px;
  background: #18181b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.pdp-imei-result {
  font-size: 0.72rem;
  margin-top: 6px;
  display: none;
  font-weight: 600;
}

/* ==========================================================================
   Deep Technical Specification Tabs
   ========================================================================== */
.pdp-tabs-container {
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  padding-top: 32px;
  direction: rtl;
}

.pdp-tab-headers {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  margin-bottom: 28px;
}

.pdp-tab-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-secondary, #57534e);
  padding: 12px 4px;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color 150ms ease;
}

.pdp-tab-btn.is-active {
  color: var(--bento-amber, #b45309);
}

.pdp-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bento-amber, #b45309);
}

.pdp-tab-content {
  display: none;
}

.pdp-tab-content.is-active {
  display: block;
  animation: fadeInPdpTab 220ms ease;
}

@keyframes fadeInPdpTab {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdp-specs-group {
  margin-bottom: 28px;
}

.pdp-specs-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #18181b);
  margin-bottom: 14px;
}

.pdp-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface, #ffffff);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
}

.pdp-specs-table tr:nth-child(even) {
  background: var(--bg-surface-muted, #f2ede3);
}

.pdp-specs-table td {
  padding: 14px 18px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.07));
}

.pdp-specs-table td:first-child {
  width: 240px;
  font-weight: 700;
  color: var(--text-secondary, #57534e);
}

.pdp-specs-table td:last-child {
  color: var(--text-primary, #18181b);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .pdp-main-stage {
    flex: none !important;
    width: 100%;
    height: 250px !important;
  }
  .pdp-stage-badges {
    top: 8px;
    right: 8px;
    left: 8px;
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 16px);
  }
  .badge-hamta,
  .pdp-stage-badges .badge-discount {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
  }
  .pdp-title-main {
    font-size: 1.08rem;
    line-height: 1.55;
  }
  .pdp-title-en {
    font-size: 0.72rem;
  }
  .pdp-meta-strip {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
  }
  .pdp-options-pill-grid,
  .pdp-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  #pdpModelsGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  #pdpModelsGrid .pdp-pill-btn {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
  .pdp-pill-btn {
    padding: 8px 4px;
    font-size: 0.78rem;
  }
  .pdp-colors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .pdp-partno-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pdp-color-card {
    padding: 6px 10px;
  }
  .pdp-color-name {
    font-size: 0.75rem;
  }
  .pdp-imei-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pdp-imei-input-group {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .pdp-imei-input-group input {
    flex: 1;
    min-width: 0;
  }
  .pdp-partno-card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    padding: 10px 12px;
  }
  .pdp-partno-head {
    font-size: 0.85rem;
  }
  .pdp-partno-desc {
    font-size: 0.72rem;
  }
  .pdp-specs-table tr {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  }
  .pdp-specs-table td {
    padding: 8px 12px;
    border-bottom: none;
    font-size: 0.78rem;
  }
  .pdp-specs-table td:first-child {
    width: 100%;
    font-weight: 800;
    color: var(--text-secondary, #57534e);
    background: var(--bg-surface-muted, #f2ede3);
    padding-bottom: 4px;
  }
  .pdp-specs-table td:last-child {
    width: 100%;
    padding-top: 4px;
    padding-bottom: 8px;
  }
  .pdp-sticky-buy-box {
    padding: 0;
    border-radius: 0;
  }
  .buybox-card {
    padding: 16px;
    border-radius: 20px;
  }
  .pdp-sticky-buy-box .pdp-btn-add-cart {
    display: none !important;
  }
  .pdp-tab-headers {
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .pdp-tab-btn {
    font-size: 0.82rem;
    padding: 8px 2px;
  }
}

/* ==========================================================================
   Mobile In-Flow Buy Bar (Scrolls Naturally with Page)
   ========================================================================== */
.pdp-mobile-sticky-bar {
  display: none;
  position: relative !important;
  width: 100%;
  margin: 16px 0;
  background: var(--bg-surface, #ffffff);
  padding: 14px 16px;
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  border-radius: 20px;
  box-shadow: var(--bento-shadow, 0 12px 30px -14px rgba(42, 34, 24, 0.10));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: rtl;
}

@media (max-width: 768px) {
  body.pdp-page .mobile-bottom-dock {
    display: none !important;
  }
  .pdp-mobile-sticky-bar {
    display: flex;
    position: relative !important;
  }
  .pdp-sticky-buy-box .pdp-btn-add-cart {
    display: none !important;
  }
}

.pdp-mobile-price-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pdp-mobile-price-val,
#pdpMobilePrice {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary, #18181b);
}

.pdp-mobile-price-val small,
#pdpMobilePrice small {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdp-mobile-snapp-val {
  font-size: 0.68rem;
  color: #be123c;
  font-weight: 700;
}

.pdp-mobile-buy-btn,
#pdpMobileBuyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(24, 24, 27, 0.30);
}

.pdp-mobile-buy-btn:hover,
#pdpMobileBuyBtn:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

@media (max-width: 768px) {
  .pdp-price-amount,
  .pdp-main-price,
  .pdp-price,
  #pdpPriceHero {
    font-size: 1.3rem;
  }
  .pdp-price-amount small,
  .pdp-main-price small,
  .pdp-price small {
    font-size: 0.82rem;
  }
  .pdp-snapppay-title,
  #pdpSnappPayWidget .pdp-snapppay-title,
  .snapp-pay-widget .pdp-snapppay-title {
    font-size: 0.82rem;
  }
  .pdp-snapppay-subtitle,
  #pdpSnappPayWidget .pdp-snapppay-subtitle,
  .snapp-pay-widget .pdp-snapppay-subtitle {
    font-size: 0.72rem;
  }
  .pdp-snapppay-amount,
  #pdpSnappPayHero {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .pdp-price-amount,
  .pdp-main-price,
  .pdp-price,
  #pdpPriceHero {
    font-size: 1.2rem;
  }
  .pdp-snapppay-title,
  #pdpSnappPayWidget .pdp-snapppay-title,
  .snapp-pay-widget .pdp-snapppay-title {
    font-size: 0.78rem;
  }
  .pdp-snapppay-subtitle,
  #pdpSnappPayWidget .pdp-snapppay-subtitle,
  .snapp-pay-widget .pdp-snapppay-subtitle {
    font-size: 0.68rem;
  }
  .pdp-snapppay-amount,
  #pdpSnappPayHero {
    font-size: 0.76rem;
  }
  .pdp-mobile-sticky-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .pdp-mobile-price-val {
    font-size: 0.98rem;
  }
  .pdp-mobile-snapp-val {
    font-size: 0.65rem;
  }
  .pdp-mobile-buy-btn,
  #pdpMobileBuyBtn {
    padding: 10px 14px;
    font-size: 0.86rem;
  }
}

.buybox-card,
.pdp-editorial-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--bento-shadow, 0 12px 30px -14px rgba(42, 34, 24, 0.10), 0 2px 8px rgba(42, 34, 24, 0.03));
}

.buybox-card {
  position: sticky;
  top: 90px;
}

@media (max-width: 1200px) {
  .buybox-card {
    position: static;
  }
}

.buybox-card .price-box {
  background: var(--bg-surface-muted, #f2ede3);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  border-radius: 16px;
  padding: 14px;
}

.buybox-card .snapppay-widget {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 12px 14px;
}

.pdp-installment-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pdp-inst-badge {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.10));
  background: var(--bg-surface-muted, #f2ede3);
  color: var(--text-primary, #18181b);
}

.pdp-inst-badge.is-snapp {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}

.pdp-inst-badge.is-torob {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.25);
  background: rgba(180, 83, 9, 0.10);
}

.pdp-inst-badge.is-digipay {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.25);
  background: rgba(29, 78, 216, 0.09);
}

.pdp-specs-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted, #78716c);
  background: var(--bg-surface, #ffffff);
  border-radius: 18px;
  border: 1px dashed var(--border-default, rgba(24, 24, 27, 0.16));
  font-size: 0.875rem;
}

/* ==========================================================================
   Dark Mode Overrides (Warm Editorial 3B Bento Sand)
   ========================================================================== */
[data-theme="dark"] .pdp-breadcrumb {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .pdp-gallery-stage,
[data-theme="dark"] .pdp-main-stage {
  background: var(--warm-stage-bg, radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%)), #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .pdp-sticky-buy-box {
  background: transparent;
  border-color: transparent;
}

[data-theme="dark"] .buybox-card,
[data-theme="dark"] .pdp-editorial-card,
[data-theme="dark"] .pdp-specs-table,
[data-theme="dark"] .pdp-mobile-sticky-bar {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .buybox-card .price-box {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .buybox-card .snapppay-widget {
  background: rgba(159, 18, 57, 0.22);
  border-color: rgba(244, 63, 94, 0.35);
}

[data-theme="dark"] .pdp-inst-badge {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-inst-badge.is-snapp {
  background: rgba(159, 18, 57, 0.25);
  border-color: #9f1239;
  color: #fda4af;
}

[data-theme="dark"] .pdp-inst-badge.is-torob {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

[data-theme="dark"] .pdp-inst-badge.is-digipay {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

[data-theme="dark"] .pdp-specs-empty {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.14);
  color: #a1a1aa;
}

[data-theme="dark"] .pdp-specs-table tr:nth-child(even) {
  background: #202632;
}

[data-theme="dark"] .pdp-specs-table td {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .pdp-thumb-item {
  background: #f6f3ec;
  border-color: rgba(255, 255, 255, 0.25);
  color: #18181b;
}

[data-theme="dark"] .pdp-pill-btn,
[data-theme="dark"] .pdp-color-card,
[data-theme="dark"] .pdp-partno-card {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-color-card:hover,
[data-theme="dark"] .pdp-partno-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: #202632;
}

[data-theme="dark"] .pdp-thumb-item.active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

[data-theme="dark"] .pdp-color-card.is-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
  color: #f4f4f5;
  box-shadow: 0 0 0 1px #f59e0b;
}

[data-theme="dark"] .pdp-pill-btn.is-active,
[data-theme="dark"] .pdp-partno-card.is-active {
  background: rgba(96, 165, 250, 0.14);
  border-color: #60a5fa;
  color: #f4f4f5;
  box-shadow: 0 0 0 1px #60a5fa;
}

[data-theme="dark"] .pdp-color-name,
[data-theme="dark"] .pdp-partno-head,
[data-theme="dark"] .pdp-title-main,
[data-theme="dark"] .pdp-price-amount,
[data-theme="dark"] .pdp-specs-group-title,
[data-theme="dark"] .pdp-specs-table td:last-child,
[data-theme="dark"] .pdp-mobile-price-val {
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-price-amount small,
[data-theme="dark"] .pdp-main-price small,
[data-theme="dark"] #pdpPriceHero small {
  color: #a1a1aa;
}

[data-theme="dark"] .pdp-highlights-box,
[data-theme="dark"] .pdp-imei-box {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .pdp-highlights-title,
[data-theme="dark"] .pdp-seller-badge,
[data-theme="dark"] .pdp-variant-label,
[data-theme="dark"] .pdp-variant-label span {
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-highlights-title {
  color: #fbbf24;
}

[data-theme="dark"] .pdp-variant-label strong {
  color: #fbbf24 !important;
}

[data-theme="dark"] .pdp-highlights-list,
[data-theme="dark"] .pdp-specs-table td:first-child,
[data-theme="dark"] .pdp-partno-desc {
  color: #a1a1aa;
}

[data-theme="dark"] .pdp-snapppay-breakdown-card {
  background: rgba(159, 18, 57, 0.22);
  border-color: rgba(244, 63, 94, 0.35);
}

[data-theme="dark"] .pdp-price-amount,
[data-theme="dark"] .pdp-main-price,
[data-theme="dark"] .pdp-price,
[data-theme="dark"] #pdpPriceHero {
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-buy-action-btn,
[data-theme="dark"] #pdpDesktopBuyBtn,
[data-theme="dark"] .pdp-mobile-buy-btn,
[data-theme="dark"] #pdpMobileBuyBtn {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%);
  color: #ffffff;
}

[data-theme="dark"] .pdp-tab-btn {
  color: #a1a1aa;
}

[data-theme="dark"] .pdp-tab-btn.is-active {
  color: #fbbf24;
}

[data-theme="dark"] .pdp-tab-btn.is-active::after {
  background: #fbbf24;
}

[data-theme="dark"] .pdp-snapppay-title,
[data-theme="dark"] .pdp-snapppay-amount,
[data-theme="dark"] #pdpSnappPayHero,
[data-theme="dark"] .pdp-mobile-snapp-val {
  color: #fda4af;
}

[data-theme="dark"] .pdp-snapppay-subtitle {
  color: #fecdd3;
}

/* ==========================================================================
   Installment Note & Consistent Icon Capsule / Pill Geometry
   ========================================================================== */
.pdp-installment-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted, #475569);
  text-align: center;
  line-height: 1.5;
}

[data-theme="dark"] .pdp-installment-note {
  color: #cbd5e1;
}

/* Desktop (> 900px): Oval / Pill (9999px) for PDP capsules & buttons */
@media (min-width: 901px) {
  body.pdp-page .hotline-badge,
  body.pdp-page .theme-toggle-header-btn,
  body.pdp-page .account-btn,
  body.pdp-page .cart-header-btn,
  body.pdp-page .btn-icon,
  body.pdp-page .omnisearch-clear-btn,
  body.pdp-page .cart-drawer-close,
  body.pdp-page .card-buy-btn-icon,
  body.pdp-page .pdp-pill-btn,
  body.pdp-page .pdp-inst-badge,
  body.pdp-page .pdp-buy-action-btn,
  body.pdp-page .pdp-trigger-buy,
  body.pdp-page .pdp-imei-btn,
  body.pdp-page .bundle-checkout-bar .btn-primary,
  body.pdp-page .badge-bundle-tag {
    border-radius: 9999px !important;
  }
}

/* Mobile & Tablet (<= 900px): Circular (50%) for icon-only controls, no boxy squares */
@media (max-width: 900px) {
  body.pdp-page .mobile-top-bar .btn-icon,
  body.pdp-page .mobile-top-bar .mobile-theme-btn,
  body.pdp-page .mobile-top-bar .cart-header-btn,
  body.pdp-page .btn-icon,
  body.pdp-page .mobile-theme-btn,
  body.pdp-page .omnisearch-clear-btn,
  body.pdp-page .cart-drawer-close,
  body.pdp-page .card-buy-btn-icon,
  body.pdp-page .theme-icon-box {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.pdp-page .pdp-mobile-buy-btn,
  body.pdp-page #pdpMobileBuyBtn,
  body.pdp-page .pdp-pill-btn,
  body.pdp-page .pdp-inst-badge,
  body.pdp-page .pdp-trigger-buy,
  body.pdp-page .pdp-view-cart-link,
  body.pdp-page .pdp-restock-btn,
  body.pdp-page .pdp-mobile-restock-btn,
  body.pdp-page .pdp-bundle-pop-add,
  body.pdp-page .pdp-bundle-pop-cart-btn,
  body.pdp-page .pdp-bundle-pop-later-btn {
    border-radius: 9999px !important;
  }
}

/* ==========================================================================
   PDP Inline Quantity Stepper (Synced with Cart Engine)
   ========================================================================== */
.pdp-buy-action-wrap {
  width: 100%;
}

.pdp-mobile-buy-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  flex-shrink: 0;
}

.pdp-inline-stepper-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border-radius: 9999px;
  background: var(--bg-surface-muted, #f2ede3);
  border: 1.5px solid var(--bento-amber, #b45309);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.12);
}

.pdp-inline-stepper-box.is-mobile {
  width: auto;
  padding: 4px 6px;
  gap: 8px;
}

.pdp-inline-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pdp-stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, background 150ms ease;
  flex-shrink: 0;
}

.pdp-inline-stepper-box.is-mobile .pdp-stepper-btn {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.pdp-stepper-btn:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.pdp-stepper-btn:active {
  transform: scale(0.94);
}

.pdp-stepper-btn.is-trash {
  background: #fee2e2;
  color: #be123c;
}

.pdp-stepper-qty {
  min-width: 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-primary, #18181b);
}

.pdp-view-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 9999px;
  border: none;
  background: var(--bento-cobalt-soft, rgba(29, 78, 216, 0.09));
  color: var(--bento-cobalt, #1d4ed8);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.pdp-inline-stepper-box.is-mobile .pdp-view-cart-link {
  padding: 6px 10px;
  font-size: 0.75rem;
}

.pdp-view-cart-link:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* ==========================================================================
   Out-of-Stock Restock SMS Alert Box
   ========================================================================== */
.pdp-restock-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid rgba(180, 83, 9, 0.28);
  direction: rtl;
}

.pdp-restock-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-restock-badge {
  padding: 2px 10px;
  border-radius: 9999px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.pdp-restock-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: #92400e;
}

.pdp-restock-desc {
  font-size: 0.76rem;
  line-height: 1.65;
  color: #78350f;
  margin: 0;
}

.pdp-restock-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-restock-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9999px;
  border: 1.5px solid rgba(180, 83, 9, 0.35);
  background: #ffffff;
  color: #18181b;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.pdp-restock-input:focus {
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.14);
}

.pdp-restock-btn {
  padding: 10px 16px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 140ms ease, opacity 140ms ease;
}

.pdp-restock-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pdp-restock-btn.is-done {
  background: #059669;
}

.pdp-restock-feedback {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.55;
}

.pdp-restock-feedback.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.pdp-restock-feedback.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pdp-mobile-restock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   Contextual "خریدت رو کامل‌تر کن" Non-Blocking Popover
   ========================================================================== */
.pdp-bundle-popover {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 99990;
  width: 390px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(180, 83, 9, 0.24);
  box-shadow: 0 20px 44px -8px rgba(42, 34, 24, 0.20), 0 4px 16px rgba(180, 83, 9, 0.10);
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-bundle-popover.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pdp-bundle-pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pdp-bundle-pop-head-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-bundle-pop-added-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.7rem;
  font-weight: 800;
}

.pdp-bundle-pop-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-primary, #18181b);
}

.pdp-bundle-pop-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.10));
  background: var(--bg-surface-muted, #f2ede3);
  color: var(--text-secondary, #57534e);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-bundle-pop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-bundle-pop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--bg-surface-subtle, #f6f3ec);
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
}

.pdp-bundle-pop-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle, rgba(24, 24, 27, 0.09));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.pdp-bundle-pop-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdp-bundle-pop-info {
  flex: 1;
  min-width: 0;
}

.pdp-bundle-pop-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #18181b);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdp-bundle-pop-price {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--bento-amber, #b45309);
  margin-top: 2px;
}

.pdp-bundle-pop-add {
  padding: 7px 12px;
  border-radius: 9999px;
  border: none;
  background: #18181b;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms ease, transform 140ms ease;
}

.pdp-bundle-pop-add:hover:not(:disabled) {
  background: #b45309;
  transform: translateY(-1px);
}

.pdp-bundle-pop-add.is-added {
  background: #059669;
  cursor: default;
}

.pdp-bundle-pop-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-bundle-pop-cart-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9999px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.pdp-bundle-pop-later-btn {
  padding: 9px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-default, rgba(24, 24, 27, 0.16));
  background: transparent;
  color: var(--text-secondary, #57534e);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .pdp-bundle-popover {
    bottom: 14px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    width: auto;
    max-width: none;
    padding: 14px;
  }
  .pdp-mobile-sticky-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pdp-inline-stepper-box.is-mobile {
    gap: 6px;
  }
}

/* Dark Theme Overrides for Stepper, Restock & Bundle Popover */
[data-theme="dark"] .pdp-inline-stepper-box {
  background: #202632;
  border-color: #f59e0b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .pdp-stepper-btn {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: #ffffff;
}

[data-theme="dark"] .pdp-stepper-qty {
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-stepper-btn.is-trash {
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
}

[data-theme="dark"] .pdp-view-cart-link {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

[data-theme="dark"] .pdp-view-cart-link:hover {
  background: #3b82f6;
  color: #ffffff;
}

[data-theme="dark"] .pdp-restock-box {
  background: rgba(180, 83, 9, 0.18);
  border-color: rgba(245, 158, 11, 0.42);
}

[data-theme="dark"] .pdp-restock-title {
  color: #fbbf24;
}

[data-theme="dark"] .pdp-restock-desc {
  color: #fde68a;
}

[data-theme="dark"] .pdp-restock-input {
  background: #181c24;
  border-color: rgba(245, 158, 11, 0.42);
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-restock-feedback.is-success {
  background: rgba(6, 95, 70, 0.3);
  border-color: #059669;
  color: #a7f3d0;
}

[data-theme="dark"] .pdp-restock-feedback.is-error {
  background: rgba(153, 27, 27, 0.3);
  border-color: #dc2626;
  color: #fecaca;
}

[data-theme="dark"] .pdp-bundle-popover {
  background: rgba(24, 28, 36, 0.97);
  border-color: rgba(245, 158, 11, 0.32);
}

[data-theme="dark"] .pdp-bundle-pop-title,
[data-theme="dark"] .pdp-bundle-pop-name {
  color: #f4f4f5;
}

[data-theme="dark"] .pdp-bundle-pop-price {
  color: #fbbf24;
}

[data-theme="dark"] .pdp-bundle-pop-close {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
}

[data-theme="dark"] .pdp-bundle-pop-item {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .pdp-bundle-pop-thumb {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .pdp-bundle-pop-add {
  background: #b45309;
  color: #ffffff;
}

[data-theme="dark"] .pdp-bundle-pop-cart-btn {
  background: #1d4ed8;
}

[data-theme="dark"] .pdp-bundle-pop-later-btn {
  border-color: rgba(255, 255, 255, 0.16);
  color: #d4d4d8;
}

/* ==========================================================================
   Reviews, Q&A & Review Chips Bento Sand Harmonization (body.pdp-page)
   ========================================================================== */
body.pdp-page .reviews-scorecard-grid,
body.pdp-page .review-item-card,
body.pdp-page .qa-card {
  background: var(--bg-surface, #ffffff);
  border-color: var(--border-subtle, rgba(24, 24, 27, 0.09));
  border-radius: 22px;
  box-shadow: var(--bento-shadow, 0 12px 30px -14px rgba(42, 34, 24, 0.08));
}

body.pdp-page .review-taxonomy-grid {
  background: var(--bg-surface-muted, #f2ede3);
  border-color: var(--border-subtle, rgba(24, 24, 27, 0.09));
  border-radius: 14px;
}

body.pdp-page .review-chip,
body.pdp-page .review-chip-pill,
body.pdp-page .taxonomy-chip {
  border-radius: 9999px;
}

body.pdp-page .btn-write-review {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border-radius: 9999px;
  box-shadow: 0 4px 12px -4px rgba(24, 24, 27, 0.28);
}

body.pdp-page .btn-write-review:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

body.pdp-page .qa-answer-box {
  background: var(--bento-cobalt-soft, rgba(29, 78, 216, 0.08));
  border-color: rgba(29, 78, 216, 0.22);
  border-radius: 16px;
}

body.pdp-page .qa-expert-badge {
  color: var(--bento-cobalt, #1d4ed8);
}

body.pdp-page .qa-answer-text {
  color: var(--text-primary, #18181b);
}

[data-theme="dark"] body.pdp-page .reviews-scorecard-grid,
[data-theme="dark"] body.pdp-page .review-item-card,
[data-theme="dark"] body.pdp-page .qa-card {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] body.pdp-page .review-taxonomy-grid,
[data-theme="dark"] body.pdp-page .qa-answer-box {
  background: #202632;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] body.pdp-page .qa-expert-badge {
  color: #93c5fd;
}

[data-theme="dark"] body.pdp-page .qa-answer-text {
  color: #e4e4e7;
}

[data-theme="dark"] body.pdp-page .btn-write-review {
  background: linear-gradient(135deg, #b45309 0%, #1d4ed8 100%);
}
