/* ========================================================================
   Product Detail Page — Complete Styles
   Prefixed with 'pd-' to avoid collisions
   Primary: #1e40af (teal)   Accent-Navy: #0f172a
   ======================================================================== */

/* -------------------------------------------------------
   1. BREADCRUMB
   ------------------------------------------------------- */
.pd-breadcrumb {
  background-color: #f8fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.85rem 0;
}

.pd-breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pd-breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pd-breadcrumb-link:hover {
  color: #1e40af;
}

.pd-breadcrumb-link i {
  margin-right: 0.2rem;
}

.pd-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
}

.pd-breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

/* -------------------------------------------------------
   2. MAIN SECTION WRAPPER
   ------------------------------------------------------- */
.pd-main {
  padding: 2.5rem 0 3rem;
  overflow-x: hidden;
}

.pd-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto;
  gap: 2rem 2.5rem;
  align-items: start;
  max-width: 100%;
  min-width: 0;
}

/* Place items explicitly on the grid so the two-column layout works:
   - header  (col 1)     pricing (col 2, spans multiple rows, sticky)
   - details (col 1)
   - description (col 1)
   - related (full width)
   - similar (full width)                                              */
.pd-header          { grid-column: 1 / 2; }
.pd-pricing-section { grid-column: 2 / 3; grid-row: 1 / 4; }
.pd-details-card    { grid-column: 1 / 2; }

.pd-related-section,
.pd-similar-section {
  grid-column: 1 / -1;
}

/* -------------------------------------------------------
   3. PRODUCT HEADER
   ------------------------------------------------------- */
.pd-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #eff6ff 50%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  border-left: 4px solid #1e40af;
}

.pd-header-title {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pd-product-name {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.pd-specification {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* --- Badges --- */
.pd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-badge:hover {
  transform: translateY(-1px);
}

.pd-badge-popular {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
  box-shadow: 0 1px 3px rgba(251, 191, 36, 0.25);
}

.pd-badge-new {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  color: #1e3a8a;
  border: 1px solid #93c5fd;
  box-shadow: 0 1px 3px rgba(94, 234, 212, 0.25);
}

.pd-badge-best-value {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #4ade80;
  box-shadow: 0 1px 3px rgba(74, 222, 128, 0.25);
}

/* --- Category Tags --- */
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pd-tag i {
  font-size: 0.7rem;
}

.pd-tag-category {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.pd-tag-category:hover {
  background-color: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.pd-tag-subcategory {
  background-color: #eff6ff;
  color: #0f172a;
  border: 1px solid #bfdbfe;
}

.pd-tag-subcategory:hover {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

/* -------------------------------------------------------
   4. PRICING SECTION (right column, sticky)
   ------------------------------------------------------- */
.pd-pricing-section {
  position: sticky;
  top: 100px;
  z-index: 10;
}

.pd-pricing-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafffe 100%);
  border: 2px solid #1e40af;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.pd-pricing-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* --- Pricing display --- */
.pd-pricing-display {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Contact pricing (no numeric price) --- */
.pd-contact-pricing {
  text-align: center;
  padding: 1rem 0;
}

.pd-contact-pricing .pd-price-label {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
}

.pd-contact-note {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* --- Numeric prices --- */
.pd-prices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pd-price-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pd-price-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pd-price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Bulk price item gets a special green accent box */
.pd-price-item:has(.pd-bulk-price) {
  background: linear-gradient(135deg, #eff6ff, #eff6ff);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.pd-bulk-price {
  font-size: 1.6rem;
  color: #166534;
}

.pd-savings {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #166534;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
  margin-top: 0.35rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* --- Crypto note --- */
.pd-crypto-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #eff6ff, #eff6ff);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #1e3a8a;
  transition: box-shadow 0.2s ease;
}

.pd-crypto-note:hover {
  box-shadow: 0 2px 12px rgba(30, 64, 175, 0.15);
}

.pd-crypto-note i {
  font-size: 1.25rem;
  color: #1e40af;
  flex-shrink: 0;
}

.pd-crypto-note strong {
  font-weight: 700;
}

/* --- Quantity & Add-to-Cart --- */
.pd-add-to-cart-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pd-quantity-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pd-qty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.pd-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-qty-control:focus-within {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.pd-qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  user-select: none;
}

.pd-qty-btn:hover {
  background-color: #1e40af;
  color: #ffffff;
}

.pd-qty-btn:active {
  transform: scale(0.92);
}

.pd-qty-input {
  width: 3.25rem;
  height: 2.5rem;
  text-align: center;
  border: none;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  -moz-appearance: textfield;
}

.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pd-qty-input:focus {
  outline: none;
}

.pd-add-to-cart {
  width: 100%;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.pd-add-to-cart:hover {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
  transform: translateY(-2px);
}

.pd-add-to-cart:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.pd-add-to-cart:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.pd-add-to-cart i {
  font-size: 1rem;
}

/* -------------------------------------------------------
   5. PRODUCT DETAILS CARD
   ------------------------------------------------------- */
.pd-details-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
}

.pd-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #1e40af;
}

.pd-section-title i {
  color: #fff;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.pd-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.pd-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-left: 3px solid #1e40af;
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1rem;
  transition: all 0.2s ease;
}

.pd-detail-item:hover {
  background: linear-gradient(135deg, #eff6ff, #eff6ff);
  border-color: #93c5fd;
  border-left-color: #1e40af;
  transform: translateX(2px);
}

.pd-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.pd-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

/* Test Report Link */
.pd-test-report-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.pd-test-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pd-test-report-btn:hover {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* -------------------------------------------------------
   6. DESCRIPTION
   ------------------------------------------------------- */
.pd-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* -------------------------------------------------------
   7. SECTION SUBTITLE (shared)
   ------------------------------------------------------- */
.pd-section-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: -0.75rem 0 1.25rem 0;
  font-weight: 400;
}

/* -------------------------------------------------------
   8. RELATED VARIANTS
   ------------------------------------------------------- */
.pd-related-section {
  padding-top: 0.75rem;
}

.pd-related-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* Custom scrollbar for related grid */
.pd-related-grid::-webkit-scrollbar {
  height: 5px;
}

.pd-related-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.pd-related-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.pd-related-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.pd-related-card {
  flex: 0 0 230px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.25s ease;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pd-related-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
  transform: translateY(-4px);
}

.pd-related-header {
  /* intentional empty — structural wrapper */
}

.pd-related-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}

.pd-related-spec {
  /* wrapper */
}

.pd-spec-text {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.pd-related-cat {
  /* wrapper */
}

.pd-cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pd-related-price {
  margin-top: auto;
}

.pd-contact-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  font-style: italic;
}

.pd-price-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e40af;
}

.pd-related-cta {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.6rem;
}

.pd-view-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.pd-related-card:hover .pd-view-link {
  gap: 0.6rem;
  color: #1e3a8a;
}

/* -------------------------------------------------------
   9. SIMILAR PRODUCTS
   ------------------------------------------------------- */
.pd-similar-section {
  padding-top: 0.75rem;
}

.pd-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pd-similar-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.pd-similar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e40af, #93c5fd);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pd-similar-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.12);
  transform: translateY(-4px);
}

.pd-similar-card:hover::before {
  opacity: 1;
}

.pd-similar-header {
  display: flex;
  justify-content: flex-end;
  min-height: 1.4rem;
}

.pd-similar-badges {
  display: flex;
  gap: 0.4rem;
}

.pd-mini-badge {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.pd-mini-badge:hover {
  transform: scale(1.15);
}

.pd-mini-badge-popular {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.pd-mini-badge-new {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}

.pd-mini-badge-best {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #4ade80;
}

.pd-similar-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}

.pd-similar-spec {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

.pd-similar-cat {
  margin-top: 0.25rem;
}

.pd-similar-price {
  margin-top: auto;
  padding-top: 0.35rem;
}

.pd-similar-price .pd-price-text {
  font-size: 1.2rem;
}

.pd-similar-price .pd-contact-label {
  font-size: 0.82rem;
}

.pd-similar-cta {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
}

.pd-similar-card:hover .pd-view-link {
  gap: 0.6rem;
  color: #1e3a8a;
}

/* -------------------------------------------------------
   10. TRUST SECTION
   ------------------------------------------------------- */
.pd-trust-section {
  background: linear-gradient(135deg, #0f172a 0%, #0c1222 100%);
  border-top: 3px solid #1e40af;
  padding: 3rem 0;
}

.pd-trust-header {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.pd-trust-header i {
  color: #93c5fd;
  font-size: 1.2rem;
}

.pd-trust-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pd-trust-primary-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 14px;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.pd-trust-primary-item:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(30, 64, 175, 0.5);
}

.pd-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pd-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.pd-trust-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(30, 64, 175, 0.5);
}

.pd-trust-icon {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-size: 1.15rem;
}

.pd-trust-content h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.pd-trust-content p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

/* -------------------------------------------------------
   11. UTILITY & STATE CLASSES
   ------------------------------------------------------- */
.pd-loading {
  opacity: 0.6;
  pointer-events: none;
}

.pd-error {
  color: #dc2626;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.pd-success {
  color: #166534;
  background-color: #eff6ff;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------
   FALLBACK for :has() — browsers without :has support
   The bulk price item still looks fine thanks to the
   .pd-bulk-price styling alone; the accent box just
   won't appear. No graceful-degradation issue.
   ------------------------------------------------------- */

/* ========================================================================
   RESPONSIVE — TABLET  (max-width: 767px)
   ======================================================================== */
@media (max-width: 767px) {
  .pd-main {
    padding: 1.25rem 0 2rem;
  }

  /* Collapse to single column */
  .pd-content-wrapper {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    overflow-x: hidden;
    max-width: 100%;
  }

  .pd-header,
  .pd-pricing-section,
  .pd-details-card,
  .pd-related-section,
  .pd-similar-section {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
  }

  .pd-pricing-section {
    position: static;
  }

  /* Header compact */
  .pd-header {
    padding: 1.15rem;
    border-radius: 12px;
  }

  .pd-product-name {
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .pd-specification {
    font-size: 0.92rem;
  }

  .pd-header-title {
    gap: 0.5rem;
  }

  /* Pricing card */
  .pd-pricing-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .pd-price-amount {
    font-size: 2rem;
  }

  .pd-bulk-price {
    font-size: 1.4rem;
  }

  /* Quantity buttons - 44px touch targets on mobile */
  .pd-qty-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .pd-qty-input {
    width: 3.5rem;
    height: 2.75rem;
    font-size: 1rem;
  }

  /* Add to Cart - full width prominent button */
  .pd-add-to-cart {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    min-height: 52px;
    border-radius: 12px;
    letter-spacing: 0.5px;
  }

  .pd-section-title {
    font-size: 1.1rem;
  }

  .pd-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  /* Description text - prevent overflow */
  .pd-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  /* Similar: 2 columns on tablet */
  .pd-similar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .pd-related-card {
    flex: 0 0 200px;
  }

  /* Related grid - prevent overflow */
  .pd-related-grid {
    max-width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: thin;
  }

  /* Trust: 2 columns */
  .pd-trust-section {
    padding: 2rem 0;
  }

  .pd-trust-header {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
  }

  .pd-trust-primary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .pd-trust-primary-item {
    padding: 1rem;
    gap: 0.75rem;
  }

  .pd-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .pd-trust-item {
    padding: 1rem;
    gap: 0.75rem;
  }

  .pd-trust-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .pd-trust-content h3 {
    font-size: 0.85rem;
  }

  .pd-trust-content p {
    font-size: 0.75rem;
  }
}

/* ========================================================================
   RESPONSIVE — MOBILE  (max-width: 479px)
   ======================================================================== */
@media (max-width: 479px) {
  .pd-main {
    padding: 1rem 0 1.5rem;
  }

  .pd-content-wrapper {
    gap: 1rem;
  }

  /* Breadcrumb - compact */
  .pd-breadcrumb {
    padding: 0.5rem 0;
  }

  .pd-breadcrumb-nav {
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .pd-breadcrumb-sep {
    font-size: 0.5rem;
  }

  /* Header - tighter */
  .pd-header {
    padding: 1rem;
    border-radius: 10px;
    border-left-width: 3px;
  }

  .pd-header-title {
    gap: 0.4rem;
  }

  .pd-product-name {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .pd-specification {
    font-size: 0.85rem;
  }

  .pd-badges {
    gap: 0.4rem;
    margin-top: 0.15rem;
  }

  .pd-badge {
    padding: 0.2rem 0.55rem;
    font-size: 0.62rem;
  }

  .pd-tags {
    gap: 0.4rem;
    margin-top: 0.2rem;
  }

  .pd-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .pd-tag i {
    font-size: 0.6rem;
  }

  /* Pricing - compact and clear */
  .pd-pricing-card {
    padding: 1.15rem;
    border-radius: 10px;
    border-width: 1.5px;
  }

  .pd-prices {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .pd-price-label {
    font-size: 0.72rem;
    letter-spacing: 0.6px;
  }

  .pd-price-amount {
    font-size: 1.75rem;
  }

  .pd-price-item:has(.pd-bulk-price) {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .pd-bulk-price {
    font-size: 1.3rem;
  }

  .pd-savings {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
    margin-top: 0.25rem;
  }

  /* Quantity controls - 44px touch targets */
  .pd-add-to-cart-section {
    gap: 0.75rem;
  }

  .pd-quantity-group {
    gap: 0.6rem;
  }

  .pd-qty-label {
    font-size: 0.82rem;
  }

  .pd-qty-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    font-size: 0.85rem;
  }

  .pd-qty-input {
    width: 3rem;
    height: 2.75rem;
    font-size: 1rem;
    font-weight: 700;
  }

  .pd-qty-control {
    border-radius: 8px;
  }

  /* Add to Cart button */
  .pd-add-to-cart {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    min-height: 50px;
    border-radius: 10px;
    font-weight: 700;
  }

  /* Contact pricing */
  .pd-contact-pricing .pd-price-label {
    font-size: 1.15rem;
  }

  .pd-contact-note {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  /* Details card */
  .pd-details-card {
    padding: 1.1rem;
    border-radius: 10px;
  }

  .pd-details-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pd-detail-item {
    padding: 0.7rem 0.8rem;
    border-radius: 0 8px 8px 0;
    gap: 0.2rem;
  }

  .pd-detail-label {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }

  .pd-detail-value {
    font-size: 0.88rem;
  }

  .pd-section-title {
    font-size: 1rem;
    gap: 0.4rem;
    padding-bottom: 0.6rem;
    border-bottom-width: 2px;
    margin-bottom: 1rem;
  }

  .pd-section-title i {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
  }

  .pd-section-subtitle {
    font-size: 0.82rem;
    margin: -0.6rem 0 1rem 0;
  }

  /* Description */
  .pd-description {
    font-size: 0.88rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Related variants - horizontal scroll */
  .pd-related-section {
    padding-top: 0.5rem;
  }

  .pd-related-grid {
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .pd-related-card {
    flex: 0 0 160px;
    padding: 0.9rem;
    border-radius: 10px;
    gap: 0.45rem;
  }

  .pd-related-name {
    font-size: 0.82rem;
  }

  .pd-spec-text {
    font-size: 0.72rem;
  }

  .pd-cat-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
  }

  .pd-price-text {
    font-size: 1rem;
  }

  .pd-related-cta {
    padding-top: 0.5rem;
  }

  .pd-view-link {
    font-size: 0.75rem;
  }

  /* Similar products */
  .pd-similar-section {
    padding-top: 0.5rem;
  }

  .pd-similar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .pd-similar-card {
    padding: 0.9rem;
    border-radius: 10px;
    gap: 0.4rem;
  }

  .pd-similar-header {
    min-height: 1.2rem;
  }

  .pd-similar-name {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .pd-similar-spec {
    font-size: 0.72rem;
  }

  .pd-similar-price .pd-price-text {
    font-size: 1rem;
  }

  .pd-similar-cta {
    padding-top: 0.5rem;
  }

  /* Trust section */
  .pd-trust-section {
    padding: 1.75rem 0;
    border-top-width: 2px;
  }

  .pd-trust-header {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .pd-trust-primary-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .pd-trust-primary-item {
    padding: 0.9rem;
    border-radius: 10px;
    gap: 0.75rem;
  }

  .pd-trust-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pd-trust-item {
    padding: 0.9rem;
    border-radius: 10px;
    gap: 0.75rem;
  }

  .pd-trust-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .pd-trust-content h3 {
    font-size: 0.82rem;
  }

  .pd-trust-content p {
    font-size: 0.72rem;
  }
}

/* ========================================================================
   EXTRA-SMALL PHONES  (max-width: 359px)
   ======================================================================== */
@media (max-width: 359px) {
  .pd-content-wrapper {
    gap: 0.85rem;
  }

  .pd-similar-grid {
    grid-template-columns: 1fr;
  }

  .pd-product-name {
    font-size: 1.15rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .pd-price-amount {
    font-size: 1.5rem;
  }

  .pd-bulk-price {
    font-size: 1.15rem;
  }

  .pd-related-card {
    flex: 0 0 145px;
    padding: 0.75rem;
  }

  .pd-quantity-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .pd-qty-control {
    justify-content: center;
  }

  .pd-header {
    padding: 0.85rem;
    border-radius: 8px;
  }

  .pd-add-to-cart {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .pd-pricing-card {
    padding: 0.9rem;
    border-radius: 8px;
  }

  .pd-details-card {
    padding: 0.9rem;
    border-radius: 8px;
  }

  .pd-trust-primary-grid {
    gap: 0.6rem;
  }

  .pd-trust-grid {
    gap: 0.6rem;
  }

  .pd-breadcrumb-nav {
    font-size: 0.65rem;
  }
}
