/* ======================================== */
/* PRODUCTS LANDING PAGE STYLES            */
/* ======================================== */

/* ======================================== */
/* MAIN SECTION LAYOUT                     */
/* ======================================== */

.gx-products-section {
  background: #fff;
  padding: 2rem 0 4rem 0;
  min-height: calc(100vh - 200px);
  /* margin-top: 13rem; */
}

/* ======================================== */
/* INTRODUCTORY SECTION                    */
/* ======================================== */

.gx-intro-section {
  margin-bottom: 3rem;
}
/* Products-page intro section: balance the categories card with the marketing
   image so they share the same visual weight and height instead of the card
   shrinking to its 370px max-width default (designed for the home hero). */
.gx-intro-section > .row {
  align-items: stretch;
}
.gx-intro-section [class*="col-"] {
  display: flex;
}
/* Categories card: fill its column, match the marketing image height */
.gx-intro-section .gx-sidebar-card {
  margin-top: 0;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  min-height: 410px;
  padding: 2rem 1.25rem 1.5rem;
  border-radius: 1rem;
}
.gx-intro-section .gx-sidebar-title {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}
/* Marketing carousel container: also fill column, equal heights */
.gx-intro-section .gx-marketing-carousel-container {
  width: 100%;
  height: 100%;
}
.gx-intro-section .gx-marketing-image-container {
  height: 100%;
  min-height: 410px;
  border-radius: 1rem;
}

@media (max-width: 991.98px) {
  .gx-intro-section { margin-bottom: 2rem; }
  .gx-intro-section .gx-sidebar-card,
  .gx-intro-section .gx-marketing-image-container {
    min-height: 320px;
  }
  .gx-intro-section .gx-sidebar-card {
    margin-bottom: 1.25rem;
    padding: 1.5rem 1rem 1.25rem;
  }
}
@media (max-width: 575.98px) {
  .gx-intro-section .gx-sidebar-card,
  .gx-intro-section .gx-marketing-image-container {
    min-height: 280px;
  }
  .gx-intro-section .gx-marketing-image-container {
    border-radius: 0.75rem;
  }
}

/* ======================================== */
/* MARKETING CAROUSEL                      */
/* ======================================== */

.gx-marketing-carousel-container {
  position: relative;
  height: 100%;
}

.gx-marketing-carousel {
  height: 100%;
}

.gx-marketing-slide {
  height: 100%;
}

.gx-marketing-image-container {
  position: relative;
  height: 410px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.gx-marketing-slide, .owl-item, .owl-stage, .owl-carousel, .owl-stage-outer{
  height: 100%;
}

.gx-marketing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-marketing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  text-align: left;
  padding: 2rem;
  color: #fff;
}

.gx-marketing-headline {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-light);
}

.gx-marketing-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

/* Marketing Pagination */
.gx-marketing-pagination {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  z-index: 10;
  margin-top: 1.2rem;
  padding: 6px;
  background-color: hsla(0, 0%, 30%, 1);
  border-radius: 10px;
}

.gx-marketing-pagination .gx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.gx-marketing-pagination .gx-dot.active,
.gx-marketing-pagination .gx-dot:hover {
  background: #fff;
  border-color: #fff;
}

/* Marketing Image Container */
.gx-marketing-image-container {
  position: relative;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gx-marketing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-marketing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  text-align: left;
  padding: 2rem;
  color: #fff;
}

.gx-marketing-headline {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 4rem;
  line-height: 1.2;
  color: var(--text-light);
}

/* Marketing Pagination */
.gx-marketing-pagination {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  z-index: 10;
  margin-top: 1.2rem;
  padding: 6px;
  background-color: hsla(0, 0%, 30%, 1);
  border-radius: 10px;
}

.gx-marketing-pagination .gx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.gx-marketing-pagination .gx-dot.active,
.gx-marketing-pagination .gx-dot:hover {
  background: #fff;
  border-color: #fff;
}

/* ======================================== */
/* FEATURED MANUFACTURERS SECTION          */
/* ======================================== */

.gx-featured-manufacturers-section {
  padding: 3rem 0;
}

.gx-section-title {
  font-size: 2rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
}

.gx-manufacturers-scroll-container {
  overflow: hidden;
  position: relative;
}

.gx-manufacturers-scroll-track {
  display: flex;
  animation: scrollManufacturers 30s linear infinite;
  width: max-content;
}

.gx-manufacturer-logo {
  /* flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin: 0 1rem; */
}

.gx-manufacturer-logo:hover {
  transform: translateY(-2px);
}

.gx-manufacturer-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes scrollManufacturers {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ======================================== */
/* FEATURED PRODUCTS SECTION               */
/* ======================================== */

.gx-featured-products-section {
  padding: 3rem 0;
}

.gx-featured-carousel-container {
  position: relative;
}

@media (min-width: 992px) {
  .gx-featured-carousel {
    margin-bottom: 2rem;
  }
  
  .gx-hot-part-numbers-pagination {
    margin-top: 1.5rem;
  }
  .gx-related-title {
    margin-bottom: 2rem;
    }
    .gx-section-title {
      margin-bottom: 2rem;
      }
}
.gx-featured-carousel, .gx-hot-part-numbers-carousel .owl-stage{
    padding: 1rem 0rem;
}



.gx-featured-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  min-height: 300px;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 1rem 0;
}

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

.gx-featured-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.gx-featured-card-brand-logo {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.gx-featured-card-brand-logo img {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.gx-featured-card-title {
  font-size: 1.1rem;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.gx-featured-card-image {
  display: flex;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.gx-featured-card-image img {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 0.25rem;
}

.gx-featured-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.gx-featured-card-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-dark-2);
  margin-bottom: 1rem;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  flex: 1;
}

.gx-featured-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  flex-shrink: 0;
}

.gx-featured-card-link-secondary {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.gx-featured-card-link-secondary:hover {
  color: var(--text-dark);
}

.gx-featured-card-link-primary {
  color: var(--text-dark);
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.gx-featured-card-link-primary:hover {
  color: var(--primary);
}

.gx-featured-pagination {
  
}

.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;
}

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

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

/* Ensure featured products pagination dots are properly styled */
.gx-featured-pagination .gx-pagination-dot {
  position: relative;
  z-index: 15;
  pointer-events: auto;
}

.gx-featured-pagination .gx-pagination-dot:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

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

/* Ensure Hot Part Numbers pagination dots have the same enhanced styling */
.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);
}

/* ======================================== */
/* OWL CAROUSEL STYLES                     */
/* ======================================== */


/* ======================================== */
/* HOT PART NUMBERS PAGINATION STYLES      */
/* ======================================== */



.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);
}

/* ======================================== */
/* HOT PART NUMBERS SECTION                */
/* ======================================== */

.gx-related-components-section {
  padding: 3rem 0;
}

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


.gx-related-carousel-container {
  position: relative;
  margin-bottom: 2rem;
}

.gx-related-carousel {
  margin-bottom: 2rem;
  /* Ensure carousel is visible */
  display: block !important;
  visibility: visible !important;
}

/* Ensure carousel items are properly displayed */
.gx-related-carousel .owl-item {
  display: block;
}

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

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

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

.gx-pagination-dot:hover {
  background: var(--primary-dark);
}

.gx-related-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
}

.gx-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.gx-related-card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gx-related-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 0.25rem;
  border: 1px solid #e0e0e0;
}

.gx-related-card-content {
  flex: 1;
}

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

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

.gx-related-card-brand {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.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: 600;
  color: var(--text-dark);
}

.gx-related-card-btn {
  /* background: var(--primary);
  color: #fff;
  border: none; */
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  cursor: pointer;
  /* transition: background-color 0.2s; */
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

/* ======================================== */
/* RESPONSIVE DESIGN                       */
/* ======================================== */

/* Large Desktop */
@media (min-width: 1400px) {
  .gx-marketing-headline {
    font-size: 2rem;
  }

  .gx-marketing-subtitle {
    font-size: 1.2rem;
  }
}

/* Desktop */
@media (max-width: 1399.98px) {
  .gx-marketing-headline {
    font-size: 2.25rem;
  }
}

/* ────────────────────────────────────────────────────────────────
   Results filter bar  square (rounded-rect) search + dropdowns,
   fully responsive. Sits above the "SEARCHED RESULTS FOR …" heading
   on the products listing page.
   ──────────────────────────────────────────────────────────────── */
/* Tighten the search-results section: kill the large top padding above the
   filter bar AND the gap between the heading and the cards. */
#searched-results.gx-related-components-section {
  padding-top: 0 !important;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0 !important;
}
#searched-results .gx-related-title {
  margin: 0.25rem 0 0.75rem;
  line-height: 1.2;
}

.gx-results-filters {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.25rem;
  margin: 0 0 0.75rem;
}
.gx-results-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.gx-results-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 180px;
  min-width: 0;
}
.gx-results-filters__field--grow {
  flex: 2 1 240px;
}
.gx-results-filters__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0;
}
.gx-results-filters__input {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-dark, #1f2937);
  background: #f7f8fa;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.gx-results-filters__input:focus {
  background: #fff;
  border-color: var(--primary, #1a7fae);
  box-shadow: 0 0 0 3px rgba(26, 127, 174, 0.15);
}
/* Custom dropdown chevron for <select> (since appearance:none removes native arrow) */
select.gx-results-filters__input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.gx-results-filters__actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.gx-results-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
  padding: 0 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.gx-results-filters__btn--primary {
  background: var(--primary, #1a7fae);
  color: #fff;
  border-color: var(--primary, #1a7fae);
}
.gx-results-filters__btn--primary:hover {
  background: var(--primary-hover, #155f82);
  border-color: var(--primary-hover, #155f82);
  color: #fff;
}
.gx-results-filters__btn--ghost {
  background: transparent;
  color: #4b5563;
  border-color: #d1d5db;
}
.gx-results-filters__btn--ghost:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* Mobile  stack everything into a single column, full-width inputs/buttons */
@media (max-width: 767.98px) {
  .gx-results-filters {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
  }
  .gx-results-filters__row {
    gap: 0.6rem;
  }
  .gx-results-filters__field,
  .gx-results-filters__field--grow {
    flex: 1 1 100%;
  }
  .gx-results-filters__actions {
    flex: 1 1 100%;
    gap: 0.5rem;
  }
  .gx-results-filters__btn {
    flex: 1 1 50%;
    height: 42px;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .gx-products-section {
    padding: 1.5rem 0 3rem 0;
    margin-top: 58px;
  }
  
  .gx-intro-section {
    margin-bottom: 3rem;
  }
  
  .gx-marketing-image-container {
    height: 300px;
    margin-top: 2rem;
  }
  
  .gx-marketing-headline {
    font-size: 2rem;
    max-width: 90%;
  }
  
  .gx-marketing-subtitle {
    font-size: 1rem;
  }
  
  .gx-marketing-pagination {
    bottom: 1rem;
    left: 1.5rem;
  }
  
  .gx-featured-manufacturers-section,
  .gx-featured-products-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
  }
  
  .gx-section-title {
    font-size: 1.75rem;
  }
  
  .gx-featured-card {
    padding: 1.5rem;
    min-height: 280px;
    max-height: 400px;
  }
  
  .gx-featured-card-title {
    font-size: 1.1rem;
  }
  
  .gx-featured-card-desc {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
  
  .gx-featured-card-image img {
    width: 70px;
    height: 70px;
    max-width: 70px;
    max-height: 70px;
  }
  
  .gx-related-components-section {
    padding: 2rem 0;
  }
  
  .gx-related-title {
    font-size: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .gx-products-section {
    padding: 1rem 0 2rem 0;
  }
  
  .gx-intro-section {
    margin-bottom: 2rem;
  }
  
  .gx-marketing-image-container {
    height: 250px;
    margin-top: 1.5rem;
  }
  
  .gx-marketing-headline {
    font-size: 1.75rem;
    max-width: 95%;
  }
  
  .gx-marketing-subtitle {
    font-size: 0.9rem;
  }
  
  .gx-marketing-pagination {
    left: 1rem;
  }
  
  .gx-marketing-pagination .gx-dot {
    width: 10px;
    height: 10px;
    margin-right: 0.4rem;
  }
  
  .gx-featured-manufacturers-section,
  .gx-featured-products-section {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }
  
  .gx-section-title {
    font-size: 1.5rem;
  }
  
  .gx-manufacturer-logo {
    padding: 0.75rem;
  }
  
  .gx-manufacturer-logo img {
    height: 60px;
  }
  
  .gx-featured-card {
    padding: 1.25rem;
    min-height: 250px;
    max-height: 350px;
  }
  
  .gx-featured-card-title {
    font-size: 1rem;
  }
  
  .gx-featured-card-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  
  .gx-featured-card-image img {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
  }
  
  .gx-featured-card-actions {
    gap: 0.5rem;
  }
  
  .gx-featured-card-link-secondary,
  .gx-featured-card-link-primary {
    font-size: 0.8rem;
  }
  
  .gx-related-components-section {
    padding: 1.5rem 0;
  }
  
  .gx-related-title {
    font-size: 1.5rem;
  }
  
  .gx-related-card {
    padding: 1.25rem;
  }
  
  .gx-related-card-top {
    flex-direction: column;
    text-align: center;
  }
  
  .gx-related-card-icon {
    align-self: center;
  }
  
  .gx-related-card-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Mobile-compact product card layout — tight rows that read like a mobile-app
   list: square thumb on the left, part number + brand + description stacked
   on the right, price + details pill on a thin footer row. */
@media (max-width: 767.98px) {
  .gx-related-components-section {
    padding: 1rem 0;
  }
  .gx-related-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }
  /* Tighter row gap between cards on mobile */
  #ajax-product-list .row {
    row-gap: 0.65rem !important;
  }
  /* Reset any tablet column-stacking — go back to row layout */
  .gx-related-card {
    padding: 0.75rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .gx-related-card-top {
    flex-direction: row !important;
    text-align: left !important;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .gx-related-card-icon {
    align-self: flex-start !important;
    width: 64px;
    min-width: 64px;
    height: 64px;
    background: #f7f8fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .gx-related-card-icon img,
  .gx-related-card-icon svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
  .gx-related-card-content {
    flex: 1;
    min-width: 0; /* allow text to wrap properly */
  }
  .gx-related-card-part {
    font-size: 0.95rem !important;
    margin: 0 0 0.15rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gx-related-card-desc {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem !important;
  }
  .gx-related-card-brand {
    font-size: 0.75rem !important;
    color: #888;
    margin-bottom: 0.25rem;
  }
  .gx-related-card-content > div:last-child {
    font-size: 0.7rem;
    color: #999;
  }
  /* Footer row: price on left, Details pill on right */
  .gx-related-card-bottom {
    flex-direction: row !important;
    text-align: left !important;
    gap: 0.5rem !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
  }
  .gx-related-card-price {
    font-size: 0.95rem !important;
    font-weight: 600;
    padding: 0 !important;
    background: transparent !important;
  }
  .gx-related-card .card-btn2 {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .gx-marketing-image-container {
    height: 300px;
  }
  
  .gx-marketing-headline {
    font-size: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  }
  
  .gx-marketing-subtitle {
    font-size: 0.85rem;
  }
  
  .gx-manufacturer-logo img {
    height: 50px;
  }
  
  .gx-featured-card-stats {
    font-size: 0.8rem;
  }
  
  .gx-featured-card-count,
  .gx-featured-card-brand {
    padding: 0.4rem 0.8rem;
  }
}

/* ======================================== */
/* ANIMATIONS                               */
/* ======================================== */

.gx-marketing-image-container,
.gx-featured-card,
.gx-related-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gx-manufacturer-logo,
.gx-featured-card,
.gx-related-card {
  transition: all 0.2s ease;
}

/* ======================================== */
/* ACCESSIBILITY                           */
/* ======================================== */

.gx-featured-card-btn:focus,
.gx-related-card-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.gx-pagination-dot:focus,
.gx-marketing-pagination .gx-dot:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ======================================== */
/* PRINT STYLES                            */
/* ======================================== */

@media print {
  .gx-search-section,
  .gx-featured-pagination,
  .gx-related-pagination,
  .gx-marketing-pagination {
    display: none;
  }
  
  .gx-products-section {
    margin-top: 0;
    padding: 0;
  }
  
  .gx-marketing-image-container,
  .gx-featured-card,
  .gx-related-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
