@import url('home.css');

.section-title{
  margin-top: 0px;
}

search-bar {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.search-bar input {
    margin-top: 25px;
    width: 600px;
    padding: 9px;
    border: 1px solid #b2afaf;
    border-radius: 20px;
    outline: none;
    font-family: 'poppins';
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: -30px;
    color: #b2afaf
}

.container-search-filter {
    margin-top: 15px;
    margin-bottom: -20px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 60px; 
}

.filtro {
    margin-top: 30px;
    margin-bottom: 0px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.filtro label {
    font-weight: bold;
}

.input-container {
    position: relative;
    display: inline-block;
}

.clear-input {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none; 
}

.clear-input:hover {
    color: #333;
}


input:not(:placeholder-shown) + .clear-input {
    display: block;
}

.filtro select, .filtro input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'poppins';
}

.filtro button {
    padding: 5px 25px;
    background-color: #9e2fe2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'poppins';
}

.filtro button:hover {
    background-color: #5a099d;
}


.page-inner-content {
    padding: 2rem;
}

.cols-3 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 2rem;
    grid-auto-flow: dense;
    
}


.product {
    display: flex; 
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 450px;
}


.product img {
    max-width: 100%;
    border-radius: 10px;
}

.product-name {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.product-price {
    font-size: 1.1rem;
    color: #333;
}

.product-price del {
    color: #999;
    margin-right: 0.5rem;
}

.product-price span {
    color: #9e2fe2;
    font-weight: bold;
}

.rate{
 margin-top: -15px;
}


@media (max-width: 800px) {
    .container-search-filter {
        display: flex; 
        flex-direction: column;
        align-items: center; 
        justify-content: center; 
        gap: 20px; 
    }

    search-bar{
        width: 80%; 
        max-width: 400px; 
    }

}

@media (max-width: 500px) {


    .filtro {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .search-bar {
        width: 90%; 
        max-width: 300px; 
        display: flex;
        align-items: center;
        gap: 10px; 
    }

    .search-bar input {
        width: 100%; 
        padding: 8px; 
        font-size: 14px; 
    }

    .search-bar button {
        display: none;
    }
}

