:root {
  --primary-color: #9BD201;
  --second-color: #00239B;
  --third-color: #FA6605;
}
html {
    scroll-behavior: smooth;
    text-align: center;
}
.codigo_barras_v {
    width: 1rem;
}
.contenedor-shop{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.PROD {
    width: 85vw;
    column-count: 4;        /* número de columnas */
    column-gap: 12px;       /* espacio entre columnas */
}
#INDX {
    width: 80%;
    height: 65vh;
    display: flex;
    column-gap: 12px;       /* espacio entre columnas */
    justify-content: space-around;
}
.capsa-sp {
    width: fit-content;
    width: 50%;
}
.port-producte {
    background-color: var(--second-color);
    color: white;
    height: 20rem;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.port-producte:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.IMG-div-prod {
    height: 70%;
    background-color: white;
    border: solid 3px var(--second-color);
}
.IMG-div-prod img {
    height: 100%;
}
/* =========================
   TABLET (481px - 768px)
========================= */

@media (min-width: 481px) and (max-width: 768px) {

    .PROD {
        width: 95vw;
        column-count: 2;
        column-gap: 10px;
    }

    #INDX {
        width: 95%;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .capsa-sp {
        width: 80%;
    }

    .port-producte {
        height: 16rem;
    }
}

/* =========================
   MOBILE (hasta 480px)
========================= */

@media (max-width: 480px) {

    .content {
        flex-direction: column;
        justify-content: center;
    }

    .PROD {
        width: 95vw;
        column-count: 2;
        column-gap: 8px;
    }

    #INDX {
        width: 95%;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .capsa-sp {
        width: 95%;
    }

    .port-producte {
        height: 14rem;
        margin: 6px;
    }

    /* En móvil el hover no aplica,
       se añade un efecto de tap con active */
    .port-producte:active {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}