/* =========================================================
   Modular Bonito 1.4.3
   Ajuste visual final: imágenes grandes y Puntos Bonitos compacto.
   No altera DOM, inputs, eventos, módulos ni carrito.
   ========================================================= */

/* ---------- Fichas de categoría: imagen grande, centrada y protegida ---------- */
html.ubd-category-ready body#category #js-product-list .products {
  align-items: stretch !important;
}

html.ubd-category-ready body#category #js-product-list .product-miniature,
html.ubd-category-ready body#category #js-product-list .product-miniature .thumbnail-container {
  height: 100% !important;
}

html.ubd-category-ready body#category #js-product-list .product-miniature .tvproduct-wrapper.grid {
  display: grid !important;
  grid-template-rows: minmax(310px, 1fr) auto !important;
  align-items: stretch !important;
  height: 100% !important;
  min-height: 430px !important;
}

html.ubd-category-ready body#category #js-product-list .tvproduct-image {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 310px !important;
  padding: clamp(15px, 1.8vw, 25px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html.ubd-category-ready body#category #js-product-list .product-thumbnail {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html.ubd-category-ready body#category #js-product-list .product-thumbnail img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  padding: clamp(5px, .8vw, 10px) !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* ---------- Productos del home: mismo criterio de centrado y aprovechamiento ---------- */
html.ubd-modular-ready #ubd-modular-bonito .ubd-mod-product {
  grid-template-rows: minmax(270px, 1fr) auto !important;
}

html.ubd-modular-ready #ubd-modular-bonito .ubd-mod-product-media {
  display: grid !important;
  place-items: center !important;
  min-height: 270px !important;
  padding: clamp(15px, 1.8vw, 24px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html.ubd-modular-ready #ubd-modular-bonito .ubd-mod-product-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  padding: clamp(5px, .8vw, 10px) !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  box-sizing: border-box !important;
  transform: none !important;
}

html.ubd-modular-ready #ubd-modular-bonito .ubd-mod-product:hover .ubd-mod-product-media img {
  transform: scale(1.018) !important;
}

/* ---------- Puntos Bonitos: control total frente al <style> interno ---------- */
html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
  font-family: Manrope, Arial, sans-serif !important;
  text-align: left !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-card-modern {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-icon-container {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 15px !important;
  background: rgba(216,230,255,.92) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-icon-container .material-icons {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-content-detail {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-main-msg {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ubd-ink) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  white-space: normal !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .points-badge,
html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper #loyalty_points {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ubd-orange) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-sub-msg {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ubd-muted) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  white-space: normal !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-sub-msg strong,
html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper #total_loyalty_points,
html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .voucher-value {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ubd-orange) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}

@media (max-width: 799px) {
  html.ubd-category-ready body#category #js-product-list .product-miniature .tvproduct-wrapper.grid {
    grid-template-rows: minmax(205px, 1fr) auto !important;
    min-height: 315px !important;
  }
  html.ubd-category-ready body#category #js-product-list .tvproduct-image {
    min-height: 205px !important;
    padding: 11px !important;
  }
  html.ubd-modular-ready #ubd-modular-bonito .ubd-mod-product {
    grid-template-rows: minmax(180px, 1fr) auto !important;
  }
  html.ubd-modular-ready #ubd-modular-bonito .ubd-mod-product-media {
    min-height: 180px !important;
    padding: 11px !important;
  }
  html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-card-modern {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
    text-align: left !important;
  }
  html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-icon-container {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
  }
  html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-main-msg {
    font-size: 12px !important;
  }
  html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .points-badge,
  html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper #loyalty_points {
    font-size: 14px !important;
  }
  html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-sub-msg {
    font-size: 10px !important;
  }
}

@media (min-width: 1200px) {
  html.ubd-category-ready body#category #js-product-list .product-miniature .tvproduct-wrapper.grid {
    grid-template-rows: minmax(340px, 1fr) auto !important;
    min-height: 470px !important;
  }
  html.ubd-category-ready body#category #js-product-list .tvproduct-image {
    min-height: 340px !important;
  }
}
