/* ==========================================================================
   Product Detail Page (PDP) - High-Converting Craft E-Commerce
   ========================================================================== */

/* Breadcrumbs */
.pdp-breadcrumbs {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdp-breadcrumbs a {
  color: #64748B;
  transition: color 0.15s ease;
}

.pdp-breadcrumbs a:hover {
  color: var(--dark-900);
  text-decoration: underline;
}

.pdp-breadcrumbs .separator {
  color: #CBD5E1;
}

.pdp-breadcrumbs .current {
  color: var(--dark-900);
  font-weight: 600;
}

/* Main 2-Column Product Layout */
.pdp-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Left: Gallery & Visual Proof */
.pdp-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-main-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pdp-main-img:hover {
  transform: scale(1.03);
}

.pdp-gallery-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.pdp-badge-delivery {
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pdp-badge-tested {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Thumbnails Strip */
.pdp-thumbs-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.pdp-thumbs-row::-webkit-scrollbar {
  display: none;
}

.pdp-thumb-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: #F8FAFC;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pdp-thumb-item:hover {
  border-color: var(--wls-blue);
  transform: translateY(-2px);
}

.pdp-thumb-item.active {
  border-color: var(--wls-blue);
  box-shadow: 0 0 0 2px var(--wls-blue-glow);
}

.pdp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right: Buy Box */
.pdp-buybox {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 90px;
}

.pdp-category-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #BE123C;
  background: #FFE4E6;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  letter-spacing: 0.05em;
}

.pdp-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Rating Proof */
.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #64748B;
}

.pdp-rating-row .stars {
  color: #F59E0B;
  font-size: 1rem;
}

.pdp-verified-tag {
  color: #059669;
  font-weight: 700;
  font-size: 0.78rem;
  background: #ECFDF5;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Pricing Section */
.pdp-pricing-box {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pdp-current-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--dark-900);
  line-height: 1;
}

.pdp-original-price {
  font-size: 1.15rem;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 600;
}

.pdp-savings-badge {
  background: #DCFCE7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Formats Ribbon */
.pdp-formats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp-format-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--light-bg);
  border: 1px solid var(--border);
  color: var(--dark-800);
}

.pdp-format-badge.highlight {
  background: #E0F2FE;
  border-color: #BAE6FD;
  color: #0369A1;
}

/* High-Converting Order Bump Box */
.pdp-order-bump {
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdp-order-bump:hover {
  background: #FEF3C7;
  transform: translateY(-1px);
}

.bump-checkbox {
  width: 22px;
  height: 22px;
  accent-color: #D97706;
  margin-top: 2px;
  cursor: pointer;
}

.bump-content h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bump-content p {
  font-size: 0.78rem;
  color: #78350F;
  line-height: 1.45;
}

.bump-price-tag {
  color: #B45309;
  font-weight: 900;
}

/* Buy Action Buttons */
.pdp-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-paypal-pdp {
  width: 100%;
  background: #FFC439;
  color: #003087;
  padding: 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(255, 196, 57, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-paypal-pdp:hover {
  background: #F4BB30;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 196, 57, 0.55);
}

.btn-cart-secondary {
  width: 100%;
  background: var(--dark-900);
  color: #FFFFFF;
  padding: 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-cart-secondary:hover {
  background: var(--dark-800);
  transform: translateY(-1px);
}

.pdp-security-notice {
  text-align: center;
  font-size: 0.75rem;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Trust Guarantee Bullets */
.pdp-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: #475569;
}

.pdp-trust-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdp-trust-list-item svg {
  color: #10B981;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Frequently Bought Together (Cross-sell Builder) */
.pdp-cross-sell-section {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-sm);
}

.cross-sell-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 1.5rem;
}

.cross-sell-items-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cross-sell-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  max-width: 320px;
  flex: 1;
}

.cross-sell-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
}

.cross-sell-info h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-900);
  line-height: 1.25;
}

.cross-sell-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-top: 0.2rem;
}

.cross-sell-plus {
  font-size: 1.5rem;
  font-weight: 900;
  color: #94A3B8;
}

.cross-sell-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.bundle-total-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark-900);
}

.bundle-savings-tag {
  color: #059669;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* Tabs Section */
.pdp-tabs-container {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4rem;
}

.pdp-tabs-nav {
  display: flex;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}

.pdp-tab-btn {
  padding: 1.1rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.pdp-tab-btn:hover {
  color: var(--dark-900);
}

.pdp-tab-btn.active {
  color: var(--dark-900);
  background: #FFFFFF;
  border-bottom-color: var(--wls-blue);
}

.pdp-tab-content {
  padding: 2.25rem;
  display: none;
}

.pdp-tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Compatibility Grid in Tab */
.compat-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.compat-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.compat-box h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.compat-box p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
}

/* Sticky Bottom Bar */
.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-sticky-bar.visible {
  transform: translateY(0);
}

.sticky-product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sticky-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sticky-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-900);
}

.sticky-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-900);
}

@media (max-width: 900px) {
  .pdp-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pdp-buybox {
    position: static;
  }
}

/* ==========================================================================
   Defensive Layout & SVG Constraints (Guarantees zero unconstrained overflows)
   ========================================================================== */
svg {
  max-width: 100%;
}
.pdp-trust-list-item svg,
.pdp-trust-item svg,
.pdp-trust-signals-list svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex-shrink: 0 !important;
  color: #10B981 !important;
  display: inline-block !important;
}
.pdp-thumbs-carousel-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.pdp-thumbs-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.6rem !important;
  overflow-x: auto !important;
  padding: 0.35rem 0 !important;
}
.pdp-thumb-item {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  border: 2px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  transition: all 0.2s ease !important;
}
.pdp-thumb-item.active {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25) !important;
}
.pdp-thumb-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.pdp-main-image-box {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
.pdp-main-img {
  max-height: 520px !important;
  width: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

