/* ==========================================================================
   Woodmart Child – Tarjeta de producto (grid Mosaico / Tiled)
   Todo usa variables CSS para que Elementor pueda cambiarlo.
   ========================================================================== */

.wd-product {
	/* Botón Probar demo */
	--wdc-demo-bg: #c9f56a;
	--wdc-demo-color: #000;
	--wdc-demo-bg-hover: #b6e64f;
	--wdc-demo-color-hover: #000;
	/* Botón Añadir */
	--wdc-buy-bg: #000;
	--wdc-buy-color: #fff;
	--wdc-buy-bg-hover: #333;
	--wdc-buy-color-hover: #fff;
	/* Comunes */
	--wdc-btn-h: 40px;
	--wdc-btn-gap: 8px;
	--wdc-btn-radius: 8px;
	--wdc-icon-size: 18px;
	/* Badge de categoría */
	--wdc-badge-bg: #fff;
	--wdc-badge-color: #000;
	--wdc-badge-bg-hover: #000;
	--wdc-badge-color-hover: #fff;
	--wdc-badge-offset-x: 12px;
	--wdc-badge-offset-y: 12px;
	/* Badge de tipo (Plugin / Tema) */
	--wdc-type-bg: #111;
	--wdc-type-color: #b3f05a;
	--wdc-type-bg-hover: #b3f05a;
	--wdc-type-color-hover: #111;
	--wdc-type-offset-x: 12px;
	--wdc-type-offset-y: 12px;
}

/* ---------- Fila inferior: info a la izquierda, botones a la derecha ---------- */

.wdc-bottom-row {
	display: var(--wdc-row-display, flex);
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
}

.wdc-bottom-info {
	flex: 1 1 0%;
	min-width: min-content; /* nunca más estrecho que el precio */
}

/* Buttons next to the whole text block (Elementor: "Posición vertical"):
   the text stays in the first column, the buttons in the second one. */
.wd-product .product-element-bottom > :not(.wdc-bottom-row),
.wd-product .product-element-bottom .wdc-bottom-info {
	grid-column: var(--wdc-text-col, auto);
}
/* "Desplazamiento vertical": the buttons move and, when they go up, the row
   gets shorter by the same amount, so no empty space is left below. */
.wd-product .product-element-bottom .wdc-loop-btns {
	position: relative;
	top: var(--wdc-btn-shift, 0px);
	margin-top: calc(min(0px, var(--wdc-btn-shift, 0px)) * var(--wdc-btn-shrink, 1));
	grid-column: var(--wdc-btn-col, auto);
	grid-row: var(--wdc-btn-row, auto);
	align-self: var(--wdc-btn-align, auto);
}

/* ---------- Precio: tachado y final siempre en UNA fila ---------- */

.wd-product .wdc-bottom-info .price {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: var(--wdc-price-gap, 8px);
	margin: 0;
	white-space: nowrap;
	line-height: 1.2;
}

.wd-product .wdc-bottom-info .price del,
.wd-product .wdc-bottom-info .price ins {
	display: inline-block;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.wd-product .wdc-bottom-info .price ins {
	order: 2;
	text-decoration: none;
}

.wd-product .wdc-bottom-info .price del {
	order: 1;
}

/* ---------- Subtítulo ---------- */

.wd-product .wdc-subtitle {
	margin-bottom: 4px;
	color: var(--color-gray-400);
	font-size: 14px;
	line-height: 1.4;
}

/* ---------- Separador opcional entre título y subtítulo (se activa en Elementor) ---------- */

.wd-product .wdc-title-sep {
	display: none;
	box-sizing: border-box;
	margin: 8px 0;
}

.wd-product .wdc-title-sep::before {
	content: "";
	display: block;
	width: var(--wdc-sep-w, 100%);
	max-width: 100%;
	height: var(--wdc-sep-h, 1px);
	background-color: var(--wdc-sep-color, var(--brdcolor-gray-300, #e5e5e5));
}

/* ---------- Estudio (bajo el subtítulo) ---------- */

.wd-product .wd-product-brands-links.wdc-studio {
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.4;
}

.wd-product .wd-product-brands-links.wdc-studio a {
	color: var(--wd-primary-color);
	font-weight: 600;
	text-decoration: none;
}

.wd-product .wd-product-brands-links.wdc-studio a:hover {
	text-decoration: underline;
}

/* ---------- Badge de categoría sobre la imagen ---------- */

.wd-product .wd-product-thumb {
	position: relative;
}

.wd-product .wdc-cat-badges {
	position: absolute;
	z-index: 3;
	bottom: var(--wdc-badge-offset-y);
	left: var(--wdc-badge-offset-x);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(64% - var(--wdc-badge-offset-x));
	pointer-events: none;
}

.wd-product .wdc-cat-badges .wdc-cat-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 30px;
	background-color: var(--wdc-badge-bg);
	color: var(--wdc-badge-color);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: auto;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
	transition: background-color .25s ease, color .25s ease;
}

.wd-product .wdc-cat-badges .wdc-cat-badge:hover {
	background-color: var(--wdc-badge-bg-hover);
	color: var(--wdc-badge-color-hover);
}

/* ---------- Badge de tipo (Plugin / Tema): misma fila que la categoría, a la derecha ---------- */

.wd-product .wdc-type-badges {
	position: absolute;
	z-index: 3;
	bottom: var(--wdc-type-offset-y);
	right: var(--wdc-type-offset-x);
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	max-width: calc(34% - var(--wdc-type-offset-x));
	pointer-events: none;
}

.wd-product .wdc-type-badges .wdc-type-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 30px;
	background-color: var(--wdc-type-bg);
	color: var(--wdc-type-color);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: auto;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
	transition: background-color .25s ease, color .25s ease;
}

.wd-product .wdc-type-badges .wdc-type-badge:hover {
	background-color: var(--wdc-type-bg-hover);
	color: var(--wdc-type-color-hover);
}

/* ---------- Etiquetas sobre la imagen (descuento, Caliente…) ----------
   El contenedor ocupa toda la imagen para poder colocar el grupo en
   cualquier esquina y cada etiqueta por separado desde Elementor. */

.wd-product .wd-product-thumb .product-labels {
	position: absolute;
	z-index: 2;
	inset: 0;
	top: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: var(--wdc-lbl-v, flex-start);
	align-items: var(--wdc-lbl-h, flex-start);
	align-content: var(--wdc-lbl-h, flex-start);
	gap: var(--wdc-lbl-gap, 10px);
	padding: var(--wdc-lbl-y, 7px) var(--wdc-lbl-x, 7px);
	pointer-events: none;
}

.wd-product .wd-product-thumb .product-labels > * {
	pointer-events: auto;
}

@media (max-width: 576px) {
	.wd-product .wd-product-thumb .product-labels {
		gap: var(--wdc-lbl-gap, 5px);
	}
}

/* ---------- Botones ---------- */

.wdc-loop-btns {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--wdc-btn-gap);
	margin-inline-start: auto;
}

.wd-product .wdc-loop-btns .wdc-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: var(--wdc-btn-h);
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--wdc-btn-radius);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transition: background-color .25s ease, color .25s ease;
}

.wdc-btn .wdc-btn-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: var(--wdc-icon-size);
	height: var(--wdc-icon-size);
}

.wdc-btn .wdc-btn-icon svg {
	width: 100%;
	height: 100%;
}

/* Añadir */
.wd-product .wdc-loop-btns .wdc-btn-buy {
	background-color: var(--wdc-buy-bg);
	color: var(--wdc-buy-color);
}

.wd-product .wdc-loop-btns .wdc-btn-buy:hover {
	background-color: var(--wdc-buy-bg-hover);
	color: var(--wdc-buy-color-hover);
}

.wd-product .wdc-loop-btns .wdc-btn-buy.loading {
	opacity: .6;
	pointer-events: none;
}

.wd-product .wdc-loop-btns .wdc-btn-buy.loading::after,
.wd-product .wdc-loop-btns .wdc-btn-buy.added::after {
	display: none;
}

.wdc-loop-btns .added_to_cart {
	display: none !important;
}

/* Probar demo: el "hueco" ocupa solo el icono; el botón se despliega
   hacia la izquierda por encima del precio, sin mover nada. */
.wdc-demo-slot {
	position: relative;
	flex: 0 0 auto;
	width: var(--wdc-btn-h);
	height: var(--wdc-btn-h);
}

.wd-product .wdc-loop-btns .wdc-btn-demo {
	position: absolute;
	z-index: 5;
	top: 0;
	right: 0;
	height: 100%;
	min-width: var(--wdc-btn-h);
	gap: 0;
	padding: 0 calc((var(--wdc-btn-h) - var(--wdc-icon-size)) / 2);
	background-color: var(--wdc-demo-bg);
	color: var(--wdc-demo-color);
	transition: background-color .25s ease, color .25s ease, gap .3s ease;
}

.wd-product .wdc-loop-btns .wdc-btn-demo .wdc-btn-text {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-width .3s ease, opacity .2s ease;
}

.wd-product .wdc-loop-btns .wdc-btn-demo:hover,
.wd-product .wdc-loop-btns .wdc-btn-demo:focus-visible {
	gap: 7px;
	background-color: var(--wdc-demo-bg-hover);
	color: var(--wdc-demo-color-hover);
}

.wd-product .wdc-loop-btns .wdc-btn-demo:hover .wdc-btn-text,
.wd-product .wdc-loop-btns .wdc-btn-demo:focus-visible .wdc-btn-text {
	max-width: 200px;
	opacity: 1;
}

/* Mientras el ratón está sobre "Probar demo", el texto de "Añadir"
   se contrae y el botón queda solo con el icono. */
.wd-product .wdc-loop-btns .wdc-btn-buy {
	transition: background-color .25s ease, color .25s ease, gap .3s ease, padding .3s ease;
}

.wd-product .wdc-loop-btns .wdc-btn-buy .wdc-btn-text {
	display: inline-block;
	max-width: 200px;
	overflow: hidden;
	opacity: 1;
	transition: max-width .3s ease, opacity .2s ease;
}

.wd-product .wdc-loop-btns:has(.wdc-btn-demo:hover) .wdc-btn-buy,
.wd-product .wdc-loop-btns:has(.wdc-btn-demo:focus-visible) .wdc-btn-buy {
	gap: 0;
	padding-inline: calc((var(--wdc-btn-h) - var(--wdc-icon-size)) / 2);
}

.wd-product .wdc-loop-btns:has(.wdc-btn-demo:hover) .wdc-btn-buy .wdc-btn-text,
.wd-product .wdc-loop-btns:has(.wdc-btn-demo:focus-visible) .wdc-btn-buy .wdc-btn-text {
	max-width: 0;
	opacity: 0;
}

/* RTL: se despliega hacia la derecha */
.rtl .wd-product .wdc-loop-btns .wdc-btn-demo {
	right: auto;
	left: 0;
}

/* ---------- Móvil: botones a todo el ancho ---------- */

@media (max-width: 576px) {
	.wdc-loop-btns {
		flex: 1 1 100%;
	}

	.wd-product .wdc-loop-btns .wdc-btn-buy {
		flex: 1 1 0%;
		padding-inline: 8px;
		font-size: 12px;
	}
}

/* ==========================================================================
   Promo boxes after the products (★ Promo boxes) — 1.8.0
   ========================================================================== */

.wdc-promo-item {
	display: flex;
	height: auto;
}

.wd-carousel-item.wdc-promo-item {
	align-self: stretch;
}

.wdc-promo {
	--wdc-promo-radius: 20px;
	--wdc-promo-pad: 30px;
	--wdc-promo-green: #b3f05a;
	--wdc-promo-ink: #0e0e0e;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	min-height: 100%;
	padding: var(--wdc-promo-pad);
	border-radius: var(--wdc-promo-radius);
	overflow: hidden;
	text-decoration: none !important;
	isolation: isolate;
	transition: transform .25s ease, box-shadow .25s ease;
}

.wdc-promo:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}

.wdc-promo::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -70px;
	bottom: -70px;
	width: 230px;
	height: 230px;
	border-radius: 50%;
	opacity: .14;
	background: currentColor;
	transition: transform .4s ease;
}

.wdc-promo:hover::after {
	transform: scale(1.15);
}

.wdc-promo--sell {
	background: var(--wdc-promo-ink);
	color: #fff !important;
	--wdc-acc: var(--wdc-promo-green);
	--wdc-on-acc: var(--wdc-promo-ink);
}

.wdc-promo--sell::after {
	background: var(--wdc-promo-green);
}

.wdc-promo--seller {
	background: var(--wdc-promo-green);
	color: var(--wdc-promo-ink) !important;
	--wdc-acc: var(--wdc-promo-ink);
	--wdc-on-acc: var(--wdc-promo-green);
}

.wdc-promo__top {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.wdc-promo__ic {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--wdc-acc);
	color: var(--wdc-on-acc);
}

.wdc-promo__label {
	padding: 5px 12px;
	border-radius: 30px;
	border: 1px solid currentColor;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .85;
}

.wdc-promo__stat {
	margin-top: auto;
	font-size: 15px;
	font-weight: 600;
	opacity: .9;
}

.wdc-promo__stat strong {
	display: block;
	font-size: clamp(44px, 4.2vw, 64px);
	line-height: .95;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--wdc-acc);
	opacity: 1;
}

.wdc-promo--seller .wdc-promo__stat strong {
	color: var(--wdc-promo-ink);
}

.wdc-promo__title {
	display: block;
	font-size: clamp(22px, 1.9vw, 28px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.01em;
	color: inherit;
}

.wdc-promo__text {
	display: block;
	font-size: 15px;
	line-height: 1.5;
	opacity: .78;
}

.wdc-promo__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--wdc-btn-h, 44px);
	margin-top: 4px;
	padding: 0 20px;
	border-radius: var(--wdc-btn-radius, 8px);
	background: var(--wdc-acc);
	color: var(--wdc-on-acc);
	font-size: 15px;
	font-weight: 700;
	transition: gap .2s ease;
}

.wdc-promo:hover .wdc-promo__btn {
	gap: 12px;
}

.wdc-promo:not(:has(.wdc-promo__stat)) .wdc-promo__title {
	margin-top: auto;
}

/* Free products (WPS Autores): green download button. */
.wd-product .wdc-btn-free{background:#b3f05a!important;color:#161616!important}
.wd-product .wdc-btn-free:hover{background:#161616!important;color:#b3f05a!important}

/* Versión gratuita (WPS Autores): mismo comportamiento que "Probar demo" (solo icono;
   en hover se despliega su texto y "Añadir" se queda con el icono).
   Colores propios opcionales con --wdc-free-*. */
.wd-product .wdc-loop-btns .wdc-btn-free-version {
	background-color: var(--wdc-free-bg, var(--wdc-demo-bg));
	color: var(--wdc-free-color, var(--wdc-demo-color));
}

.wd-product .wdc-loop-btns .wdc-btn-free-version:hover,
.wd-product .wdc-loop-btns .wdc-btn-free-version:focus-visible {
	z-index: 6;
	background-color: var(--wdc-free-bg-hover, var(--wdc-demo-bg-hover));
	color: var(--wdc-free-color-hover, var(--wdc-demo-color-hover));
}

/* =====================================================================
   Badges, design A: discount and label side by side in one row, top left,
   same height and shape (discount lime, label black).
   ===================================================================== */
.wd-product .wd-product-thumb .product-labels {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: var(--wdc-lbl-h, flex-start);
	align-items: flex-start;
	align-content: var(--wdc-lbl-v, flex-start);
	gap: var(--wdc-lbl-gap, 6px);
	padding: var(--wdc-lbl-y, 14px) var(--wdc-lbl-x, 14px);
}
.wd-product .wd-product-thumb .product-labels .product-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	height: 28px;
	margin: 0;
	padding: 0 12px;
	border-radius: 99px;
	background: #161616;
	color: #fff;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
	box-shadow: none;
}
.wd-product .wd-product-thumb .product-labels .product-label.onsale {
	background: #b3f05a;
	color: #161616;
}
.wd-product .wd-product-thumb .product-labels .product-label.out-of-stock {
	background: rgba(255, 255, 255, .85);
	color: #161616;
}

/* =====================================================================
   Glass bar at the bottom of the image, design E: the type (Plugin / Theme)
   as text on the left, the categories as badges on the right, alternating
   green and black.
   ===================================================================== */
.wd-product .wdc-badge-bar {
	position: absolute;
	z-index: 3;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 42px;
	padding: 6px 6px 6px 14px;
	box-sizing: border-box;
	border-radius: 14px;
	background: rgba(255, 255, 255, .72);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.wd-product .wdc-badge-bar--no-type { padding-left: 6px; justify-content: flex-start; }
.wd-product .wdc-badge-bar .wdc-type-badges,
.wd-product .wdc-badge-bar .wdc-cat-badges {
	position: static;
	max-width: none;
	pointer-events: auto;
}
.wd-product .wdc-badge-bar .wdc-type-badges { flex: 0 0 auto; }
.wd-product .wdc-badge-bar .wdc-type-badges .wdc-type-badge {
	padding: 0;
	background: none;
	box-shadow: none;
	color: #161616;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}
.wd-product .wdc-badge-bar .wdc-type-badges .wdc-type-badge:hover { background: none; color: #161616; text-decoration: underline; }
.wd-product .wdc-badge-bar .wdc-cat-badges {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	gap: 6px;
	overflow: hidden;
	margin-left: auto;
}
.wd-product .wdc-badge-bar--no-type .wdc-cat-badges { margin-left: 0; justify-content: flex-start; }
.wd-product .wdc-badge-bar .wdc-cat-badges .wdc-cat-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border-radius: 9px;
	box-shadow: none;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .04em;
	white-space: nowrap;
	transition: opacity .2s ease, transform .2s ease;
}
.wd-product .wdc-badge-bar .wdc-cat-badges .wdc-cat-badge:nth-child(odd) { background: #b3f05a; color: #161616; }
.wd-product .wdc-badge-bar .wdc-cat-badges .wdc-cat-badge:nth-child(even) { background: #161616; color: #fff; }
.wd-product .wdc-badge-bar .wdc-cat-badges .wdc-cat-badge:hover { opacity: .85; transform: translateY(-1px); }
/* Many categories: the last ones fade out at the edge instead of breaking the bar. */
.wd-product .wdc-badge-bar .wdc-cat-badges.is-overflow {
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
	mask-image: linear-gradient(90deg, #000 85%, transparent);
}
@media (max-width: 576px) {
	.wd-product .wdc-badge-bar { left: 8px; right: 8px; bottom: 8px; min-height: 36px; padding: 4px 4px 4px 10px; border-radius: 11px; }
	.wd-product .wdc-badge-bar .wdc-cat-badges .wdc-cat-badge { height: 26px; padding: 0 9px; font-size: 11px; }
	.wd-product .wdc-badge-bar .wdc-type-badges .wdc-type-badge { font-size: 12px; }
	.wd-product .wd-product-thumb .product-labels .product-label { height: 24px; padding: 0 9px; font-size: 11px; }
}

/* Labels inside the glass bar: same row as the categories, aligned right.
   First the custom label, then the discount. */
.wd-product .wd-product-thumb .wdc-badge-bar .product-labels {
	position: static !important;
	inset: auto !important;
	z-index: auto;
	flex: 0 0 auto;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: flex-end !important;
	align-items: center !important;
	align-content: center !important;
	gap: 6px;
	margin: 0 0 0 auto;
	padding: 0 !important;
	pointer-events: auto;
}
.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label { order: 0; white-space: nowrap; }
/* Discount on top of the image, top left, with the same look as the bar badges. */
.wd-product .wd-product-thumb .wdc-labels-top .product-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	height: 30px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: none;
}
@media (max-width: 576px) {
	.wd-product .wd-product-thumb .wdc-labels-top .product-label { height: 26px; padding: 0 9px; font-size: 11px; }
}
/* Same look as the category badges: only the background and text color change. */
.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label,
.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label.wd-shape-round,
.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label.wd-shape-round-sm,
.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label.wd-shape-rect-sm {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	height: 30px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: none;
}
@media (max-width: 576px) {
	.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label,
	.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label.wd-shape-round,
	.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label.wd-shape-round-sm,
	.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label.wd-shape-rect-sm { height: 26px; padding: 0 9px; font-size: 11px; }
}
.wd-product .wd-product-thumb .wdc-badge-bar .product-labels .product-label.onsale { order: 10; }
.wd-product .wdc-badge-bar--labels .wdc-cat-badges { flex: 0 1 auto; }

/* [wpstore_types]: types with products as links */
.wdc-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wdc-types a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; background: #fff; color: #161616; font-weight: 600; text-decoration: none; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); transition: background-color .2s ease; }
.wdc-types a span { font-size: 12px; opacity: .55; }
.wdc-types a:hover, .wdc-types a.is-current { background: #b3f05a; color: #161616; }
.wdc-types--list { flex-direction: column; gap: 4px; }
.wdc-types--list a { height: auto; padding: 6px 0; background: none; box-shadow: none; border-radius: 0; }
.wdc-types--list a:hover, .wdc-types--list a.is-current { background: none; text-decoration: underline; }

/* Header "Filter by type" buttons: the grids fade softly while the new view arrives (AJAX). */
:is(.elementor-widget-wd_products,.elementor-widget-wd_products_tabs,.elementor-widget-woocommerce-products,.elementor-widget-loop-grid,.elementor-widget-loop-carousel,.elementor-widget-wpsw-top){transition:opacity .25s ease}
html.wdc-type-loading :is(.elementor-widget-wd_products,.elementor-widget-wd_products_tabs,.elementor-widget-woocommerce-products,.elementor-widget-loop-grid,.elementor-widget-loop-carousel,.elementor-widget-wpsw-top){opacity:.4;pointer-events:none}

/* Hover buttons on the image (quick view, wishlist…): green badge with white icons. */
.wd-product .wd-product-thumb .wd-buttons {
	background: #b3f05a;
}
.wd-product .wd-product-thumb .wd-buttons .wd-action-btn {
	--wd-action-color: #fff;
	--wd-action-color-hover: #fff;
	--wd-action-icon-color: #fff;
	--wd-action-icon-color-hover: #fff;
	--wd-action-text-color-hover: #fff;
}
.wd-product .wd-product-thumb .wd-buttons .wd-action-btn > a,
.wd-product .wd-product-thumb .wd-buttons .wd-action-btn > a .wd-action-icon::before,
.wd-product .wd-product-thumb .wd-buttons .wd-action-btn > a:hover .wd-action-icon::before,
.wd-product .wd-product-thumb .wd-buttons .wd-action-btn > a.added .wd-action-icon::before {
	color: #fff;
}

/* Narrow cards (e.g. 3 per row in the account panel) with "Probar demo", the free version
   and "Añadir": "Añadir" keeps only its icon so the three buttons always fit. */
.wd-product .product-element-bottom {
	container-type: inline-size;
}

@container (max-width: 250px) {
	.wd-product .wdc-loop-btns:has(.wdc-demo-slot + .wdc-demo-slot) .wdc-btn-buy {
		gap: 0;
		padding-inline: calc((var(--wdc-btn-h) - var(--wdc-icon-size)) / 2);
	}

	.wd-product .wdc-loop-btns:has(.wdc-demo-slot + .wdc-demo-slot) .wdc-btn-buy .wdc-btn-text {
		max-width: 0;
		opacity: 0;
	}
}
