/* unmatched BRAND CSS */
/* Applies the original design system fonts, shadows and interactions to all Elementor pages */

body, p, span, a, li, input, textarea, select, button {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.xpro-heading-title,
.elementor-heading-title {
  font-family: 'Fredoka', sans-serif !important;
  letter-spacing: -0.01em;
}

.xpro-heading-title, .xpro-title-focus {
  font-family: 'Fredoka', sans-serif !important;
}

.xpro-elementor-button,
.elementor-button {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.xpro-elementor-button:hover,
.elementor-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(25,26,46,0.9);
}
.xpro-elementor-button:active,
.elementor-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.unmatched-tilt img {
  transform: rotate(-4deg);
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.2);
}
.unmatched-tilt:hover img {
  transform: rotate(-2deg) translateY(-6px) scale(1.02);
}

.unmatched-marquee, .unmatched-marquee p {
  font-family: 'Fredoka', sans-serif !important;
}

.elementor-testimonial__name {
  font-family: 'Fredoka', sans-serif !important;
}

.wpforms-submit {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
}

/* ============ PRODUCT CARDS (xpro-woo-product-grid) ============ */
.xpro-woo-product-grid-item {
  background: #FFFFFF;
  box-shadow: 8px 10px 0 rgba(25,26,46,0.85) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.xpro-woo-product-grid-item:hover {
  transform: translateY(-6px);
  box-shadow: 10px 13px 0 rgba(25,26,46,0.85) !important;
}
.xpro-woo-product-grid-img {
  overflow: hidden;
}
.xpro-woo-product-grid-img img.xpro-woo-product-grid-img {
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.xpro-woo-product-grid-item:hover .xpro-woo-product-grid-img img.xpro-woo-product-grid-img {
  transform: scale(1.08);
}
.xpro-woo-product-grid-content-sec {
  padding: 16px 18px 20px !important;
}
.xpro-woo-product-grid-category-wrapper {
  margin: 0 0 4px !important;
}
.xpro_elementor_category_term_name {
  font-family: 'Fredoka', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7B5EC9;
}
.xpro-woo-product-grid-title {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #191A2E;
  margin: 4px 0 8px !important;
}
.xpro-woo-product-grid-price-wrapper {
  font-family: 'Fredoka', sans-serif;
}
.xpro-woo-product-grid-price-wrapper .price,
.xpro-woo-product-grid-price-wrapper .woocommerce-Price-amount {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #191A2E;
}
.xpro-woo-product-grid-price-wrapper del .woocommerce-Price-amount {
  font-size: 14px;
  font-weight: 500;
  color: #4A4A63;
  opacity: 0.7;
}
.xpro-woo-product-grid-price-wrapper ins .woocommerce-Price-amount {
  color: #FF5C5C;
}
.xpro-sale-flash-wrap, .xpro-woo-sale-flash-btn {
  background: #FFC83C !important;
  border: 2px solid #191A2E !important;
  border-radius: 100px !important;
  padding: 5px 13px !important;
}
.xpro-onsale, .xpro-woo-sale-flash-btn-inner {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #191A2E !important;
}
/* Remove default theme underline on links inside Elementor/XPRO widgets */
.elementor-widget-container a,
.xpro-heading-title a,
.xpro-elementor-button,
.xpro_elementor_category_term_name,
.xpro-woo-product-grid-category-wrapper a,
.xpro-woo-product-grid-title-wrapper,
.xpro-woo-product-grid-title {
  text-decoration: none !important;
}

/* ============ UNIFORM PRODUCT CARDS ============ */
/* Card becomes a column flex container so content area can stretch evenly */
.xpro-woo-product-grid-item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Fixed-height image zone, same for every card regardless of source photo size */
.xpro-woo-product-img-section {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
}
.xpro-woo-product-img-section img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.xpro-woo-product-grid-item:hover img {
  transform: scale(1.06) !important;
}

/* Content area stretches to fill remaining card height, so every card matches */
.xpro-woo-product-grid-content-sec {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px 18px 20px !important;
}
.xpro-woo-product-grid-title {
  flex: 1 0 auto;
}
.xpro-woo-product-grid-price-wrapper {
  margin-top: auto !important;
  padding-top: 8px !important;
}

/* Make sure the grid row stretches items to equal height */
.xpro-woo-product-grid-main {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}
.cbp-item.xpro-woo-product-grid-item {
  display: flex !important;
}
/* Reset the OUTER image wrapper div (shares class name with the <img> tag) so it doesn't reserve extra height */
a.xpro-woo-product-grid-title-wrapper > div.xpro-woo-product-grid-img {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  display: block !important;
  overflow: hidden !important;
}

/* Force the image-wrapping anchor to block display (scoped via :has so the title link is unaffected) */
a.xpro-woo-product-grid-title-wrapper:has(> div.xpro-woo-product-grid-img) {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
/* Hard-cap the image-wrapping anchor itself to exactly match the image height (it was still growing taller than its content) */
a.xpro-woo-product-grid-title-wrapper:has(> div.xpro-woo-product-grid-img) {
  height: 220px !important;
  max-height: 220px !important;
  min-height: 220px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}
/* ============ FINAL GAP CLEANUP - zero out every possible spacing source between image and content ============ */
.xpro-woo-product-grid-item {
  gap: 0 !important;
}
a.xpro-woo-product-grid-title-wrapper:has(> div.xpro-woo-product-grid-img) {
  margin: 0 !important;
  padding: 0 !important;
}
div.xpro-woo-product-grid-img {
  margin: 0 !important;
  padding: 0 !important;
}
.xpro-woo-product-img-section {
  margin: 0 !important;
  padding: 0 !important;
}
.xpro-woo-product-grid-content-sec {
  margin: 0 !important;
  padding: 12px 18px 18px !important;
}
.xpro-woo-product-grid-category-wrapper {
  margin: 0 0 4px !important;
  padding: 0 !important;
}
/* ============ NATIVE WOOCOMMERCE PRODUCT GRID (replaces XPRO widget) ============ */
ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
ul.products li.product {
  width: calc(25% - 18px) !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #FFFFFF;
  border: 3px solid #191A2E;
  border-radius: 22px;
  box-shadow: 8px 10px 0 rgba(25,26,46,0.85);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  list-style: none !important;
}
ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 10px 13px 0 rgba(25,26,46,0.85);
}
ul.products li.product > a.woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  text-decoration: none !important;
  color: inherit !important;
}
ul.products li.product img {
  width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: transform 0.5s ease;
}
ul.products li.product:hover img {
  transform: scale(1.06);
}
ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #191A2E !important;
  padding: 16px 18px 4px !important;
  margin: 0 !important;
  text-align: left !important;
}
ul.products li.product .price {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 700 !important;
  font-size: 19px !important;
  color: #191A2E !important;
  padding: 0 18px 16px !important;
  margin-top: auto !important;
  display: block !important;
  text-align: left !important;
}
ul.products li.product .price del {
  font-size: 14px !important;
  opacity: 0.6 !important;
  font-weight: 500 !important;
  margin-right: 6px !important;
}
ul.products li.product .price ins {
  text-decoration: none !important;
  color: #FF5C5C !important;
}
ul.products li.product a.add_to_cart_button {
  display: none !important;
}
@media (max-width: 900px) {
  ul.products li.product { width: calc(50% - 12px) !important; }
}
@media (max-width: 560px) {
  ul.products li.product { width: 100% !important; }
}
/* Category label - styled like the original HTML design, sits between image and title (DOM order now correct via hook priority) */
ul.products li.product .unmatched-prod-cat {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #7B5EC9 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 14px 18px 0 !important;
  display: block !important;
}
ul.products li.product .woocommerce-loop-product__title {
  padding: 4px 18px 4px !important;
}
/* Hide Astra theme's native WooCommerce category label (duplicate of our own unmatched-prod-cat) */
span.ast-woo-product-category {
  display: none !important;
}