Theme Name: Flatsome Child
Description: Training House Koivu child theme
Author: Training House Koivu
Template: flatsome
Version: 1.0

body.tax-product_cat:has(.custom-category-header .banner.has-hover)
  .shop-page-title.category-page-title {
  display: none !important;
}
/* Traininghouse WooCommerce archive polish for Flatsome child theme */

body.woocommerce-page .products .product-category .col-inner {
  height: 100%;
}

body.woocommerce-page .products .product-category .box-category {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 47, 95, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 47, 95, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.woocommerce-page .products .product-category .box-category:hover,
body.woocommerce-page .products .product-category .box-category:focus-within {
  border-color: #0f2f5f;
  box-shadow: 0 10px 24px rgba(15, 47, 95, 0.12);
  transform: translateY(-1px);
}

body.woocommerce-page .products .product-category .box-image {
  aspect-ratio: 7 / 6;
  margin: 0.7rem 0.7rem 0;
  overflow: hidden;
  border-radius: 12px;
  background: #eef4fb;
}

body.woocommerce-page .products .product-category .box-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  background: #f5f8fb;
}

body.woocommerce-page .products .product-category .box-text {
  position: absolute;
  right: auto;
  left: 50%;
  bottom: 0.55rem;
  width: calc(100% - 2.8rem);
  max-width: 24rem;
  min-height: 5.35rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 14px rgba(15, 47, 95, 0.09);
  transform: translateX(-50%);
}

body.woocommerce-page .products .product-category .box-text h5,
body.woocommerce-page .products .product-category .box-text .header-title {
  margin: 0;
  color: #0f2f5f;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: 0;
}

body.woocommerce-page .products .product-category .box-text .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.38rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #0f2f5f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.woocommerce-page .products .product-category .box-text .count::before,
body.woocommerce-page .products .product-category .box-text .count::after {
  content: none;
}

body.woocommerce-page .products .product-small .col-inner {
  height: 100%;
  border: 1px solid rgba(15, 47, 95, 0.12);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 47, 95, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.woocommerce-page .products .product-small .col-inner:hover,
body.woocommerce-page .products .product-small .col-inner:focus-within {
  border-color: rgba(15, 47, 95, 0.42);
  box-shadow: 0 10px 24px rgba(15, 47, 95, 0.11);
  transform: translateY(-1px);
}

body.woocommerce-page .products .product-small .box-image {
  aspect-ratio: 4 / 3;
  background: #eef4fb;
}

body.woocommerce-page .products .product-small .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.woocommerce-page .products .product-small .box-text {
  padding: 0.9rem 1rem 1rem;
}

body.woocommerce-page .products .product-small .product-cat {
  margin-bottom: 0.35rem;
  color: #64758a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.woocommerce-page .products .product-small .product-title,
body.woocommerce-page .products .product-small .woocommerce-loop-product__title {
  margin-bottom: 0.45rem;
  color: #0f2f5f;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: 0;
}

body.woocommerce-page .products .product-small .price {
  color: #0f2f5f;
  font-size: 1rem;
  font-weight: 800;
}

body.woocommerce-page .products .product-small .box-excerpt {
  margin-top: 0.45rem;
  color: #42566f;
  font-size: 0.86rem;
  line-height: 1.42;
}

body.woocommerce-page .products .product-small .star-rating,
body.woocommerce-page .products .product-small .wishlist-icon {
  display: none;
}

@media (max-width: 849px) {
  body.woocommerce-page .products .product-category .box-text {
    width: calc(100% - 1.7rem);
    min-height: 5rem;
    padding: 0.9rem 0.9rem;
  }
}

body.tax-product_cat .custom-category-header {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.tax-product_cat .custom-category-header .banner {
  width: 100%;
  max-width: none;
}

body.tax-product_cat .custom-category-header .banner-inner,
body.tax-product_cat .custom-category-header .banner-bg {
  width: 100%;
}
body.tax-product_cat .term-description .custom-category-header {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}
