/* Legacy product-detail rules moved out of the global pages bundle. v2 rules below override these. */
/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0; }
.product-gallery { position: relative; }
.product-gallery-main {
  aspect-ratio: 1; background: var(--bg-tertiary); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--border); position: relative;
}
.product-gallery-main img { width: 85%; height: 85%; object-fit: contain; transition: transform 0.35s ease; }
.product-gallery-main:hover img { transform: scale(1.18); }
.pd-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: rgba(10,22,40,0.7); color: #fff; display: flex; align-items: center; justify-content: center;
  z-index: 2; cursor: pointer;
}
.pd-gallery-nav.prev { left: 12px; }
.pd-gallery-nav.next { right: 12px; }
[dir="rtl"] .pd-gallery-nav.prev { left: auto; right: 12px; }
[dir="rtl"] .pd-gallery-nav.next { right: auto; left: 12px; }
.pd-gallery-nav:hover { background: var(--accent); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-card);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.product-detail-info { display: flex; flex-direction: column; gap: 16px; }
.product-detail-info .pd-category { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.product-detail-info .pd-name { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.product-detail-info .pd-rating { display: flex; align-items: center; gap: 8px; }
.product-detail-info .pd-rating i { color: #f59e0b; }
.product-detail-info .pd-rating span { color: var(--text-tertiary); font-size: 0.9rem; }
.pd-price-block { display: flex; align-items: baseline; gap: 12px; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--accent); }
.pd-old-price { font-size: 1.2rem; color: var(--text-tertiary); text-decoration: line-through; }
.pd-discount { padding: 4px 12px; background: var(--danger); color: #fff; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; }
.pd-description { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }
.pd-qty { display: flex; align-items: center; gap: 12px; }
.pd-qty label { font-weight: 600; color: var(--text-primary); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary); color: var(--text-primary); font-size: 1rem; cursor: pointer; border: none;
}
.qty-control button:hover { background: var(--accent); color: #fff; }
.qty-control input {
  width: 50px; height: 40px; text-align: center; border: none;
  background: var(--bg-card); color: var(--text-primary); font-weight: 600; font-size: 1rem;
}
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1 1 auto; min-width: 0; justify-content: center; max-width: 100%; }
@media (max-width: 479px) {
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
}
.pd-specs { margin-top: 16px; }
.pd-specs h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 10px 0; font-size: 0.9rem; }
.specs-table td:first-child { font-weight: 600; color: var(--text-primary); width: 40%; }
.specs-table td:last-child { color: var(--text-secondary); }
.pd-description-section,
.pd-files-section {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  padding: 14px;
}
.pd-description-section h4,
.pd-files-section h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.98rem;
}
.pd-description-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}
.pd-files-list {
  display: grid;
  gap: 8px;
}
.pd-file-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 9px 10px;
}
.pd-file-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pd-files-empty {
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

/* Product detail v2 — modular stylesheet (loaded on the product page only) */

/* Isolate v2 from legacy .product-detail grid in pages.css / responsive.css */
.product-detail.product-detail--v2 {
  display: block;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

.product-detail--v2 {
  display: block;
  padding: 0;
}
.product-detail--v2 .product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.product-detail--v2 .product-detail-top > * {
  min-width: 0;
  max-width: 100%;
}
/* Gallery */
.pd-gallery-v2 .pd-gallery-stage {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-magnifier-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

.pd-gallery-v2 .pd-main-image {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.pd-magnifier-lens {
  display: block;
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.15);
  background-repeat: no-repeat;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.12s ease;
  backdrop-filter: blur(1px);
}

.pd-gallery-zoom-host {
  position: relative;
}

/* v2: lens zoom only — no side flyout (avoids duplicate image in RTL) */
.product-detail--v2 .product-gallery-main:hover img,
.product-detail--v2 .pd-gallery-stage:hover .pd-main-image {
  transform: none;
}

.pd-gallery-expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.pd-gallery-expand:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pd-gallery-v2 .pd-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(10, 22, 40, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  border: none;
}

.pd-gallery-v2 .pd-gallery-nav.prev { left: 12px; }
.pd-gallery-v2 .pd-gallery-nav.next { right: 12px; }
[dir="rtl"] .pd-gallery-v2 .pd-gallery-nav.prev { left: auto; right: 12px; }
[dir="rtl"] .pd-gallery-v2 .pd-gallery-nav.next { right: auto; left: 12px; }
.pd-gallery-v2 .pd-gallery-nav:hover { background: var(--accent); }

.pd-gallery-v2 .pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pd-gallery-v2 .pd-thumb {
  flex: 0 0 72px;
  scroll-snap-align: start;  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pd-gallery-v2 .pd-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pd-gallery-v2 .pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info column */
.pd-info-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-info-v2 .pd-category {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.pd-info-v2 .pd-name {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}

.pd-info-v2 .pd-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  max-width: 100%;
}

.pd-meta .pd-rating,
.pd-meta .pd-sku {
  flex: 0 1 auto;
  min-width: 0;
}

.pd-warranty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 8px 12px;
  max-width: 100%;
  border-radius: 8px;
  background: var(--accent-light, rgba(13, 110, 253, 0.1));
  border: 1px solid rgba(13, 110, 253, 0.18);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.pd-warranty__icon {
  flex: 0 0 auto;
  color: var(--accent, #0d6efd);
  font-size: 1rem;
}

.pd-warranty__text {
  min-width: 0;
}

.pd-stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 0.95rem;
}

.pd-stars .fas.fa-star,
.pd-stars .fas.fa-star-half-alt {
  color: #f59e0b;
}

.pd-stars .far.fa-star {
  color: var(--border);
}

.pd-rating-value {
  font-weight: 700;
  color: var(--text-primary);
}

.pd-rating-count {
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.pd-rating-empty {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
}

.pd-info-v2 .pd-sku {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  max-width: 100%;
  line-height: 1.4;
}

.pd-sku__value {
  color: var(--text-secondary);
  font-weight: 600;
  word-break: break-word;
}

.pd-info-v2 .pd-price-block {
  display: block;
  margin-bottom: 8px;
}

.pd-info-v2 .pd-price-block .product-price-display__current {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--accent);
}

.pd-info-v2 .pd-price-block .product-price-display__before-tax {
  font-size: 0.88rem;
  margin-top: 4px;
}

.pd-info-v2 .pd-price-block .product-price-display__vat-hint {
  font-size: 0.8rem;
  margin-top: 2px;
}

.pd-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-color, rgba(0,0,0,.08));
  border-radius: 10px;
  background: rgba(0,0,0,.02);
  font-size: 0.86rem;
  color: var(--text-secondary);
  max-width: 28rem;
}

.pd-price-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pd-price-breakdown__row--final {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color, rgba(0,0,0,.08));
  font-weight: 700;
  color: var(--text-primary, inherit);
}

.pd-info-v2 .pd-price {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--accent);
}

.pd-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  width: fit-content;
}

.pd-stock-badge--available,
.pd-stock-badge--instock {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.pd-stock-badge--lowstock {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.pd-stock-badge--outofstock {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.pd-stock-badge--onrequest {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.pd-short-desc p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.pd-info-v2 .pd-qty {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pd-info-v2 .pd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-info-v2 .pd-actions--cart {
  margin-top: 4px;
  /* Add to cart | Buy now side by side (Radar DR-0029). */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pd-info-v2 .pd-actions--cart .btn {
  width: 100%;
  flex: none;
  min-width: 0;
  min-height: 48px;
  justify-content: center;
}

.pd-info-v2 .pd-btn-buy-now {
  background: var(--bg-footer, #0f172a);
  color: #fff;
  border: 1px solid transparent;
}

.pd-info-v2 .pd-btn-buy-now:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.pd-info-v2 .pd-btn-buy-now:disabled {
  opacity: .55;
  cursor: not-allowed;
}

[data-theme="dark"] .pd-info-v2 .pd-btn-buy-now {
  background: #f8fafc;
  color: #0f172a;
}

.pd-info-v2 .pd-actions--secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pd-info-v2 .pd-actions--secondary .btn {
  width: 100%;
  flex: none;
  min-width: 0;
  min-height: 48px;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.pd-info-v2 .pd-actions--secondary .pd-btn-whatsapp {
  width: 100%;
}

.pd-info-v2 .js-wishlist-toggle i.fa-heart {
  transition: color 0.25s ease;
}

.pd-info-v2 .js-wishlist-toggle.wishlisted,
.pd-info-v2 .js-wishlist-toggle.wishlisted:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.06);
}

.pd-info-v2 .js-wishlist-toggle.wishlisted i.fa-heart {
  color: #ef4444;
}

.btn-whatsapp,
.pd-info-v2 .pd-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}

.btn-whatsapp:hover,
.pd-btn-whatsapp:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
}

/* Split pay (Tamara / Tabby) — matching row dimensions */
.pd-split-pay {
  margin-top: 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-split-pay__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 52px;
  box-sizing: border-box;
}

.pd-split-pay__row--tamara {
  border-color: rgba(214, 122, 255, 0.35);
  background: linear-gradient(90deg, rgba(248, 240, 255, 0.9) 0%, var(--bg-card) 55%);
}

.pd-split-pay__row--tabby {
  border-color: rgba(62, 255, 191, 0.4);
  background: linear-gradient(90deg, rgba(232, 255, 248, 0.95) 0%, var(--bg-card) 55%);
}

[data-theme="dark"] .pd-split-pay__row--tamara,
[data-theme="dark"] .pd-split-pay__row--tabby {
  background: var(--bg-tertiary);
}

.pd-split-pay__logo {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  line-height: 1;
  color: #6b21a8;
}

.pd-split-pay__logo--tamara {
  background: linear-gradient(135deg, #d946ef 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-split-pay__logo--tabby {
  color: #00c48c;
  font-weight: 900;
}

.pd-split-pay__text,
.pd-split-pay__tabby-promo,
.pd-split-pay__tamara-promo {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Keep official Tabby / Tamara snippets in the same text column size */
.pd-split-pay__tabby-promo,
.pd-split-pay__tamara-promo {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pd-split-pay__tabby-promo > *,
.pd-split-pay__tamara-promo > * {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

/* Tabby row = same card as Tamara: the official snippet (with its own logo) fills the row,
   no separate "tabby" wordmark beside it. */
.pd-split-pay__tabby-promo > :empty {
  display: none !important;
}

.pd-split-pay__tabby-promo [class*="containerPortal"] {
  width: 100%;
}

.pd-split-pay__text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pd-split-pay__amount {
  color: var(--accent);
}

.pd-split-pay__muted {
  color: var(--text-tertiary);
  font-size: 0.85em;
}

.pd-split-pay__footnote {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.pd-pickup-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 163, 74, 0.22);
  background: rgba(34, 197, 94, 0.08);
  color: var(--text-secondary);
  min-width: 0;
  max-width: 100%;
}

.pd-pickup-benefit__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
  font-size: 0.88rem;
}

.pd-pickup-benefit__label {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  min-width: 0;
  word-break: break-word;
}

/* Social share */
.pd-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 4px;
}

.pd-share__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pd-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-share__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
}

.pd-share__btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

.pd-share__btn--facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.pd-share__btn--whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.pd-share__btn--x:hover {
  background: #0f1419;
  border-color: #0f1419;
  color: #fff;
}

.pd-share__btn--copy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pd-share__toast {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  min-height: 1.2em;
}

/* Shipping & returns link */
.pd-policy-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.pd-policy-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
}

.pd-policy-link__arrow {
  margin-inline-start: auto;
  font-size: 0.75rem;
  opacity: 0.7;
}

[dir="rtl"] .pd-policy-link__arrow {
  transform: scaleX(-1);
}

.pd-info-v2 .pd-brand {
  font-size: 0.88rem;
}

.pd-brand-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.pd-brand-block__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.pd-brand-block__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

/* Tabs */
.pd-page-section {
  padding-top: 24px;
  padding-bottom: 8px;
}

.pd-page-section.section,
.pd-tabs-section.section,
.pd-related-section.section {
  overflow-x: clip;
}

.pd-page-section .container,
.pd-tabs-section .container,
.pd-related-section .container {
  min-width: 0;
  max-width: 100%;
}

.pd-tabs-section {
  padding-top: 0;
  padding-bottom: 32px;
}

.pd-tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.pd-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.pd-tab {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.pd-tab:hover {
  color: var(--accent);
  background: var(--bg-card);
}

.pd-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-card);
}

.pd-tabs-panels {
  padding: 24px;
}

.pd-tab-panel {
  display: none;
  animation: pdTabIn 0.25s ease;
}

.pd-tab-panel.active {
  display: block;
}

@keyframes pdTabIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pd-tab-empty {
  margin: 0;
  color: var(--text-tertiary);
  text-align: center;
  padding: 24px 12px;
}

.pd-reviews-list {
  display: grid;
  gap: 12px;
}

.pd-review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--bg-card);
}

.pd-review-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.pd-review-card__stars {
  color: #f59e0b;
}

.pd-review-card__comment {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.pd-prose {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.pd-prose h1,
.pd-prose h2,
.pd-prose h3 {
  color: var(--text-primary);
  margin: 1.25em 0 0.5em;
  line-height: 1.3;
}

.pd-prose p {
  margin: 0 0 1em;
}

.pd-prose ul,
.pd-prose ol {
  margin: 0 0 1em;
  padding-inline-start: 1.25em;
}

.pd-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.pd-prose iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-sm);
}

/*
 * Same rich-content dark-mode normalization as static pages.
 * Stored editor colors (black text, white backgrounds, HtmlSanitizer rgba rewrites)
 * must not stay unreadable on a dark surface.
 */
[data-theme="dark"] .pd-prose [bgcolor],
[data-theme="dark"] .pd-prose [style*="background-color: rgb(255"],
[data-theme="dark"] .pd-prose [style*="background-color:rgb(255"],
[data-theme="dark"] .pd-prose [style*="background-color: rgba(255"],
[data-theme="dark"] .pd-prose [style*="background-color:rgba(255"],
[data-theme="dark"] .pd-prose [style*="background: rgb(255"],
[data-theme="dark"] .pd-prose [style*="background:rgb(255"],
[data-theme="dark"] .pd-prose [style*="background: rgba(255"],
[data-theme="dark"] .pd-prose [style*="background:rgba(255"],
[data-theme="dark"] .pd-prose [style*="background:#fff"],
[data-theme="dark"] .pd-prose [style*="background: #fff"],
[data-theme="dark"] .pd-prose [style*="background:#ffffff"],
[data-theme="dark"] .pd-prose [style*="background: #ffffff"],
[data-theme="dark"] .pd-prose [style*="background:white"],
[data-theme="dark"] .pd-prose [style*="background: white"],
[data-theme="dark"] .pd-prose [style*="background-color:#fff"],
[data-theme="dark"] .pd-prose [style*="background-color: #fff"],
[data-theme="dark"] .pd-prose [style*="background-color:#ffffff"],
[data-theme="dark"] .pd-prose [style*="background-color: #ffffff"],
[data-theme="dark"] .pd-prose [style*="background-color:white"],
[data-theme="dark"] .pd-prose [style*="background-color: white"],
[data-theme="dark"] .pd-prose .bg-white,
[data-theme="dark"] .pd-prose .bg-light,
[data-theme="dark"] .pd-prose .ql-bg-white {
  background: transparent !important;
  background-color: transparent !important;
}

[data-theme="dark"] .pd-prose [style*="color: rgba(0,"],
[data-theme="dark"] .pd-prose [style*="color:rgba(0,"],
[data-theme="dark"] .pd-prose [style*="color: rgb(0,"],
[data-theme="dark"] .pd-prose [style*="color:rgb(0,"],
[data-theme="dark"] .pd-prose [style*="color: rgba(15,"],
[data-theme="dark"] .pd-prose [style*="color:rgba(15,"],
[data-theme="dark"] .pd-prose [style*="color: rgba(17,"],
[data-theme="dark"] .pd-prose [style*="color:rgba(17,"],
[data-theme="dark"] .pd-prose [style*="color: rgba(33,"],
[data-theme="dark"] .pd-prose [style*="color:rgba(33,"],
[data-theme="dark"] .pd-prose [style*="color: rgba(30,"],
[data-theme="dark"] .pd-prose [style*="color:rgba(30,"],
[data-theme="dark"] .pd-prose [style*="color: rgba(51,"],
[data-theme="dark"] .pd-prose [style*="color:rgba(51,"],
[data-theme="dark"] .pd-prose [style*="color:#000"],
[data-theme="dark"] .pd-prose [style*="color: #000"],
[data-theme="dark"] .pd-prose [style*="color:#000000"],
[data-theme="dark"] .pd-prose [style*="color: #000000"],
[data-theme="dark"] .pd-prose [style*="color:black"],
[data-theme="dark"] .pd-prose [style*="color: black"],
[data-theme="dark"] .pd-prose [style*="color:#111"],
[data-theme="dark"] .pd-prose [style*="color:#222"],
[data-theme="dark"] .pd-prose [style*="color:#333"],
[data-theme="dark"] .pd-prose [style*="color:#212529"],
[data-theme="dark"] .pd-prose [color],
[data-theme="dark"] .pd-prose font[color],
[data-theme="dark"] .pd-prose .text-dark,
[data-theme="dark"] .pd-prose .text-black,
[data-theme="dark"] .pd-prose .ql-color-black {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .pd-prose a[style*="color: rgba(0,"],
[data-theme="dark"] .pd-prose a[style*="color:rgba(0,"],
[data-theme="dark"] .pd-prose a[style*="color:#000"],
[data-theme="dark"] .pd-prose a[style*="color: #000"],
[data-theme="dark"] .pd-prose a[style*="color:black"],
[data-theme="dark"] .pd-prose a[color] {
  color: var(--accent) !important;
}

[data-theme="dark"] .pd-prose img,
[data-theme="dark"] .pd-prose picture,
[data-theme="dark"] .pd-prose video {
  filter: none;
}

.specs-table--v2 {
  width: 100%;
  border-collapse: collapse;
}

.specs-table--v2 th,
.specs-table--v2 td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  font-size: 0.92rem;
}

.specs-table--v2 th {
  width: 38%;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.specs-table--v2 td {
  color: var(--text-secondary);
}

.pd-shipping-copy h3 {
  font-size: 1rem;
  margin: 1.25em 0 0.35em;
  color: var(--text-primary);
}

.pd-shipping-copy h3:first-child {
  margin-top: 0;
}

.pd-related-section {
  background: var(--bg-tertiary);
}

/* Lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 22, 40, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pd-lightbox[hidden] {
  display: none !important;
}

.pd-lightbox img {
  max-width: min(96vw, 900px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.pd-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

[dir="rtl"] .pd-lightbox-close {
  right: auto;
  left: 20px;
}

/* Responsive */
@media (max-width: 991px) {
  .product-detail--v2 .product-detail-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pd-magnifier-wrap {
    cursor: pointer;
  }

  .pd-magnifier-lens {
    display: none !important;
  }

  .pd-gallery-v2 .pd-main-image {
    width: 100%;
    height: auto;
    max-height: min(72vw, 420px);
    object-fit: contain;
  }

  .pd-gallery-v2 .pd-gallery-stage {
    aspect-ratio: 1;
    max-height: min(calc(100vw - 32px), 480px);
  }

  .pd-info-v2 .pd-name {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    word-break: break-word;
  }

  .pd-info-v2 .pd-price {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .pd-info-v2 .pd-rating {
    gap: 6px 10px;
  }

  .pd-info-v2 .pd-rating-count {
    font-size: 0.82rem;
  }

  .pd-meta {
    gap: 8px 10px;
  }

  .pd-info-v2 .pd-sku {
    font-size: 0.8rem;
  }

  .pd-pickup-benefit {
    align-items: flex-start;
  }

  .pd-split-pay__row {
    flex-wrap: nowrap;
    align-items: center;
  }

  .pd-split-pay__logo {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
  }

  .pd-split-pay__text,
  .pd-split-pay__tabby-promo,
  .pd-split-pay__tamara-promo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pd-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-share__actions {
    width: 100%;
  }

  .pd-tabs-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .pd-tab {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    border-inline-start: none;
  }

  .pd-tab.active {
    border-bottom-color: var(--accent);
    border-inline-start: none;
  }

  .pd-page-section.section,
  .pd-tabs-section.section,
  .pd-related-section.section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .pd-page-section {
    padding-top: 16px;
    padding-bottom: 4px;
  }

  .pd-tabs-section {
    padding-bottom: 24px;
  }

  .pd-related-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (max-width: 575px) {
  .pd-gallery-v2 .pd-thumb {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .pd-gallery-v2 .pd-gallery-nav {
    width: 44px;
    height: 44px;
  }

  .pd-gallery-expand {
    width: 44px;
    height: 44px;
  }

  .pd-info-v2 {
    gap: 12px;
  }

  .pd-info-v2 .pd-actions--secondary {
    grid-template-columns: 1fr;
  }

  .pd-info-v2 .pd-qty {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pd-info-v2 .pd-qty .qty-control {
    width: 100%;
    max-width: 180px;
  }

  .pd-tabs-panels {
    padding: 16px 14px;
  }

  .pd-tab {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .specs-table--v2 {
    display: block;
  }

  .specs-table--v2 tbody,
  .specs-table--v2 tr,
  .specs-table--v2 th,
  .specs-table--v2 td {
    display: block;
    width: 100%;
  }

  .specs-table--v2 tr {
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .specs-table--v2 th {
    width: 100%;
    border-bottom: none;
    padding-bottom: 6px;
  }

  .specs-table--v2 td {
    border-bottom: none;
    padding-top: 0;
  }

  .pd-review-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-related-section .products-grid {
    gap: 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .pd-magnifier-wrap {
    cursor: pointer;
    touch-action: manipulation;
  }

  .pd-magnifier-lens {
    display: none !important;
  }

  .product-detail--v2 .pd-gallery-stage:hover .pd-main-image {
    transform: none;
  }
}

/* ===== Product details tabs v3 (Radar DR-0035, PDF page 10) ===== */
.pd-tabs--v3 {
  border-top: 3px solid #3b6ea5;
}

.pd-tabs--v3 .pd-tabs-nav {
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.pd-tabs--v3 .pd-tab {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.pd-tabs--v3 .pd-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pd-tabs--v3 .pd-tab.active {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: var(--bg-card);
}

.pd-desc {
  display: block;
}

.pd-desc--with-specs {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.pd-desc__section + .pd-desc__section {
  margin-top: 26px;
}

.pd-desc__heading {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pd-desc__text {
  margin: 0 0 10px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.pd-desc__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pd-desc__features li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.pd-desc__features li::before {
  content: "\2022";
  position: absolute;
  inset-inline-start: 4px;
  top: 0;
  color: var(--text-primary);
  font-weight: 700;
}

/* Specifications table — matches PDF page 10: label column on the start side (shaded first
   row, thin blue-grey borders), value column centred. */
.pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-card);
}

.pd-spec-table th,
.pd-spec-table td {
  padding: 11px 14px;
  border: 1px solid #6b8bb3;
  vertical-align: middle;
  line-height: 1.5;
}

.pd-spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--text-primary);
  text-align: start;
}

.pd-spec-table td {
  color: var(--text-secondary);
  text-align: center;
}

.pd-spec-table tbody tr:first-child th,
.pd-spec-table tbody tr:first-child td {
  background: var(--bg-tertiary, #eef2f6);
}

.pd-desc__specs .pd-desc__heading {
  margin-bottom: 14px;
}

.pd-spec-table--wide {
  max-width: 720px;
}

[data-theme="dark"] .pd-spec-table th,
[data-theme="dark"] .pd-spec-table td {
  border-color: rgba(148, 163, 184, .45);
}

.pd-warranty-tab {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pd-warranty-tab__icon {
  flex: 0 0 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.4rem;
}

.pd-warranty-tab__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pd-warranty-tab__text {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.pd-warranty-tab__link {
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 900px) {
  .pd-desc--with-specs {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pd-tabs--v3 .pd-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 14px;
  }

  .pd-tabs--v3 .pd-tab {
    white-space: nowrap;
    padding: 8px 16px;
  }
}


/* ===== Product actions, refreshed (Add to cart / Buy now, then WhatsApp · Wishlist · Compare) ===== */
.pd-info-v2 .pd-actions--cart .btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pd-info-v2 .pd-actions--cart .pd-btn-cart:not(:disabled) {
  background: linear-gradient(135deg, var(--accent, #00b4d8), #1e6fb8);
  border: none;
  box-shadow: 0 10px 22px rgba(0, 180, 216, 0.28);
}

.pd-info-v2 .pd-actions--cart .btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.pd-info-v2 .pd-actions--secondary {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.pd-info-v2 .pd-actions--secondary .btn {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pd-info-v2 .pd-actions--secondary .btn:hover { transform: translateY(-1px); }

.pd-info-v2 .pd-actions--secondary .pd-btn-wishlist,
.pd-info-v2 .pd-actions--secondary .pd-btn-compare {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text-primary, #0f172a);
}

.pd-info-v2 .pd-actions--secondary .pd-btn-wishlist i { color: #ef4444; }
.pd-info-v2 .pd-actions--secondary .pd-btn-compare i { color: var(--accent, #00b4d8); }

.pd-info-v2 .pd-actions--secondary .pd-btn-compare:hover,
.pd-info-v2 .pd-actions--secondary .pd-btn-compare.is-active {
  border-color: var(--accent, #00b4d8);
  background: rgba(0, 180, 216, 0.08);
  color: var(--accent, #00b4d8);
}

.pd-info-v2 .pd-actions--secondary .pd-btn-wishlist:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.06);
}

.pd-info-v2 .pd-actions--secondary .pd-btn-wishlist.wishlisted {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 520px) {
  .pd-info-v2 .pd-actions--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-info-v2 .pd-actions--secondary .pd-btn-whatsapp {
    grid-column: 1 / -1;
  }
}

/* Free shipping by Alwadi (automatic free-shipping rule covers this product) */
.pd-free-shipping-benefit { margin-bottom: 8px; }
.pd-free-shipping-benefit__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-free-shipping-benefit__title { font-weight: 700; color: #15803d; }
.pd-free-shipping-benefit__note { font-size: 0.82rem; color: var(--text-secondary); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pd-free-shipping-benefit__min { font-weight: 700; color: var(--text-primary); }
[data-theme="dark"] .pd-free-shipping-benefit__title { color: #4ade80; }
