/* Welcome Section */
.welcome-section {
    text-align: center;
    position: relative;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
}

.welcome-section h1 {
    font-size: 2rem;
    color: #002f6c;
}

.welcome-section2 {
    text-align: center;
    margin-top: -40px;
    max-width: 100%;
    padding-left: 10px;
}

.welcome-section2 h3 {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 50px;
}

/* Productos */
.Productos {
    background-color: #ffcc00;
    color: #002f6c;
    padding: 10px;
    height: 20px;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    align-items: center;
}

/* Filtro */
.filter-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineado a la izquierda */
    margin: 20px auto;
    max-width: 450px;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    left: -5500px; /* Ajustado para mover el filtro más a la izquierda */
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-container p {
    margin: 0;
    font-size: 1rem;
    color: #000000;
}

.filter-container select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    width: 100%;
}

.filter-container select:hover {
    border-color: #888;
}

/* Filtro responsive */
@media (max-width: 768px) {
    .filter-section {
        left: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .filter-container select {
        width: 100%;
    }
}

/* Productos */
.products-container {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Distribuye las columnas automáticamente */
    gap: 60px; /* Espacio entre productos */
    padding: 40px;
}

/* Estilo para cada producto */
.product-item {
    display: flex;
    flex-direction: column; /* Orden de los elementos (imagen, detalles, acciones) */
    align-items: center; /* Centrado horizontal */
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 5px solid #ffcc00;  /* Borde amarillo */
    max-width: 100%; /* Limitar el tamaño máximo de los productos */
    height: 100%; /* Asegura que ocupe el 100% de su contenedor */
    justify-content: space-between;
    transition: transform 0.2s ease; /* Efecto de transformación al pasar el mouse */
}

/* Efecto al pasar el mouse sobre el producto */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave para el escalado y la sombra */
}

.product-card:hover {
    transform: scale(1.05); /* Agranda el producto ligeramente */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Agrega un efecto de sombra para resaltar */
}

/* Imagen del producto */
.product-item img {
    width: 100%; /* Ajuste de la imagen al 100% del contenedor */
    height: 100%; /* Altura fija */
    margin-bottom: 10px; /* Espacio entre la imagen y los detalles */
}

/* Detalles del producto */
.product-details {
    text-align: center; /* Centra el texto */
    margin-bottom: 10px; /* Espacio debajo de los detalles */
    word-wrap: break-word; /* Evita que el texto se desborde fuera del contenedor */
    max-width: 100%; /* Asegura que el contenido no se salga del contenedor */
    height: auto; /* Ajuste automático de altura */
}

/* Paginación */
.pagination-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.pagination-item a {
    padding: 8px 15px;
    font-size: 1rem;
    color: #002f6c;
    text-decoration: none;
    background-color: #f4f4f4;
    border: 2px solid #ffcc00;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination-item a:hover {
    background-color: #002f6c;
    color: #fff;
    border: 2px solid #002f6c;
}

.pagination-item a.active {
    background-color: #ffcc00;
    color: #002f6c;
}

/* Filtro */
.filter-container {
    display: flex;
    gap: 10px;
    font-weight: bold;
}

#categoriaFiltro {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.apply-filter-btn {
    background-color: #ffcc00;
    color: #002f6c;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Separación desde el filtro */
}

.apply-filter-btn:hover {
    background-color: #002f6c;
    color: white;
}

/* Search Results */
.search-results-section p {
    margin: 0;
    font-size: 16px;
    color: #333;
    margin-bottom: -25px;
}

/* Reset Button */
.reset-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #d9534f;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.reset-button:hover {
    background-color: #c9302c;
}

/* Deseados */
.add-to-wishlist-btn {
    color: #ff6b6b;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 45px;
    display: inline-flex;
    align-items: center;
}

.add-to-wishlist-btn i {
    font-size: 1.2em;
}

.add-to-wishlist-btn:hover {
    background-color: #ff4d4d;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-section, .welcome-section2 {
        left: 0;
        padding: 20px;
    }

    .filter-section {
        left: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .products-container {
        padding: 20px;
        gap: 30px;
    }

    .product-item {
        max-width: 100%;
    }

    .pagination-container {
        flex-direction: column;
    }

    .apply-filter-btn {
        left: 0;
        width: 100%;
    }

    .reset-button {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-section h1 {
        font-size: 1.5rem;
    }

    .welcome-section2 h3 {
        font-size: 1rem;
    }

    .filter-container select {
        font-size: 14px;
    }

    .apply-filter-btn {
        font-size: 14px;
    }

    .products-container {
        gap: 20px;
    }

    .product-item {
        padding: 10px;
    }

    .product-item img {
        height: auto;
    }
}
