/* ============================================================================
 * Cubacell Storefront — WooCommerce Blocks styling
 * Solo selectores PÚBLICOS (wc-block-components-*, wp-element-button).
 * Nunca tocar wc-block-grid__product__wrapper ni clases internas privadas.
 * ============================================================================ */

/* Card del producto: hover lift + sombra sutil */
.wc-block-components-product-image {
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--soft-2);
	transition: transform 250ms cubic-bezier(.22,.61,.36,1);
}
.wc-block-components-product-image img { transition: transform 450ms cubic-bezier(.22,.61,.36,1); }
.wp-block-post:hover .wc-block-components-product-image img,
.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }

/* Título azul, dos líneas truncadas */
.wc-block-components-product-title,
.wc-block-product .wp-block-post-title {
	color: var(--wp--preset--color--primary) !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	min-height: 36px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wc-block-components-product-title a,
.wc-block-product .wp-block-post-title a {
	color: inherit !important;
	text-decoration: none;
}

/* Precio bold + before tachado */
.wc-block-components-product-price {
	font-weight: 800;
	color: var(--wp--preset--color--ink);
}
.wc-block-components-product-price del { color: var(--wp--preset--color--muted); font-weight: 500; opacity: .8; }
.wc-block-components-product-price ins { background: transparent; color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 800; }

/* Sale badge con paleta Cubacell */
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--ink) !important;
	font-weight: 800 !important;
	border-radius: 4px !important;
	padding: 4px 10px !important;
	font-size: 11px !important;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* Add to cart button uniforme con el resto del sitio */
.wc-block-components-product-button .wp-block-button__link,
.wc-block-components-product-button .wc-block-components-button {
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 800 !important;
	font-size: 12px !important;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 10px 18px !important;
	width: 100%;
}
.wc-block-components-product-button .wp-block-button__link:hover,
.wc-block-components-product-button .wc-block-components-button:hover {
	background: var(--wp--preset--color--primary-dark) !important;
	color: #fff !important;
}

/* Quantity stepper en single product */
.wc-block-components-quantity-selector { border-radius: 999px !important; }

/* Mini cart drawer */
.wc-block-mini-cart__drawer .wc-block-components-button.contained { background: var(--wp--preset--color--primary) !important; }

/* Filtros de archive */
.wc-block-product-filters { background: #fff; padding: 18px; border-radius: 12px; border: 1px solid var(--wp--preset--color--line); }

/* Pagination */
.wc-block-pagination .wc-block-pagination-item--active {
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	border-radius: 6px;
}
