h1 {
    font-size: 5rem;
    margin: 0;
    padding-bottom: 2rem;
}

h2,
.h2 {
    font-size: 2.8rem;
    margin: 0;
}

h3,
.h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    padding-bottom: 2rem;
}

p {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0;
    padding-bottom: 2rem;
}

.form-wrapper {
    width: 100%;
    display: grid;
    place-items: center;
    margin-bottom: 4rem;
    color: var(--background);
}

.form-wrapper form {
    width: 90%;
    background-color: var(--text);
    border-radius: 2rem;
    padding-top: 2rem;
}

.products {
    width: 100%;
    place-items: center;
    text-align: center;
    padding: 1rem 1rem 3rem 1rem;
}


.products h2 {
    margin-bottom: 3rem;
    padding: 0;
    font-size: 3rem;
    color: var(--background);
}

.form-wrapper h3 {
    font-weight: 600;
    color: var(--background);
    margin-bottom: 0;
    padding: 0;
}

.products p {
    padding-bottom: 0;
}

.product-list {
    width: 90%;
    display: grid;
    place-items: center;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    grid-auto-rows: auto auto auto auto auto auto;
    gap: 2rem;
    margin-top: 1rem;
}

.product-list .product {
    width: 100%;
    min-height: 12rem;
    display: grid;
    place-items: center;
    justify-content: center;
    grid-template-rows: subgrid;
    grid-row: span 6;
    gap: .2rem;
    border-radius: 1rem;
    background-color: color-mix(in srgb, var(--text), var(--orange) 30%);
    padding: 1rem 2rem;
    filter: drop-shadow(0 0 .1rem var(--background));

    /* border: .3rem solid var(--orange); */
    background: linear-gradient(230deg, var(--orange) 0%, var(--text) 100%);
}

.product-list .product>:last-child {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.product-list .product>:last-child>span {
    font-size: 1.5rem;
}

.product-list .product>:nth-child(8) {
    position: relative;
    padding-bottom: .9rem;
}

.product-list .product .unit {
    border-radius: .5rem;
    background-color: rgb(223, 214, 45);
    border: 1px solid rgb(171, 157, 3);
    padding: 0rem .5rem .1rem .5rem;
    line-height: 1rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    margin-left: -.15rem;
}

.product-list .product.has-qty {
    background: linear-gradient(230deg, var(--orange) 0%, var(--orange) 30%, var(--yellow) 100%);
}

.grey {
    filter: grayscale(1) !important;
}

.out {
    position: absolute;
    font-weight: 1000;
    font-size: 1.7rem;
    text-shadow: 2px 2px black;
    -webkit-text-stroke: 1px black;
    color: var(--text);
    top: 4.2rem;
}

.product-list .product img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.product label {
    font-size: 1.2rem;
    font-weight: 500;
    margin: .5rem;
}

.product input {
    font-size: 1.3rem;
    font-weight: 500;
    width: 5rem;
    background-color: var(--text);
    border: solid 1px var(--background);
    color: var(--background);
    border-radius: .4rem;
    padding: .2rem .2rem .2rem .5rem;
}

.product .old-price {
    font-size: 1.2rem;
    color: var(--background);
    text-decoration: line-through;
    opacity: 0.7;
    display: block;
    margin: .5rem 0 -.5rem 0;
}

.user-info {
    margin-top: 2rem;
    padding: 2rem;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 1rem;
}

.user-info div {
    width: 100%;
    height: auto;
    text-align: left;
}

.user-info div label {
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    padding: .3rem 0;
    display: block;
}

.user-info input,
.user-info textarea,
.user-info select {
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    background-color: var(--text);
    border: solid 1px var(--background);
    color: var(--background);
    border-radius: .4rem;
    padding: .5rem;
}

.user-info select {
    padding-left: .3rem;
    padding-right: 1.2rem;
}

.user-info textarea {
    height: 12rem;
    resize: vertical;
}

@media only screen and (min-width: 900px) {
    .user-info {
        padding: 2rem 6rem;
        display: grid;
        grid-template-columns: auto auto;
    }

    .user-info div:has(textarea) {
        grid-column-end: span 2;
    }
}

.order {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--background);
    background-color: var(--text);
    padding: 1rem 3rem;
    border-radius: .5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order:hover {
    background-color: var(--orange);
    color: var(--text);
}




/* Hide native arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Wrapper to look like native input */
.number-input {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    width: max-content;
    margin: 4px;
}

.number-input input {
    width: 60px;
    border: none;
    padding: 6px;
    text-align: center;
    font-size: 1.2rem;
    outline: none;
}

.number-input button {
    background-color: #f0f0f0;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .2rem;
}

.number-input button:active {
    background-color: #ddd;
}

#total {
    position: fixed;
    height: auto;
    bottom: 2rem;
    left: 2rem;
    background: radial-gradient(circle, var(--text) 0%, var(--orange) 100%);
    /* background-color: var(--orange); */
    padding: .5rem 1rem;
    border-radius: 1rem;
    border: .3rem solid var(--text);
    filter: drop-shadow(0 0 0.1rem var(--background));
    z-index: 3;
    color: var(--background);
    font-weight: 600;
}

@media only screen and (max-width: 600px) {
    #total {
        left: 0;
        right: 0;
        margin-inline: auto;
        width: fit-content;
    }
}

@media only screen and (max-width: 450px) {
    #total {
        bottom: .3rem;
        left: .3rem;
        font-size: 1.2rem;
    }
}