.producte{
    width: 17rem;
    /* height: 21.875rem; */
    height: 28rem;
    margin: 1.25rem;
    padding: 1.4375rem;
    text-align: center;
    background-color: #f9f9f9;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    display: inline-block;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}
.producte:hover{
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
.producte img{
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.info_p{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
a {
    text-decoration: none;
    color: inherit;
}
button{
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #bb86fc, #03dac6);
    color: #fff;
    border: none;
    border-radius: 1.5625rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* cerca.php */
.mostra_cerca .producte {
    width: 16rem;
    /* height: 24rem; */
    height: 30rem;
}

@media screen and (max-width: 992px) {
    .mostra_cerca .producte {
        padding: 1rem;
        width: 12rem;
        height: 28rem;
    }
}

/* categoria */
.categories_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.categoria {
    width: 250px;
    height: 150px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.categoria:hover {
    transform: scale(1.05);
}
.categoria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}
.button_categoria {
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    background: linear-gradient(135deg, #bb86fc, #03dac6);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
}

/* info (stock/categoria) */
.info-vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
    text-align: left;
    font-size: 0.9em;
}

.info-fila {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin: 0;
    font-size: 0.85em;
}

.info-fila i {
    width: 16px;
    text-align: center;
    color: #888;
}

/* Estilos para los estados de producto */
.estat {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    display: inline-block;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}
.estat.stock {
    background-color: #d4edda;
    color: #155724;
}
.estat.agotat {
    background-color: #f8d7da;
    color: #721c24;
}
.estat.oferta { 
    background-color: #fff3cd; 
    color: #856404;
}

/* btn (disabled) */
button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
}
button.disabled:hover {
    background-color: #ccc !important;
}
