main {display:flex; flex-direction:row; justify-content:space-between; margin:20px 0 20px; padding:0 5%;}
.content-h {display:inline-block; margin:100px 0 20px; padding:0 5%; font-family:'Poppins', sans-serif; font-weight:300;}
.sidebar {
    width:16%;
    background-color:#fff; 
    padding:0 20px 0 0; 
    /*border:1px solid #f4f4f4; */
    font-family:'Poppins', sans-serif; 
    }
.primaryBtn {
    display: none;
}
.full-content {width:100%; padding:0 0 0 20px;}
.content {display:none; width:84%; padding:0 0 0 40px;} /* para cuando metamos ads, el width baja de 80% a 60% .content {width:60%; padding:0 20px;} */
.ads {width:21%; background-color:#f4f4f4; padding:20px;}
.product-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:20px;} /* para cuando metamos ads, el repeat baja de 4 a 3 columnas .product-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;} */
.product-link {
    text-decoration: none;
    color:#000;
}
.product {
    background-color: #ffffff; /* Fondo blanco */
    padding: 10px;
    text-align: center;
    border: 1px solid #ededed; /* Bordes suaves */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
}

.product:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Leve sombreado */
}

.product_image {
    width: 100%;
    height: 300px; /* Ajusta la altura según sea necesario */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2px;
}

.product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubrirá todo el contenedor */
}

.product_price_fav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 28px;
    margin-bottom: 5px;
}

.product_price {
    font-size: 14px;
    font-weight: 500;    
}

.product_price_strike {
    font-size: 14px;
    font-weight: 300; 
    color: var(--gray-6);
    text-decoration: line-through;
}

.modified_price {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 500;        
    color: var(--primary);
}

.product_fav img{
    width: 20px;
    cursor: pointer;
}

.product_label {
    text-align: left;
    margin-bottom: 10px;
}

.product_label button {
    font-size: 10px;
    font-weight: 600; 
    background-color: #fff;
    border-radius: 4px;
    padding: 1px 15px;
}

.label_vendido {
    border: 1px solid var(--label-vendido);
    background-color: var(--label-vendido) !important;
    color: var(--white);    
}

.label_nuevo {
    border: 1px solid var(--label-nuevo);
    color: var(--label-nuevo);    
}

.label_alquiler {
    border: 1px solid var(--label-alquiler);
    color: var(--label-alquiler);    
}

.label_usado {
    border: 1px solid var(--label-usado);
    color: var(--label-usado);    
}

.label_reservado {
    border: 1px solid var(--label-reservado);
    background-color: var(--label-reservado) !important;
    color: var(--white);    
}

.product_title {
    font-size: 14px;
    font-weight: 600; 
    text-align: left;
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    display: block;
    margin-bottom: 8px;
}

.product_option_edit {
    display: flex;
    align-items: center;
    justify-content: end;    
    border:0px solid red;
    cursor: pointer;
}

.product_option_edit img {
    width: 20px;
    height: 20px;
}

.product_option_edit span {
    font-size:12px;
    font-weight: 400;
    margin-left: 5px;
}

.product_size {
    font-size: 12px;
    font-weight: 600; 
    text-align: left;    
    color: #666;
    margin-bottom: 2px;
}

.product_size span {
    font-weight: 400; 
}

.product_send {
    display: flex;
    width: 100%;
    margin-bottom: 2px; 
}

.product_send img{
    height: 14px;
}

.product_send .send_title {
    margin-top: -2px; 
}

.product_send .send_title span{
    width: 20px;
    font-size: 12px;
    font-weight: 600; 
    text-align: left;    
    color: #666;
    margin-left: 5px;
}

.product_cp {
    font-size: 12px;
    font-weight: 400; 
    text-align: left;    
    color: #666;
}
/*********************************** filtros ***********************************/

.filters-title {font-family:'Poppins', sans-serif; font-weight:400; font-size:16px; color:#000; margin-bottom:10px; /*text-transform:uppercase;*/}
.filters-back a {display:inline-block; color:#333;}
.filters-found {display:inline-block; width:calc(100% - 21px);}
/*
.filters-checked {display:inline-block; width:calc(100% - 21px);}
    .filters-checked span {margin-left: 5px; font-size:12px; color:var(--black);}
.filters-remove {display:inline-block; width:16px; text-align:right;}
.filters-remove img {display:none; width:100%; cursor:pointer;}
*/

.filters-info-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.filters-checked {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.filters-checked span {
    margin-top: 3px;
    margin-left: 5px;
    font-size: 12px;
    font-weight: 200;
    color: var(--black);
}

.filters-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
}

.filters-remove img {
    display: none;
    width: 100%;
    cursor: pointer;
}


.filters-check {
    display: flex;
    align-items: center; /* Centra verticalmente */
    gap: 8px; /* Espacio entre checkbox y label */
    width: 100%; /* Ocupa todo el ancho disponible */
}

.filters-check label {
    display: flex;
    justify-content: space-between; /* Alinea el texto a la izquierda y el contador a la derecha */
    align-items: center; /* Alinea verticalmente */
    width: 100%;
}

/* Contenedor del enlace */
.filter-text {
    font-size: 14px;
    font-weight: 300;
    flex-grow: 1; /* Hace que ocupe todo el espacio disponible */
}

/* Estilo del contador */
.filter-count {
    font-size: 0.7em;
    color: #888;
    min-width: 30px; /* Asegura que todos los contadores tengan el mismo ancho */
    text-align: right; /* Alinea a la derecha */
}

/* Estilo del checkbox */
input[type="checkbox"] {
    appearance: none; /* Quita el estilo por defecto */
    width: 15px;
    height: 13px;
    margin-top: -2px;
    background-color: #fff;
    border: 1px solid #777;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 10px;
    font-weight: 400;
}

input[type="checkbox"]:hover {
    border-color: var(--primary);
}

.orden-filtros {
    font-weight: 300;
    font-size: 14px;
}

/* Estilos básicos del radio button */
.orden-filtros input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--black); /* Borde exterior */
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

/* Hover: Cambia el borde al color var(--primary) */
.orden-filtros input[type="radio"]:hover {
    border-color: var(--primary);
}

/* Cuando está seleccionado: se usa box-shadow para crear el padding visual */
.orden-filtros input[type="radio"]:checked {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px white inset; /* Simula el padding entre borde y centro */
    background-color: var(--primary);
}

/* Alinear el radio button y el texto */
.orden-filtros label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Estilo para los radio buttons deshabilitados */
.filtros-disabled {
    color: #bbb;
    pointer-events: none; /* Evita la interacción */
}

/* Aplica los estilos al radio button cuando tiene la clase filtros-disabled */
.filtros-disabled[type="radio"] {
    border-color: #bbb !important;
    background-color: transparent !important;
    cursor: default;
}

/* Evita que el hover cambie el color del radio button deshabilitado */
.filtros-disabled[type="radio"]:hover {
    border-color: #bbb !important;
}

.ubicacion-aviso {
    background-color: #f8d7da; /* Rosa palo clarito */
    color: #000; /* Color de texto */
    border-radius: 4px;
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 300;
    margin-top: 10px;
    text-align: center;
    cursor: default !important;
}

.ubicacion-aviso a{
    color: #000;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

select {
    appearance: none; /* Elimina el estilo predeterminado del navegador */
    -moz-appearance: none; /* Para Firefox */
    -webkit-appearance: none; /* Para Safari y Chrome */
    width: 100%; /* Ancho del select */
    padding: 10px; /* Espaciado interno */
    border: 1px solid #ccc; /* Borde personalizado */
    border-radius: 5px; /* Bordes redondeados */
    font-family: Arial, sans-serif; /* Fuente personalizada */
    font-size: 16px; /* Tamaño de fuente */
    background-color: #fff; /* Fondo */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6H0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center; /* Posiciona la flecha */
    background-size: 10px 6px; /* Tamaño de la flecha */ 
    color: #888; /* Color del texto */
    cursor: pointer; /* Cambia el cursor a una mano */
}

/* Estilo para el hover */
select:hover {
    border-color: #ccc; /* Cambia el color del borde al pasar el mouse */
}

/* Estilo para el foco */
select:focus {
    outline: none; /* Elimina el contorno azul predeterminado */
    border-color: #ccc; /* Borde de foco */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Sombra */
}

/* Estilo para las opciones del desplegable */
select option {
    padding: 10px; /* Espaciado interno */
    background-color: #fff; /* Fondo */
    color: #333; /* Color del texto */
}


/* Estilo para el contenedor del slider */
.noUi-target {
    background: #ddd; /* Fondo del slider */
    border-radius: 3px; /* Esquinas redondeadas */
    width: calc(100% - 7px) !important;
    height: 3px;       /* Altura del slider */
    margin-left:2px;
    margin-top:5px;
    border: 0px solid pink; /* Borde del slider */
}

/* Estilo para la barra de conexión entre los manejadores */
.noUi-connect {
    background: var(--primary); /* Cambia el color de la barra conectada */
    height: 3px;        /* Altura de la barra conectada */
    border-radius: 3px;  /* Esquinas redondeadas */
}

/* Estilo para los manejadores (handles) */
.noUi-handle {
    width: 12px !important;
    height: 12px !important;
    margin-top:2px !important;
    margin-right:12px !important;
    /*background: transparent;*/
    background: var(--primary);
    border: none;
    box-shadow: none;
    cursor: grabb;
}

/* Estilo para el manejador al estar activo (dragging) */
.noUi-handle:active {
    cursor: grabbing;
}

.noUi-handle::before,
.noUi-handle::after {
    content: none; /* Elimina cualquier contenido de pseudo-elementos */
    display: none; /* Oculta completamente los pseudo-elementos */
}

/* Tooltips que muestran los valores */
.noUi-tooltip {
    background: transparent; /* Fondo del tooltip */
    color: #000; /* Color del texto */
    border-radius: 4px; /* Esquinas redondeadas */
    font-size: 12px; /* Tamaño del texto */
    padding: 5px; /* Espaciado interno */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra */
    transform: translateY(30px); /* Mover hacia abajo */
    position: absolute !important; /* Asegurarse de que se pueda reposicionar */
    /*top: auto;*/ /* Ignorar la posición superior predeterminada */
    bottom: -35px !important; /* Colocar hacia abajo */
}

/* Tooltip al estar activo */
.noUi-active .noUi-tooltip {
    font-weight: bold; /* Negrita para el tooltip activo */
}

/* Estilo al hover sobre el slider */
.noUi-target:hover {
    border-color: yellow; /* Cambia el color del borde al pasar el ratón */
}

/*********************************** filtros ***********************************/

/********************************** paginación *********************************/

.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 0 0;
}
.pagination a {
    margin: 0 5px;
    /*padding: 4px 6px;*/
    text-decoration: none;
    border: var(--white);
    border-radius: 4px;
    color: var(--black);
    font-size: 14px;
    font-weight: 300;
}
.pagination a.active {
    background-color: var(--white);
    color: var(--primary);
    border-color:var(--white);
    font-weight: 500;
}
.pagination a:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);    
}

/********************************** paginación *********************************/

/********************************* login popup *********************************/

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Contenido del popup */
.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    position: relative;
    text-align: center;
}

/* Botón de cerrar */
.popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

/* Estilo del formulario */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#loginForm input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#loginForm button {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#loginForm button:hover {
    background-color: #0056b3;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--w-400);
}

.login-box {
    width: var(--w-100pct);
    max-width: var(--w-100pct);
    background: var(--white);
    padding: var(--p-20);
    /*border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
    text-align: left;
}

.login-logo {
    display:block;
    text-align: center;
    margin-bottom: var(--m-10);
}

.login-logo a {color:#000; font-weight:600; font-size:20px; text-decoration:none;}

.login-logo a img {
    width: 50px;
    height: auto;
}


.welcome-text {
    font-size: var(--fs-20);
    font-weight: var(--fw-500);
    text-align: left;
    margin-bottom: var(--m-10);
}

.sub-text, .register-text {
    color: var(--gray-2);
    text-align: left;
    font-size: var(--fs-14);
    margin-bottom: var(--m-20);
}

/*
.register-text {
    margin-bottom: var(--m-30);
}*/

.sub-text a, .register-text a {
    color: var(--blue-asnadi);
    text-decoration: none;
}

.sub-text a:hover, .register-text a:hover {
    text-decoration: underline;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.label-container {
    display: flex;
    justify-content: space-between; /* Espacio entre las etiquetas */
    align-items: center; /* Alinea verticalmente las etiquetas */
}

.label-left {
    font-size: var(--fs-12);
    color: var(--gray-3);
    margin-right: auto; /* Asegura que la etiqueta de la izquierda se alinee a la izquierda */
}

.error-label-right {
    margin-left: auto; /* Asegura que la etiqueta de la derecha se alinee a la derecha */
    color: var(--primary);
    font-size: var(--fs-12);
}

input[type="text"], input[type="password"] {
    width: var(--w-100pct);
    padding: var(--p-7);
    font-size: var(--fs-16);
    font-weight: var(--fw-300);
    color: var(--gray-3);
    border: 1px solid var(--gray-4);
    border-radius: var(--br-4);
    transition: border 0.3s;
}

input[type="text"]:hover, input[type="password"]:hover {
    border: 1px solid var(--primary);
}

/* Modificación para el focus */
input[type="text"]:focus, input[type="password"]:focus {
    border: 1px solid var(--primary);
    outline: none;
}

#nombre, #email, #reg-email {
   margin-bottom: var(--m-20);
}

#password {
   margin-bottom: var(--m-30);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password, .toggle-reg-password {
    position: absolute;
    right: var(--m-10);
    top: var(--m-7);
    cursor: pointer;
    font-size: var(--fs-18); 
    color: var(--blue-asnadi); 
}

.toggle-password img, .toggle-reg-password img {
    width:16px;
    height:16px;
    margin-top:4px;
}

.login-button {
    width: 100%;
    padding: var(--p-15);
    background-color: var(--blue-asnadi);
    color: var(--white);
    border: none;
    border-radius: var(--br-30);
    font-size: var(--fs-16);
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: var(--blue-asnadi-hover);
}

.forgot-password {
    font-size: var(--fs-14);
    text-align: left;
    margin-top: var(--m-5);
    margin-bottom: var(--m-20);
}

.forgot-password a {
    color: var(--gray-2);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Estilos para el texto debajo del input de contraseña */
.password-hint {
    font-size: var(--fs-12);
    color: var(--gray-2); 
    margin-top: var(--m-3);
}

/* Estilos para el texto debajo del botón */
.terms-text {
    font-size: var(--fs-12);
    color: var(--gray-2);
    text-align: left;
    margin-top: var(--m-5);
}

/* Estilos para los enlaces en el texto de términos y condiciones */
.terms-text a {
    color: var(--gray-2);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.login-err {
    display:visible;
    min-height: var(--mh-15);   
    font-size: var(--fs-12);
    color: var(--red);
    text-align: left;
    margin-top: var(--m-3);    
    margin-bottom: var(--m-15);    
}

/* Contenedor padre para alinear el error y el checkbox */
.login-footer {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos */
    justify-content: space-between; /* Espacia los elementos a izquierda y derecha */
    /*margin-top: var(--m-15);*/ /* Separación superior */
    margin-bottom: var(--m-30);
}

/* Estilo para el contenedor del checkbox "Recordar usuario" */
.remember-me-container {
    display: flex;
    align-items: center; /* Alinea verticalmente el checkbox y el texto */
    text-align: left;
}

.remember-me-container input[type="checkbox"] {
    margin-right: var(--m-10); /* Separación entre el checkbox y el texto */
}

.remember-me-container label {
    font-size: var(--fs-14);
    color: var(--gray-3);
    cursor: pointer;
}

/* Estilo para el mensaje de error */
.error {
    font-size: var(--fs-12);
    color: var(--red);
}

#doRegister {
   margin-top: var(--m-30);
}

.register-message {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.success-message {
    color: green;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
}


/********************************* login popup *********************************/





.hero-banner {
  position: relative;
  height: 500px;
  width: 100%;
  background-image: url('https://www.gimnasiatotal.com/assets/img/header-home.jpg'); 
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

/*
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: green;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  z-index: 2;
}
*/

.hero-content {
  z-index: 3;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 0;
}

.hero-content p {
  font-size: 1.2rem;
}


.publish-btn {
    display: inline-flex; /* Se ajusta al contenido */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    gap: 10px; /* Espacio entre la imagen y el texto */
    background-color: var(--primary); /* Color del botón */
    color: white; /* Color del texto */
    border-radius: 25px; /* Bordes redondeados */
    padding: 5px 10px; /* Espaciado interno */
    cursor: pointer; /* Cursor de botón */
    transition: background 0.3s ease; /* Efecto suave en hover */
    width: auto; /* Ajuste automático al contenido */
    text-decoration: none !important;
}

.publish-btn:hover {
    background-color: var(--primary-hover); /* Cambio de color en hover */
}

.publish-btn img {
    width: 20px;
    height: 20px;
}

.publish-txt {
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
}




@media (max-width: 1440px) {
    .sidebar {width:20%;}
    .content {width:80%; padding:0 0 0 40px;}
    .ads {width:20%; background-color:#f4f4f4; padding:20px;}
    .product-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;} 
}

@media (max-width: 768px) {
    main {
        flex-direction:column;
        padding:0 20px;
        margin-bottom: 100px;
    }
    
    .sidebar {
        display: none;
        width: 100%;
        padding: 0px;
        margin-bottom: 50px;
    }
    
    .sidebar.visible {
        display: block; /* Se muestra cuando tiene la clase 'visible' */
    }
    
    .content {width:100%; padding: 0px;}
    .product-grid {grid-template-columns:repeat(2, 1fr);}
    
    .popup {
        padding: 20px;
    }
}

@media (max-width: 620px) {
    .product-grid {grid-template-columns:1fr;}
}