/*////////////// CSS REVISTO //////////////*/

.box-novidade {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    margin-top: 0.75rem;
}

.box-novidade img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 0;
}

.box-novidade::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgb(0 0 0 / 70%) 80%);
    border-radius: 20px;
    transition: opacity 0.2s ease;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    padding: 1rem;
}

.box-novidade:hover::after {
    background: linear-gradient(180deg, rgb(0 0 0 / 60%) 15%);
}

.box-novidade h4 {
    color: var(--color-white);
    z-index: 1;
    position: absolute;
    bottom: 10px;
    left: 5%;
    transition: all 0.1s ease-in-out;
    width: 90%;
}

.box-novidade:hover h4 {
    bottom: 50px;
}

.discount-pill {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 20px;
    z-index: 1;
    position: absolute;
    bottom: 60px;
    width: fit-content;
    left: 5%;
    padding: 4px 12px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.box-novidade:hover .discount-pill {
    bottom: 100px;
}

.box-novidade p.link {
    z-index: 1;
    position: absolute;
    bottom: 0px;
    width: fit-content;
    left: 5%;
    display: none;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
    color: var(--color-white);
}

.box-novidade:hover p.link {
    display: block;
    bottom: 15px;
    color: var(--color-primary);
}