/* Tarjeta producto Llantas Web — minimalista, botón rojo. */

.llw-product-card {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	position: relative;
	isolation: isolate;
}

.llw-product-groups {
	display: grid;
	gap: 1.35rem;
}

.llw-product-group {
	display: grid;
	gap: 1rem;
}

.llw-product-group__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.55rem 1rem;
	border-radius: 12px;
	background: var(--llw-group-color, #64748b);
	color: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
	text-align: center;
}

.llw-product-group__bar span {
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.llw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	--llw-brand-w: 78px;
	--llw-brand-h: 32px;
	--llw-card-image-h: 220px;
	--llw-card-max-w: none;
}

.llw-card:hover {
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.llw-card__brand {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--llw-brand-w);
	height: var(--llw-brand-h);
	padding: 3px 5px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 6px;
	box-sizing: border-box;
	overflow: hidden;
	pointer-events: none;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
	flex-shrink: 0;
}

.llw-card__brand-img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain;
	object-position: center;
}

.llw-card__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--llw-card-image-h);
	width: 100%;
	height: var(--llw-card-image-h);
	min-height: var(--llw-card-image-h);
	max-height: var(--llw-card-image-h);
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid #e8edf3;
	padding: 0.75rem 0.85rem;
	box-sizing: border-box;
	text-decoration: none !important;
}

.llw-card__image:hover,
.llw-card__title a:hover {
	text-decoration: none !important;
	color: inherit;
}

.llw-card__image img,
.llw-card__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
}

.llw-card__body {
	display: flex;
	flex-direction: column;
	flex: 0 1 auto;
	padding: 0.7rem 0.9rem 0.8rem;
}

.llw-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin: 0 0 0.7rem;
	padding: 0.38rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: #fff;
}

.llw-card__badge--bueno {
	background: #cd7f32;
	color: #fff;
}

.llw-card__badge--muy-bueno {
	background: #bfc0c0;
	color: #fff;
}

.llw-card__badge--excelente {
	background: #d4af37;
	color: #fff;
}

.llw-card__badge--custom {
	background: #bfc0c0;
	color: #fff;
}

.llw-card__title {
	margin: 0 0 0.35rem;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
	min-height: calc(5 * 1.35em);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
}

.llw-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.llw-card__price {
	font-size: 1.2rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
	margin-bottom: 0.4rem;
}

.llw-card__price del {
	opacity: 0.45;
	font-size: 0.9rem;
	font-weight: 600;
	margin-right: 0.35rem;
}

.llw-card__price ins {
	text-decoration: none;
}

.llw-card__eu {
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 0;
}

.llw-card__eu-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 1.65rem;
	min-width: 1.65rem;
	max-width: 1.65rem;
	height: 1.65rem;
	padding: 0;
	border-radius: 50%;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	color: #fff;
}

.llw-card__eu-item--fuel {
	background: #facc15;
	color: #713f12;
}

.llw-card__eu-item--wet {
	background: #3b82f6;
}

.llw-card__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.55rem;
	padding-top: 0;
}

.llw-card__cart {
	flex: 1 1 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 38px;
	padding: 0.5rem 0.9rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #ff0000 !important;
	color: #fff !important;
	font-size: 0.92rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(255, 0, 0, 0.28);
	transition: background 0.2s ease, transform 0.2s ease;
}

.llw-card__cart:hover,
.llw-card__cart:focus {
	background: #d90000 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.llw-card__cart--disabled {
	background: #94a3b8 !important;
	box-shadow: none;
}

.llw-card__cart-icon {
	display: inline-flex;
}

.llw-card__add-cart {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border: 1px solid #e2e8f0 !important;
	border-radius: 50%;
	background: #fff !important;
	background-color: #fff !important;
	color: #64748b !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	box-shadow: none !important;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.llw-card__add-cart:hover,
.llw-card__add-cart:focus,
.llw-card__add-cart:focus-visible,
.llw-card__add-cart:active {
	outline: none !important;
	box-shadow: none !important;
}

.llw-card__add-cart:hover,
.llw-card__add-cart:focus-visible {
	color: #e30613 !important;
	border-color: #e30613 !important;
	background: #fff5f5 !important;
	background-color: #fff5f5 !important;
}

.llw-card__add-cart.added {
	color: #fff !important;
	background: #16a34a !important;
	border-color: #16a34a !important;
}

.llw-card__actions .added_to_cart {
	display: none !important;
}

/* Anular estilos WooCommerce dentro de nuestras grillas */
.yantas-carousel__products .llw-product-card,
.yantas-destacados__grid .llw-product-card,
.yantas-catalog__grid .llw-product-card,
.yantas-filtro__grid .llw-product-card,
.llw-favorites__grid .llw-product-card {
	float: none !important;
	clear: none !important;
}

.yantas-carousel__products .llw-card__price .amount,
.yantas-destacados__grid .llw-card__price .amount,
.yantas-catalog__grid .llw-card__price .amount {
	color: inherit;
}

.yantas-carousel__products .llw-card__brand,
.yantas-destacados__grid .llw-card__brand,
.yantas-catalog__grid .llw-card__brand,
.yantas-filtro__grid .llw-card__brand {
	width: 78px !important;
	height: 32px !important;
}

.yantas-carousel__products .llw-card__brand-img,
.yantas-destacados__grid .llw-card__brand-img,
.yantas-catalog__grid .llw-card__brand-img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

@media (max-width: 992px) {
	.llw-card {
		--llw-card-image-h: 200px;
		--llw-card-max-w: min(300px, 100%);
		width: 100%;
		max-width: var(--llw-card-max-w);
		margin-left: auto;
		margin-right: auto;
	}

	.llw-card__brand {
		--llw-brand-w: 68px;
		--llw-brand-h: 28px;
		top: 8px;
		right: 8px;
	}

	.llw-card__body {
		padding: 0.75rem 0.85rem 0.9rem;
	}
}

@media (max-width: 520px) {
	.llw-card {
		border-radius: 10px;
		--llw-card-image-h: 180px;
		--llw-card-max-w: min(280px, 88vw);
	}

	.llw-card__image {
		padding: 0.65rem 0.75rem;
	}

	.llw-card__add-cart {
		flex: 0 0 34px;
		width: 34px;
		height: 34px;
	}
}
