/* =====================================================
   BOTONES DE PRODUCTO EN LISTADOS
   ===================================================== */

.product-card__title-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.product-card__bottom-actions--carro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: stretch;
}

.product-card__btn-ficha,
.product-card__btn-carro {
	width: 100%;
	min-height: 40px;
	padding-left: 10px;
	padding-right: 10px;
	font-size: 13px;
	white-space: nowrap;
}

.product-card__btn-carro {
	border: 0;
}

.btn--disabled,
.btn--disabled:hover,
button[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
	transform: none !important;
}

@media (max-width: 576px) {
	.product-card__bottom-actions--carro {
		grid-template-columns: 1fr;
	}

	.product-card__btn-ficha,
	.product-card__btn-carro {
		font-size: 12px;
	}
}

/* =====================================================
   POPUP CARRITO REUTILIZABLE
   ===================================================== */

.carro-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.carro-popup.is-active {
	display: flex;
}

.carro-popup-open {
	overflow: hidden;
}

.carro-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(3px);
}

.carro-popup__box {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 460px;
	background: #ffffff;
	border-radius: 22px;
	padding: 28px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
	animation: carroPopupIn 0.22s ease-out;
}

.carro-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #111827;
	cursor: pointer;
}

.carro-popup__icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #22c55e;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.carro-popup__title {
	margin: 0 0 18px;
	text-align: center;
	font-size: 22px;
	font-weight: 800;
	color: #111827;
}

.carro-popup__product {
	display: flex;
	gap: 14px;
	padding: 14px;
	border-radius: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
}

.carro-popup__img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 14px;
	background: #ffffff;
}

.carro-popup__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: #374151;
	font-size: 13px;
}

.carro-popup__info strong {
	color: #111827;
	font-size: 15px;
	line-height: 1.25;
}

.carro-popup__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 22px;
}

.carro-popup__btn {
	min-height: 46px;
	border-radius: 999px;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
}

.carro-popup__btn--primary {
	background: #111827;
	color: #ffffff !important;
}

.carro-popup__btn--secondary {
	background: #f3f4f6;
	color: #111827;
}

.carro-popup__btn:hover {
	transform: translateY(-1px);
}

@keyframes carroPopupIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 520px) {
	.carro-popup__box {
		padding: 24px 18px;
	}

	.carro-popup__actions {
		grid-template-columns: 1fr;
	}
}


/* =====================================================
   PLACEHOLDER IMAGEN DE PRODUCTO
   ===================================================== */

.product-card__no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #aaa;
    border-radius: 4px;
}

.product-card__no-image i {
    font-size: 3.5rem;
    color: #ccc;
}

.product-card__no-image span {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #bbb;
}


/* =====================================================
   PLACEHOLDER IMAGEN DE CATEGORIA
   ===================================================== */

.category-card__no-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-card__no-image i {
    font-size: 4rem;
    color: #bbb;
}

.category-card__no-image span {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    text-align: center;
    padding: 0 1rem;
}
