/* Overlap: same design tokens & component rules as .collection-b2b-root (category-b2b.css) */
.product-b2b-root {
  --cb2b-bg: #f4f5f7;
  --cb2b-card: #ffffff;
  --cb2b-hero-bg: #ececec;
  --cb2b-text-dark: #1e3a5f;
  --cb2b-text-primary: #1a1d23;
  --cb2b-text-secondary: #5f6368;
  --cb2b-text-muted: #9aa0a6;
  --cb2b-green: #7cb518;
  --cb2b-green-dark: #6a9e14;
  --cb2b-green-light: rgba(124, 181, 24, 0.08);
  --cb2b-blue-light: rgba(30, 58, 95, 0.06);
  --cb2b-border: #e2e5ea;
  --cb2b-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --cb2b-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --cb2b-radius: 12px;
  --cb2b-radius-sm: 8px;
  --pb-bg: #f4f5f7;
  --pb-card: #ffffff;
  --pb-dark: #1e3a5f;
  --pb-pri: #1a1d23;
  --pb-sec: #5f6368;
  --pb-mut: #9aa0a6;
  --pb-grn: #7cb518;
  --pb-grnd: #6a9e14;
  --pb-grnl: rgba(124,181,24,0.08);
  --pb-brd: #e2e5ea;
  --pb-red: #dc3545;
  --pb-r: 12px;
  --pb-rs: 8px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--pb-bg);
  color: var(--pb-pri);
  min-height: 60vh;
  -webkit-font-smoothing: antialiased;
}

.product-b2b__bread {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  font-size: 12px;
  color: var(--pb-mut);
}
.product-b2b__bread a { color: var(--pb-mut); text-decoration: none; }
.product-b2b__bread a:hover { color: var(--pb-grnd); }
.product-b2b__bread span { margin: 0 6px; opacity: 0.5; }
.product-b2b__pd {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.product-b2b__gallery { position: sticky; top: 80px; align-self: start; }
.product-b2b__gallery-main {
  width: 100%; aspect-ratio: 1;
  background: var(--pb-card);
  border-radius: var(--pb-r);
  border: 1.5px solid var(--pb-brd);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
}
.product-b2b__main-img { max-width: 90%; max-height: 90%; object-fit: contain; }
.product-b2b__thumbs-strip { margin-top: 12px; }
.product-b2b__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.product-b2b__thumb {
  width: 72px; height: 72px;
  border-radius: var(--pb-rs);
  border: 2px solid var(--pb-brd);
  overflow: hidden; cursor: pointer; flex-shrink: 0;
  background: var(--pb-card); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-b2b__thumb:hover, .product-b2b__thumb.active { border-color: var(--pb-grn); }
.product-b2b__thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.product-b2b__vendor {
  display: inline-block; padding: 4px 12px;
  background: var(--pb-dark); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 4px;
  margin-bottom: 12px; letter-spacing: 0.5px;
}
.product-b2b__title {
  font-size: 28px; font-weight: 800; color: var(--pb-dark);
  line-height: 1.2; margin: 0 0 6px;
}
.product-b2b__sku { font-size: 12px; color: var(--pb-mut); margin-bottom: 16px; }
.product-b2b__price-block {
  margin-bottom: 20px; padding: 16px 20px;
  background: var(--pb-grnl);
  border-radius: var(--pb-rs);
  border: 1px solid rgba(124,181,24,0.15);
}
.product-b2b__price-inner { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.product-b2b__price-current { font-size: 32px; font-weight: 800; color: var(--pb-grnd); }
.product-b2b__price-old { font-size: 18px; color: var(--pb-mut); text-decoration: line-through; }
.product-b2b__opt { margin-bottom: 20px; }
.product-b2b__opt-label { font-size: 13px; font-weight: 700; color: var(--pb-dark); margin-bottom: 10px; }
.product-b2b__opt-label span { font-weight: 400; color: var(--pb-mut); }
.product-b2b__colors { display: flex; gap: 8px; flex-wrap: wrap; }
/* Color dots: PDP size; transition like .collection-b2b-root__color-dot */
.product-b2b__color-dot {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--pb-brd); cursor: pointer; padding: 0;
  transition: transform 0.15s;
}
.product-b2b__color-dot:hover { border-color: var(--pb-dark); transform: scale(1.05); }
.product-b2b__color-dot.active { border-color: var(--pb-grn); box-shadow: 0 0 0 2px var(--pb-grn); }
.product-b2b__sizes { display: flex; gap: 6px; flex-wrap: wrap; }
/* Size buttons: same pattern as .collection-b2b-root__size-btn */
.product-b2b__size-btn {
  min-width: 52px; padding: 10px 8px;
  border: 1.5px solid var(--pb-brd);
  border-radius: var(--pb-rs);
  background: var(--pb-card);
  font-size: 13px; font-weight: 600; color: var(--pb-dark);
  cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color 0.2s;
}
.product-b2b__size-btn:hover { border-color: var(--pb-dark); }
.product-b2b__size-btn.active { border-color: var(--pb-grn); background: var(--pb-grnl); color: var(--pb-grnd); }
.product-b2b__size-btn.oos { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.product-b2b__size-qty { font-size: 9px; font-weight: 400; color: var(--pb-mut); }
.product-b2b__size-btn.active .product-b2b__size-qty { color: var(--pb-grnd); }
.product-b2b__stock-line { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; }
.product-b2b__stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.product-b2b__stock-dot.in { background: var(--pb-grn); }
.product-b2b__stock-dot.out { background: var(--pb-red); }
.product-b2b__action-row { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
/* Qty wrap: same structure as .collection-b2b-root__qty-control */
.product-b2b__qty-wrap {
  display: flex; border: 1.5px solid var(--pb-brd);
  border-radius: var(--pb-rs); overflow: hidden;
}
.product-b2b__qty-btn {
  width: 40px; height: 44px; border: none;
  background: var(--pb-bg); font-size: 18px; font-weight: 700;
  color: var(--pb-dark); cursor: pointer;
}
.product-b2b__qty-input {
  width: 56px; height: 44px; border: none;
  border-left: 1px solid var(--pb-brd); border-right: 1px solid var(--pb-brd);
  text-align: center; font-size: 15px; font-weight: 700; outline: none;
}
.product-b2b__add-btn {
  flex: 1; min-width: 160px; height: 44px;
  background: var(--pb-grn); color: #fff;
  font-size: 15px; font-weight: 700;
  border: none; border-radius: var(--pb-rs); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.product-b2b__add-btn:hover { background: var(--pb-grnd); }
.product-b2b__desc-section { margin-top: 24px; padding-top: 24px; border-top: 1.5px solid var(--pb-brd); }
.product-b2b__desc-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; padding: 0; cursor: pointer;
}
.product-b2b__desc-toggle h3 { font-size: 16px; font-weight: 700; color: var(--pb-dark); margin: 0; }
.product-b2b__desc-toggle svg { color: var(--pb-mut); transition: transform 0.3s; flex-shrink: 0; }
.product-b2b__desc-toggle.open svg { transform: rotate(180deg); }
.product-b2b__desc-body { padding-top: 16px; font-size: 14px; line-height: 1.7; color: var(--pb-sec); }
.product-b2b__desc-body--hidden { display: none; }
.product-b2b__spec-row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--pb-brd); font-size: 13px; }
.product-b2b__spec-row:last-child { border-bottom: none; }
.product-b2b__spec-label { width: 140px; color: var(--pb-mut); font-weight: 500; flex-shrink: 0; }
.product-b2b__spec-value { color: var(--pb-dark); font-weight: 600; }
.product-b2b__lightbox {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.product-b2b__lightbox.is-open { opacity: 1; visibility: visible; }
.product-b2b__lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); cursor: pointer; }
.product-b2b__lightbox-close {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  width: 40px; height: 40px; background: rgba(255,255,255,0.15);
  border: none; border-radius: 50%; color: #fff; font-size: 24px; cursor: pointer;
}
.product-b2b__lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 22px; cursor: pointer;
}
.product-b2b__lightbox-arrow--prev { left: 16px; }
.product-b2b__lightbox-arrow--next { right: 16px; }
.product-b2b__lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.product-b2b__lightbox-stage { position: relative; z-index: 1; }
.product-b2b__toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--pb-dark); color: #fff;
  padding: 14px 24px; border-radius: var(--pb-rs);
  font-size: 14px; font-weight: 600;
  transform: translateY(120%); opacity: 0;
  transition: transform 0.3s, opacity 0.3s; z-index: 90000;
}
.product-b2b__toast.is-visible { transform: translateY(0); opacity: 1; }
@media (max-width: 900px) {
  .product-b2b__pd { grid-template-columns: 1fr; gap: 24px; }
  .product-b2b__gallery { position: static; }
}
@media (max-width: 500px) {
  .product-b2b__pd { padding: 0 16px 48px; }
  .product-b2b__bread { padding: 12px 16px; }
  .product-b2b__title { font-size: 22px; }
  .product-b2b__price-current { font-size: 26px; }
}

/* Validation errors */
.cb2b-field-error {
  border-color: #dc3545 !important;
  background: rgba(220,53,69,0.04) !important;
}
.cb2b-error-msg {
  display: block;
  font-size: 11px;
  color: #dc3545;
  margin-top: 4px;
}
