.cabecera-productos {
    width: min(900px, 92%);
    margin: 0 auto;
    padding: 3rem 0 2rem;
    text-align: center;
}

.cabecera-productos h1 {
    margin: 1rem 0 .5rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cabecera-productos p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.zona-productos {
    width: var(--main-width);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.rejilla-productos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.formulario-carrito {
    height: 100%;
}

.tarjeta-producto {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.imagen-producto {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.contenido-producto {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.titulo-producto {
    font-size: 1.3rem;
    margin-bottom: .7rem;
}

.descripcion-producto {
    margin-bottom: 1rem;
}

.datos-producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.precio-producto {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.peso-producto {
    font-weight: 600;
}

.boton-producto {
    width: 100%;
    margin-top: auto;
    cursor: pointer;
}

@media (min-width: 700px) {
    .rejilla-productos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .rejilla-productos {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* MENSAJE PRODUCTO AÑADIDO */
.toast-producto{
    position: fixed;

    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);

    z-index: 9999;

    background: white;
    color: var(--primary);

    padding: .9rem 1.5rem;

    border-radius: 999px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.12);

    font-weight: 600;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s,
        transform .3s,
        visibility .3s;
}

.toast-producto.visible{
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

/* MENSAJE PEDIDO FINALIZADO */

/* MENSAJE PEDIDO FINALIZADO */

.toast-finalizado{

    position:fixed;

    top:5.5rem;
    left:50%;

    transform:
        translateX(-50%)
        translateY(-20px);

    z-index:9999;

    background:var(--primary);

    color:white;

    padding:.9rem 1.5rem;

    border-radius:999px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.12);

    font-weight:600;

    opacity:0;
    visibility:hidden;

    transition:
        opacity .3s,
        transform .3s,
        visibility .3s;
}

.toast-finalizado.visible{

    opacity:1;
    visibility:visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* NUEVOS CAMPOS VARIEDAD Y DISPONIBLE  */
.variedad-producto {
    font-weight: 600;
    margin-bottom: 1rem;
}

.boton-no-disponible {
    background: #ccc;
    color: #666;
    border: none;
    cursor: not-allowed;
     border-radius:999px;

    padding:.7rem 1.5rem;
}


/* BUSCADOR */
.buscador {
    display: flex;
    justify-content: center;
    gap: 1rem;

    margin: 2rem 0;
}

.buscador input,
.buscador select {
    padding: 1rem;

    border: 2px solid #d8e5d0;
    border-radius: var(--border-radius);

    font-size: 1rem;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition: all .3s ease;

}

.buscador input {
    width: 400px;
}

.buscador select {
    width: 200px;
}

.buscador input:focus,
.buscador select:focus {
    outline: none;
    border-color: #6b8f3e;
}

@media (max-width: 768px) {
    .buscador {
        flex-direction: column;
        align-items: center;
    }

    .buscador input,
    .buscador select {
        width: 90%;
    }
}
