/* ==========================================================
   🛍️ 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;
}

/* ==========================================================
   🦶 FOOTER ALIGNMENT
   ========================================================== */

.ast-builder-grid-row-container.ast-builder-grid-row-tablet-3
  .ast-builder-grid-row > .site-footer-focus-item {
  vertical-align: top;
}

.ast-builder-grid-row > .site-footer-focus-item {
  margin-top: 0 !important;
}

.footer-bottom,
.ast-footer-copyright {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin: 0 !important;
}

.site-footer a:hover,
.ast-footer-widget-area a:hover,
.ast-footer a:hover {
  color: #ffffff !important; /* example */
}

/* Basket text (the exact span): always WHITE */
#total-items.totalitems {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* If parent link is forcing black, make the span win */
a #total-items.totalitems {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Persist basket text WHITE across interactions */
.addify-rfq-mini-cart a #total-items.totalitems,
.addify-rfq-mini-cart #total-items.totalitems,
.addify-rfq-mini-cart .afrq-menu-item > a #total-items.totalitems {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Prevent hover/focus from flipping it back */
.addify-rfq-mini-cart a:hover #total-items.totalitems,
.addify-rfq-mini-cart a:focus #total-items.totalitems,
.addify-rfq-mini-cart a:active #total-items.totalitems {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Keep dropdown content BLACK (readable) */
.addify-rfq-mini-cart .mini-quote-dropdown,
.addify-rfq-mini-cart .mini-quote-dropdown *,
.addify-rfq-mini-cart .addify-rfq-mini-cart-item.mini_quote_item,
.addify-rfq-mini-cart .addify-rfq-mini-cart-item.mini_quote_item *,
.addify-rfq-mini-cart .addify-rfq-mini-cart__total,
.addify-rfq-mini-cart .addify-rfq-mini-cart__total *,
.addify-rfq-mini-cart .addify-rfq-mini-cart__buttons .btn {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
.addify-rfq-mini-cart .mini-quote-dropdown svg,
.addify-rfq-mini-cart .mini-quote-dropdown svg path { fill: #000000 !important; }
