body {
    margin: 0;
    padding: 0;
    background: #eee;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    display: grid;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    width: 100vw;
    box-sizing: border-box;
    grid-template-rows: 3rem auto;
    grid-template-columns: 100%;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    input {
        width: 80%;
        padding: 0.5rem;
        border: 1px solid #eee;
        border-radius: 0.5rem;
        font-size: 1rem;
        outline: none;
    }
}
main {
    height: 100%;
    overflow-y: scroll;
    padding: 1rem 0;
    box-sizing: border-box;
}

.promotions {
    display: grid;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    grid-template-columns: repeat(auto-fill, 300px);
    .promotion-card a {
        display: grid;
        background: #fff;
        padding: 1rem;
        border-radius: 1rem;
        box-sizing: border-box;
        gap: 1rem;

        .promotion-card-image {
            display: flex;
            justify-content: center;
            align-items: center;
            img {
                height: 8rem;
                width: auto;
                object-fit: contain;
            }
        }
        .promotion-card-content {

            .brand {
                color: #666;
                font-size: 0.8rem;
            }
            .title {
                font-size: 1rem;
            }
            .category {
                font-size: 0.8rem;
                color: #666;
            }
            .price-container {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
            .price {
                font-size: 1.1rem;
                color: #c33;
                font-weight: bold;
                text-align: right;
            }
            .price-was {
                font-size: 0.9rem;
                color: #666;
                text-decoration: line-through;
            }
            .discount {
                font-size: 0.8rem;
                color: #666;
                background: #c33;
                color: #fff;
                padding: 0.2rem 0.5rem;
                border-radius: 0.5rem;
            }
        }
        .promotion-card-footer {
            display: flex;
            align-self: flex-end;
            justify-content: center;
            align-items: center;
            .supermarket {
                display: flex;
                justify-content: center;
                align-items: center;
                img {
                    height: 2rem;
                    width: auto;
                }
            }
        }
    }
}

a {
    text-decoration: none;
    color: inherit;
}