/* =========================================================
   NANEL - Tienda web
   Colores del logo rojo de Nanel perfumerias
   ========================================================= */
:root{
	--rojo:        #D21E24;
	--rojo-osc:    #A3151A;
	--rojo-borde:  #8E1116;
	--rojo-suave:  #FDECEC;
	--texto:       #2B2324;
	--gris:        #6F6667;
	--gris-claro:  #EFEAE8;
	--fondo:       #FAF7F5;
	--blanco:      #FFFFFF;
	--verde-wpp:   #25D366;
	--verde-wpp-o: #1DA851;
	--sombra:      0 6px 20px rgba(43,35,36,.08);
	--sombra-hov:  0 14px 30px rgba(43,35,36,.14);
	--radio:       18px;
	color-scheme: light;
}

html{ scroll-behavior: smooth; }
body{
	font-family: 'Quicksand', 'Nunito', sans-serif;
	background: var(--fondo);
	color: var(--texto);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.title, .subtitle, .button, .input, .select select, .textarea, .label{
	font-family: 'Quicksand', 'Nunito', sans-serif;
}
a{ color: var(--rojo); }
a:hover{ color: var(--rojo-osc); }

/* ---------- Barra de la tienda (buscador + carrito) ----------
   La tienda va en un iframe dentro de la web de Nanel, que ya tiene header y footer */
.barra-tienda{
	background: var(--fondo);
	position: sticky;
	top: 0;
	z-index: 40;
	padding: .9rem 1rem;
	box-shadow: 0 1px 0 var(--gris-claro);
}
.barra-tienda-inner{
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: .75rem;
}
.barra-tienda .buscador{ flex: 1; margin: 0; max-width: none; }
.btn-carrito{
	position: relative;
	flex-shrink: 0;
	height: 52px;
	padding: 0 1.3rem;
	border-radius: 999px;
	border: none;
	background: var(--rojo);
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(210,30,36,.3);
	transition: background .2s, transform .2s;
}
.btn-carrito i{ font-size: 1.15rem; }
.btn-carrito:hover{ background: var(--rojo-osc); transform: translateY(-1px); }
.btn-carrito .badge-carrito{ border: 2px solid var(--rojo); }
@media (max-width: 768px){
	.barra-tienda{ padding: .6rem .75rem; }
	.btn-carrito{ width: 52px; padding: 0; justify-content: center; }
}
.btn-icono{
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.14);
	color: #fff;
	font-size: 1.15rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.btn-icono:hover{ background: rgba(255,255,255,.26); color: #fff; transform: translateY(-1px); }
.badge-carrito{
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	border-radius: 999px;
	background: #fff;
	color: var(--rojo);
	font-size: .72rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.badge-carrito.vacio{ display: none; }
.badge-carrito.salto{ animation: salto .45s ease; }
@keyframes salto{ 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }

/* ---------- Titulos de seccion ---------- */
.seccion-titulo{
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1rem;
}
.seccion-titulo h2{
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--texto);
	white-space: nowrap;
}
.seccion-titulo::after{
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--rojo) 0%, rgba(210,30,36,0) 100%);
	border-radius: 2px;
}

/* ---------- Busqueda ---------- */
.buscador{
	position: relative;
	max-width: 640px;
	margin: 0 auto;
}
.buscador input{
	width: 100%;
	height: 52px;
	border-radius: 999px;
	border: 2px solid transparent;
	background: #fff;
	box-shadow: var(--sombra);
	padding: 0 120px 0 48px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--texto);
	outline: none;
	transition: border-color .2s;
}
.buscador input:focus{ border-color: var(--rojo); }
.buscador .lupa{
	position: absolute;
	left: 18px; top: 50%;
	transform: translateY(-50%);
	color: var(--gris);
}
.buscador button{
	position: absolute;
	right: 6px; top: 6px;
	height: 40px;
	padding: 0 1.3rem;
	border-radius: 999px;
	border: none;
	background: var(--rojo);
	color: #fff;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}
.buscador button:hover{ background: var(--rojo-osc); }

#productos.section{ padding-top: 1.5rem; }

/* ---------- Filtros ---------- */
.filtros{
	background: #fff;
	border-radius: var(--radio);
	box-shadow: var(--sombra);
	padding: 1.25rem;
	position: sticky;
	top: 100px;
}
.filtros h3{
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--gris);
	text-transform: uppercase;
	margin: 0 0 .6rem;
}
.filtro-lista{ list-style: none; margin: 0 0 1.25rem; padding: 0; }
.filtro-lista a{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .45rem .7rem;
	border-radius: 10px;
	color: var(--texto);
	font-weight: 600;
	font-size: .92rem;
	transition: background .15s;
}
.filtro-lista a:hover{ background: var(--rojo-suave); color: var(--rojo-osc); }
.filtro-lista a.activo{ background: var(--rojo); color: #fff; }
.filtro-lista a .cant{
	font-size: .75rem;
	font-weight: 700;
	background: var(--gris-claro);
	color: var(--gris);
	border-radius: 999px;
	padding: .05rem .5rem;
}
.filtro-lista a.activo .cant{ background: rgba(255,255,255,.25); color: #fff; }
.filtro-lista.sub a{ font-size: .86rem; padding-left: 1.4rem; }
.btn-filtros-movil{ display: none; }

@media (max-width: 768px){
	.filtros{ position: static; display: none; }
	.filtros.abierto{ display: block; }
	.btn-filtros-movil{
		display: inline-flex;
		align-items: center;
		gap: .5rem;
		border: 1px solid var(--gris-claro);
		background: #fff;
		border-radius: 999px;
		padding: .5rem 1rem;
		font-weight: 700;
		font-family: inherit;
		color: var(--texto);
		cursor: pointer;
	}
}

/* ---------- Barra de resultados ---------- */
.barra-resultados{
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
	margin-bottom: 1rem;
}
.barra-resultados .info{ color: var(--gris); font-weight: 600; font-size: .92rem; }
.chip-filtro{
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--rojo-suave);
	color: var(--rojo-osc);
	border-radius: 999px;
	padding: .2rem .4rem .2rem .8rem;
	font-weight: 700;
	font-size: .82rem;
	margin: 0 .3rem .3rem 0;
}
.chip-filtro a{
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--rojo);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .7rem;
}
.select-orden select{
	border-radius: 999px;
	border-color: var(--gris-claro);
	font-weight: 600;
	color: var(--texto);
	background: #fff;
}

/* ---------- Grilla de productos ---------- */
.grilla{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.1rem;
}
@media (max-width: 1215px){ .grilla{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px){ .grilla{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }

.prod{
	background: #fff;
	border-radius: var(--radio);
	box-shadow: var(--sombra);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
	position: relative;
}
.prod:hover{ transform: translateY(-4px); box-shadow: var(--sombra-hov); }
.prod-foto{
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	padding: .9rem;
}
.prod-foto img{
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .35s ease;
}
.prod:hover .prod-foto img{ transform: scale(1.04); }
.prod-oferta{
	position: absolute;
	top: .7rem; left: .7rem;
	background: var(--rojo);
	color: #fff;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: 1px;
	padding: .2rem .6rem;
	border-radius: 999px;
	box-shadow: 0 3px 8px rgba(210,30,36,.35);
	z-index: 1;
}
.prod-cuerpo{
	padding: .2rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.prod-rubro{
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--rojo);
	margin-bottom: .25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 1em;
}
.prod-nombre{
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	color: var(--texto);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
	margin-bottom: .6rem;
}
.prod-nombre:hover{ color: var(--rojo); }
.prod-precio{
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--texto);
	margin-top: auto;
	margin-bottom: .7rem;
}
.prod-precio small{ font-size: .75em; font-weight: 600; }
/* Precio de lista tachado cuando hay descuento (ARTWEBP) */
.precio-lista{
	display: block;
	font-size: .55em;
	font-weight: 600;
	color: var(--gris);
	line-height: 1.2;
}
.btn-agregar{
	width: 100%;
	height: 42px;
	border: none;
	border-radius: 999px;
	background: var(--rojo);
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	transition: background .2s, transform .1s;
}
.btn-agregar:hover{ background: var(--rojo-osc); }
.btn-agregar:active{ transform: scale(.97); }
.btn-agregar.agregado{ background: var(--verde-wpp-o); }
@media (max-width: 768px){
	.prod-cuerpo{ padding: .1rem .7rem .8rem; }
	.prod-nombre{ font-size: .85rem; }
	.prod-precio{ font-size: 1.1rem; }
	.btn-agregar{ height: 38px; font-size: .82rem; }
}

.sin-resultados{
	background: #fff;
	border-radius: var(--radio);
	box-shadow: var(--sombra);
	padding: 3rem 1.5rem;
	text-align: center;
	color: var(--gris);
}
.sin-resultados i{ font-size: 2.5rem; color: var(--rojo); margin-bottom: 1rem; }

/* ---------- Paginado ---------- */
.paginado{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 2rem 0 1rem;
}
.paginado a, .paginado span{
	min-width: 42px;
	height: 42px;
	padding: 0 .8rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	background: #fff;
	color: var(--texto);
	box-shadow: var(--sombra);
}
.paginado a:hover{ background: var(--rojo-suave); color: var(--rojo-osc); }
.paginado .actual{ background: var(--rojo); color: #fff; }
.paginado .puntos{ background: transparent; box-shadow: none; }

/* ---------- Ofertas (slider) ---------- */
.ofertas .swiper{ padding: .5rem .25rem 2.5rem; }
.ofertas .swiper-slide{ height: auto; display: flex; }
.ofertas .swiper-slide .prod{ width: 100%; }
.swiper-pagination-bullet-active{ background: var(--rojo) !important; }
.swiper-button-next, .swiper-button-prev{
	color: var(--rojo) !important;
	background: #fff;
	width: 42px !important;
	height: 42px !important;
	border-radius: 50%;
	box-shadow: var(--sombra);
	border: 0;
	padding: 0;
	cursor: pointer;
}
.swiper-button-next:after, .swiper-button-prev:after{ font-size: 1rem !important; font-weight: 800; }

/* ---------- Detalle de producto ---------- */
.detalle{
	background: #fff;
	border-radius: 24px;
	box-shadow: var(--sombra);
	padding: 1.5rem;
}
.detalle-foto{
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: var(--radio);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-in;
}
.detalle-foto img{ width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.miniaturas{ display: flex; gap: .5rem; justify-content: center; margin-top: .75rem; }
.miniaturas img{
	width: 64px; height: 64px;
	object-fit: contain;
	border-radius: 12px;
	border: 2px solid var(--gris-claro);
	background: #fff;
	cursor: pointer;
	padding: 3px;
}
.miniaturas img.activa{ border-color: var(--rojo); }
.detalle-rubro{
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rojo);
}
.detalle h1{
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--texto);
	margin: .3rem 0 .4rem;
}
.detalle-codigo{ color: var(--gris); font-size: .85rem; }
.detalle-precio{
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--texto);
	margin: 1rem 0 1.2rem;
}
.detalle .btn-agregar{ height: 52px; font-size: 1.05rem; }
.btn-wpp-linea{
	width: 100%;
	height: 48px;
	border-radius: 999px;
	border: 2px solid var(--verde-wpp);
	color: var(--verde-wpp-o);
	background: #fff;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin-top: .7rem;
}
.btn-wpp-linea:hover{ background: #EFFBF3; color: var(--verde-wpp-o); }
.detalle-beneficios{ margin-top: 1.5rem; display: grid; gap: .6rem; }
.detalle-beneficios div{
	display: flex;
	align-items: center;
	gap: .7rem;
	color: var(--gris);
	font-weight: 600;
	font-size: .92rem;
}
.detalle-beneficios i{
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--rojo-suave);
	color: var(--rojo);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.migas{ font-size: .85rem; font-weight: 600; color: var(--gris); margin-bottom: 1rem; }
.migas a{ color: var(--gris); }
.migas a:hover{ color: var(--rojo); }

/* ---------- Selector de cantidad (pildora) ---------- */
.stepper{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	background: #fff;
	border: 1px solid var(--gris-claro);
	border-radius: 999px;
}
.stepper button{
	width: 34px; height: 34px;
	border: none;
	border-radius: 50%;
	background: var(--rojo-suave);
	color: var(--rojo);
	font-size: .85rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.stepper button:hover{ background: var(--rojo); color: #fff; }
.stepper input{
	width: 44px;
	border: none;
	outline: none;
	background: transparent;
	text-align: center;
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	color: var(--texto);
	-moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button{ -webkit-appearance: none; margin: 0; }
.stepper.grande button{ width: 44px; height: 44px; font-size: 1rem; }
.stepper.grande input{ width: 60px; font-size: 1.3rem; }

/* ---------- Carrito (panel lateral) ---------- */
.carrito-fondo{
	position: fixed;
	inset: 0;
	background: rgba(43,35,36,.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s;
	z-index: 90;
}
.carrito-panel{
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: min(430px, 100%);
	background: var(--fondo);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2,.8,.2,1);
	z-index: 100;
	display: flex;
	flex-direction: column;
	box-shadow: -10px 0 30px rgba(0,0,0,.15);
}
body.carrito-abierto .carrito-fondo{ opacity: 1; pointer-events: auto; }
body.carrito-abierto .carrito-panel{ transform: translateX(0); }
body.carrito-abierto{ overflow: hidden; }
.carrito-cabecera{
	background: radial-gradient(ellipse at center, #DA1F25 0%, #A3151A 100%);
	color: #fff;
	padding: 1rem 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.carrito-cabecera h2{ color: #fff; font-weight: 700; font-size: 1.15rem; }
.carrito-items{ flex: 1; overflow-y: auto; padding: 1rem; }
.carrito-item{
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: .75rem;
	align-items: center;
	background: #fff;
	border-radius: 14px;
	padding: .6rem;
	box-shadow: 0 2px 8px rgba(43,35,36,.05);
	margin-bottom: .6rem;
}
.carrito-item img{ width: 64px; height: 64px; object-fit: contain; border-radius: 10px; }
.carrito-item .nombre{ font-weight: 600; font-size: .88rem; line-height: 1.25; margin-bottom: .35rem; }
.carrito-item .precio-u{ font-size: .78rem; color: var(--gris); }
.carrito-item .derecha{ text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.carrito-item .subtotal{ font-weight: 700; }
.carrito-item .quitar{
	border: none;
	background: none;
	color: var(--gris);
	cursor: pointer;
	font-size: .85rem;
}
.carrito-item .quitar:hover{ color: var(--rojo); }
.carrito-item .stepper button{ width: 28px; height: 28px; font-size: .7rem; }
.carrito-item .stepper input{ width: 34px; font-size: .9rem; }
.carrito-vacio{
	text-align: center;
	color: var(--gris);
	padding: 3rem 1rem;
}
.carrito-vacio i{ font-size: 2.6rem; color: var(--rojo); opacity: .35; margin-bottom: .8rem; }
.carrito-pie{
	background: #fff;
	padding: 1rem 1.25rem 1.25rem;
	box-shadow: 0 -6px 20px rgba(43,35,36,.06);
}
.carrito-total{
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: .8rem;
}
.carrito-total span{ font-weight: 600; color: var(--gris); }
.carrito-total strong{ font-size: 1.5rem; color: var(--texto); }
.carrito-pie .input, .carrito-pie .textarea{
	border-radius: 12px;
	border-color: var(--gris-claro);
	background: var(--fondo);
	color: var(--texto);
	box-shadow: none;
}
.carrito-pie .input:focus, .carrito-pie .textarea:focus{ border-color: var(--rojo); box-shadow: 0 0 0 .12em rgba(210,30,36,.15); }
.btn-wpp{
	width: 100%;
	height: 52px;
	border: none;
	border-radius: 999px;
	background: var(--verde-wpp);
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	font-size: 1.02rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	box-shadow: 0 6px 16px rgba(37,211,102,.35);
	transition: background .2s;
}
.btn-wpp:hover{ background: var(--verde-wpp-o); }
.btn-wpp:disabled{ background: #b9e8c9; box-shadow: none; cursor: not-allowed; }
.btn-vaciar{
	border: none;
	background: none;
	color: var(--gris);
	font-family: inherit;
	font-weight: 600;
	font-size: .85rem;
	cursor: pointer;
	margin-top: .6rem;
	width: 100%;
}
.btn-vaciar:hover{ color: var(--rojo); }
.aviso-precios{ font-size: .75rem; color: var(--gris); text-align: center; margin-top: .5rem; }

/* ---------- Aviso (toast) ---------- */
.toast-nanel{
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translate(-50%, 140%);
	background: var(--texto);
	color: #fff;
	padding: .75rem 1.1rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: .92rem;
	display: flex;
	align-items: center;
	gap: .6rem;
	box-shadow: 0 10px 25px rgba(0,0,0,.25);
	z-index: 120;
	transition: transform .3s cubic-bezier(.2,.8,.2,1);
	max-width: calc(100% - 32px);
}
.toast-nanel.visible{ transform: translate(-50%, 0); }
.toast-nanel i{ color: var(--verde-wpp); }
.toast-nanel a{ color: #fff; text-decoration: underline; white-space: nowrap; }

/* ---------- Visor de foto ---------- */
.visor{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 130;
	cursor: zoom-out;
}
.visor.abierto{ display: flex; }
.visor img{ max-width: 92%; max-height: 92%; background: #fff; border-radius: 14px; }
