html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body, button {
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

h1 {
    font-family: "Playfair Display", serif;
}

h1, h2, h3, h4 {
    margin: 0;
}

p {
    font-family: "Lora", serif;
    margin: 0;
}

img {
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: black;

    /* Prevents it from ignoring certain margin properties  */
    display: inline-block;
}

ul {
    list-style-type: none;
    padding: 0;
}

button, select, input[type="submit"], input[type="radio"] {
    cursor: pointer;
}

.ctnr {
    width: 85%;
    /* May change later */
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    font-size: 2rem;
    font-weight: 400;
}

.text {
    font-size: 1.1rem;
    padding: 1rem 0;
}

.link {
    background-color: orange;
    padding: 1rem 2.5rem;
    color: white;
    font-size: 0.90rem;
}

.bold {
    font-weight: bold;
}

.d-none {
    display: none;
}

.none {
    border: 1px solid #E8E8E8;
    color: #6D6A6A;
    text-align: center;
    padding: 5rem 0;
}

.outcome-bg {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.msg-ctnr {
    border: 2px solid #E8E8E8;
    margin: 1rem 0 1rem 0;
    padding: 1rem 1rem;
    text-align: center;
}

.outcome-msg-ctnr {
    border-radius: 5px;
    position: fixed;
    width: 90%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 2rem;
    max-width: 440px;
}

.outcome-msg-ctnr--success {
    border: 3px solid rgb(148, 255, 148);
    background-color: rgb(86, 240, 86);
}

.outcome-msg-ctnr--no-stock {
    border: 3px solid rgb(247, 236, 89);
    background-color: rgb(255, 248, 148);
}

.msg {
    font-size: 1.125rem;
    font-family: "Montserrat", sans-serif;
    color: #6D6A6A;
    max-width: 600px;
    margin: 0 auto;
}

.error-msg-ctnr {
    border: none;
    background-color: rgb(248, 144, 144);
}

.remove-btn, .remove-all-btn {
    border: none;
    background-color: inherit;
    text-decoration: underline;
}

.navbar {
    text-align: center;
}

.navbar__items {
    position: relative;  
}

.nav__toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav__toggle-icon {
    width: 1.7rem;
}

.logo__img {
    width: 4rem;
    padding: 0.5rem 0;
}

.nav__list {
    margin: 0;
}

.nav__link {
    padding: 0.5rem 0;
    font-weight: 500;
    font-size: 0.90rem;
}

.hero__ctnr {
    width: 75%;
    max-width: 650px;
}

.hero {
    background-image: url("img/hero.jpeg");
    background-position: 65% 45%;
    padding: 12rem 0;
}

.hero__text {
    color: #6D6A6A;
}

.custom-info {
    text-align: center;
    padding: 6rem 0;
    background-color: rgb(247, 247, 247);
}

.custom-info__item-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-info__item {
    margin-top: 2rem;
    max-width: 350px;
    padding: 1rem 0;
}

.custom-info__img {
    width: 6.25rem;
    display: block;
    margin: 0 auto;
}

.custom-info__text {
    width: 80%;
    margin: 0 auto;
    padding-top: 1rem;
    text-align: left;
    color: #6D6A6A;
}

.custom {
    background-color: rgb(247, 247, 247);
    background-image: url("img/custom.png");
    padding: 10rem 0;
    background-position: center 30%;
    color: white;
    text-align: center;
}

.custom__text {
    max-width: 550px;
    margin: 0 auto;
}

.footer {
    font-size: 0.80rem;
    padding: 3rem;
}

.footer__nav {
    padding: 0.5rem;
}

.footer__link {
    margin-top: 0.5rem;
}

.copyright {
    font-weight: normal;
    text-align: center;
    padding-top: 1.5rem;
}

.credit-cards {
    display: block;
    margin: 0 auto;
}

/* shop.html */
.shop {
    display: flex;
    flex-direction: column;
}

.shop__display {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 90%;
}

.shop__item > * {
    margin-top: 0.3rem;
}

.shop__img {
    max-width: 100%;
}

.shop__img-title {
    font-weight: normal;
}

.shop__cart-btn {
    border: none;
    padding: 0.25em 0.75em;
    background-color: rgb(255, 191, 72);
    font-weight: 500;
}

.shop__pages {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.shop__pages-nav-item + .shop__pages-nav-item {
    margin-left: 0.5rem;
}

.pg-num {
    background-color: rgb(230, 227, 227);
    padding: 0.75em 0.75em;
}

.arrow {
    font-size: 2rem;
    padding: 0 0.25em 0 0.25em;
    background-color: rgb(230, 227, 227);
}

.current {
    border: 1px solid black;
}

.hidden {
    visibility: hidden;
}

/* add-stock.html */
.inventory {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inventory__label, .inventory__img, .inventory__btn {
    margin-top: 1rem;
}

.inventory input[type=file] {
    margin-left: 5rem;
}

.img-preview {
    width: 100%;
    max-width: 330px;
}

/* register.html */
.input {
    border: none;
    border-radius: 10px;
    padding: 0.7rem 0.7rem;
    width: 100%;
    margin-top: 0.5rem;
}

.form-hero {
    background-image: url("img/hero-2.png");
    background-position: 75% 50%;
    background-size: cover;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.auth {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2rem 2rem;
    max-width: 450px;
    height: fit-content;
}

.form__item {
    margin-top: 1.5rem;
}

.form__item > * {
    display: block;
}

.form__submit {
    background-color: rgb(245, 219, 185);
    font-size: 1rem;
    font-weight: 600;
    color: rgb(126, 125, 125)
}

/* cart.html + orders.html */
.cart, .orders {
    width: 90%;
}

/* cart.html */
.cart__item {
    display: grid;
    grid-template-columns: 35% 45% 20%;
    gap: 0.5rem;
    padding: 0.5rem;
    text-align: center;
}

.cart__item-img {
    max-width: 100%;
}

.qty {
    background-color: rgb(247, 247, 247);
    padding: 0.3rem 0.5rem;
}

.cart__subtotal {
    border-radius: 1rem;
    padding: 1em 1em;
}

.cart__total-items {
    font-size: 1rem;
    display: block;
}

.checkout-btn {
    background-color: #f34f3f;
    color: white;
    border: none;
    padding: 1em 1em;
    font-size: 1rem;
    margin-top: 0.5rem;
    white-space: normal;
}

.cart__subtotal {
    display: flex;
    flex-direction: column;
}

.cart__subtotal-text {
    display: flex;
    justify-content: space-between;
}

.cart__item-col--mid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* request.html */
.request-hero {
    background-image: url("img/hero-3.jpeg");
    padding: 0;
}

.request {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 3rem 2rem;
    margin: 0 auto;
}

.request > * {
    display: block;
}

.request__input {
    border: 1px solid black;
}

.request__selection {
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.form__radio {
    display: inline-block;
    font-size: 0.925rem;
}

.form__item--disabled {
    opacity: 0.3;
}



@media (min-width: 600px) {
    /* shop.html */
    .shop__display {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* cart.html */
    .cart__products {
        display: grid;
        grid-template-columns: 65% 35%;
        gap: 1rem;
    }

    .cart__subtotal {
        background-color: rgb(247, 247, 247);
        height: fit-content;
    }

    /* request.html */
    .request-hero {
        padding: 2rem 0;
    }
    
    .request {
        max-width: 600px;
    }
    
    .form__radio + .form__radio {
        margin-left: 2rem;
    }
}

@media (min-width: 800px) {
    /* index.html */
    .link {
        font-size: 1.1rem;
    }

    .nav__toggle {
        display: none;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;

        /* The same as shop__display */
        width: 90%;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .nav__list {
        display: flex;
    }

    .nav__item {
        margin-left: 2rem;
    }
    
    .hero {
        padding: 11rem 0;
    }

    .hero__title {
        font-size: 2.6rem;
    }

    .hero__text {
        font-size: 1.2rem;
    }

    .custom-info__item-holder {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .custom-info__title {
        font-size: 2.25rem;
    }

    .custom-info__item {
        /* on flex-items, this makes each item the same width */
        width: 100%;
    }

    .custom-info__subtitle {
        font-size: 1.75rem;
    }

    .custom-info__text {
        text-align: center;
        font-size: 1.063rem;
    }

    .custom__title {
        font-size: 2.75rem;
    }

    .custom__text {
        font-size: 1.25rem;
    }

    .footer__nav-ctnr {
        display: flex;
        justify-content: space-evenly;
    }

    /* shop.html */
    .shop__display {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* request.html */
    .request-hero {
        padding: 2rem 0;
    }

    /* orders.html + cart.html */
    .orders, .cart {
        font-size: 1.3rem;
    }

    .orders__title, .cart__title {
        font-size: 2rem;
    }

    .none {
        font-size: 1.125rem;
    }
}