/* ==============================> PUNTOS DE VENTA */

/* -> Contenedor general */
.pdv-wrap {
	--pdv-gap: 20px;
	position: relative;
	box-sizing: border-box;
}

.pdv-wrap * {
	box-sizing: border-box;
}

/* -> Grid */
.pdv-grid {
	display: grid;
	grid-template-columns: repeat(var(--pdv-columnas, 4), minmax(0, 1fr));
	gap: var(--pdv-gap);
}

/* -> Caja / box */
.pdv-item {
	display: flex;
}

.pdv-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid #f3f3f3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.pdv-box:hover,
.pdv-box:focus {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* -> Imagen */
.pdv-imagen {
    display: block;
    position: relative;
    width: 100%;
    height: 146px;
    overflow: hidden;
    background: #f2f2f2;
}

.pdv-imagen img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.5s ease;
}

.pdv-box:hover .pdv-imagen img {
	transform: scale(1.06);
}

.pdv-imagen-vacia {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c4c4c4;
	font-size: 42px;
}

/* -> Contenido */
.pdv-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 20px;
}

.pdv-titulo {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--e-global-color-primary);
}

.pdv-direccion {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #666666;
}

.pdv-direccion i {
	margin-top: 3px;
	font-size: 14px;
	color: var(--e-global-color-primary);
	flex: 0 0 auto;
}

/* -> Carrusel */
.pdv-carrusel {
	padding: 0 44px;
}

.pdv-carrusel .pdv-track {
	display: flex;
	gap: var(--pdv-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 6px;
	scrollbar-width: none;
}

.pdv-carrusel .pdv-track::-webkit-scrollbar {
	display: none;
}

.pdv-carrusel .pdv-item {
	flex: 0 0 calc((100% - (var(--pdv-columnas, 4) - 1) * var(--pdv-gap)) / var(--pdv-columnas, 4));
	scroll-snap-align: start;
}

/* -> Flechas del carrusel */
.pdv-flecha {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--e-global-color-primary);
	font-size: 16px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.pdv-flecha:hover {
	background: var(--e-global-color-primary);
	color: #ffffff;
}

.pdv-flecha-prev {
	left: 0;
}

.pdv-flecha-next {
	right: 0;
}

/* -> Responsive (768px) */
@media (max-width: 768px) {

	.pdv-grid {
		grid-template-columns: 1fr;
	}

	.pdv-carrusel {
		padding: 0;
	}

	.pdv-carrusel .pdv-item {
		flex-basis: 82%;
	}

	.pdv-flecha {
		display: none;
	}
}
