.active-underline > li > a::before {
	border-top: none;
}
.menu li ul, .menu li .megamenu {
    //position: fixed;
}
.megamenu > li {flex: 0; white-space: nowrap;}

.megamenu{
	border: #e1e1e1 solid 1px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    -webkit-box-shadow: 3px 3px 15px -3px rgba(0,0,0,0.58);
	-moz-box-shadow: 3px 3px 15px -3px rgba(0,0,0,0.58);
	box-shadow: 3px 3px 15px -3px rgba(0,0,0,0.58) !important;
}


.b-damero {
    display: flex;
    flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
    justify-content: space-between;
    margin-bottom: 0;
    box-sizing: border-box;
}
.bannergroup .banner-item {
    margin-bottom: 40px;
}
.banner-item {
    width: 100% !important;
    margin-bottom: 20px;
}
.b-damero .banner-item.chico {
    width: calc(25% - 1.5%)!important;
    margin: 0 0 40px;
    max-height: 600px;
    overflow: hidden;
}
.b-damero .banner-item.grande {
    width: calc(50% - .7%)!important;
    margin: 0 0 40px;
    max-height: 600px;
    overflow: hidden;
}


.header-middle {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
    color: #333;
    background: #fff;
    font-size: 1.2rem;
    border-bottom: 0px;
}
.category-dropdown.has-border .category-toggle {
    border-left: 0px;
    border-right: 0px;
}

.verde{
	color:#3fae2a
}

.icon-box .icon-box-title {
    text-transform: none;
}


.header-search input.form-control {
    border: none;
}
.header-search .btn-search {
    border: #4572ED;
}

.btn-primary {
    color: #fff;
    border-color: #062452;
    background-color: #062452;
	border-radius: 5px
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
  color: #fff;
  border-color: #002D73;
  background-color: #002D73;
}

.btn-verde {
	color: #fff;
    border-color: #3fae2a;
    background-color: #3fae2a;
	border-radius: 5px
}
.btn-verde:hover, .btn-verde:active, .btn-verde:focus {
  color: #fff;
  border-color: #002D73;
  background-color: #002D73;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border-left-color: #ffffff;
  animation: spin 1s ease infinite;
  margin-right: 10px;
}

.spinnerBlue {
  border: 4px solid red;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border-left-color: #ffffff;
  animation: spin 1s ease infinite;
  margin-right: 10px;
}
@keyframes spin {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

.loader {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	position: relative;
	animation: rotate 1s linear infinite
}
.loader::before , .loader::after {
	content: "";
	box-sizing: border-box;
	position: absolute;
	inset: 0px;
	border-radius: 50%;
	border: 5px solid #FFF;
	animation: prixClipFix 2s linear infinite ;
}
.loader::after{
	transform: rotate3d(90, 90, 0, 180deg );
	border-color: #002D73;
}
@keyframes rotate {
	0%   {transform: rotate(0deg)}
	100%   {transform: rotate(360deg)}
}
@keyframes prixClipFix {
  0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
  50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
  75%, 100%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
}


/* Media Query for Mobile Devices */
@media (max-width: 480px) {
	.desktop {display: none;}
	.mobile {display: block;}
	.mobileCenter{
		text-align: center
	}
  .ubicacion-popup {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .header-call:after{
    background-color: #000000;
  }
}
  
@media (max-width: 481px) and (max-width: 767px) {
	.desktop {display: none;}
	.mobile {display: block;}
	.mobile-search {display: none;}
	#divBotonFinalizar{width: 100%;left: 0px; position: fixed;bottom: 10px;}
	#divBotonFinalizarMP{width: 100%;left: 0px; position: fixed;bottom: 10px; background:#eee;border-top: #ccc  1px solid;}
	#botonPagar{height:50px}
	
	.container{
		padding-left: 10px !important;
		padding-right: 10px  !important;
	}
	
	.card_precio_lista{
		line-height: 0.7; text-align: left; padding-left: 5px; font-size: 1.3rem !important;
	}


	.card_precio_sin_imp{
		color: #878787;text-align: center; font-size: 0.6rem;
	}
	.precio_cuotas{
		font-weight: 900;
		font-size: 2.3rem;
	}


	.mejor_precio_contado{
		font-size: 6px !important;
		text-align: left; 
	}

	.superContado{min-height: 27px;}
	.sc-label {
		font-size: 0.8rem !important;
	}
	.sc-precio {
		font-size: 1.5rem !important;
	}
	
	.off{min-height: 27px;}
	.off-texto1 {
		font-size: 0.8rem !important;
		color: white;
	}
	.off-texto2 {
		font-size: 1.2rem !important;
		color: white;
	}
	
}

/* Media Query for low resolution  Tablets, Ipads */
@media (min-width: 481px) and (max-width: 767px) {
	.desktop {display: none;}
	.mobile {display: block;}
	.mobile-search {display: none;}
	#divBotonFinalizar{width: 100%;left: 0px; position: fixed;bottom: 10px;}
	#divBotonFinalizarMP{width: 100%;left: 0px; position: fixed;bottom: 10px; background:#eee;border-top: #ccc  1px solid;}
	#botonPagar{height:50px}
}
  
/* Media Query for Tablets Ipads portrait mode */
@media (min-width: 768px) and (max-width: 1024px){
	.desktop {display: block;}
	.mobile {display: none;}
	.mobile-search {display: none;}
}
  
/* Media Query for Laptops and Desktops */
@media (min-width: 1025px) and (max-width: 1280px){
	.desktop {display: block;}
	.mobile {display: none;}
  .mobile-search {display: none;}
}
  
/* Media Query for Large screens */
@media (min-width: 1281px) {
	.desktop {display: block;}
	.mobile {display: none;}
  .mobile-search {display: none;}
}

.btn-product-icon{
	background:#4B8AF1;
	color:white;
}

.product-action-horizontal{
	background:#4B8AF1;
}
.product-action-horizontal .btn-product-icon {
    margin-bottom: 0;
    border: none;
    color:white;
}

.product-name {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
    font-weight: 500;
    white-space: normal;
    overflow: auto; 
    text-overflow: inherit;
    max-height: 300px;
	display: -webkit-box;
    -webkit-line-clamp: 2;           /* Número de líneas a mostrar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Opcional: para mantener la simetría en la grilla */
    min-height: 3em;                 /* Ajusta según tu line-height */
}

.ui-autocomplete {
    top: 107px;
    left: 256px;
    max-height: 200px !important;
    overflow-y: scroll !important;
	overflow-x: hidden;
    width: 505px;
    display: none;
	z-index: 9999;
}


/* tienda */


.tiendas-popup {
  max-width: 70rem;
  padding: 2rem;
}
.tiendas-popup .nav.nav-tabs .nav-item {
  width: calc(50% - .5rem);
  margin: 0;
}
.tiendas-popup .nav.nav-tabs .nav-item:first-child {
  margin-right: 1rem;
}
.tiendas-popup .nav-item .nav-link {
  padding: 1.3rem 0;
  font-size: 1.6rem;
  font-weight: 700;
}
.tiendas-popup .nav-item .nav-link::after {
  border-top-width: 2px;
  -webkit-transform: none;
          transform: none;
}
.tiendas-popup .tab-pane {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.tiendas-popup .tab-pane a:not(.btn):hover {
  text-decoration: underline;
}
.tiendas-popup #sign-in {
  font-size: 1.4rem;
}
.tiendas-popup .form-group {
  margin-bottom: 2.6rem;
}
.tiendas-popup .form-group label {
  display: block;
  margin-bottom: 0.5rem;
}
.tiendas-popup .form-control {
  min-height: 4.4rem;
}
.tiendas-popup .form-checkbox {
  margin-top: 2.2rem;
  margin-bottom: 2.3rem;
}
.tiendas-popup .form-checkbox a {
  font-size: 1.2rem;
  color: #a94442;
}
.tiendas-popup .btn {
  display: block;
  padding-top: 0.79em;
  padding-bottom: 0.79em;
}
.tiendas-popup p {
  margin-bottom: 1.9rem;
}
.tiendas-popup #sign-up p {
  margin-bottom: 2.1rem;
  line-height: 1.84;
}
.tiendas-popup .social-icon {
  margin-right: 0.8rem;
}

#divCerca {
	overflow-y: scroll; height: 350px;
}
#divCerca::-webkit-scrollbar{
	width: 12px;
}
#divCerca::-webkit-scrollbar-track{
	background: #eee; 
}
#divCerca::-webkit-scrollbar-thumb{
	background-color: #ccc;
	border-radius: 20px;
	border: 3px solid #eee;
}

.container{
	max-width: 100%;
	padding-left: 50px; padding-right: 50px;
}

.mobile-menu-container .mobile-menu {
    background: none;
}
.mobile-menu {
    color: #336699;
	font-size: 17px;
}
.toggle-btn::before {
    font-size: 1.7rem;
}
.mobile-menu > li:not(:last-child) {
    border-bottom: 1px solid #e1e1e1;
}


.product:hover{
	border: 2px solid #e1e1e1;
}

.product{
	background: white;
    padding: 5px;
    border: 1px lightgray solid;
	border-radius: 5px;
}

.cucardaIzquierda{
	position: absolute;
    left: 5px;
    top: -5px;
    z-index: 2;
}
.cucardaDerecha{
	position: absolute;
    right: 5px;
    top: -5px;
    z-index: 2;
}
.cucardaIzquierdaAbajo{
	position: absolute;
    left: 5px;
    bottom: -5px;
    z-index: 2;
}
.cucardaDerechaAbajo{
	position: absolute;
    right: 5px;
    bottom: -5px;
    z-index: 2;
}

.shop-default-category {
    border-bottom: none;
    padding-bottom: 0rem;
}

#divCarroLateral {
	overflow-y: auto; overflow-x: hidden;
	padding: 15px
}

.cart-dropdown.cart-offcanvas .dropdown-box {
	padding: 1rem;
}
.cart-dropdown .products{
	max-height: 35rem;
}
#divCarroLateral::-webkit-scrollbar{
	width: 12px;
}
#divCarroLateral::-webkit-scrollbar-track{
	background: #eee; 
}
#divCarroLateral::-webkit-scrollbar-thumb{
	background-color: #ccc;
	border-radius: 20px;
	border: 3px solid #eee;
}
#divCarroLateral .product{
	box-shadow: none
}
#divCarroLateral .product:hover{
	border: none
}

#divBotonAvisoStock .w-icon-check{
	font-size: 27px;
    color: #060667;
}

.shop-table:not(.account-orders-table) tr {
    padding: 0.8rem;
}

.checkout .order-summary-wrapper {
    padding: 1rem;
}

.botonesPago{
	box-shadow: 3px 3px 7px -3px rgba(0,0,0,0.58) !important;
}
.botonesPago:hover{
	box-shadow: 3px 3px 11px -3px rgba(0,0,0,0.58) !important;
}

.botonesUsuario{
	box-shadow: 3px 3px 7px -3px rgba(0,0,0,0.58) !important;
}
.botonesUsuario:hover{
	box-shadow: 3px 3px 11px -3px rgba(0,0,0,0.58) !important;
}

.botonesDirEntrega{
	box-shadow: 3px 3px 7px -3px rgba(0,0,0,0.58) !important;
}
.botonesDirEntrega:hover{
	box-shadow: 3px 3px 11px -3px rgba(0,0,0,0.58) !important;
}

.botonesPlanes:hover{
	box-shadow: 3px 3px 11px -3px rgba(0,0,0,0.58) !important;
	background: white;
}
.botonesPlanes:hover{
	box-shadow: 3px 3px 11px -3px rgba(0,0,0,0.58) !important;
	background: #f5f5f5;
}

.swal2-confirm.swal2-styled{
	display: inline-block;
    height: 35px;
    font-size: 13px !important;
    background: #062452;
}

.swal2-cancel.swal2-styled{
	display: inline-block;
    height: 35px;
    font-size: 13px !important;
}

.product.product-cart .product-name {
    font-size: 1.1rem;
}

@media print {
  .noprint {
    display: none !important;
  }
  .pagebreak { page-break-before: always; } /* page-break-after works, as well */
  .print {display:block !important;}
}

.contenedor {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #3FAE2A;
	border-radius: 50px;
	padding: 3px;
	color: white;
	width: fit-content;
}
.texto {
	flex: 1;
	font-size: 1rem;
	padding-left: 20px;
	font-weight: 200;
	font-weight: normal;
	font-size: 1.3rem;
}
.off{
	font-weight: bold;
}
.precio {
	font-size: 25px;
	font-weight: bold;
	padding-left: 20px;
	padding-right: 20px;
}


.contenedorCard {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #3FAE2A;
	padding: 3px;
	color: white;
	border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.textoCard {
	flex: 1;
	font-size: 0.8rem;
	padding-left: 15px;
	font-weight: 200;
	line-height: 1;
	font-weight: normal;
}
.offCard{
	font-weight: bold;
}
.precioCard {
	font-size: 2.1rem;
	font-weight: bold;
	padding-left: 5px;
	padding-right: 5px;
}




@media only screen and (max-width: 600px) {
	.textoCard {
		flex: 1;
		font-size: 0.6rem;
		padding-left: 3px;
		font-weight: 200;
		line-height: 1;
		font-weight: normal;
	}
	.precioCard {
		font-size: 1.5rem;
		font-weight: bold;
		padding-left: 2px;
		padding-right: 2px;
	}
	.swiper-producto img {
		display: block;
		width: 60%;
	}
}

.card_precio_lista{
	line-height: 0.7; text-align: left; padding-left: 5px; font-size: 17px;
}
.card_precio{
	text-align: center; font-size: 2.1rem; font-weight: 900;color: #002D73; margin-bottom: 0px !important;
}
.card_precio2{
	text-align: left; padding-left: 5px; font-size: 1.6rem; font-weight: 900;color: #002D73;
}
.card_ahorro{
	padding: 3px; background: #0063bc; color: white; border-radius: 50px; width: fit-content; padding-left: 5px; padding-right: 5px;font-weight: 900;
}
.card_precio_sin_imp{
	color: #878787;text-align: center; font-size: 0.6rem;
}
.
.precio_cuotas{
	font-size: 1.8rem; font-weight: 900;
}
.cuotas_sin_interes{
	font-weight: 600;
	line-height: 1.2;
}
.card_precio_sin_imp{
	color: #878787;text-align: center; font-size: 0.8rem;
}
.card_precio2 {
    line-height: 1;
    margin-bottom: 0;
}
.card_precio3 {
    line-height: 1;
    margin-bottom: 3px;
	color:gray;
	text-align: center !important;
	padding-left: 5px; font-size: 1.6rem !important; font-weight: 600;letter-spacing: -0.5px;
}

.card_precio4 {
    line-height: 1;
    margin-bottom: 0;
	color:white;
	font-size: 1.6rem !important; font-weight: 900;letter-spacing: -0.5px;
	background: #1b63ad;
	padding: 5px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 5px;
	text-align: center !important;
}

.cuotas_sin_interes{
	font-size: 6px !important;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
}

.mejor_plan_cuotas{
	font-weight: 900;
	font-size: 2rem !important;
    font-weight: bold;
	padding-left: 30px;
}

.mejorCuota {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #3FAE2A; /* tu verde actual */
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.mc-numero {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.mc-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.mc-texto span {
    font-size: 8px;
    color: #fff;
    letter-spacing: 0.3px;
}

.mc-precio {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}


.superContado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1b63ad;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
	height: 31px;
}

.sc-label {
    font-size: 1rem;      /* igual que "CUOTAS / SIN INTERÉS" */
    font-weight: 100;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sc-precio {
    font-size: 1.7rem;     /* igual que el precio de mejorCuota */
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}


.off {
    display: flex;
    flex-direction: column;
	justify-content: center;   /* nuevo: centra verticalmente el contenido */
    background: gray;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 3px 8px;
	height: 31px;
}

.offSpace {
    display: flex;
    flex-direction: column;
    background: white;
    width: 100%;
    margin-top: 4px;
	height: 31px;
}

.off-fila1 {
    display: flex;
    align-items: center;
    justify-content: center;   /* antes: space-between */
    gap: 8px;                  /* nuevo, igual que .superContado */
    width: 100%;
}
.off-texto1 {
    font-size: 1.1rem;      /* igual que .sc-label */
    font-weight: 100;       /* igual que .sc-label */
    color: white;
    letter-spacing: 0.5px;  /* igual que .sc-label */
    white-space: nowrap;
    line-height: 1;
}
.off-precio {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    line-height: 1;
}
.off-texto2 {
    font-size: 0.9rem;
    color: white;
    font-weight: 300;
    line-height: 1;
    text-align: left;
}

.precio_ahorro{
	font-size: 1.1rem;
    background: #008ED2;
    padding: 3px;
    border-radius: 5px;
    margin-left: 10px;
    padding-left: 5px;
    padding-right: 5px;
	display: inline-flex;
    align-items: center;
    vertical-align: middle;
	color: white;
}
.precioRegular{
	font-size:10px; font-weight: 500; color:black;
}
.precioRegularValor{
	font-size: 1.3rem;
}


/* Hover estilo Frávega en categorías */
.category-wrap {
    border-radius: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    padding: 5px;
}

.category-wrap:hover {
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}
.category a {
    color: #333;
}
.shadow-swiper {
    margin: -20px;
    padding: 7px;
}


.shop-default-category.category-ellipse-section {
    
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
.swiper-container {
    overflow: hidden;
    width: 100%;
}
/* Da el mismo aire que tiene el último slide, pero al primero, para que el hover no se corte */
.shop-default-category.category-ellipse-section .swiper-slide:first-child {
    margin-left: 20px;
}
.category-ellipse-section .swiper-container:not(.swiper-container-initialized) {
    min-height: 100px;
}

.category-ellipse-section .swiper-container:not(.swiper-container-initialized) .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;          /* una sola fila, no wrap */
    overflow-x: auto;           /* scroll horizontal en vez de romper línea */
    -webkit-overflow-scrolling: touch;
}

.category-ellipse-section .swiper-container:not(.swiper-container-initialized) .swiper-slide {
    flex: 0 0 auto;
    width: 140px;                /* ajustá este valor al ancho real que usan tus íconos */
}

.category-ellipse-section .swiper-container:not(.swiper-container-initialized) .swiper-button-prev,
.category-ellipse-section .swiper-container:not(.swiper-container-initialized) .swiper-button-next {
    display: none;               /* ocultas hasta que Swiper las controle bien */
}

@media (max-width: 575px) {
    .category-content .category-name {
        font-size: 0.5rem !important;
    }
}

.shop-default-category.category-ellipse-section .swiper-button-prev {
    left: 10px;
}
.shop-default-category.category-ellipse-section .swiper-button-next {
    right: 10px;
}

.headerCategorias{background: #062452; color:white}

.homeDestacados{
margin-bottom: 0.5rem; background: #002D73; padding: 7px; border: #3d86c5 1px solid; border-radius: 5px; padding-right: 3rem; color: white;    font-size: 2rem; width: 100%;
}

.footer-newsletter{
	background: #0C326E;
}

.botonNewsletter{
	background: #4B8AF1;
    border: #4B8AF1;
} 

@media (max-width: 767px) {
    .category-banner-wrapper > div[class*="col-"] {
        margin-bottom: 10px;
    }
}

.header-azul-fijo.fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 1051; }
.headerCategorias { background: #fff; color: inherit; }

@media (max-width: 767px) {
	/* menos alto del bloque */
	.footer-newsletter.pt-6.pb-6 { padding-top: 1.2rem !important; padding-bottom: 1.2rem !important; }

	/* ícono + título + texto en una sola fila */
	.footer-newsletter .icon-box-side { display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: left; }
	.footer-newsletter .icon-box-icon { margin: 0 1rem 0 0; }
	.footer-newsletter .icon-box-icon i { font-size: 3.2rem; }
	.footer-newsletter .icon-box-title { font-size: 1.4rem; margin-bottom: .1rem; }
	.footer-newsletter .icon-box-content p { font-size: 1.15rem; line-height: 1.3; margin: 0; }

	/* input + botón Confirmar en una sola fila */
	.footer-newsletter .mt-4 { margin-top: 1rem !important; }
	#lost-up-newsletter { display: flex !important; flex-wrap: nowrap; align-items: center; }
	#lost-up-newsletter .form-control { flex: 1 1 auto; min-width: 0; height: 4rem; margin-right: .6rem !important; }
	#lost-up-newsletter .btn { flex: 0 0 auto; white-space: nowrap; padding: .9rem 1.2rem; font-size: 1.2rem; }
	#lost-up-newsletter .btn i { margin-left: .5rem; }
}

#lost-up-newsletter .btn {
	flex: 0 0 auto; white-space: nowrap; font-size: 1.2rem;
	height: 4rem; padding: 0 1.2rem;           /* mismo alto que el input */
	margin: 0 !important; position: static; top: auto;
	align-self: center;
	display: inline-flex; align-items: center; justify-content: center;
}
.toolbox .left-sidebar-toggle {
    margin: 0px;
}
.ficha-tecnica { width: 50%; }
@media (max-width: 991px) {
	.ficha-tecnica { width: 100%; }
}










/* =========================================================
   COHERENCIA VISUAL DEL SITIO (home, listados, footer)
   Cambios sutiles, solo CSS. Misma "familia" que checkout-mejoras.css:
   radios de 10-12px, sombras suaves, botones navy con hover.
   Pegar al final de styleCustom.css (después del CSS de checkout).
   ========================================================= */

:root {
  --rs-navy: #002D73;
  --rs-navy-hover: #0b3f94;
  --rs-accent: #4B8AF1;
  --rs-green: #3FAE2A;
  --rs-text: #1f2937;
  --rs-muted: #6b7280;
  --rs-border: #e3e8f1;
  --rs-radius: 12px;
  --rs-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.06);
  --rs-shadow-hover: 0 8px 22px rgba(16,24,40,.12);
}

/* ---------- Header: buscador ---------- */
.header-search .form-control {
  border-radius: 10px 0 0 10px !important;
}
.header-search .btn-search {
  border-radius: 0 10px 10px 0 !important;
  transition: background .15s;
}
.header-search .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

/* Iconos de cuenta / carrito: hover discreto */
.header-right .link,
.header-right .cart-toggle {
  transition: opacity .15s;
}
.header-right .link:hover,
.header-right .cart-toggle:hover { opacity: .85; }

/* ---------- Menú de categorías ---------- */
.headerCategorias .menu > li > a {
  font-weight: 600;
  letter-spacing: .1px;
  transition: color .15s;
}
.headerCategorias .menu > li:hover > a { color: var(--rs-navy); }
/* Submenú desplegable: mismas esquinas y sombra que el resto */
.headerCategorias .megamenu {
  border-radius: 0 0 var(--rs-radius) var(--rs-radius);
  box-shadow: 0 14px 30px rgba(16,24,40,.14);
  border: 1px solid var(--rs-border);
  border-top: 0;
}
.headerCategorias .megamenu li a { transition: color .12s; }
.headerCategorias .megamenu li a:hover { color: var(--rs-accent); }

/* ---------- Banners ---------- */
.headerBanners img { border-radius: 0; }          /* el banner full-width se mantiene */
.swiper-container .swiper-pagination-bullet-active { background: var(--rs-navy); }

/* ---------- Tira de beneficios (tarjetas / envío / retiro / consultas) ---------- */
.icon-box-wrapper .icon-box-title,
.icon-box-wrapper .icon-box-content h4 { font-weight: 700; color: var(--rs-text); }

/* ---------- Títulos de sección ("Basado en tus búsquedas", "¡Ofertas aniversario!") ---------- */
.title,
h2.title,
.title-link-wrapper .title {
  font-weight: 800;
  color: var(--rs-navy);
  letter-spacing: -.2px;
}

/* ---------- Tarjetas de producto ----------
   OJO: no vi el HTML de las tarjetas, uso las clases estándar del tema (Wolmart).
   Si alguna regla no pega, pasame el HTML de una tarjeta y la ajusto. */
.product:not(.product-single):not(.product-popup) {
  border-radius: var(--rs-radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.swiper-slide > .product,
.product-wrap > .product,
.product-wrap .product-wrap-inner,
.product.text-center {
  border-radius: var(--rs-radius);
}
.product:not(.product-single):not(.product-popup):hover {
  transform: translateY(-3px);
  box-shadow: var(--rs-shadow-hover);
}
.product .product-name a,
.product .product-name {
  color: var(--rs-text);
  font-weight: 500;
  line-height: 1.35;
}
.product .product-name a:hover { color: var(--rs-accent); }
.product .product-price,
.product .new-price,
.product ins { font-weight: 800; color: var(--rs-text); }

/* Botón COMPRAR: mismo estilo que "Confirmar" / "Finalizar compra" */
.product .botonComprar,
.product .btn-cart,
.product .btn-primary {
  border-radius: 10px !important;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.product .botonComprar:hover,
.product .btn-cart:hover,
.product .btn-primary:hover {
  background: var(--rs-navy-hover) !important;
  border-color: var(--rs-navy-hover) !important;
  box-shadow: 0 6px 16px rgba(0,45,115,.25);
}
.product .botonComprar:active,
.product .btn-cart:active { transform: translateY(1px); }

/* Flechas de los carruseles */
.swiper-button-next,
.swiper-button-prev { transition: opacity .15s, transform .15s; }
.swiper-button-next:hover,
.swiper-button-prev:hover { transform: scale(1.06); }

/* ---------- Newsletter ---------- */
.footer-newsletter .form-control {
  border-radius: 10px !important;
  border: 0;
  min-height: 46px;
}
.footer-newsletter .botonNewsletter {
  border-radius: 10px !important;
  font-weight: 700;
  letter-spacing: .3px;
  transition: filter .15s, box-shadow .15s;
}
.footer-newsletter .botonNewsletter:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* ---------- Footer ---------- */
.pg-footer .menu_footer h4 {
  font-weight: 800;
  color: var(--rs-navy);
}
.pg-footer .menu_footer a {
  color: var(--rs-muted);
  transition: color .15s;
}
.pg-footer .menu_footer a:hover { color: var(--rs-accent); }
.pg-footer [data-pgf-bar] { border-top: 1px solid var(--rs-border); }

/* ---------- Popups (login, sucursales, newsletter) ---------- */
.mfp-content .login-popup,
.mfp-content .tiendas-popup,
.mfp-content .newsletter-popup,
.mfp-content .popup {
  border-radius: 14px;
}
.login-popup .form-control {
  border-radius: 10px !important;
  border: 1.5px solid var(--rs-border) !important;
  min-height: 44px;
}
.login-popup .form-control:focus {
  border-color: var(--rs-accent) !important;
  box-shadow: 0 0 0 4px rgba(75,138,241,.18) !important;
}
.login-popup .btn-primary {
  border-radius: 10px !important;
  font-weight: 700;
}

/* ---------- Botón flotante de WhatsApp y "volver arriba" ---------- */
#WAagente { transition: transform .15s; }
#WAagente:hover { transform: scale(1.08); }
.scroll-top { transition: transform .15s; }
.scroll-top:hover { transform: translateY(-2px); }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .product:not(.product-single):not(.product-popup):hover { transform: none; box-shadow: none; } /* sin hover en touch */
  #WAagente { width: 56px !important; bottom: 14px !important; right: 12px !important; }
  #WAagente img { width: 56px !important; }
}

/* ---------- Buscador: desplegable de sugerencias ---------- */
.ui-autocomplete {
  z-index: 99999 !important;              /* por encima del menú y los banners */
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 16px 34px rgba(16,24,40,.20) !important;
  scrollbar-width: thin;
  scrollbar-color: #c9d2e3 transparent;
}
.ui-autocomplete::-webkit-scrollbar { width: 8px; }
.ui-autocomplete::-webkit-scrollbar-thumb { background: #c9d2e3; border-radius: 8px; }
.ui-autocomplete::-webkit-scrollbar-track { background: transparent; }

/* Cada sugerencia: imagen a la izquierda, texto centrado verticalmente */
.ui-autocomplete .ui-menu-item {
  margin: 0;
  padding: 0;
  border-radius: 10px;
}
.ui-autocomplete .ui-menu-item > div,
.ui-autocomplete .ui-menu-item-wrapper,
.ui-autocomplete .ui-menu-item a {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 8px 12px !important;
  border: 0 !important;                   /* saca el recuadro azul de jQuery UI */
  margin: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
  cursor: pointer;
}
.ui-autocomplete .ui-menu-item img {
  flex: 0 0 56px;
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef0f5 !important;
  border-radius: 8px;
  padding: 3px;
}

/* Hover / teclado: fondo celeste suave, sin bordes ni recuadros */
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-state-focus,
.ui-autocomplete .ui-menu-item:hover > div,
.ui-autocomplete .ui-menu-item:hover > .ui-menu-item-wrapper,
.ui-autocomplete .ui-menu-item:hover > a,
.ui-menu-item .ui-state-active {
  background: #eef4ff !important;
  color: #002D73 !important;
  border: 0 !important;
  margin: 0 !important;
}

/* Separador sutil entre sugerencias */
.ui-autocomplete .ui-menu-item + .ui-menu-item { margin-top: 2px; }

/* Mobile: imágenes un poco más chicas */
@media (max-width: 767px) {
  .ui-autocomplete { max-height: 60vh; }
  .ui-autocomplete .ui-menu-item img {
    flex-basis: 44px;
    width: 44px !important;
    height: 44px !important;
  }
}
/* ---------- Autocompletado: imagen + texto en una línea (versión robusta) ---------- */

/* La imagen NUNCA puede ser grande, esté donde esté */
.ui-autocomplete img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  flex: 0 0 52px !important;
  object-fit: contain;
  padding: 3px;
  background: #fff;
  border: 1px solid #eef0f5 !important;
  border-radius: 8px;
}

/* Cada fila y sus contenedores internos, en horizontal */
.ui-autocomplete li,
.ui-autocomplete li > div,
.ui-autocomplete li > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937 !important;
  font-size: 1.35rem;
  font-weight: 500;
}
.ui-autocomplete li { padding: 6px 10px !important; border-radius: 10px; cursor: pointer; }
.ui-autocomplete li > div,
.ui-autocomplete li > a { padding: 0 !important; }

/* Hover / teclado en toda la fila */
.ui-autocomplete li:hover,
.ui-autocomplete li:has(.ui-state-active),
.ui-autocomplete li:has(.ui-state-focus) {
  background: #eef4ff !important;
}
.ui-autocomplete li:hover,
.ui-autocomplete li:has(.ui-state-active) { color: #002D73 !important; }

/* ---------- Megamenú: compacto y con jerarquía ---------- */

/* El panel se ajusta al contenido en vez de ocupar ~1200px */
.headerCategorias .megamenu {
  width: max-content !important;
  min-width: 320px;
  max-width: min(1100px, calc(100vw - 40px));
  padding: 22px 28px !important;
  gap: 8px 44px;
}
.headerCategorias .megamenu > li {
  width: auto !important;
  flex: 0 0 auto;
  min-width: 190px;
  padding: 0 !important;
}

/* Títulos de columna: más peso y una línea verde de acento */
.headerCategorias .megamenu .menu-title {
  margin: 0 0 12px !important;
}
.headerCategorias .megamenu .menu-title a {
  display: inline-block;
  font-size: 1.2rem !important;
  font-weight: 800;
  letter-spacing: .6px;
  color: #002D73 !important;
  padding-bottom: 5px;
  border-bottom: 2px solid #3FAE2A;
}

/* Ítems: más oscuros, un poco más de cuerpo, hover con leve desplazamiento */
.headerCategorias .megamenu li li a {
  display: block;
  padding: 5px 0;
  font-size: 1.25rem !important;
  font-weight: 500;
  color: #374151 !important;
  transition: color .12s, transform .12s;
}
.headerCategorias .megamenu li li a:hover {
  color: #4B8AF1 !important;
  transform: translateX(3px);
}

/* Listas largas (10+ ítems): se parten en 2 columnas en vez de alargarse */
.headerCategorias .megamenu li > ul:has(> li:nth-child(10)) {
  column-count: 2;
  column-gap: 36px;
}
.headerCategorias .megamenu li > ul:has(> li:nth-child(10)) > li {
  break-inside: avoid;
}
.headerCategorias .megamenu li > ul:has(> li:nth-child(18)) {
  column-count: 3;
}

/* ---------- Megamenú: compacto, anclado al contenedor ---------- */

/* El panel se ancla al contenedor del menú, no al <li> de cada item */
.headerCategorias .inner-wrap,
.headerCategorias .container { position: relative; }
.headerCategorias .menu > li.has-submenu { position: static !important; }

.headerCategorias .megamenu {
  left: 0 !important;            /* pisa el style="left:-1.5rem" inline */
  right: auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100% !important;    /* nunca más ancho que el contenedor */
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 8px 40px;
  padding: 22px 28px !important;
  box-sizing: border-box;
}

/* Columnas: ancho = contenido, sin reparto equitativo */
.headerCategorias .megamenu > li {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
}

/* Títulos y links */
.headerCategorias .megamenu .menu-title { margin: 0 0 12px !important; }
.headerCategorias .megamenu .menu-title a {
  display: inline-block;
  font-size: 1.2rem !important;
  font-weight: 800;
  letter-spacing: .6px;
  color: #002D73 !important;
  padding-bottom: 5px;
  border-bottom: 2px solid #3FAE2A;
}
.headerCategorias .megamenu li li a {
  display: block;
  padding: 5px 0;
  font-size: 1.25rem !important;
  font-weight: 500;
  color: #374151 !important;
  transition: color .12s, transform .12s;
}
.headerCategorias .megamenu li li a:hover {
  color: #4B8AF1 !important;
  transform: translateX(3px);
}

/* Listas largas: se parten en columnas */
.headerCategorias .megamenu li > ul:has(> li:nth-child(10)) { column-count: 2; column-gap: 32px; }
.headerCategorias .megamenu li > ul:has(> li:nth-child(18)) { column-count: 3; }
.headerCategorias .megamenu li > ul > li { break-inside: avoid; }