/* ======================================== */
/* GLOBX - PRODUCT DETAIL PAGE STYLES      */
/* ======================================== */

/* Main Product Detail Section */
.gx-product-detail-section {
  background-color: var(--primary-lightest);
  min-height: 100vh;
  padding: 2rem 0;
}

/* Search Bar Section */
.gx-search-section {
  margin-bottom: 3rem;
}

.gx-search-container {
  margin: 0 auto;
}

.gx-search-input-group {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gx-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
}

.gx-search-input::placeholder {
  color: var(--text-dark-3);
}

.gx-search-button {
  background-color: var(--primary);
  border: none;
  color: white;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.gx-search-button:hover {
  background-color: var(--primary-dark-2);
}

.gx-search-button i {
  font-size: 1rem;
}

/* Product Details Area */
.gx-product-details-area {
  margin-bottom: 4rem;
}

/* Product Summary Section */
.gx-product-summary-section {
  margin-bottom: 4rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e9ecef;
}

/* Left Column: Product Information */
.gx-product-info {
  padding-right: 3rem;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  background: white;
}

.gx-product-part-number {
  font-size: 2.5rem;
  font-weight: var(--fw-regular);
  color: var(--text-dark);
  margin-bottom: 0rem;
  line-height: 1.2;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e9ecef;
}

.gx-product-image-attributes-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.gx-product-image-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-self: center;
}

.gx-product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

/* Product Attributes */
.gx-product-attributes {
  margin-top: 2rem;
}

.gx-attributes-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.gx-attribute-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.gx-attribute-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gx-attribute-label {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gx-attribute-value {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: var(--fw-regular);
}

/* Right Column: Purchasing Container */
.gx-purchasing-container {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 2rem;
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

/* Right Column: Purchasing Module */
.gx-purchasing-module {
  padding: 1.5rem;
}

.gx-stock-info {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gx-stock-title {
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  margin: 0;
}

.gx-stock-quantity {
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  margin: 0;
}

/* Quantity Section */
.gx-quantity-section {
  margin-bottom: 2rem;
}

.gx-quantity-label {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.gx-quantity-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: white;
  outline: none;
  transition: border-color 0.2s;
}

.gx-quantity-input:focus {
  border-color: var(--primary);
}

.gx-quantity-input::placeholder {
  color: var(--text-dark-3);
}

/* Packaging Information */
.gx-packaging-info {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.gx-packaging-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gx-packaging-icon {
  color: var(--primary);
  font-size: 1rem;
}

.gx-packaging-text {
  font-weight: var(--fw-medium);
  color: var(--text-dark);
}

.gx-packaging-description {
  font-size: 0.9rem;
  color: var(--text-dark-2);
  margin: 0;
  line-height: 1.4;
}

/* Pricing Tiers Table */
.gx-pricing-tiers {
  margin-bottom: 2rem;
}

.gx-pricing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.gx-pricing-table th {
  background-color: #f8f9fa;
  padding: 1rem 0.75rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e9ecef;
}

.gx-pricing-table td {
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dark);
  border-bottom: 1px solid #f1f3f4;
}

.gx-pricing-table tr:last-child td {
  border-bottom: none;
}

.gx-pricing-row {
  transition: background-color 0.2s;
}

.gx-pricing-row:hover {
  background-color: #f8f9fa;
}

.gx-pricing-row-selected {
  background-color: var(--primary-light);
}

.gx-pricing-row-selected td {
  color: var(--primary-dark);
  font-weight: var(--fw-medium);
}

.gx-pricing-table input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  accent-color: var(--secondary);
  /* Custom checkbox styling for white tick mark */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid var(--secondary);
  border-radius: 3px;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.gx-pricing-table input[type="checkbox"]:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.gx-pricing-table input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gx-pricing-table input[type="checkbox"]:hover {
  transform: scale(1.05);
}

.gx-pricing-table input[type="checkbox"]:focus {
  outline-offset: 1px;
}

.gx-pricing-table label {
  cursor: pointer;
  font-weight: var(--fw-medium);
}

/* Subtotal Section */
.gx-subtotal-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 2px solid #e9ecef;
  margin-bottom: 1rem;
}

.gx-subtotal-label {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gx-subtotal-amount {
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
}

/* Action Buttons */
.gx-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gx-add-to-cart-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gx-get-quote-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Specifications Section */
.gx-specifications-section {
  margin-bottom: 3rem;
}

.gx-specifications-title {
  font-size: 1.35rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin: 0 0 0.85rem;
  padding: 0;
  position: relative;
  display: inline-block;
}
/* Brand-blue accent underline on the section title */
.gx-specifications-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.4rem;
  background: var(--primary, #1a7fae);
  border-radius: 2px;
}

.gx-specifications-table {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Two-column grid keeps the label / value perfectly aligned across rows.
   `minmax(140px, 0.85fr)` gives the label column a sensible min width while
   letting the value take the larger share. Stacks on mobile via media query. */
.gx-spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) 1.15fr;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.15s ease;
}
/* Subtle zebra striping for readability */
.gx-spec-row:nth-child(even) {
  background-color: #fafbfc;
}
.gx-spec-row:hover {
  background-color: var(--primary-light, #e6f4fb);
}
.gx-spec-row:last-child {
  border-bottom: none;
}

.gx-spec-label {
  font-size: 0.74rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark-2, #6b7280);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.gx-spec-value {
  font-size: 0.95rem;
  color: var(--text-dark, #111);
  font-weight: var(--fw-semibold);
  text-align: right;
  line-height: 1.4;
  word-break: break-word;
}

/* Price Table Container */
.gx-price-table-container {
  padding: 1.5rem;
  margin-top: 1rem;
}

.gx-price-table-title {
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.gx-price-table {
  width: 100%;
  border-collapse: collapse;
}

.gx-price-table th {
  background-color: #f8f9fa;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e9ecef;
}

.gx-price-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid #f1f3f4;
}

.gx-price-table tr:last-child td {
  border-bottom: none;
}

/* Pagination Dots */
.gx-related-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.gx-pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e9ecef;
  cursor: pointer;
  transition: background-color 0.2s;
}

.gx-pagination-dot.active {
  background-color: var(--primary);
}

.gx-pagination-dot:hover {
  background-color: var(--primary-light-2);
}

/* ======================================== */
/* HOT PART NUMBERS CAROUSEL STYLES         */
/* ======================================== */

/* Owl Carousel Styles */
.owl-stage {
  padding: 1rem 0;
}

/* Hot Part Numbers Pagination Styles */
.gx-hot-part-numbers-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gx-hot-part-numbers-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gx-hot-part-numbers-dot.active {
  background: var(--primary);
}

.gx-hot-part-numbers-dot:hover {
  background: var(--primary-dark);
}

/* Enhanced styling for Hot Part Numbers pagination dots */
.gx-hot-part-numbers-pagination .gx-hot-part-numbers-dot:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.gx-hot-part-numbers-pagination .gx-hot-part-numbers-dot.active {
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
}

/* Pagination dots container styling */
.gx-pagination-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 7px;
  background-color: hsla(0, 0%, 90%, 1);
  border-radius: 10px;
  max-width: 5rem;
  margin: 0 auto;
  margin-top: 1rem;
}

/* Related Components Section */
.gx-related-components-section {
  background-color: #f8f9fa;
  padding-bottom: 5rem;
}

.gx-related-title {
  font-size: 2.5rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2rem;
}

/* Related Card Styles */
.gx-related-card {
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gx-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* When the entire card is rendered as an <a> (clickable card), strip default
   anchor styling so it looks identical to the non-link version. */
.gx-related-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.gx-related-card--link:hover,
.gx-related-card--link:focus,
.gx-related-card--link:active {
  text-decoration: none;
  color: inherit;
}
.gx-related-card--link:focus-visible {
  outline: 3px solid rgba(26, 127, 174, 0.35);
  outline-offset: 2px;
}
/* Inner "Details" pill is now decorative (the whole card is the link) — keep
   the pointer state consistent. */
.gx-related-card--link .gx-related-card-btn2 {
  pointer-events: none;
}

.gx-related-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.gx-related-card-icon {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.gx-related-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.gx-related-card-part {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.gx-related-card-desc {
  font-size: 0.85rem;
  color: var(--text-dark-2);
  margin-bottom: 0.2rem;
  line-height: 1.4;
  flex: 1;
}

.gx-related-card-brand {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.gx-related-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.gx-related-card-price {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--primary-dark);
}

.gx-related-card-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: hsla(0, 0%, 90%, 1);
  color: var(--text-dark);
  text-decoration: none;
}

.gx-related-card-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .gx-product-info {
    margin-bottom: 2rem;
  }

  .gx-purchasing-container {
    position: static;
  }

  .gx-product-image-attributes-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .gx-attributes-grid {
    width: 100%;
  }

  .gx-product-part-number {
    font-size: 2rem;
  }

  .gx-spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .gx-spec-value {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .gx-product-detail-section {
    padding: 1rem 0;
    padding-top: 6rem;
  }

  .gx-product-summary-section {
    padding: 1rem 0;
  }

  .gx-purchasing-module {
    padding: 1.5rem;
  }

  .gx-product-part-number {
    font-size: 1.8rem;
  }

  .gx-stock-quantity {
    font-size: 1.5rem;
  }

  .gx-subtotal-amount {
    font-size: 1.2rem;
  }

  .gx-related-card {
    margin: 0 0.5rem;
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .gx-search-input-group {
    /* flex-direction: column; */
  }

  .gx-search-input {
    border-radius: 8px 8px 0 0;
  }

  .gx-search-button {
    /* border-radius: 0 0 8px 8px; */
  }

  .gx-product-part-number {
    font-size: 1.5rem;
  }

  .gx-purchasing-module {
    padding: 1rem;
  }

  .gx-price-table-container {
    padding: 1rem;
  }

  .gx-price-table th,
  .gx-price-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE OVERHAUL  full mobile-friendly product detail page
   ════════════════════════════════════════════════════════════════ */

/* ── Global text overflow protection ─────────────────────────── */
.gx-product-part-number,
.gx-related-card-part,
.gx-related-card-desc,
.gx-related-card-brand,
.gx-attribute-value,
.gx-spec-value,
.gx-spec-label {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ── Fluid headings using clamp() ────────────────────────────── */
.gx-product-part-number {
  font-size: clamp(1.45rem, 4.2vw, 2.5rem) !important;
  line-height: 1.2;
}

/* H1 buyer-intent suffix  subtle subtitle, fluid sizing */
.gx-h1-suffix {
  display: block;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  font-weight: 400;
  color: #8898aa;
  letter-spacing: 0;
  margin-top: 0.25em;
  line-height: 1.4;
}

/* Category badge sits under H1 suffix */
.gx-product-category-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25em 0.75em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ffa15d;
  background: rgba(255,161,93,0.12);
  border-radius: 50px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}
.gx-related-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
  line-height: 1.25;
  padding: 0 0.5rem;
}

/* ── Related card  fix overflow + cleaner mobile layout ────── */
.gx-related-card {
  margin: 0 0.25rem !important;        /* was 1rem  caused horizontal cut-off */
  padding: 1.25rem !important;
  min-width: 0;                         /* allow children to shrink */
}
.gx-related-card-top {
  flex-wrap: nowrap;                    /* keep icon next to text on mobile */
  gap: 0.75rem;
  align-items: flex-start;
}
.gx-related-card-icon { width: 50px; height: 50px; }
.gx-related-card-icon svg,
.gx-related-card-icon img {
  width: 100%; height: 100%; object-fit: contain;
}
.gx-related-card-content { min-width: 0; }
.gx-related-card-part {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1f2e;
}
.gx-related-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}
.gx-related-card-bottom {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f3f6;
}
.gx-related-card-price {
  font-size: 0.9rem;
  font-weight: 600;
}
.gx-related-card-btn2,
.gx-btn-primary2,
.card-btn2 {
  padding: 0.45rem 1rem !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
}

/* Hot-part carousel container shouldn't crop card shadows */
.gx-hot-part-numbers-carousel .owl-stage-outer { padding: 0.5rem 0; }
.gx-hot-part-numbers-carousel .owl-item { padding: 0; }

/* ════════════════════════════════════════════════════════════════
   CLS PREVENTION  reserve dimensions BEFORE Owl Carousel initializes
   Without these, the cards have no height until JS runs, causing
   the entire page below to shift down by ~280px (CLS score 0.13+)
═══════════════════════════════════════════════════════════════ */

/* Reserve full carousel height even before Owl JS initializes */
.gx-hot-part-numbers-carousel,
.gx-related-carousel {
  min-height: 280px;       /* matches typical card height + padding */
  contain: layout paint;   /* layout changes inside don't bubble out */
}

/* Each card has a stable min-height  no shift when content/images load */
.gx-hot-part-numbers-carousel .gx-related-card,
.gx-related-carousel .gx-related-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

/* Reserve space for icon area  prevents shift if image loads slowly */
.gx-related-card-icon {
  min-height: 60px;
  width: 60px;
}

/* Reserve space for part-number heading line */
.gx-related-card-part {
  min-height: 1.4em;
  margin-bottom: 0.4em;
}

/* Reserve space for description */
.gx-related-card-desc {
  min-height: 2.8em;
}

/* Pre-Owl hidden state  items not yet measured by Owl get a placeholder height */
.owl-carousel:not(.owl-loaded) {
  display: block;
  visibility: visible;
  min-height: 280px;
  background: linear-gradient(90deg, #f5f5f5 0%, #fafafa 50%, #f5f5f5 100%);
  background-size: 200% 100%;
  animation: cls-shimmer 1.5s infinite;
}
.owl-carousel:not(.owl-loaded) > * {
  display: none;          /* hide raw children until Owl loads  prevents flash */
}
@keyframes cls-shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

/* ── Search bar mobile sizing ────────────────────────────────── */
@media (max-width: 767.98px) {
  .gx-search-section { margin-bottom: 1.5rem; }
  .gx-search-input,
  .gx-search-button { padding: 0.75rem 1rem; font-size: 0.9rem; }
}

/* ── Product info card padding on mobile ─────────────────────── */
@media (max-width: 991.98px) {
  .gx-product-info { padding: 1.25rem; padding-right: 1.25rem; }
  .gx-product-image-attributes-container { gap: 1.5rem; margin-top: 1.25rem; }
  .gx-attributes-grid { gap: 0.75rem; }
  .gx-attribute-item { padding-bottom: 0.75rem; }
  .gx-attribute-label,
  .gx-attribute-value { font-size: 0.85rem; }
}

/* ── Smaller mobile  attribute label/value stacking ────────── */
@media (max-width: 575.98px) {
  .gx-product-detail-section { padding: 1rem 0; padding-top: 5rem; }
  .gx-product-info { padding: 1rem; }
  .gx-product-icon { width: 90px; height: 90px; }

  /* Stack attribute key + value vertically with subtle indent */
  .gx-attribute-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .gx-attribute-value {
    text-align: left;
    font-weight: 600;
  }

  /* Specifications table */
  .gx-specifications-title { font-size: 1.15rem !important; }
  .gx-spec-row { padding: 0.6rem 0; font-size: 0.85rem; }

  /* Purchasing module tighter */
  .gx-stock-info { margin-bottom: 0.75rem; }
  .gx-stock-title,
  .gx-stock-quantity { font-size: 1.2rem; }
  .gx-quantity-section { margin-bottom: 1.25rem; }
  .gx-packaging-info { padding: 0.75rem; margin-bottom: 1.25rem; }
  .gx-pricing-tiers { margin-bottom: 1.25rem; }
  .gx-pricing-table th,
  .gx-pricing-table td { padding: 0.5rem 0.4rem; font-size: 0.72rem; }
  .gx-subtotal-section { padding: 1rem; }
  .gx-subtotal-label { font-size: 0.8rem; }
  .gx-subtotal-amount { font-size: 1.1rem; }

  /* Quote form / button */
  .gx-get-quote-btn { font-size: 0.88rem; padding: 0.75rem 1rem; }

  /* Price (USD) table block */
  .gx-price-table-title { font-size: 0.95rem !important; }

  /* Related */
  .gx-related-components-section { padding-bottom: 2.5rem; }
  .gx-related-title { margin-bottom: 1.25rem; }
  .gx-related-card { padding: 1rem !important; }
  .gx-related-card-part { font-size: 0.9rem; }

  /* FAQ section  defined inline in detail-htmx.php */
  .gx-product-faq-section { padding: 2.25rem 0 2.5rem !important; }
  .gx-product-faq-section h2 { font-size: 1.15rem !important; }
  .gx-faq-question { font-size: 0.95rem; }
  .gx-faq-content p { font-size: 0.85rem; }

  /* Trust signals  target by aria-labelledby (added in detail-htmx.php) */
  section[aria-labelledby="trust-heading"] { padding: 2.5rem 0 3rem !important; }
  section[aria-labelledby="trust-heading"] .row > div > div:first-child {
    font-size: 1.4rem !important;
  }
  section[aria-labelledby="trust-heading"] .row > div > div:nth-child(2) {
    font-size: 0.78rem !important;
    line-height: 1.35;
  }
  section[aria-labelledby="trust-heading"] .text-center.mt-3 {
    font-size: 0.82rem !important;
  }
}

/* ────────────────────────────────────────────────────────────────
   COMPACT MOBILE LAYOUT — tighter spacing across the whole detail page
   so it reads like a mobile-app screen instead of a stretched desktop view.
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  /* Top section: push the detail page down 58px on mobile so the H1 sits
     visibly below the fixed solid header (matches .gx-products-section pattern). */
  .gx-product-detail-section {
    padding: 0.75rem 0 1.25rem !important;
    padding-top: 1rem !important;
    margin-top: 58px;
  }

  /* Search bar — slim down */
  .gx-search-section { margin-bottom: 0.75rem !important; }

  /* Main product info card */
  .gx-product-info { padding: 1rem !important; margin-bottom: 1rem !important; }
  .gx-product-part-number {
    font-size: 1.4rem !important;
    line-height: 1.25;
    margin-bottom: 0.4rem;
  }
  .gx-h1-suffix { font-size: 0.78rem !important; display: block; margin-top: 0.15rem; }
  .gx-product-category-badge { font-size: 0.7rem !important; padding: 0.15rem 0.55rem !important; }
  .gx-product-manufacturer-byline { font-size: 0.85rem !important; margin-bottom: 0.5rem !important; }
  .gx-product-intro-text { font-size: 0.85rem !important; line-height: 1.5 !important; }

  /* Image + attributes row — stack with smaller image */
  .gx-product-image-attributes-container {
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 0.75rem !important;
  }
  .gx-product-image-container { align-self: flex-start; }
  .gx-product-icon { width: 110px !important; height: 110px !important; }
  .gx-attributes-grid { gap: 0.5rem !important; }
  .gx-attribute-item { padding-bottom: 0.5rem !important; }

  /* Purchasing module — tighter */
  .gx-purchasing-module {
    padding: 1rem !important;
    border-radius: 10px;
  }
  .gx-stock-info { margin-bottom: 0.75rem; }
  .gx-stock-title, .gx-stock-quantity { font-size: 1.1rem !important; }
  .gx-quantity-section { margin-bottom: 1rem; }
  .gx-packaging-info { padding: 0.6rem 0.75rem !important; margin-bottom: 1rem !important; font-size: 0.78rem; }
  .gx-pricing-tiers { margin-bottom: 1rem; }
  .gx-pricing-tiers .gx-specifications-title,
  .gx-pricing-table-title,
  .gx-price-table-title { font-size: 0.95rem !important; }
  .gx-pricing-table th, .gx-pricing-table td { padding: 0.4rem 0.35rem !important; font-size: 0.7rem !important; }
  .gx-subtotal-section { padding: 0.85rem !important; border-radius: 8px; }
  .gx-subtotal-label { font-size: 0.75rem !important; }
  .gx-subtotal-amount { font-size: 1rem !important; }
  .gx-get-quote-btn { font-size: 0.85rem !important; padding: 0.65rem 0.9rem !important; }

  /* Specifications section — stacked label/value rows for narrow screens */
  .gx-specifications-section { padding: 1.25rem 0 0.75rem !important; margin-bottom: 1.5rem !important; }
  .gx-specifications-title { font-size: 1.1rem !important; margin-bottom: 0.6rem !important; }
  .gx-specifications-title::after { width: 36px !important; height: 2px !important; margin-top: 0.3rem !important; }
  .gx-specifications-table { border-radius: 10px !important; }
  /* Single-column grid: label sits above value, both left-aligned */
  
  .gx-specifications-table h2{
    padding: 14px;
  }
  .gx-spec-row {
    grid-template-columns: 1fr !important;
    padding: 0.65rem 0.9rem !important;
    gap: 0.15rem !important;
  }
  .gx-spec-label {
    font-size: 0.68rem !important;
    color: #888 !important;
    letter-spacing: 0.06em !important;
  }
  .gx-spec-value {
    font-size: 0.88rem !important;
    text-align: left !important;
    font-weight: 600 !important;
  }

  /* Related-components carousel inside detail page — match listing card sizing */
  .gx-related-components-section { padding: 1.25rem 0 1.5rem !important; }
  .gx-related-title { font-size: 1rem !important; margin-bottom: 0.75rem !important; text-align: left; }
  .gx-related-card { margin: 0 0.4rem !important; padding: 0.75rem !important; border-radius: 10px; }
  .gx-related-card-part { font-size: 0.88rem !important; }
  .gx-related-card-desc { font-size: 0.75rem !important; line-height: 1.35 !important; }
  .gx-related-card-brand { font-size: 0.72rem !important; }
  .gx-related-card-price { font-size: 0.9rem !important; }
  .gx-related-card-btn2 { font-size: 0.72rem !important; padding: 0.3rem 0.75rem !important; }

  /* Trust signals strip */
  section[aria-labelledby="trust-heading"] { padding: 1.5rem 0 1.75rem !important; }
  section[aria-labelledby="trust-heading"] .row > div > div:first-child { font-size: 1.25rem !important; }
  section[aria-labelledby="trust-heading"] .row > div > div:nth-child(2) { font-size: 0.72rem !important; line-height: 1.3 !important; }

  /* FAQ — tight */
  .gx-product-faq-section { padding: 1.5rem 0 1.75rem !important; }
  .gx-product-faq-section h2 { font-size: 1.05rem !important; margin-bottom: 0.75rem !important; }
  .gx-product-faq-section .gx-product-faq-mfg { display: block; font-size: 0.75rem; opacity: 0.8; }
  .gx-faq-question { font-size: 0.88rem !important; }
  .gx-faq-content p { font-size: 0.8rem !important; line-height: 1.45 !important; }
}

/* ── Tiny phones (< 360px)  very tight ──────────────────────── */
@media (max-width: 359.98px) {
  .gx-product-part-number { font-size: 1.25rem !important; }
  .gx-related-card-icon { width: 42px; height: 42px; }
  .gx-pricing-table th,
  .gx-pricing-table td { padding: 0.4rem 0.3rem; font-size: 0.68rem; }
}

/* ── Long-text guards (always on, not just mobile) ────────────── */
/* (.gx-spec-row uses display:grid above — no flex-wrap needed; word-break on
   the value handles long unbroken strings) */
.gx-spec-value { max-width: 100%; }
.gx-product-manufacturer-byline,
.gx-product-intro-text { word-break: break-word; }

/* Make purchasing container shadow + radius consistent on all screens */
.gx-purchasing-container {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-radius: 12px;
  overflow: hidden;
}

/* Pagination indicator dots overflow on small screens */
.gx-hot-part-numbers-pagination {
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 1rem;
}

/* ════════════════════════════════════════════════════════════════
   Trust signals + FAQ section  extracted from inline styles
═══════════════════════════════════════════════════════════════ */
.gx-trust-signals {
  background: #f0f4ff;
  padding: 4rem 0 4.5rem;
}
.gx-trust-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.gx-trust-stat-label {
  font-size: 0.85rem;
  color: #555;
}
.gx-trust-blurb {
  font-size: 0.92rem;
  color: #444;
}

.gx-product-faq-section {
  background: #f8f9fa;
  padding: 4rem 0 4.5rem;
}
.gx-product-faq-title {
  font-size: 1.4rem;
  font-weight: 700;
}
.gx-product-faq-mfg {
  font-size: 0.65em;
  font-weight: 400;
  color: #6b7280;
  display: block;
  margin-top: 0.25em;
}

/* H1 buyer-intent suffix span (inline → class moved earlier) */
.gx-h1-suffix { /* defined above */ }
