/**
 * Compact, polished dark footer + equal product cards + hero helpers.
 */

/* ==========================================================================
   FOOTER — compact dark layout, white logo
   ========================================================================== */

.site-footer {
  margin-top: 2rem !important;
}

.site-footer .footer-row.footer-widgets,
.site-footer .footer-row.subfooter,
.site-footer .footer-row.footer-copyright {
  background-color: #1c1f23 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.site-footer .footer-row.footer-widgets .footer-sidebar {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

@media screen and (min-width: 992px) {
  .site-footer .footer-row.footer-widgets .footer-sidebar {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
    align-items: flex-start !important;
  }

  .site-footer .footer-widgets .footer-sidebar > *.custom-column {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    padding-right: 1.5rem !important;
    border-right-color: rgba(255, 255, 255, 0.12) !important;
  }

  .site-footer .footer-widgets .footer-sidebar > *.custom-column + .widgets-column {
    padding-left: 2rem !important;
  }
}

/* Hide empty leftover logo wrappers / blank paragraphs */
.site-footer .widget_about_company .company-logo,
.site-footer .widget_about_company .company-content > p:empty,
.site-footer .widget_about_company .company-content > p:has(> br:only-child),
.site-footer .company-social:empty {
  display: none !important;
}

.site-footer .widget_about_company .company-content {
  margin: 0;
}

.site-footer .widget_about_company .company-content h3:has(img),
.site-footer .widget_about_company .company-content .storchem-footer-logo,
.site-footer .widget_about_company .company-content img {
  display: block;
  margin: 0 0 0.75rem;
}

.site-footer .widget_about_company .company-content img {
  width: auto !important;
  max-width: 160px !important;
  height: 42px !important;
  object-fit: contain !important;
  /* Dark logo → white on black footer */
  filter: brightness(0) invert(1);
}

.site-footer .widget_about_company .company-content .entry-title,
.site-footer .klbfooterwidget .widget-title,
.site-footer .widget_contact .widget-title {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.55rem !important;
  line-height: 1.35 !important;
}

.site-footer .widget_about_company .company-content .entry-description,
.site-footer .widget_about_company .company-content .entry-description p {
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
  margin: 0 0 0.65rem !important;
  opacity: 0.72 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.site-footer .widget_about_company .company-content a,
.site-footer .widget_contact a,
.site-footer .widget_nav_menu a {
  color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer .widget_about_company .company-content a:hover,
.site-footer .widget_contact a:hover,
.site-footer .widget_nav_menu a:hover {
  color: #ffc510 !important;
  text-decoration: none !important;
}

.site-footer .widget_contact .widget-title + .widget-title,
.site-footer .widget_contact .storchem-footer-phones {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 0.65rem !important;
  line-height: 1.35 !important;
}

.site-footer .widget_contact .storchem-footer-phones a {
  color: #fff !important;
  display: inline-block;
}

.site-footer .widget_contact .company-works p {
  font-size: 0.8125rem !important;
  margin: 0 0 0.35rem !important;
  opacity: 0.75 !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.site-footer .klbfooterwidget.widget {
  margin-bottom: 0 !important;
}

.site-footer .widget_nav_menu ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-footer .widget_nav_menu ul li {
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
}

.site-footer .widget_nav_menu ul li a {
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
}

/* Subfooter strip — compact */
.site-footer .subfooter .footer-inner {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

.site-footer .subfooter .sub-banners ul li {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer .subfooter .footer-inner,
.site-footer .footer-copyright .footer-inner,
.site-footer .footer-row .custom-column {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Copyright row — compact */
.site-footer .footer-copyright .footer-inner {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.site-footer .footer-copyright .site-copyright p,
.site-footer .footer-copyright .site-copyright a {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.75rem !important;
  margin: 0 !important;
}

.site-footer .footer-copyright .card-icons img {
  max-height: 22px;
  width: auto;
  opacity: 0.85;
}

@media screen and (max-width: 991.98px) {
  .site-footer .footer-widgets .footer-sidebar .widgets-column .widget {
    margin-bottom: 1.25rem !important;
  }
}

/* ==========================================================================
   Equal-height product cards
   ========================================================================== */
ul.products,
.products,
.products.gutter-30,
.klbth-module-category-products .products,
.klbth-module-wrapper .products {
  align-items: stretch !important;
}

.products .column-item,
.products > .product,
.products .product.type-product,
.klbth-module-category-products .column-item,
.klbth-module-wrapper .column-item,
.products.column-4 > *,
.products.column-5 > * {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  align-self: stretch !important;
}

.products .column-item > .product,
.column-item .product.product-type-1,
.column-item .product.product-type-2,
.product.product-type-1,
.product.product-type-2 {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
}

.product .product-wrapper,
.product-wrapper {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  width: 100% !important;
}

.product .product-content,
.product-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

.product .thumbnail-wrapper,
.product-content .thumbnail-wrapper {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  width: 100% !important;
}

.product .thumbnail-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.product .content-wrapper,
.product-content .content-wrapper {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}

.product .product-title,
.product-content .product-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  min-height: calc(1.2857142857em * 2) !important;
  max-height: calc(1.2857142857em * 2) !important;
  margin-bottom: 0.5rem !important;
}

.product .price,
.product-content .price {
  margin-top: auto !important;
  margin-bottom: 0.5rem !important;
  min-height: 1.5em !important;
}

.product .product-footer,
.product-content .product-footer {
  margin-top: auto !important;
  min-height: 2.75rem;
}

.klbth-carousel .slick-track,
.klbth-slider .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.klbth-carousel .slick-slide,
.klbth-slider .slick-slide,
.klbth-carousel .slider-item,
.klbth-slider .slider-item {
  height: auto !important;
  display: flex !important;
  float: none !important;
}

@media screen and (min-width: 1200px) {
  body.home .elementor-element-4170b68 .klbth-banner.style-inner,
  body.home .elementor-element-0fbbf4d .klbth-banner.style-inner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.home .elementor-element-4170b68 .klbth-banner.style-inner .entry-media,
  body.home .elementor-element-0fbbf4d .klbth-banner.style-inner .entry-media {
    position: relative !important;
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0;
  }

  body.home .elementor-element-4170b68 .klbth-banner.style-inner .entry-media img,
  body.home .elementor-element-0fbbf4d .klbth-banner.style-inner .entry-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
  }
}
