* {  transition: transform .2s ease-in-out,background-color .2s ease-in-out, color .2s ease-in-out;}
.product-flags li.product-flag.on-sale,
.has-discount .discount,
#header .header-nav .cart-preview.active,
.btn-primary, .btn-comment, .btn-comment-inverse, .btn.btn-primary.add-to-cart { background: #228b22; opacity: 1 }
.btn-primary:hover, .btn-comment:hover, .btn-comment-inverse:hover, .btn-primary.disabled:hover, .btn-primary:disabled:hover
  { background: black; opacity:1;}
.has-discount.product-price,
.tabs .nav-tabs .nav-link.active,
a, #header a:hover, .product-miniature .highlighted-informations .quick-view:hover,
  .pagination .current a { color: #228b22 }
a:hover,  #header .header-nav .cart-preview.active:hover { color: black }
.tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover { border-bottom: #228b22 3px solid; }

.product-price { color: black }
#product-availability .product-last-items, #product-availability .product-unavailable { color: orange }

.product-flags li.product-flag.discount, .product-flags li.product-flag.discount-amount, .product-flags li.product-flag.discount-percentage { 
    background: orange; }
.product-flags li.product-flag { background: lightslategrey }

/* menu */
#category-106 > a:hover { color: white; background: orange; }
#header .header-top a[data-depth="0"] { color: black }
#header .header-top a[data-depth="0"]:hover { color: orange; background: black; font-weight:bold; }
div#_desktop_top_menu { width: 100%!important; text-align: center!important }
div#_desktop_top_menu > ul { display: inline-block!important; border-top: 2px solid #333; max-width: 1141px; width: 100%; margin-left: auto; margin-right: auto; }
div#_desktop_top_menu > ul > li { transition: background-color 0.3s ease, color 0.3s ease; margin:0; }
div#_desktop_top_menu > ul > li > a { display: inline-block; transition: background-color 0.3s ease, color 0.3s ease;padding:1rem 1.5rem; }
div#_desktop_top_menu > ul > li:hover > a { color: white; background: black; }
div#_desktop_top_menu > ul > li > a:hover,
#header .top-menu a[data-depth="0"]:hover { color: orange;font-weight: bold }
#header a.dropdown-item.dropdown-submenu { padding: .25rem .8rem; }
#header a.dropdown-item.dropdown-submenu:hover { background: orange; color: white; border-radius: 8px }

.block-social ul li { background-color: #228b22 }
.block-social ul li:hover { background-color: black }

/* posición del contenedor dropdown */
div#_desktop_top_menu > ul { position:relative; }
.top-menu .sub-menu { position:absolute;top:0;left:0;min-width:initial;transition: none;}

/* quitamos para luego poner */
.top-menu a { margin: 0; padding: 0; display:block }
.top-menu, .top-menu .sub-menu ul>.category, .top-menu .sub-menu ul,
.top-menu .sub-menu ul[data-depth="1"]>li { margin:0; padding: 0 }
#manufacturers .popover { padding: 0 1rem; }
.top-menu .sub-menu, #manufacturers .popover { padding-top: .8rem; padding-bottom: .8rem }
.top-menu .sub-menu .top-menu .category { width: 25%; display: grid; padding: 0 1rem }
#manufacturers .popover .letter-group { width:16.666666666666668%; display: grid; padding: 0 .5rem; margin-bottom: .8rem }
@media (max-width: 1140px) { #manufacturers .popover .letter-group { width: 25%;}}
#manufacturers .popover .letter-group h3 { 
  position: absolute; 
  top: -7px; 
  right: -5px; 
  background: orange; 
  color: white; /* Añade esto para que la letra se vea */
  width: 40px; /* Ancho fijo para el círculo */
  height: 40px; /* Altura fija para el círculo */
  display: flex; /* Habilita Flexbox */
  justify-content: center; /* Centra el contenido horizontalmente */
  align-items: center; /* Centra el contenido verticalmente */
  border-radius: 50%; /* Crea un círculo perfecto a partir del cuadrado */
  font-weight: bold; /* Opcional: para que la letra destaque */
  opacity: .5;
}
#manufacturers .manufacturer {
  min-width: 150px; /* Ajusta este valor si necesitas más o menos espacio */
}
#manufacturers .manufacturer a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; /* Asegura que la etiqueta <a> se comporte como un bloque para que las propiedades de overflow funcionen */
}
#manufacturers .popover .letter-group .brands-list { display:block; background: #eee; border-radius: 8px; padding:.5rem }
#manufacturers .popover .letter-group:hover .brands-list { background:#f7c8a9 }
#manufacturers .popover .letter-group:hover .brands-list a:hover { color:white }
.top-menu #category-3 .top-menu .category { width: 33.3333333% }
.top-menu .sub-menu .top-menu .manufacturer { width: 15% }
.top-menu .sub-menu .top-menu .category ul {  border-radius: 8px; display:block; padding: .5rem .25rem; background: #eee }
.top-menu .sub-menu .top-menu .category ul .dropdown-item:hover { color: white }
#_desktop_top_menu .top-menu[data-depth="0"] li:hover .sub-menu, .top-menu .sub-menu.collapse.in { background: #fdeee4 }
.top-menu .sub-menu .top-menu .category ul:hover {  background: #f7c8a9 }
.top-menu .sub-menu .top-menu .category ul li { float: left; width: 50%; border-radius:8px }
.top-menu .sub-menu .top-menu .category ul li a {  display:block; border-radius:8px }
.top-menu #category-3 .top-menu .category ul li,
.top-menu #category-14 .top-menu .category ul li { width: 50%; padding: 0 .25rem }
.top-menu #category-3 .top-menu .category ul li a,
.top-menu #category-14 .top-menu .category ul li a { padding: .25rem .8rem }
.top-menu #category-3 .top-menu .category ul li a:hover,
.top-menu #category-14 .top-menu .category ul li a:hover { background: orange;color:white;font-weight:bold }
 
/* miniaturas */
#js-product-list > div.products.row > div > article { display:block;}

/*
  Ajusta el tamaño del contenedor y elimina el padding y márgenes que limitan el ancho.
  Usa 'min-width: 0' para evitar conflictos con flexbox en algunos navegadores.
*/
#js-product-list .product-miniature {
  max-width: none;
  width: 100%;.footer-container li a { color: #333 }

  padding: 0;
  margin: 0;
}

/*
  Haz que la imagen del producto ocupe todo el ancho del contenedor padre.
  Esto la estirará, pero no resolverá la baja resolución si la imagen de origen es muy pequeña.
*/
.products.row .product-miniature .thumbnail-container {
  width: 100%;
  max-width: none;
}
.products.row .product-miniature img {
  width: 100%;
}
.products.row .product-miniature img:hover {
  transform: scale(1.03);
}




/* footer */
.footer-container li a { color: #333 }
.footer-container li a:hover { color: #228b22 }

/* custom text block */
#custom-text { padding: 0 }
#textbanner { display:none}
#textbanner { padding: 2rem 1rem;background:#fdeee4 }
#textbanner p { font-size: 1.4rem; line-height: 1.5; }
#textbanner a { font-weight:bolder;border-bottom:3px solid orange; }
#textbanner .cerrar-bloque { position:absolute; top:0; right:1rem; background: #f7c8a9;}
#textbanner .cerrar-bloque a {border:0; display:block; padding:.8rem;}

/***********
 * mosaico2023 *
 ***********/

.mosaico2023 {
	text-align: center;
	overflow: auto;
}
#custom-text > p {margin-bottom:0}
#custom-text > p > span {display:block;}
#custom-text > p > span > a {display:inline-block;background:black;color:white;font-weight: bold;text-align: center;
  padding: 1rem 2rem; width:100%; }
#custom-text > p:nth-child(3) {margin-bottom:0}
#custom-text > p > span > a:hover {background:orange}
.mosaico2023 a {
	position: relative;
	width: 16.666666666666668%;
	display: block;
	float: left;
  overflow:hidden;
  transition: transform 5s ease-in-out;
}
@media (max-width: 525px) {
	.mosaico2023 a {
		width: 50%;
	}
}
@media (min-width: 526px) and (max-width: 777px) {
	.mosaico2023 a {
		width: 33.3333333333%;
	}
}
div.mosaico2023 span.letrero {
    position: absolute;
    bottom: 0;
    left: 0;
    font-family: 'Open Sans', sans-serif;
    color: white;
    background: #228b22;
    border: 0px solid black;
    width: 90%;
    margin: 0 5%;
    margin-top: 5px;
    text-align: center;
    line-height: 1;
    border-radius: 8px;
    padding: .4rem;
}
div.mosaico2023 a:hover span.letrero {
	background: orange;
	color: white;
}
.mosaico2023 a img {
	display: block;
	border: 0px solid white;
  transition: transform .3s ease-in-out;
}
.mosaico2023 a:hover img {
	border: 0px solid white;
  transform: scale(1.03);
}

.mosaico2023 a img {
    display: block;
    border: 0px solid white;
    /* Añadimos 'filter' a la transición para que el cambio de color sea suave */
    transition: transform .3s ease-in-out, filter .3s ease-in-out;
}

.mosaico2023 a:hover img {
    border: 0px solid white;
    transform: scale(1.03);
    /* Tintado otoñal marrón cálido / terracota al pasar el ratón */
    filter: sepia(0.6) hue-rotate(-30deg) saturate(1.4);
}

/***********
 * mosaico2025inv *
 ***********/

.page-content.page-cms.page-cms-14 {padding:0}
.mosaico2025inv {
	text-align: center;
	overflow: auto;
}
.mosaico2025inv a {
	position: relative;
	width: 20%%;
	display: block;
	float: left;
  overflow:hidden;
  transition: transform 5s ease-in-out;
}
@media (max-width: 525px) {
	.mosaico2025inv a {
		width: 50%;
	}
}
@media (min-width: 526px) and (max-width: 777px) {
	.mosaico2025inv a {
		width: 33.3333333333%;
	}
}
div.mosaico2025inv span.letrero {
    position: absolute;
    top: 12px;
    left: 0;
    font-family: 'Open Sans', sans-serif;
    color: white;
    background: black;
    width: 93%;
    margin: 0;
    line-height: 1.5;
    padding: .4rem;
    font-size: 1.5rem;
    text-align: left;
    opacity: .7;
}
div.mosaico2025inv a:hover span.letrero {
	background: orange;
	color: white;
}
.mosaico2025inv a img {
	display: block;
	border: 0px solid white;
  transition: transform .3s ease-in-out;
}
.mosaico2025inv a:hover img {
	border: 0px solid white;
  transform: scale(1.03);
}

#block-block-22 > p > span > a {
    background: black;
    border: 1px solid black;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    padding: .5rem 1rem;
}
#block-block-22 > p > span > a:hover {
	background: white;
	color: black;
}
@media (max-width: 600px) {
	#block-block-22 > p > span > a {
		display: block;
		border-radius: 0;
	}
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* blog */
/* masonry 
.blog ul li { width:33.33333%; display:block; float: left; list-style:none; padding: .5rem; }
.blog ul li:hover { background:#fdeee4 }
@media (max-width: 767px) {.blog ul li{ width:100%; float:none; clear:both }}
.blog ul li img { max-width: 100%; height: auto; margin-bottom: .8rem }
@media (max-width: 767px) { .blog ul li img{ max-width:33.3333%; float: left; margin-right: 1rem } }
*/
.blog ul li a { display: block; text-align: center; padding-bottom: .8rem; color: #333; font-size: 1.3125rem; }
.blog ul li a:hover { color: #228b22 }
.blog_page img, .blog_page img.right {float: right; margin-left: 1.5rem; margin-bottom: 1.5rem; max-width:100%; height:auto }
.blog_page img.left { float: left; margin-left:0; margin-right: 1.5rem; margin-bottom: 1.5rem; max-width:100%; height:auto }
@media (max-width: 767px) { .blog_page img,.blog_page img.left,.blog_page img.right { margin-left: 0; margin-right: 0; padding: 0; width: 100% }}
.blog_page hr { clear: both; }
.blog_header_link, .admin-link { display:inline-block;margin-left: 1.5rem}
.admin-link { background:orange; border: 3px solid black; border-radius:6px }
.admin-link:hover { border-color: #228b22 }
.admin-link a { color: black!important;font-weight: bolder; }
.admin-link a:hover { color: white!important }

.blog-button-container a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #228b22;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.blog-button-container a:hover {
    background-color: #333;
}

/* masonry blog */
/* Estilos para el grid de Masonry */
.blog-grid {
    /* El display: flex evita que el contenedor colapse */
    display: flex; 
    margin-left: -30px; /* gutter size */
}

.blog-grid-item {
    padding-left: 30px; /* gutter size */
    margin-bottom: 30px;
    width: 33.3333%; /* 3 columnas */
    list-style: none;
}

/* Para dispositivos pequeños, una columna por defecto */
@media (max-width: 767px) {
    .blog-grid-item {
        width: 100%;
    }
}

/* Estilos de los elementos internos */
.blog-grid-item img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0.8rem;
}

.blog-grid-item a {
    display: block;
    text-align: center;
    padding-bottom: 0.8rem;
    color: #333;
    font-size: 1.3125rem;
}

.blog-grid-item a:hover {
    color: #228b22;
}

.blog-grid-item p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #555;
}

/* end masonry */

/* file upload button */
.group-span-filestyle .btn-default {background-color:#228b22;color:white}

@media (min-width: 768px) {
  #rgpd_smz {
    position: absolute;
    top: 3.5rem;
  }
}
@media (max-width: 767px) {
  .rgpd_container {
    display: flex;
    justify-content: center;
  }
}
#rgpd_smz .smz_text { font-size: .7rem; height: 3rem; width: 110px; }
#rgpd_smz img {}

/* añadiendo contraste en detalles para legibilidad */
#wrapper .breadcrumb li:last-child { color:#666;}
.product-prices .tax-shipping-delivery-label, .product-miniature .product-title a,
.block_newsletter form .row .col-xs-12:last-of-type .page-content.page-cms ul, .block_newsletter form .row .col-xs-12:last-of-type p,
.page-content.page-cms .block_newsletter form .row .col-xs-12:last-of-type ul, .page-content.page-cms ul, param,
.block-contact, .footer-container li a, .footer-container li a
  {color:black}

/* botón de cookies */
.btn.btn-primary.full-left.ets-cb-btn-not-ok {
  margin-right: .8rem;background-color: transparent!important; border:none
}/* botón de cookies */
.btn.btn-primary.full-left.ets-cb-btn-not-ok:hover {
  color: #333!important; border: none; background-color: transparent!important;
}
.ets_cookie_banner_content p { color: #333; }
.ets_cookie_banner_content a { color: black; }

.paypal-mark { display: inline!important; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

#add-to-cart-or-refresh > div.product-variants.js-product-variants > div > label {text-align: left!important;}


/* Categorías asociadas a un producto */

/* Agrega este CSS a tu archivo custom.css o theme.css */

.product-related-categories {
    /* Un pequeño margen para separarlo de la imagen superior */
    margin-top: 15px;
    padding-top: 10px;
    /* El borde superior usa el verde suave como acento */
    border-top: 1px solid #228b22;
}

.product-related-categories .h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.productcats.list-inline {
    margin: 0;
    padding: 0;
}

.productcats .list-inline-item {
    margin-right: 10px;
    margin-bottom: 5px;
}

.productcats a {
    /* Estilo de la etiqueta en estado normal */
    display: inline-block;
    padding: 3px 8px;
    /* Fondo con tu color crema muy suave */
    background-color: #fdeee4;
    /* Borde sutil en un tono más claro del verde */
    border: 1px solid #779a77;
    border-radius: 4px;
    color: #228b22; /* El texto en tu color verde oscuro */
    text-transform: capitalize;
    font-size: 13px;
    transition: all 0.2s;
}

.productcats a:hover {
    /* Resaltar al pasar el ratón */
    background-color: #228b22; /* Fondo se invierte a tu verde */
    border-color: #228b22; /* Borde también verde */
    text-decoration: none;
    color: #ffffff; /* El texto se vuelve blanco para contraste */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave para darle "elevación" */
}


/* product grid */
.product-description .product-title a {
    /* Permite el salto de línea, anula restricciones de una sola línea */
    white-space: normal !important;

    /* Configuración para limitar a 2 líneas */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* El número de líneas visible */
    -webkit-box-orient: vertical !important;

    /* Asegura que los puntos suspensivos aparezcan si el texto de dos líneas se desborda */
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    /* Ajuste de altura para asegurar que dos líneas encajen bien */
    line-height: 1.3em;
    max-height: 2.6em; /* Debe ser 2 x line-height */
    height: 2.6em;
    padding: 0 1rem;
}
