:root {
    --font-family: system-ui;
    --border-color: #ccc;
    --border-color-hover: #aaa;
    --text-color: #555;
    --text-heading-color: #222;
    --quick-quarter-second-transition: all ease-in-out .25s;
    --smooth-one-second-transition: all ease-in-out 1s;
    --dotnet-purple-color: #512bd4;
    --dotnet-purple-color-hover: #512bd4;
}

html {
    background: var(--dotnet-purple-color);
    background: linear-gradient(0deg, rgba(81,43,212,0.15) 0%, rgba(255,255,255,1) 100%);
}

* {
    font-family: var(--font-family);
    user-select: none;
}

.d-flex {
    display: flex;
}

.flex-spacer {
    flex-grow: 1;
}

.pa-4 {
    padding: 1.2rem;
}

.animated-underline {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--quick-quarter-second-transition);
}

    .animated-underline:hover {
        text-shadow: 0 0 1px black;
        filter: brightness(50%);
    }

    .animated-underline::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: var(--text-color);
        transition: transform 0.2s ease-in-out;
        transform: scale(0);
    }

    .animated-underline:hover::after {
        transform: scale(1);
    }

.justify-space-evenly {
    justify-content: space-evenly;
}

.justify-space-around {
    justify-content: space-around;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.align-items-center {
    align-items: center;
}

.align-content-end {
    align-content: flex-end;
}

.text-align-center {
    text-align: center;
}

.pointer-events-none {
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1rem;
    transition: var(--smooth-one-second-transition);
}

.grid-item {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--border-color) 0px 0px 5px;
    background-color: whitesmoke;
}

    .grid-item:hover {
        box-shadow: var(--border-color) 0px 0px 10px;
        border-color: var(--border-color-hover);
    }

.grid-item-content {
    display: flex;
    flex-direction: column;
}

    .grid-item-content img {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .grid-item-content:hover > img {
        cursor: pointer;
        filter: brightness(90%);
        overflow: hidden;
        transition: all ease-in-out .25s;
    }

    .grid-item-content:hover .quick-view-overlay {
        filter: brightness(120%);
    }

.quick-view-overlay {
    position: absolute;
    pointer-events: none;
    cursor: pointer;
    color: whitesmoke;
    font-size: 1.5rem;
    padding: .5rem;
    margin-right: 1rem;
}

.text {
    color: var(--text-color);
    text-decoration: none;
}

.d-flex .text {
    margin: .5rem 2rem;
}

.grid-item-text {
    text-align: center;
    color: var(--text-color);
}

    .grid-item-text h4 {
        color: var(--text-heading-color);
    }

    .grid-item-text .item-price {
        color: darkgreen;
        font-weight: 700;
    }

    .grid-item-text .item-description {
        margin: .5rem;
    }

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    font-size: 1.2rem;
}

    .pager .button {
        text-decoration: none;
        color: black;
    }

        .pager .button[disable] {
            pointer-events: none;
            user-select: none;
            color: #999;
        }

        .pager .button:not([disable]):hover {
            transition: all ease-in-out .5s;
            background-color: var(--border-color);
        }

    .pager .next {
        padding: .5rem 1.5rem;
        background-color: whitesmoke;
        border-bottom-right-radius: 8px;
        border-top-right-radius: 8px;
        border: 2px solid var(--border-color);
        border-left: none;
    }

        .pager .next .fa {
            padding-left: .5rem;
        }

    .pager .previous {
        padding: .5rem 1.5rem;
        background-color: whitesmoke;
        border-bottom-left-radius: 8px;
        border-top-left-radius: 8px;
        border: 2px solid var(--border-color);
        border-right: none;
    }

        .pager .previous .fa {
            padding-right: .5rem;
        }

.cart-button:not(:disabled) {
    font-size: 1.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4rem;
    padding: .4rem .8rem;
    background-color: transparent;
    transition: all ease-in-out .25s;
}

    .cart-button:not(:disabled):hover {
        color: var(--dotnet-purple-color);
        border-color: var(--border-color-hover);
        background-color: #ccc;
    }

.fa.fa-stack-1x.badge {
    color: white;
    background-color: var(--dotnet-purple-color);
    border-radius: 50%;
    font-family: system-ui;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
    top: 15%;
    right: 15%;
    left: initial;
    line-height: 1.5rem;
    border: 2px solid white;
}

.fa-shopping-cart.fa-stack-4x {
    font-size: 4rem;
}

.fa-stack.fa-lg.cart-stack {
    line-height: 4rem;
    width: 4rem;
    height: 4rem;
    transition: var(--quick-quarter-second-transition);
}

    .fa-stack.fa-lg.cart-stack:hover {
        cursor: pointer;
        filter: opacity(.7);
    }

.app-name {
    font-weight: bolder;
    font-size: 1.5rem;
    font-family: monospace;
    color: var(--dotnet-purple-color);
}

.text-danger {
    color: red;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
