@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* Reset */
* {
	margin: 0;
	padding: 0;

	border: none;
	outline: none;
	color: inherit;
	list-style: none;
	font-family: "Poppins";
    box-sizing: border-box; /* Evita que el padding afecte el tamaño */
    -webkit-font-smoothing: antialiased; /* Mejora la tipografía en Safari */
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}
/* Body */
body {
    min-height: 100vh;
    background-color: #f8f8f8;
    overflow-x: hidden; /* Evita que la página se desplace horizontalmente */
    width: 100%; /* Asegura que el contenido no sobrepase el viewport */
}

nav {
    display: flex;
}

/* Header */
/* HEADER CON FLEX */
header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Layout */
.container {
    display: flex;
    align-items: flex-start;
    gap: 2em;
    padding: 2em;
}

/* Hacer el layout responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        align-items: center;
        padding: 1em;
    }
}

/* Products */
.products {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2em;
}

/* Ajustar el grid en pantallas pequeñas */
@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
        gap: 1em;
    }
}

/* Estilos generales para los filtros */
.filter-group {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Hacer los filtros más compactos en móviles */
@media (max-width: 768px) {
    .filter-group {
        width: 100%;
        text-align: center;
    }
}

.filter-group h3 {
    font-size: 1.1em;
    margin-bottom: 0.5em;
    color: #333;
    cursor: pointer;
}

/* Personalización de Radio Buttons */
.custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    font-size: 0.95em;
}

.custom-radio input {
    display: none;
}

.radio-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #a99260;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.custom-radio input:checked + .radio-btn {
    background-color: #a99260;
    border: 2px solid #a99260;
    box-shadow: 0 0 6px rgba(169, 146, 96, 0.6);
}

/* Personalización de Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    font-size: 0.95em;
}

.custom-checkbox input {
    display: none;
}

.checkbox-btn {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #a99260;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    position: relative;
}

.checkbox-btn::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #a99260;
    position: absolute;
    opacity: 0;
    transition: 0.3s;
}

.custom-checkbox input:checked + .checkbox-btn::after {
    opacity: 1;
}

/* Botón de limpiar filtro */
.clear-price-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #a99260;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9em;
}

.clear-price-button:hover {
    background: #8b7b4e;
}

/* Dropdown para Marca */
.dropdown-content {
    display: none;
    padding-top: 10px;
}

.filter-group.active .dropdown-content {
    display: block;
}

/* Estilos para productos */
.product {
    background: white;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.product img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 1em;
}

/* Ajuste en móviles para evitar imágenes demasiado grandes */
@media (max-width: 600px) {
    .product img {
        max-height: 140px;
    }
}

.product h4 {
    font-size: 1.1em;
    font-weight: 600;
}

.product p {
    font-size: 0.9em;
    color: #666;
}

.product-description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 1em;
    font-style: italic;
}

/* Botón de compra */
.buy-button {
    background: black;
    color: gold;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.buy-button:hover {
    background: gold;
    color: black;
}

.price {
    font-size: 1em;
    font-weight: bold;
    color: black;
}

.installments {
    font-size: 0.9em;
    color: #a99260;
}

.installments span {
    font-weight: bold;
}

/* Discount Label */
.discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: black;
    color: white;
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 50%;
}




footer {
	display: flex;
    flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2em;
	background: url("https://images.unsplash.com/photo-1525982479023-9093afb36871?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8MHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80") no-repeat bottom/cover;
}

footer .redes {
	text-align: center;
}

footer .redes ul {
	display: flex;
	justify-content: center;
	gap: 2em;
}

footer .redes ul li a {
	color: #d1a100;
	transition: color 0.3s;
}

footer .redes ul li a:hover {
	color: #be5ae0;
}

@media only screen and (max-width: 500px) {
	footer {
		flex-flow: column;
		align-items: center;
	}

	footer .redes ul {
		justify-content: center;
	}
}





.custom-radio input:checked + .radio-btn {
    background-color: #a99260;
    border: 2px solid #a99260;
    -webkit-box-shadow: 0 0 6px rgba(169, 146, 96, 0.6);
    box-shadow: 0 0 6px rgba(169, 146, 96, 0.6);
}
















nav a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: black;
    padding: 10px;
    transition: 0.3s;
}

nav a:hover {
    color: #d1a100;
}

/* Estilos del dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    align-items: center;
}

/* Oculta el menú desplegable por defecto */
.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    min-width: 150px;
    top: 100%;
    left: 0;
}

/* Muestra el menú cuando pasas el mouse */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Estilos de los enlaces dentro del menú */
.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
    font-size: 14px;
    background: white;
    transition: 0.3s;
}

.dropdown-menu a:hover {
    background: #d1a100;
    color: white;
}

.dropdown > a {
    display: flex;
    align-items: center;
    padding: 10px;
}