/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.3
 Text Domain:  woodmart
*/

/* Ambrance: equal-height product cards — prices/buttons align per row */
.products.wd-products,
.products {
  align-items: stretch !important;
}
.products .wd-product {
  display: flex;
  height: 100%;
}
.products .wd-product .wd-product-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.products .wd-product .wd-product-wrapper > .wd-product-thumb,
.products .wd-product .wd-product-wrapper > .wd-loop-prod-thumb {
  flex: 0 0 auto;
  padding: 12px 12px 0;
}
.products .wd-product .wd-product-img-link {
  display: block;
  aspect-ratio: 7 / 8;
  overflow: hidden;
  background: #fff;
}
.products .wd-product .wd-product-img-link img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center;
}
.products .wd-product .wd-loop-prod-price {
  margin-top: auto;
}

/* Ambrance: size (ml) as centered pill badge */
.products .wd-product .wd-loop-prod-attrs {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  margin: 0 0 4px;
}
.products .wd-product .wd-loop-prod-attrs .shop_attributes,
.products .wd-product .wd-loop-prod-attrs tbody,
.products .wd-product .wd-loop-prod-attrs tr,
.products .wd-product .wd-loop-prod-attrs td {
  display: contents !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.products .wd-product .wd-loop-prod-attrs .wd-term {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  line-height: 1.2;
  font-size: 12px;
  color: #111;
}
.products .wd-product .wd-loop-prod-attrs .wd-term-name {
  font-size: inherit;
  font-weight: 400;
}

/* Ambrance: center product price in loop cards */
.products .wd-product .wd-loop-prod-price,
.products .wd-product .wd-loop-prod-price .price,
.products .wd-product .wd-loop-prod-price.wd-2d36d2a1 {
  text-align: center !important;
}

/* Ambrance: category pills — GTranslate + Samsung Internet harden */
[data-elementor-id] > .ambrance-cat-pills.e-con {
  color-scheme: only light;
  forced-color-adjust: none;
  -webkit-text-size-adjust: 100%;
  background-color: #f7f7f7 !important;
}
.ambrance-pills-scroll > .e-con-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: max-content !important;
  min-width: 100%;
  box-sizing: border-box;
}
.ambrance-cat-pills .elementor-widget-wd_button {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  position: relative !important;
  z-index: 1;
  margin: 0 !important;
}
.ambrance-cat-pills .elementor-widget-wd_button .btn,
.ambrance-cat-pills a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: 1px solid #111111 !important;
  background-color: transparent !important;
  isolation: isolate;
}
.ambrance-cat-pills .btn font,
.ambrance-cat-pills .btn span,
.ambrance-cat-pills .btn .wd-btn-text,
.ambrance-cat-pills .btn * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  position: static !important;
  float: none !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
