body {
    margin: 0;
    padding-top: 80px;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    max-width: 1580px;
    margin: 0 auto;
}

.header {
    width: 100%;
    display: flex;
    flex-direction: column;


}

.header div {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: clamp(0.5rem, 1vw, 2rem);
}

.header h4 {
    font-size: 1rem;
    font-weight: 600;
    font-family: Inter;
    color: #867d79;
    text-transform: uppercase;
    letter-spacing: 0.2rem;

}

.header h1 {
    font-family: Cormorant Garamond;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 36px;
    font-weight: 300;
    font-style: normal;
    color: rgb(34, 30, 28);

}

.header p {
    font-family: Inter;
    color: #867d79;

}


.filter {
    margin-top: 1rem;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-family: Inter, sans-serif;
    color: #867d79;

}

.filter select {
    font-family: Inter, sans-serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0.8rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;

}



.filter select,
::picker(select) {
    appearance: base-select;
}

.filter select {
    background: #ffffff;
    border-radius: 12px;
    
    box-shadow: 0 1px 20px rgba(224, 0, 112, 0.078);
    border: 1px solid #b3b2b2;
    padding: 10px;
    outline: none;
    cursor: pointer;
    color: #000;
}
.filter select:hover {
  border-color: #d85b5b;
  
}

.filter select::picker-icon {
  color: #d85b5b94 ;
  /* puedes rotar cuando está abierto */
}
::picker(select) {
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  background: white;
  outline: none; /* quitar línea negra del picker */
}

.filter option {
    padding: 10px 16px;
    border-radius: 8rem;
    color: #867d79;
}

.product-grid .card {
    display: flex;
    flex-direction: column;
    width: clamp(150px, 30%, 350px);
    height: auto;
    min-height: 480px;
}

.product-grid .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-grid .card-content .full-name {
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    line-height: 1.3;
    color: #555;
    margin: 0.15rem 0 0.25rem;
}

.product-grid .card-content .descripcion {
    font-family: Inter;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    line-height: 1.4;
    font-weight: 400;
    color: #867d79;
    margin: 0.25rem 0;
    flex: 1;
}

.product-grid .card-content .precio-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    gap: 0.5rem;
}

.product-grid .card-content .precio-btn-row .btn-add-cart {
    width: auto;
    margin-top: 0;
    padding: 6px 14px;
    white-space: nowrap;
}

.product-grid .card-content .precio {
    font-family: Inter;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    font-weight: 600;
    color: rgb(34, 30, 28);
    margin: 0;
}

.product-grid .card-content .btn-leer-mas {
    background: none;
    border: none;
    color: rgb(139, 72, 82);
    font-family: Inter;
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin: 0 0 0.15rem 0;
    text-align: left;
    width: fit-content;
}

.product-grid .card-content .btn-leer-mas:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .product-grid .card {
        width: 100%;
        min-height: 400px;
    }

    .product-grid .card-content .descripcion {
        font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    }

    .product-grid .card-content .full-name {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }

    .product-grid .card-content .precio {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
    }

    .product-grid .card-content .precio-btn-row .btn-add-cart {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .product-grid .card-content h3 {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
}