/* 1. Separación de breadcrumbs en producto y tienda WooCommerce */
body.single-product .woocommerce-breadcrumb,
body.woocommerce-page .woocommerce-breadcrumb {
  max-width: 1200px;
  margin: 24px auto 16px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 13px;
  line-height: 1.5;
}

/* 2. Contenedor principal de producto y espaciados en el resumen */
body.single-product div.product {
  max-width: 1200px;
  margin: 28px auto 48px;
  padding-left: 20px;
  padding-right: 20px;
}

body.single-product div.product .summary h1.product_title.entry-title {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 14px;
}

body.single-product div.product .summary .price {
  display: block;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  color: #333333;
}

body.single-product div.product .summary .woocommerce-product-details__short-description {
  margin-bottom: 20px;
  line-height: 1.55;
}

body.single-product div.product .summary .yith-ywraq-add-to-quote {
  margin-top: 12px;
  margin-bottom: 18px;
}

body.single-product div.product .product_meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.6;
}

body.single-product div.product .woocommerce-tabs {
  margin-top: 40px;
  clear: both;
}

/* 3. Sección de Productos relacionados */
body.single-product section.related.products {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
  clear: both;
}

body.single-product section.related.products > h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

/* Tarjeta en columna flexible sin estiramientos raros */
body.single-product section.related.products ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  height: auto !important;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-product section.related.products ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

body.single-product section.related.products ul.products li.product > a,
body.single-product section.related.products ul.products li.product img {
  flex-shrink: 0;
}

/* Título con altura mínima controlada */
body.single-product section.related.products ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 10px 0 6px;
}

/* Precio en color de texto normal y sin hueco si está vacío */
body.single-product section.related.products ul.products li.product .price,
body.single-product section.related.products ul.products li.product .price .amount,
body.single-product section.related.products ul.products li.product .price ins,
body.single-product section.related.products ul.products li.product .price del {
  color: #333333 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 0 12px;
  line-height: 1.3;
  display: block;
}

body.single-product section.related.products ul.products li.product .price:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Botón rojo con esquinas redondeadas pegado abajo */
body.single-product section.related.products ul.products li.product a.button,
body.single-product section.related.products ul.products li.product a.add_to_cart_button {
  margin-top: auto !important;
  display: block;
  width: 100%;
  text-align: center;
  background-color: #d91e2a;
  color: #ffffff;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

body.single-product section.related.products ul.products li.product a.button:hover,
body.single-product section.related.products ul.products li.product a.add_to_cart_button:hover {
  background-color: #b51520;
  color: #ffffff;
}

input.qty,
.yith-ywraq-table-list input[type="number"],
form[id*="yith-ywraq"] input[type="number"] {
  width: 68px !important;
  min-width: 68px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
}


/* ==========================================
   GRUPO LEOMOND - CATÁLOGO GENERAL
   Identidad visual y navegación
   ========================================== */

/* Tipografía general del catálogo */
body.woocommerce-shop,
body.tax-product_cat {
  font-family: 'Roboto', sans-serif;
}

/* Títulos de productos */
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
  color: #282E3E !important;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

/* Enlaces de los productos */
body.woocommerce-shop ul.products li.product a,
body.tax-product_cat ul.products li.product a {
  text-decoration: none;
}

/* Hover discreto en nombres */
body.woocommerce-shop ul.products li.product a:hover .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product a:hover .woocommerce-loop-product__title {
  color: #E21F2F !important;
}

/* Paginación */
body.woocommerce-shop .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination {
  margin: 40px 0 50px;
  font-family: 'Roboto', sans-serif;
}

body.woocommerce-shop .woocommerce-pagination ul.page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers {
  border: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.woocommerce-shop .woocommerce-pagination ul.page-numbers li,
body.tax-product_cat .woocommerce-pagination ul.page-numbers li {
  border: none;
}

body.woocommerce-shop .woocommerce-pagination .page-numbers a,
body.woocommerce-shop .woocommerce-pagination .page-numbers span,
body.tax-product_cat .woocommerce-pagination .page-numbers a,
body.tax-product_cat .woocommerce-pagination .page-numbers span {
  min-width: 36px;
  height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  background: #FFFFFF;
  color: #282E3E;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

body.woocommerce-shop .woocommerce-pagination .page-numbers .current,
body.tax-product_cat .woocommerce-pagination .page-numbers .current {
  background: #E21F2F;
  border-color: #E21F2F;
  color: #FFFFFF;
}

body.woocommerce-shop .woocommerce-pagination .page-numbers a:hover,
body.tax-product_cat .woocommerce-pagination .page-numbers a:hover {
  background: #282E3E;
  border-color: #282E3E;
  color: #FFFFFF;
}


/* ==========================================
   GRUPO LEOMOND - OCULTAR PRECIOS EN CATÁLOGO
   Tienda y categorías de productos
   ========================================== */

body.woocommerce-shop ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
  display: none !important;
}


/* ==========================================
   GRUPO LEOMOND - TARJETAS DEL CATÁLOGO
   ========================================== */

/* Tarjeta flexible para alinear todos los elementos */
body.woocommerce-shop ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 14px !important;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
}

/* Hover de la tarjeta */
body.woocommerce-shop ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
  border-color: #d1d5db;
  box-shadow: 0 5px 16px rgba(0,0,0,0.05);
}

/* Imagen: espacio uniforme y mayor presencia */
body.woocommerce-shop ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.tax-product_tag ul.products li.product img {
  width: 100% !important;
  height: 210px !important;
  object-fit: contain !important;
  margin: 0 auto 12px !important;
}

/* Enlace principal del producto */
body.woocommerce-shop ul.products li.product > a:first-child,
body.tax-product_cat ul.products li.product > a:first-child,
body.tax-product_tag ul.products li.product > a:first-child {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Títulos: reservar espacio para tres renglones */
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
  min-height: 4.2em;
  margin: 8px 0 12px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #282E3E !important;
  font-weight: 500;
}

/* Precios ocultos también en las tarjetas */
body.woocommerce-shop ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
  display: none !important;
}

/* Botones: ancho completo y rojo institucional */
body.woocommerce-shop ul.products li.product a.button,
body.tax-product_cat ul.products li.product a.button,
body.tax-product_tag ul.products li.product a.button {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: auto 0 0 !important;
  padding: 11px 10px !important;
  background: #E21F2F !important;
  border: 1px solid #E21F2F !important;
  border-radius: 5px !important;
  color: #ffffff !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease,
              border-color 0.2s ease;
}

/* Hover del botón */
body.woocommerce-shop ul.products li.product a.button:hover,
body.tax-product_cat ul.products li.product a.button:hover,
body.tax-product_tag ul.products li.product a.button:hover {
  background: #282E3E !important;
  border-color: #282E3E !important;
  color: #ffffff !important;
}


/* Catálogo: altura uniforme para títulos */
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
  height: 4.2em !important;
  min-height: 4.2em !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}