/* CSS - productes.php */

/* General */
.productes{
    width: 70%;
    height: auto;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center; 
    flex-direction: column;
    background-color: #F3F6F6;
    border-radius: 1.875rem;
}
.producte_info{
    width: 100%;
    height: 21.875rem;
    padding: 0.625rem;
    display: flex;
    flex-direction: row;
}
.producte_info div{
    margin: 0;
    width: 100%;
}

/* Img producte */
.img_productes {
    padding: 1rem;
    overflow: hidden;
}
.producte_info div img{
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    display: block;
}

/* Info producte */
.detall_producte {
    padding: 1rem;
}
/* nom */
.nom{
    padding: 1.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    justify-content: space-around;
}
/* estat / preu */
.estat_preu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* estat */
.estat-detalle {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    display: inline-block;
    font-weight: bold;
    margin-left: 15px;
}
.estat-detalle.stock { 
    background-color: #d4edda; 
    color: #155724; 
}
.estat-detalle.agotat { 
    background-color: #f8d7da; 
    color: #721c24; 
}
.estat-detalle.oferta { 
    background-color: #fff3cd; 
    color: #856404;
}
/* preu */
.preu-detalle {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
}
/* Btn */
.div_boto_productes{
    height: 60%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.div_boto_productes div{
    padding: 0;
    display: flex;
    justify-content: end;
    
}
.boto_productes {
    background: linear-gradient(135deg, #bb86fc, #03dac6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.3s;
}
.boto_productes:hover:not(:disabled) {
    transform: scale(1.05);
}
.boto_productes:disabled {
    background: #cccccc;
    cursor: not-allowed;
}
/* descripció */
.producte_descripcio{
    width: 100%;
    padding: 1.25rem;
    margin-top: 0px;
    margin-bottom: 0px;
}
.producte_descripcio h3{
    padding: 0.625rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #bb86fc;
}
.producte_descripcio p{
    padding: 1.875rem;
    line-height: 1.6;
    background-color: white;
    color: #555;
}
.desc_box {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* info extra */
.info-adicional {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.info-box {
    display: flex;
    justify-content: space-around;
    align-items: center;

    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.info-box h4, .info-box p {
    margin: 0px !important;
    padding: 1rem !important;
}
.info-box h4 {
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-box h4 i {
    color: #bb86fc;
}
/* Responsive - @media */
@media (max-width: 992px) {
    .productes {
        width: 90%;
    }
}
@media (max-width: 500px) {
    .info-box {
        flex-direction: column;
    }
}
@media (max-width: 1250px) {
    .producte_info {
        flex-direction: column;
        height: auto;
    }
    .div_boto_productes {
        justify-content: center;
    }
    .div_boto_productes div {
        align-items: center;
        justify-content: center;
    }
    .info-box {
        min-width: 100%;
    }
}
