body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 100svh;
    min-height: 100vh;
}

main {
    display: flex;
    flex-direction: row;
    margin-bottom: -40px;
    align-self: center;
    width: 100%;
    max-width: var(--max-width);
}

main section#resultados {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
}

main section#resultados div.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}

main section#resultados div.header span.caption {
    color: gray;
}

main section#resultados h1.title {
    font-size: 1.8em;
    margin-top: -15px;
}

main section#resultados div.cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

main section#resultados div.cards a.card {
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    width: calc(calc(100% / 4) - 20px);
    /* flex-grow: 1; */
    position: relative;
    user-select: none;
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* prettier-ignore */
main section#resultados div.cards a.card div.image-container {
    height: 300px;
    position: relative;
}

main section#resultados div.cards a.card:hover::before {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
    top: 0;
    left: 0;
}

/* prettier-ignore */
main section#resultados div.cards a.card div.image-container img {
    border-radius: 30px;
    width: 100%;
    height: 100%;
}

/* prettier-ignore */
main section#resultados div.cards a.card div.image-container div.caption {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    margin: 0 15px 0 0;
    border-radius: 20px;
    bottom: 15px;
    left: 15px;
}

/* prettier-ignore */
main section#resultados div.cards a.card div.image-container div.price {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 10px 30px 10px 10px;
    border-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 5px;
    background: linear-gradient(
        to right,
        rgba(26, 44, 94, 1) 20%,
        rgba(26, 44, 94, 0.8) 40%,
        rgba(26, 44, 94, 0.6) 60%,
        rgba(26, 44, 94, 0.4) 80%,
        rgba(26, 44, 94, 0) 100%
    );
}

/* prettier-ignore */
main section#resultados div.cards a.card div.image-container div.price span.muted {
    font-size: 0.8em;
    font-style: italic;
}

main section#resultados div.cards a.card p.description {
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

@media (max-width: 1280px) {
    main section#resultados div.cards a.card {
        width: calc(calc(100% / 3) - 20px);
    }
}

@media (max-width: 1024px) {
    main section#resultados div.cards a.card {
        width: calc(calc(100% / 2) - 20px);
    }
}

@media (max-width: 768px) {
    main section#resultados div.cards a.card {
        width: 100%;
    }
}