/* Websy Grilla de Productos */

.elementor-widget-websy_grilla_productos,
.e-con > .elementor-widget-websy_grilla_productos,
.e-con-inner > .elementor-widget-websy_grilla_productos {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.wgpr {
	box-sizing: border-box;
	width: 100%;
}

.wgpr *,
.wgpr *::before,
.wgpr *::after {
	box-sizing: border-box;
}

.wgpr-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Tarjeta ---------- */
.wgpr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 10px 10px 14px;
	background-color: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.wgpr-card:hover {
	transform: translateY(var(--wgpr-lift, 0px));
}

.wgpr-top {
	position: relative;
}

.wgpr-media {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: #eef0f2;
	border-radius: 8px;
	aspect-ratio: 2 / 1;
}

.wgpr .wgpr-media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform 0.5s ease, opacity 0.4s ease;
}

.wgpr .wgpr-media .wgpr-img-2 {
	opacity: 0;
}

.wgpr-card:hover .wgpr-media .wgpr-img-1 {
	transform: scale(var(--wgpr-zoom, 1));
}

.wgpr-has-hover-img .wgpr-card:hover .wgpr-img-2 {
	opacity: 1;
}

.wgpr-has-hover-img .wgpr-card:hover .wgpr-img-1 {
	opacity: 0;
}

/* ---------- Oferta ---------- */
.wgpr-badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	display: inline-block;
	padding: 8px 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	color: #fff;
	background-color: #d4420f;
	border-radius: 0;
	pointer-events: none;
}

/* ---------- Corazón ---------- */
.wgpr-heart {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	font-size: 24px;
	line-height: 1;
	color: #555;
	background-color: transparent;
	border: 0 solid transparent;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	transition: all 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wgpr-heart:hover {
	color: #d4420f;
}

.wgpr-heart.is-active {
	color: #d4420f;
}

.wgpr-heart svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wgpr-heart.is-active svg {
	fill: currentColor;
}

.wgpr-heart i {
	font-size: inherit;
	color: inherit;
	line-height: 1;
}

.wgpr-heart-sc {
	width: auto;
	height: auto;
}

.wgpr-heart-sc > * { margin: 0 !important; }

/* ---------- Cuerpo ---------- */
.wgpr-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 14px 4px 0;
}

.wgpr .wgpr-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: #1c1a17;
}

.wgpr .wgpr-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.wgpr .wgpr-title a:hover {
	color: #d4420f;
}

.wgpr-clamp .wgpr-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--wgpr-lines, 2);
	overflow: hidden;
}

.wgpr-stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #1a7f3c;
}

.wgpr-stock.is-out { color: #c0392b; }
.wgpr-stock.is-back { color: #b9770e; }

.wgpr-stock svg {
	display: block;
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wgpr-stock i { color: inherit; }

.wgpr-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1;
	color: #555;
}

.wgpr-stars {
	display: inline-block;
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 1;
	color: transparent;
	background-image: linear-gradient(90deg, var(--wgpr-star, #f0a30a) var(--wgpr-p, 0%), var(--wgpr-star-empty, #d6d6d6) var(--wgpr-p, 0%));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wgpr-divider {
	height: 0;
	margin: 6px 0 10px;
	border: 0;
	border-top: 1px solid #ececec;
}

.wgpr-price {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #1c1a17;
}

.wgpr-price del {
	margin-right: 4px;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.6;
}

.wgpr-price ins {
	text-decoration: none;
}

.wgpr-store {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.3;
	color: #555;
}

.wgpr-store a,
.wgpr-store .wgpr-store-name {
	font-weight: 600;
	color: #c8410f;
	text-decoration: none;
	transition: color 0.25s ease;
}

.wgpr-store a:hover {
	color: #8f2d08;
	text-decoration: underline;
}

.wgpr-actions {
	margin-top: 4px;
}

.wgpr .wgpr-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background-color: #1c1a17;
	border: 0 solid transparent;
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	transition: all 0.25s ease;
}

.wgpr .wgpr-btn:hover {
	color: #fff;
	background-color: #d4420f;
}

.wgpr .wgpr-btn i { color: inherit; }
.wgpr .wgpr-btn svg { width: 1em; height: 1em; fill: currentColor; }
.wgpr .wgpr-btn.loading { opacity: 0.7; }
.wgpr .wgpr-btn.added { background-color: #1a7f3c; }
.wgpr .added_to_cart { display: none; }

.wgpr-btn-auto .wgpr-btn {
	display: inline-flex;
	width: auto;
}

.wgpr-actions.wgpr-align-center { text-align: center; }
.wgpr-actions.wgpr-align-right { text-align: right; }

/* Botones alineados abajo (opcional) */
.wgpr-btn-bottom .wgpr-actions { margin-top: auto; padding-top: 4px; }

/* ---------- Paginación ---------- */
.wgpr-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
}

.wgpr-pagination a,
.wgpr-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	color: #1c1a17;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	transition: all 0.25s ease;
}

.wgpr-pagination a:hover {
	color: #fff;
	background-color: #1c1a17;
	border-color: #1c1a17;
}

.wgpr-pagination .current {
	color: #fff;
	background-color: #d4420f;
	border-color: #d4420f;
}

.wgpr-empty {
	padding: 24px;
	text-align: center;
	color: #50575e;
	border: 2px dashed #c3c4c7;
}


/* ---------- Carrusel ---------- */
.wgpr-carousel {
	--wgpr-cols: 5;
	--wgpr-gap: 20px;
	position: relative;
}

.wgpr-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	padding: 6px 0;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	outline: none;
}

.wgpr-viewport::-webkit-scrollbar { display: none; }

.wgpr-viewport.is-dragging {
	scroll-snap-type: none;
	scroll-behavior: auto;
	cursor: grabbing;
	user-select: none;
}

.wgpr-viewport.is-dragging a { pointer-events: none; }

.wgpr-track {
	display: flex;
	gap: var(--wgpr-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wgpr-track > .wgpr-card {
	flex: 0 0 calc((100% - (var(--wgpr-cols) - 1) * var(--wgpr-gap)) / var(--wgpr-cols));
	scroll-snap-align: start;
}

.wgpr-arrow {
	position: absolute;
	top: 50%;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	color: #1c1a17;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transform: translateY(-50%);
	transition: all 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wgpr-prev { left: -10px; }
.wgpr-next { right: -10px; }

.wgpr-arrow:hover {
	color: #fff;
	background-color: #1c1a17;
	border-color: #1c1a17;
}

.wgpr-arrow svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wgpr-arrow i { font-size: inherit; color: inherit; }

.wgpr-arrow.is-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.wgpr-carousel.is-fit .wgpr-arrow,
.wgpr-carousel.is-fit .wgpr-dots { display: none; }

.wgpr-dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}

.wgpr-dot {
	display: block;
	width: 8px;
	height: 8px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	background-color: #c9c9c9;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	transition: all 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wgpr-dot:hover { background-color: #8a8a8a; }
.wgpr-dot.is-active { background-color: #d4420f; }

@media (prefers-reduced-motion: reduce) {
	.wgpr-viewport { scroll-behavior: auto; }
}

@media (max-width: 1024px) {
	.wgpr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wgpr-carousel { --wgpr-cols: 3; }
}

@media (max-width: 767px) {
	.wgpr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.wgpr-carousel { --wgpr-cols: 2; --wgpr-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.wgpr-card,
	.wgpr .wgpr-media img { transition: none; }
}
