/* Tarjetas de producto — estilo "Editorial minimal" (todas las plantillas del tema: content-product1…5)
   Foto recta, nombre en serif fina, precio discreto y "Añadir al carrito" como enlace subrayado.
   Colores y fuentes en las variables de abajo. */
:root {
	--bc-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bc-serif: "Noto Serif Display", Georgia, serif;
	--bc-texto: #23433F;
	--bc-verde: #366661;
	--bc-foto-fondo: #F8EDEC;
}

.products-entry.product-wapper {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	text-align: left;
	font-family: var(--bc-font);
}

/* Foto recta */
.product-wapper .products-thumb {
	position: relative;
	margin: 0 0 14px !important;
	border-radius: 0 !important;
	overflow: hidden;
	background: var(--bc-foto-fondo);
}
.product-wapper .product-thumb-img { height: auto !important; }
.product-wapper .product-thumb-img img {
	width: 100% !important;
	aspect-ratio: 4 / 5 !important;
	height: auto !important;
	object-fit: cover !important;
	border-radius: 0 !important;
	transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}
.products-entry.product-wapper:hover .product-thumb-img img { transform: scale(1.03); }

/* Etiqueta Nuevo / Oferta: texto pequeño sobre blanco */
.product-wapper .bc-label {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	background: #fff;
	color: var(--bc-texto);
	font: 500 10px/1 var(--bc-font);
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 6px 8px;
	border-radius: 0;
}
.product-wapper .product-lable { display: none !important; }

/* Iconos sobre la foto: vista rápida (lupa) y favoritos (corazón).
   En escritorio aparecen abajo en el centro al pasar el ratón; en móvil, siempre, abajo a la derecha. */
.product-wapper .btn-atc,
.product-wapper .product-button .type_simple,
.product-wapper .product-button .add_to_cart_button { display: none !important; }
.product-wapper .product-button {
	position: absolute !important;
	top: auto !important;
	bottom: 14px !important;
	left: 50% !important;
	right: auto !important;
	z-index: 4;
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	transform: translate(-50%, 10px) !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
}
.products-entry.product-wapper:hover .product-button {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) !important;
}
.product-wapper .product-button > *,
.product-wapper .product-button-mobile > * { margin: 0 !important; position: static !important; }
.product-wapper .product-button .quickview,
.product-wapper .product-button .woosw-btn,
.product-wapper .product-button-mobile .quickview,
.product-wapper .product-button-mobile .woosw-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--bc-texto) !important;
	box-shadow: 0 6px 16px -8px rgba(35, 67, 63, .45) !important;
	transition: background-color .25s ease, color .25s ease;
}
.product-wapper .product-button .quickview:hover,
.product-wapper .product-button .woosw-btn:hover { background: var(--bc-verde) !important; color: #fff !important; }
.product-wapper .quickview > span { display: none !important; }
.product-wapper .quickview::before, .product-wapper .woosw-btn::before { font-size: 17px !important; line-height: 1 !important; color: inherit !important; }
/* El texto de ayuda flotante del tema (tooltip) no hace falta */
.product-wapper .product-button [data-title]::before,
.product-wapper .product-button [data-title]::after { display: none !important; }

/* Texto */
.product-wapper .products-content { padding: 0 2px !important; text-align: left !important; }
.product-wapper .products-content .contents {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}
.product-wapper .bc-category { display: none !important; }
.product-wapper .product-title,
.product-wapper .product-title a {
	margin: 0 !important;
	font-family: var(--bc-serif) !important;
	font-weight: 300 !important;
	font-size: 19px !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--bc-texto) !important;
	text-align: left !important;
}
.product-wapper .product-title a:hover { color: var(--bc-verde) !important; }
.product-wapper .price {
	display: block !important;
	margin: 0 !important;
	font: 400 14px/1.4 var(--bc-font) !important;
	color: var(--bc-verde) !important;
	text-align: left !important;
}
.product-wapper .price * { color: inherit !important; font: inherit !important; }
.product-wapper .price del { opacity: .55; margin-right: 6px; }
.product-wapper .price ins { text-decoration: none; }

/* "Añadir al carrito" como enlace subrayado */
.product-wapper .bc-actions {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-top: 10px;
}
.product-wapper .bc-actions .button,
.product-wapper .bc-actions a.added_to_cart {
	display: inline-block !important;
	position: relative;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 0 4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--bc-texto) !important;
	font: 500 11px/1.2 var(--bc-font) !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
.product-wapper .bc-actions .button::before { display: none !important; }
.product-wapper .bc-actions .button::after,
.product-wapper .bc-actions a.added_to_cart::after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	left: 0; right: 0; bottom: 0; top: auto !important;
	width: auto !important;
	height: 1px !important;
	margin: 0 !important;
	border: 0 !important;
	background: currentColor !important;
	animation: none !important;
	transform-origin: left;
	transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.product-wapper .bc-actions .button:hover::after { transform: scaleX(.35); }
.product-wapper .bc-actions .button.loading { opacity: .5; }
.product-wapper .bc-actions .button.added { color: var(--bc-verde) !important; }
.product-wapper .bc-actions a.added_to_cart { color: var(--bc-verde) !important; }

/* Móvil */
@media (max-width: 767px) {
	.product-wapper .products-thumb { margin-bottom: 10px !important; }
	.product-wapper .product-title,
	.product-wapper .product-title a { font-size: 15.5px !important; }
	.product-wapper .price { font-size: 13px !important; }
	.product-wapper .bc-actions { flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
	.product-wapper .bc-actions .button,
	.product-wapper .bc-actions a.added_to_cart { font-size: 10px !important; letter-spacing: .1em !important; }
	.product-wapper .bc-label { top: 8px; left: 8px; font-size: 9px; padding: 5px 7px; }
}

/* Con ratón: iconos al pasar por encima (versión de escritorio). Sin ratón (táctil): siempre visibles abajo a la derecha. */
@media (hover: hover) {
	.product-wapper .product-button-mobile { display: none !important; }
}
@media (hover: none) {
	.product-wapper .product-button { display: none !important; }
	.product-wapper .product-button-mobile {
		display: flex !important;
		flex-direction: row !important;
		position: absolute !important;
		right: 8px !important; bottom: 8px !important; left: auto !important; top: auto !important;
		gap: 6px; z-index: 4; opacity: 1 !important; visibility: visible !important; transform: none !important;
	}
	.product-wapper .product-button-mobile .quickview,
	.product-wapper .product-button-mobile .woosw-btn { width: 34px !important; height: 34px !important; }
	.product-wapper .product-button-mobile .quickview > span { display: none !important; }
}
