/* ==========================================================
   🛍️ SHOP & CATEGORY GRID CLEANUP
   ========================================================== */

/* Desktop: keep category thumbs tidy */
@media (min-width: 1025px) {
  .woocommerce ul.products li.product.product-category a img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    margin-inline: auto;
    display: block;
  }
}

/* Tablet/Mobile: category name below image */
@media (max-width: 1024px) {
  .woocommerce ul.products li.product.product-category a {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
	
	 .woocommerce .product-category .woocommerce-loop-category__title {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    margin: 0.5rem 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .woocommerce .product-category .woocommerce-loop-category__title::before,
  .woocommerce .product-category .woocommerce-loop-category__title::after {
    display: none !important;
    content: none !important;
  }
}

/* Product grid alignment & equal tiles */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.8em;
}

.woocommerce ul.products li.product .price {
  min-height: 1.6em;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  margin-top: auto;
}

/* Let images size naturally unless overwritten elsewhere */
.woocommerce ul.products li.product a img {
  height: auto;
  max-height: none;
  display: block;
}

/* Equal thumbnails for real products only */
.woocommerce ul.products li.product:not(.product-category) a img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

/* ==========================================================
   🏷️ CATEGORY SECTION / SEE MORE BUTTON
   ========================================================== */

.category-section {
  position: relative;
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* Hide top "See more" button in shortcode areas */
.section-header .see-more-btn {
  display: none !important;
}

.see-more-wrapper {
  text-align: right;
  margin-top: 10px;
}

.see-more-btn {
  display: inline-block;
  background: #000;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.2s ease-in-out;
}

.see-more-btn:hover {
  background: #333;
  color: #fff !important;
}

/* Category Header - Smaller & More Compact */
.woocommerce-products-header h1,
.woocommerce-products-header .woocommerce-products-header__title,
.page-header h1,
.ast-archive-description h1 {
  font-size: 32px !important;
  line-height: 1.3 !important;
  margin-bottom: 15px !important;
  font-weight: 600 !important;
}

/* Category Description - Smaller Text */
.woocommerce-products-header p,
.term-description,
.ast-archive-description p {
  font-size: 20px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  max-width: 900px;
  color: #666 !important;
}

/* Reduce Overall Category Header Spacing */
.woocommerce-products-header,
.ast-archive-description {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  margin-bottom: 30px !important;
}

/* ==========================================================
   RFQ PDF ICON
   ========================================================== */

.afrfq-pdf-download img {
  filter: brightness(0) invert(1);
  width: 16px;
  height: auto;
}


/* ======================================
   NEW SNIPPET-BASED TRUST BADGES
   ====================================== */

.dc-trust-badges {
  margin-top: 15px;
  padding: 16px 20px;
  border-radius: 8px;
  background: #101010;
  color: #ffffff;
}

.dc-trust-badges ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: space-between;
}

.dc-trust-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 180px;
  min-width: 150px;
  max-width: 260px;
}

.dc-trust-badges .dc-trust-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.dc-trust-badges .dc-trust-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.dc-trust-badges li strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.dc-trust-badges li span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

/* ======================================
   TRUST STRIP INFINITE CAROUSEL
   ====================================== */

.dc-trust-carousel {
  width: 100%;
  overflow: hidden;
  background: #101010;
  color: #ffffff;
  padding: 14px 0;
  position: relative;
  z-index: 1; /* keep under menus */
}

.dc-trust-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: dc-trust-slide 35s linear infinite;
}

.dc-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 0 10px;
}

.dc-trust-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.dc-trust-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.dc-trust-text strong {
  font-size: 14px;
  display: block;
}

.dc-trust-text span {
  font-size: 12px;
  opacity: 0.8;
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .dc-trust-carousel {
    padding: 10px 0;
  }

  .dc-trust-text strong {
    font-size: 13px;
  }

  .dc-trust-text span {
    font-size: 11px;
  }
}

@keyframes dc-trust-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
