/* =========================================================
   HPP · Tienda v2 — tarjeta de producto
   Todo bajo body.hpp-shop-v2 (vista previa admin / activación)
   ========================================================= */

/* Tarjeta */
html body.hpp-shop-v2 .wd-product .wd-product-wrapper {
	background: var(--surface-card, #fff) !important;
	border: 1px solid var(--hairline, rgba(0,0,0,.08)) !important;
	border-radius: 18px !important;
	padding: 10px 10px 16px !important;
	box-shadow: 0 1px 2px rgba(0,0,0,.04) !important;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
	height: 100%;
	display: flex !important;
	flex-direction: column;
	overflow: hidden;
}
html body.hpp-shop-v2 .wd-product:hover .wd-product-wrapper {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0,0,0,.08) !important;
	border-color: rgba(0,0,0,.12) !important;
}

/* Imagen (partitura) sobre fondo gris suave */
html body.hpp-shop-v2 .wd-product .wd-product-thumb {
	background: #f5f5f7 !important;
	border-radius: 12px !important;
	overflow: hidden;
	margin: 0 0 14px !important;
}
html body.hpp-shop-v2 .wd-product .wd-product-thumb img {
	border-radius: 0 !important;
	mix-blend-mode: multiply;
}

/* Texto */
html body.hpp-shop-v2 .wd-product .product-element-bottom {
	padding: 0 6px !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	text-align: left !important;
}
html body.hpp-shop-v2 .wd-product .wd-entities-title {
	margin: 0 !important;
	font-family: var(--font-sans) !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
html body.hpp-shop-v2 .wd-product .wd-entities-title a {
	color: var(--ink, #1d1d1f) !important;
}
html body.hpp-shop-v2 .wd-product .wd-entities-title a:hover {
	color: var(--brand-red-text, #c91414) !important;
}

/* Etiquetas */
html body.hpp-shop-v2 .hpp-card-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}
html body.hpp-shop-v2 .hpp-chip {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	background: #f2f2f4;
	color: #48484a;
}
html body.hpp-shop-v2 .hpp-chip--type {
	background: transparent;
	color: var(--ink-secondary, #6e6e73);
	padding: 0 2px 0 0;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 11px;
}
html body.hpp-shop-v2 .hpp-chip--audio {
	background: var(--brand-red-tint, #fdecec);
	color: var(--brand-red-text, #c91414);
}
html body.hpp-shop-v2 .hpp-chip--audio::before {
	content: "";
	width: 12px;
	height: 12px;
	margin-right: 4px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Precio */
html body.hpp-shop-v2 .wd-product .price {
	margin: auto 0 0 !important;
	padding-top: 2px;
	font-family: var(--font-sans) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--ink, #1d1d1f) !important;
}
html body.hpp-shop-v2 .wd-product .price .amount {
	color: var(--ink, #1d1d1f) !important;
}
html body.hpp-shop-v2 .wd-product .price .hpp-from {
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-secondary, #6e6e73);
	margin-right: 2px;
}
html body.hpp-shop-v2 .wd-product .price del {
	font-weight: 500;
	opacity: .55;
	font-size: 13px;
}
html body.hpp-shop-v2 .wd-product .price ins {
	text-decoration: none;
	color: var(--brand-red-text, #c91414) !important;
}

/* Botones flotantes (carrito / vista rápida / favoritos) más discretos */
html body.hpp-shop-v2 .wd-product .wd-buttons {
	border-radius: 12px !important;
	box-shadow: 0 4px 14px rgba(0,0,0,.08) !important;
	overflow: hidden;
}

/* Móvil */
@media (max-width: 767px) {
	html body.hpp-shop-v2 .wd-product .wd-product-wrapper {
		padding: 8px 8px 12px !important;
		border-radius: 14px !important;
	}
	html body.hpp-shop-v2 .wd-product .wd-product-thumb {
		border-radius: 10px !important;
		margin-bottom: 10px !important;
	}
	html body.hpp-shop-v2 .wd-product .product-element-bottom {
		padding: 0 4px !important;
		gap: 6px;
	}
	html body.hpp-shop-v2 .wd-product .wd-entities-title {
		font-size: 14px !important;
	}
	html body.hpp-shop-v2 .hpp-chip--type {
		display: none;
	}
	html body.hpp-shop-v2 .hpp-chip {
		height: 20px;
		padding: 0 7px;
		font-size: 11px;
	}
	html body.hpp-shop-v2 .wd-product .price {
		font-size: 15px !important;
	}
}

/* Tarjetas con precio intercambiable (WoodMart "alt"/"standard": precio ↔ botón) */
html body.hpp-shop-v2 .wd-product .product-element-bottom > .wrap-price {
	margin-top: auto !important;
}
html body.hpp-shop-v2 .wd-product .wrap-price .price,
html body.hpp-shop-v2 .wd-product .swap-elements .price {
	margin: 0 !important;
	padding-top: 0 !important;
}
/* En tarjetas "alt" las etiquetas caerían dentro del área precio↔botón: se ocultan ahí */
html body.hpp-shop-v2 .wd-product .swap-elements .hpp-card-chips {
	display: none !important;
}

/* Etiqueta de instrumento en la tarjeta (texto encima del título) */
.wd-product-header:has(> .hpp-card-instr) { flex-wrap: wrap; }
.hpp-card-instr { flex: 0 0 100%; width: 100%; margin: 0 0 4px; font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-secondary); line-height: 1.3; }
