/* B2B Product Detail Page — matches Corporate Mall mockup */
.pd-b2b-page {
  --pd-red: #d8137c;
  --pd-red-dark: #b80f68;
  --pd-pink-soft: #fdf2f8;
  --pd-pink-border: #f9a8d4;
  --pd-text: #1a1a2e;
  --pd-muted: #6b7280;
  --pd-border: #e5e7eb;
  --pd-blue: #1d4ed8;
  --pd-green: #16a34a;
  --pd-orange: #d97706;
  font-family: 'Lato', 'Poppins', sans-serif;
  color: var(--pd-text);
  padding-bottom: 40px;
}

.pd-b2b-page * {
  box-sizing: border-box;
}

nav.breadcrumb_bg + .container.pd-b2b-page {
  padding-top: 20px;
}
nav.breadcrumb_bg:has(+ .container.pd-b2b-page) {
  margin-bottom: 4px;
}
nav.breadcrumb_bg:has(+ .container.pd-b2b-page) .breadcrumb {
  padding-bottom: 10px;
}

/* Main 3-column grid */
.pd-b2b-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

/* ---- LEFT: Gallery ---- */
.pd-gallery {
  position: sticky;
  top: 20px;
  align-self: start;
  z-index: 4;
}
.pd-gallery-main {
  position: relative;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.pd-gallery-main figure {
  margin: 0;
  text-align: center;
  padding: 8px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-gallery-main img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}
.pd-badge-bestseller {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, #ff6b35, #d8137c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0.2px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(216, 19, 124, 0.3);
}
.pd-badge-bestseller i {
  font-size: 11px;
}
.pd-gallery-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pd-gallery-tool {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--pd-border);
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.pd-gallery-tool:hover {
  color: var(--pd-red);
  border-color: var(--pd-red);
  text-decoration: none;
}
.pd-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--pd-border);
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}
.pd-gallery-nav:hover {
  color: var(--pd-red);
  border-color: var(--pd-red);
}
.pd-gallery-nav:focus {
  outline: none;
  border-color: var(--pd-red);
}
.pd-gallery-prev { left: 10px; }
.pd-gallery-next { right: 10px; }
.pd-gallery-main .mz-figure,
.pd-gallery-main .MagicZoomPlus {
  position: relative;
  z-index: 1;
}
.pd-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}
.pd-thumbnails {
  margin-top: 12px;
}
.pd-thumbnails .owl-carousel .item {
  padding: 4px;
}
.pd-thumbnails .ds_thm {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #fff;
}
.pd-thumbnails .ds_thm:hover,
.pd-thumbnails .ds_thm.active {
  border-color: var(--pd-red);
}
.pd-thumbnails .ds_thm figure {
  margin: 0;
}
.pd-thumbnails .ds_thm img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}
.pd-video-btn {
  text-align: center;
  margin-top: 14px;
}
.pd-video-btn .video_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pd-red);
  font-weight: 600;
  font-size: 13px;
}

/* ---- CENTER: Product Config ---- */
.pd-config {
  background: #fff;
  min-width: 0;
}
.pd-product-title {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.25;
}
.pd-product-subtitle {
  font-size: 14px;
  color: var(--pd-muted);
  margin: 0 0 10px;
}
.pd-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #4b5563;
}
.pd-meta-row .pd-code {
  font-weight: 500;
}
.pd-meta-row .pd-code strong {
  font-weight: 700;
  color: #111827;
}
.pd-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pd-rating .star i {
  color: #f59e0b;
  font-size: 13px;
}
.pd-rating a {
  color: #4b5563;
  text-decoration: none;
}
.pd-rating a:hover {
  color: var(--pd-red);
}
.pd-trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.pd-trusted-badge i {
  font-size: 12px;
}

/* Feature icons — vertical icon + label */
.pd-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}
.pd-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: #fafafa;
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  padding: 12px 8px;
}
.pd-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fdf2f8;
  color: var(--pd-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.pd-feature-label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

/* Step cards */
.pd-step-card {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.pd-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pd-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pd-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pd-red);
  margin-bottom: 4px;
}
.pd-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}
.pd-step-qty-note {
  font-weight: 500;
  color: var(--pd-muted);
  font-size: 14px;
}

/* Quantity selector */
.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pd-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}
.pd-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}
.pd-qty-btn {
  background: #f9fafb;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
  line-height: 1;
}
.pd-qty-btn:hover {
  background: #e5e7eb;
}
.pd-qty-input {
  width: 72px;
  height: 40px;
  border: none;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

/* Min order + free shipping combined box */
.pd-ship-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  border: 1.5px solid #93c5fd;
  background: #eff6ff;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.pd-unit-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #fdf2f8;
  border: 1px solid #f9a8d4;
  border-radius: 8px;
}
.pd-unit-price-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.pd-unit-price-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--pd-red);
  letter-spacing: -0.2px;
}
.pd-unit-price-meta {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  width: 100%;
}
.pd-unit-price-meta strong {
  color: #111827;
  font-weight: 700;
}
.pd-ship-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pd-blue);
  font-weight: 500;
}
.pd-ship-item.shipping {
  color: var(--pd-green);
}
.pd-ship-item i {
  font-size: 13px;
}

/* Bulk pricing cards */
.pd-bulk-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pd-bulk-card {
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  padding: 16px 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: #fff;
}
.pd-bulk-card:hover {
  border-color: var(--pd-red);
}
.pd-bulk-card.active {
  border-color: var(--pd-red);
  background: #fff5f8;
  box-shadow: 0 0 0 1px rgba(216, 19, 124, 0.2);
}
.pd-bulk-card.best-value {
  /* badge only — do not look selected unless also .active */
  border-color: var(--pd-border);
  background: #fff;
}
.pd-bulk-card.best-value.active {
  border-color: var(--pd-red);
  background: #fff5f8;
  box-shadow: 0 0 0 1px rgba(216, 19, 124, 0.2);
}
.pd-bulk-card .pd-bulk-range {
  font-size: 11px;
  color: var(--pd-muted);
  margin-bottom: 4px;
}
.pd-bulk-card .pd-bulk-price {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}
.pd-bulk-card .pd-bulk-unit {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.pd-bulk-card .pd-bulk-save {
  display: inline-block;
  background: var(--pd-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}
.pd-bulk-card .pd-best-value-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pd-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Price calculation — 3 columns */
.pd-price-calc {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
}
.pd-price-col {
  text-align: center;
  padding: 8px 6px;
  border-right: 1px solid var(--pd-border);
}
.pd-price-col:last-child {
  border-right: none;
}
.pd-price-col .pd-price-label {
  display: block;
  font-size: 12px;
  color: var(--pd-muted);
  margin-bottom: 6px;
  line-height: 1.3;
}
.pd-price-col .pd-price-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.pd-price-col.total .pd-price-val {
  color: var(--pd-red);
  font-size: 20px;
}
.pd-price-save {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.pd-gst-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: #059669;
  font-weight: 600;
}
.pd-gst-note i {
  font-size: 14px;
}

/* Color/Size — Step 3 compact panel */
.pd-color-size {
  margin-top: 0;
  border-color: #fbcfe8;
  background: #fff;
}
.pd-color-size-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 12px;
  font-size: 11px;
  color: #9f1239;
  font-weight: 600;
}
.pd-color-size-hint i {
  font-size: 12px;
}
.pd-cs-panel {
  border: 1px solid #eceff3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.pd-cs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}
.pd-cs-h-color {
  width: 64px;
  flex-shrink: 0;
}
.pd-cs-h-size {
  flex: 1;
}
.pd-cs-h-size span {
  color: var(--pd-red);
  font-weight: 600;
  font-size: 11px;
}
.pd-cs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
}
.pd-cs-row.is-active {
  background: #fffafb;
}
.pd-cs-color {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pd-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #cbd5e1;
  cursor: pointer;
  position: relative;
  padding: 0;
  outline: none;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-color-swatch i {
  display: none;
  color: #fff;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.pd-color-swatch.active,
.pd-color-swatch:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px var(--pd-red);
}
.pd-color-swatch.active i {
  display: inline-block;
}
.pd-color-name {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.2;
}
.pd-cs-sizes {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

/* Compact size chips: label + qty side by side */
.pd-size-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pd-size-chip:focus-within,
.pd-size-chip.has-qty {
  border-color: var(--pd-red);
  box-shadow: 0 0 0 2px rgba(216, 19, 124, 0.1);
}
.pd-size-chip.has-qty .pd-size-label {
  background: var(--pd-red);
}
.pd-size-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0 8px;
  height: 32px;
  background: #334155;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
}
.pd-size-qty,
.pd-color-size .qty1 {
  width: 110px !important;
  max-width: 110px;
  height: 32px !important;
  padding: 0 6px !important;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  outline: none;
  background: #fff;
  box-shadow: none !important;
  margin: 0 !important;
}
.pd-size-qty:focus,
.pd-color-size .qty1:focus {
  background: #fff7f9;
}

/* Compact upload section */
.pd-config .pd-upload-card {
  margin-bottom: 18px;
}
.pd-upload-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-upload-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-upload-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #fbcfe8;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fffafb;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 260px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pd-upload-slot:hover {
  border-color: var(--pd-red);
  border-style: solid;
  background: #fdf2f8;
  box-shadow: 0 0 0 3px rgba(216, 19, 124, 0.15);
}
.pd-upload-slots.is-whatsapp-mode .pd-upload-slot:hover {
  border-color: #fbcfe8;
  border-style: dashed;
  background: #fffafb;
  box-shadow: none;
}
.pd-whatsapp-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #86efac;
  border-radius: 8px;
  padding: 8px 12px;
  background: #f0fdf4;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 260px;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
  user-select: none;
}
.pd-whatsapp-clear {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
}
.pd-whatsapp-clear:hover {
  background: #b91c1c;
}
.pd-whatsapp-slot.is-active .pd-whatsapp-clear,
.pd-whatsapp-slot:has(.pd-whatsapp-check:checked) .pd-whatsapp-clear {
  display: inline-flex !important;
}
.pd-whatsapp-slot:hover {
  border-color: #22c55e;
  border-style: solid;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.pd-whatsapp-slot.is-active,
.pd-whatsapp-slot:has(.pd-whatsapp-check:checked) {
  border: 2px solid #16a34a !important;
  border-style: solid !important;
  background: #dcfce7 !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22) !important;
}
.pd-whatsapp-slot.is-active .pd-whatsapp-icon,
.pd-whatsapp-slot:has(.pd-whatsapp-check:checked) .pd-whatsapp-icon {
  background: #16a34a !important;
  border-color: #16a34a !important;
}
.pd-whatsapp-slot.is-active .pd-whatsapp-icon i,
.pd-whatsapp-slot:has(.pd-whatsapp-check:checked) .pd-whatsapp-icon i {
  color: #fff !important;
}
.pd-whatsapp-slot.is-active .pd-whatsapp-selected-tag,
.pd-whatsapp-slot:has(.pd-whatsapp-check:checked) .pd-whatsapp-selected-tag {
  display: inline-flex !important;
}
.pd-whatsapp-check {
  position: absolute !important;
  left: 8px !important;
  top: 8px !important;
  right: auto !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  z-index: -1;
}
.pd-whatsapp-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.pd-whatsapp-icon i {
  color: #25d366;
  font-size: 22px;
}
.pd-whatsapp-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pd-whatsapp-text {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  line-height: 1.3;
}
.pd-whatsapp-selected-tag {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  line-height: 1;
  margin-top: 2px;
}
.pd-whatsapp-selected-tag i {
  font-size: 11px;
}
.pd-upload-slots.is-whatsapp-mode .pd-upload-slot {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
}
.pd-upload-preview {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-upload-actions {
  min-width: 0;
  flex: 1;
}
.pd-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pd-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0;
  line-height: 1.2;
}
.pd-upload-btn:hover {
  background: var(--pd-red-dark);
  color: #fff;
}
.pd-upload-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden;
}
.pd-upload-formats {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}
.pd-upload-notes {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
  min-height: 52px;
  outline: none;
  margin: 0;
}
.pd-upload-notes:focus {
  border-color: var(--pd-red);
}
.pd-upload-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.pd-help-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 7px 10px;
  text-decoration: none;
  color: #166534;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pd-help-inline:hover {
  text-decoration: none;
  color: #14532d;
  background: #dcfce7;
}
.pd-help-inline i {
  color: #25d366;
  font-size: 16px;
}
.pd-upload-zone-sm {
  padding: 18px 14px !important;
}
.pd-upload-zone-sm i {
  font-size: 22px !important;
  margin-bottom: 6px !important;
}
.pd-upload-zone-sm p {
  font-size: 13px !important;
}

/* legacy color/size */
.pd-color-size table {
  width: 100%;
  border-collapse: collapse;
}
.pd-color-size th {
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--pd-border);
}
.pd-color-size .dtl_color a {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--pd-border);
}

/* Pincode */
.pd-pincode-section .pd-step-title {
  margin-bottom: 12px;
}
.pd-pincode-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-pincode-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.pd-pincode-input:focus {
  border-color: var(--pd-red);
}
.pd-pincode-btn {
  background: var(--pd-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pd-pincode-btn:hover {
  background: var(--pd-red-dark);
}

/* ---- RIGHT: Checkout Sidebar ---- */
.pd-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  z-index: 4;
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-right: 2px;
}
.pd-sidebar::-webkit-scrollbar {
  width: 4px;
}
.pd-sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
.pd-promo-card {
  background: var(--pd-pink-soft);
  border: 1px solid var(--pd-pink-border);
  color: #111827;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 14px;
  text-align: left;
}
.pd-promo-card .pd-promo-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--pd-red);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.pd-promo-card .pd-promo-text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}
.pd-promo-card .pd-promo-text a {
  color: var(--pd-red);
  font-weight: 600;
  text-decoration: underline;
}

.pd-payment-card {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.pd-payment-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
}
.pd-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.pd-payment-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pd-payment-row:first-child {
  padding-top: 0;
}
.pd-payment-row .pd-pay-label {
  color: #4b5563;
  line-height: 1.35;
}
.pd-payment-row .pd-pay-label.pd-pay-today {
  color: var(--pd-red);
  font-weight: 700;
}
.pd-payment-row .pd-pay-label.pd-pay-stage {
  color: #4b5563;
  font-weight: 700;
}
.pd-payment-row .pd-pay-label small {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
}
.pd-payment-row .pd-pay-amount {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.pd-payment-row .pd-pay-amount.red { color: var(--pd-red); }
.pd-payment-row .pd-pay-amount.orange { color: var(--pd-orange); }
.pd-payment-row .pd-pay-amount.green { color: var(--pd-green); }

/* Action buttons */
.pd-action-btns {
  margin-bottom: 14px;
}
.pd-btn-checkout {
  display: block;
  width: 100%;
  background: var(--pd-red);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 10px;
  text-align: center;
}
.pd-btn-checkout:hover {
  background: var(--pd-red-dark);
}
.pd-btn-cart {
  display: block;
  width: 100%;
  background: #fff;
  color: #111827;
  border: 1.5px solid #111827;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  text-decoration: none;
}
.pd-btn-cart:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
}

/* Trust badges */
.pd-trust-badges {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.pd-trust-item {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--pd-muted);
  font-weight: 600;
  line-height: 1.3;
}
.pd-trust-item i {
  display: block;
  font-size: 18px;
  color: var(--pd-red);
  margin-bottom: 4px;
}

/* Highlights card */
.pd-highlights-card {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.pd-highlights-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}
.pd-highlight-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.pd-highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  padding: 4px 0;
  line-height: 1.4;
}
.pd-highlight-list li i {
  color: var(--pd-green);
  margin-top: 2px;
  font-size: 11px;
  flex-shrink: 0;
}
.pd-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pd-spec-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pd-spec-item > i {
  color: var(--pd-red);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
.pd-spec-item .pd-spec-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.pd-spec-item .pd-spec-value {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

/* ---- BOTTOM: Steps 3 & 4 (stacked) ---- */
.pd-bottom-section {
  margin-top: 28px;
}
.pd-upload-card,
.pd-process-card {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.pd-upload-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: stretch;
}
.pd-upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  transition: border-color 0.2s;
  cursor: pointer;
  position: relative;
  background: #fafafa;
}
.pd-upload-zone:hover {
  border-color: var(--pd-red);
}
.pd-upload-zone i {
  font-size: 36px;
  color: var(--pd-red);
  margin-bottom: 12px;
}
.pd-upload-zone p {
  font-size: 14px;
  color: var(--pd-muted);
  margin: 0;
}
.pd-upload-zone small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}
.pd-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pd-help-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}
.pd-help-box i {
  font-size: 32px;
  color: #25d366;
  flex-shrink: 0;
}
.pd-help-box .pd-help-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}
.pd-help-box .pd-help-number {
  font-weight: 700;
  color: #111827;
  margin-top: 4px;
  font-size: 14px;
}

/* Order process stepper */
.pd-process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-top: 8px;
  padding: 0 8px;
}
.pd-process-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #fbcfe8;
  z-index: 0;
}
.pd-process-step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 120px;
}
.pd-process-step .pd-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pd-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--pd-red);
  font-size: 16px;
  box-shadow: 0 0 0 4px #fff;
}
.pd-process-step .pd-step-name {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

/* Secondary links */
.pd-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
  font-size: 12px;
}
.pd-secondary-links a {
  color: #4b5563;
  text-decoration: none;
}
.pd-secondary-links a:hover {
  color: var(--pd-red);
}
.pd-secondary-links a i {
  margin-right: 4px;
}

.pd-share-row {
  margin: 10px 0;
}
.pd-share-row .share_hed {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.pd-share-row .soc_link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  margin-right: 6px;
  font-size: 13px;
  transition: all 0.15s;
}
.pd-share-row .soc_link a:hover {
  background: var(--pd-red);
  color: #fff;
}

/* Stock status */
.pd-stock-status {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pd-stock-status.in-stock { color: var(--pd-green); }
.pd-stock-status.out-stock { color: #dc2626; }

.pd-b2b-page .showmsg,
.pd-b2b-page .show_msg {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0;
}

.pd-b2b-page .flyer_btn {
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Hide old layout elements inside new structure */
.pd-b2b-page,
.pd-b2b-page form,
.pd-b2b-page .mid_area,
.pd-b2b-page .pc_box_area,
.pd-b2b-page .pd-b2b-grid {
  overflow: visible !important;
}
.pd-b2b-page .mid_area {
  padding: 0 !important;
}
.pd-b2b-page .pc_box_area {
  display: contents;
}
.pd-b2b-page .out-pc_box {
  width: auto;
  margin: 0;
  float: none;
  padding: 0;
}
.pd-b2b-page .dtl_right {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  display: contents;
}
.pd-b2b-page .dtl_right .dtl_L {
  float: none;
  width: auto;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}
.pd-b2b-page .pc_box {
  float: none;
  width: auto;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Kill legacy product-detail fixed widths that break mobile */
.pd-b2b-page .dtl_pic,
.pd-b2b-page .dtl_pic figure,
.pd-b2b-page .out-pc_box,
.pd-b2b-page .pc_box,
.pd-b2b-page .pd-gallery-main {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  float: none !important;
}
.pd-b2b-page .dtl_pic {
  overflow: hidden !important;
  position: relative;
}
.pd-b2b-page .dtl_pic figure {
  display: flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-height: 260px;
  padding: 8px;
}
.pd-b2b-page .dtl_pic img,
.pd-b2b-page .dtl_pic .MagicZoomPlus img,
.pd-b2b-page .dtl_pic .mz-figure > img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 420px !important;
  margin: 0 auto !important;
}
.pd-b2b-page .thm_img {
  width: 100% !important;
  float: none !important;
  border-top: none;
  padding-top: 0;
}
.pd-b2b-page,
.pd-b2b-page .pd-b2b-grid,
.pd-b2b-page .pd-config,
.pd-b2b-page .pd-sidebar,
.pd-b2b-page .pd-gallery {
  max-width: 100%;
}
.pd-b2b-page .pd-b2b-grid {
  width: 100%;
}

/* Description / reviews / related below product */
.pd-b2b-below {
  padding-top: 8px;
  padding-bottom: 24px;
}
.pd-b2b-below .tab_linkss {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.pd-b2b-below .tab_linkss a {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.3 !important;
  padding: 10px 16px !important;
  color: #fff !important;
}
.pd-b2b-below .tab_linkss a.act {
  color: #351543 !important;
  background: #fff !important;
}
.pd-b2b-below .taber_inn {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px !important;
  overflow: hidden;
}
.pd-b2b-below .scroll_text,
.pd-b2b-below .details,
.pd-b2b-below .tab_cont {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.pd-b2b-below .scroll_text {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pd-b2b-below .scroll_text *,
.pd-b2b-below .details * {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  color: inherit;
}
.pd-b2b-below .scroll_text table {
  width: 100% !important;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.pd-b2b-below .scroll_text img {
  height: auto !important;
}
.pd-b2b-below .details h2 {
  font-size: 18px !important;
  color: #111827 !important;
  margin-bottom: 12px !important;
}
.pd-b2b-below #rel_scroll .item {
  padding: 6px;
}

/* Upload image list restyle */
.pd-b2b-page .upload_img_list ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.pd-b2b-page .upload_img_list li {
  flex: 0 0 auto;
}
.pd-b2b-page .dtl_upload_img {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  min-width: 140px;
  background: #fafafa;
}
.pd-b2b-page .upload_thm img {
  max-width: 80px;
  border-radius: 6px;
}
.pd-b2b-page .attach_btn .upload_btn {
  font-size: 12px;
  color: var(--pd-red);
  font-weight: 600;
}
.pd-b2b-page #requirements {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1199px) {
  .pd-b2b-grid {
    grid-template-columns: 280px minmax(0, 1fr) 260px;
    gap: 16px;
  }
  .pd-bulk-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-upload-layout {
    grid-template-columns: 1fr;
  }
  .pd-cs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .pd-cs-color {
    width: auto;
    flex-direction: row;
    align-items: center;
  }
  .pd-cs-h-color {
    width: auto;
  }
  .pd-cs-header {
    gap: 10px;
  }
  .pd-upload-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .pd-upload-slot {
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .pd-b2b-page {
    padding-bottom: 28px;
    overflow-x: hidden;
  }
  .pd-b2b-page.container,
  .container.pd-b2b-page {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .pd-b2b-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
    width: 100%;
  }
  .pd-gallery,
  .pd-config,
  .pd-sidebar,
  .pd-b2b-page .dtl_L {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
  .pd-b2b-page .dtl_right {
    display: block !important;
    width: 100% !important;
    float: none !important;
  }
  .pd-gallery,
  .pd-sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    top: auto !important;
  }
  .pd-gallery-main {
    border-radius: 10px;
  }
  .pd-gallery-main figure,
  .pd-b2b-page .dtl_pic figure {
    min-height: 280px !important;
  }
  .pd-gallery-nav {
    width: 40px;
    height: 40px;
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.92;
  }
  .pd-gallery-nav:hover,
  .pd-gallery-nav:focus {
    background: var(--pd-red) !important;
    border-color: var(--pd-red) !important;
    color: #fff !important;
  }
  .pd-product-title {
    font-size: 22px;
    line-height: 1.3;
    color: #111827 !important;
  }
  .pd-meta-row {
    gap: 10px;
  }
  .pd-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pd-feature-item {
    padding: 12px 8px;
    min-height: 88px;
  }
  .pd-feature-label {
    font-size: 12px;
    color: #111827;
  }
  .pd-step-card {
    padding: 14px;
  }
  .pd-step-title {
    font-size: 15px;
    color: #111827 !important;
  }
  .pd-qty-row {
    width: 100%;
  }
  .pd-qty-control {
    flex: 1;
    max-width: 220px;
  }
  .pd-ship-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .pd-unit-price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .pd-unit-price-val {
    font-size: 20px;
  }
  .pd-unit-price-meta {
    font-size: 13px;
    color: #374151;
  }
  .pd-bulk-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pd-bulk-card {
    min-width: 0;
    padding: 12px 10px;
  }
  .pd-bulk-card .pd-bulk-range {
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
    color: #4b5563;
  }
  .pd-bulk-card .pd-bulk-price {
    font-size: 16px;
    color: #111827;
  }
  .pd-price-calc {
    grid-template-columns: 1fr;
  }
  .pd-price-col {
    border-right: none;
    border-bottom: 1px solid var(--pd-border);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }
  .pd-price-col:last-child {
    border-bottom: none;
  }
  .pd-price-col .pd-price-label {
    margin-bottom: 0;
    font-size: 13px;
    color: #374151;
  }
  .pd-price-col .pd-price-value {
    font-size: 15px;
    color: #111827;
  }
  .pd-cs-panel {
    overflow: visible;
  }
  .pd-cs-header {
    display: none;
  }
  .pd-cs-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .pd-cs-color {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  .pd-color-name {
    font-size: 12px;
    color: #111827;
  }
  .pd-cs-sizes {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pd-size-chip {
    width: 100%;
    display: flex;
  }
  .pd-size-label {
    min-width: 52px;
    flex-shrink: 0;
  }
  .pd-size-qty,
  .pd-color-size .qty1 {
    width: 100% !important;
    max-width: none !important;
    flex: 1;
  }
  .pd-pincode-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pd-pincode-input {
    min-width: 0;
    width: 100%;
  }
  .pd-pincode-btn {
    width: 100%;
  }
  .pd-upload-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pd-upload-slot,
  .pd-whatsapp-slot {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
  }
  .pd-payment-row {
    align-items: flex-start;
  }
  .pd-payment-row .pd-pay-label {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
    font-size: 13px;
    color: #374151;
  }
  .pd-payment-row .pd-pay-amount {
    font-size: 14px;
  }
  .pd-trust-row {
    gap: 8px;
  }
  .pd-trust-item {
    font-size: 11px;
  }
  .pd-process-steps {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .pd-process-steps::before {
    display: none;
  }
  .pd-process-step {
    flex: 0 0 calc(33% - 10px);
    max-width: none;
  }
  .pd-b2b-below.container,
  .container.pd-b2b-below {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 575px) {
  .pd-b2b-page.container,
  .container.pd-b2b-page,
  .pd-b2b-below.container,
  .container.pd-b2b-below {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .pd-product-title {
    font-size: 18px !important;
    color: #111827 !important;
  }
  .pd-product-subtitle {
    font-size: 13px;
  }
  .pd-gallery-main figure,
  .pd-b2b-page .dtl_pic figure {
    min-height: 240px !important;
    padding: 4px !important;
  }
  .pd-gallery-nav {
    width: 36px;
    height: 36px;
  }
  .pd-gallery-prev { left: 6px; }
  .pd-gallery-next { right: 6px; }
  .pd-thumbnails .ds_thm img {
    height: 58px;
  }
  .pd-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-feature-label {
    font-size: 11px;
    line-height: 1.35;
  }
  .pd-bulk-cards {
    grid-template-columns: 1fr;
  }
  .pd-bulk-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    text-align: left;
    padding: 12px 14px;
  }
  .pd-bulk-card .pd-bulk-range {
    grid-column: 1;
    font-size: 12px;
    margin: 0;
  }
  .pd-bulk-card .pd-bulk-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 18px;
    margin: 0;
  }
  .pd-bulk-card .pd-bulk-unit {
    grid-column: 1;
    margin: 0;
  }
  .pd-bulk-card .pd-best-value-tag {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: -9px;
  }
  .pd-cs-sizes {
    grid-template-columns: 1fr;
  }
  .pd-specs-grid {
    grid-template-columns: 1fr;
  }
  .pd-process-step {
    flex: 0 0 calc(50% - 8px);
  }
  .pd-promo-card .pd-promo-price {
    font-size: 20px;
  }
  .pd-promo-card .pd-promo-text {
    font-size: 13px;
    color: #374151;
  }
  .pd-btn-checkout,
  .pd-btn-cart {
    font-size: 13px;
    padding: 13px 12px;
  }
  .pd-b2b-below .tab_linkss a {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    font-size: 13px !important;
    padding: 9px 12px !important;
  }
  .pd-b2b-below .taber_inn {
    padding: 12px !important;
  }
  .pd-b2b-below .scroll_text,
  .pd-b2b-below .details,
  .pd-b2b-below .tab_cont {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #1f2937 !important;
  }
}

/* Checkout validation + loader */
.pd-checkout-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.pd-checkout-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-checkout-errors li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
}
.pd-checkout-errors li i {
  margin-top: 2px;
  flex-shrink: 0;
}
.pd-section-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
  background: #fff7f7 !important;
  animation: pdErrorPulse 0.8s ease;
}
@keyframes pdErrorPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
}
.pd-btn-checkout,
.pd-btn-cart.pd-checkout-action {
  position: relative;
}
.pd-btn-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  line-height: 1;
}
.pd-btn-checkout .pd-btn-spinner {
  color: #fff;
}
.pd-btn-cart .pd-btn-spinner {
  color: #111827;
}
.pd-checkout-action.is-loading .pd-btn-label {
  visibility: hidden;
}
.pd-checkout-action.is-loading .pd-btn-spinner {
  display: inline-block;
}
.pd-checkout-action.is-loading {
  pointer-events: none;
  opacity: 0.9;
}
button.pd-btn-checkout,
button.pd-btn-cart {
  width: 100%;
}

/* Know more modal — overrides global black full-screen modal styles */
#knowmore.pd-knowmore-modal {
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
#knowmore.pd-knowmore-modal.show {
  display: flex !important;
}
#knowmore .pd-knowmore-dialog {
  width: 100% !important;
  max-width: 480px !important;
  height: auto !important;
  margin: auto !important;
  padding: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  position: relative !important;
  pointer-events: auto;
}
#knowmore .pd-knowmore-content {
  height: auto !important;
  min-height: 0 !important;
  border: none !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden !important;
}
#knowmore .pd-knowmore-header {
  background: linear-gradient(135deg, #d8137c 0%, #b80f68 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#knowmore .pd-knowmore-header .modal-title {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.3;
}
#knowmore .pd-knowmore-close {
  color: #fff !important;
  opacity: 1 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}
#knowmore .pd-knowmore-close:hover {
  opacity: 0.85 !important;
  color: #fff !important;
}
#knowmore .pd-knowmore-body {
  padding: 22px 22px 8px !important;
  background: #fff !important;
  color: #1f2937 !important;
}
#knowmore .pd-knowmore-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
#knowmore .pd-knowmore-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d8137c;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
#knowmore .pd-knowmore-step p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #1f2937 !important;
  font-weight: 500 !important;
}
#knowmore .pd-knowmore-step p strong {
  color: #111827 !important;
  font-weight: 700 !important;
}
#knowmore .pd-knowmore-note {
  margin: 8px 0 0 !important;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #d8137c;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #4b5563 !important;
  font-weight: 500 !important;
}
#knowmore .pd-knowmore-note i {
  color: #d8137c;
  margin-right: 4px;
}
#knowmore .pd-knowmore-footer {
  border: none !important;
  background: #fff !important;
  padding: 8px 22px 20px !important;
  justify-content: flex-end !important;
}
#knowmore .pd-knowmore-btn {
  background: #d8137c !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  min-width: 120px;
}
#knowmore .pd-knowmore-btn:hover {
  background: #b80f68 !important;
  color: #fff !important;
}
@media (max-width: 575px) {
  #knowmore .pd-knowmore-dialog {
    max-width: 100% !important;
    margin: 12px !important;
  }
}

/* Custom Product Video Lightbox — fully independent of Bootstrap .modal */
.pd-video-lightbox {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.pd-video-lightbox.is-open {
  display: flex !important;
}
body.pd-video-open {
  overflow: hidden !important;
}
.pd-video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}
.pd-video-lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  background: #111827;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  animation: pdVideoPop 0.22s ease-out;
}
@keyframes pdVideoPop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pd-video-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #d8137c 0%, #b80f68 100%);
}
.pd-video-lightbox-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-video-lightbox-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
}
.pd-video-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.pd-video-lightbox-body {
  background: #000;
}
.pd-video-lightbox-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.pd-video-lightbox-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pd-video-btn .video_btn,
.pd-video-btn .pd-watch-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f5c518;
  color: #111827 !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pd-video-btn .video_btn:hover,
.pd-video-btn .pd-watch-video-btn:hover {
  color: #111827 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.45);
}
@media (max-width: 575px) {
  .pd-video-lightbox {
    padding: 12px;
  }
  .pd-video-lightbox-panel {
    max-width: 100%;
    border-radius: 12px;
  }
}
