.storefront-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.storefront-header h1 {
    font-family: "IM Fell English", serif;
    font-size: 3rem;
    font-style: normal;
}

.storefront-header p {
    color: rgba(255, 255, 255, 0.8);
    font-family: "IM Fell English", serif;
    font-size: 1.3rem;
    font-style: normal;
    white-space: nowrap;
}

.store-brand {
    padding: 2rem;
    white-space: nowrap;
}

.store-brand-logo {
    color: white;
    text-decoration: none;
}

.non-store-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.nav-bar {
    align-self: flex-end;
    background: #ffe1c3;
    border: 2px solid black;
    border-bottom: none;
    border-right: none;
    border-top-left-radius: 1rem;
    color: #3d1f0f;
    display: flex;
    justify-content: space-around;
    text-align: center;
    width: 16rem;
}

.nav-bar li {
    cursor: pointer;
    font-family: "IM Fell English", serif;
    font-size: 1.1rem;
    height: 100%;
    list-style-type: none;
    padding: 0.5rem;
    text-decoration: underline;
    width: 50%;
}

.nav-bar li:first-child {
    border-top-left-radius: 1rem;
    border-right: 2px solid black;
}

.nav-bar li:hover {
    background: #fff1e3;
}

.nav-bar a {
    color: black;
}

.nav-bar .active {
    background: #fff1e3;
}

#checkout-btn {
    align-self: flex-end;
    border: 2px solid black;
    border-right: none;
    border-top: none;
    background: #ffe1c3;
    border-bottom-left-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
    color: #3d1f0f;
    display: flex;
    font-family: "IM Fell English", serif;
    font-size: 1.1rem;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    text-decoration: underline;
    transition: all 0.2s ease;
    width: 15rem;
}

#checkout-btn:hover {
    background: #fff1e3;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

#storefront-container {
    margin: 1rem auto;
    max-width: 85rem;
    padding: 3rem 2rem;
    width: 100%;
}

#storefront-container h2 {
    color: #5c2f1d;
    font-family: "IM Fell English", serif;
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

#products {
    background-color: #f3aa7d21;
    border: 2px solid black;
    border-radius: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    width: 100%;
}

.product-content {
    align-items: center;
    background: white;
    border: 1px solid #b86b3c;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0.5rem 0;
    padding: 1rem;
    width: 100%;
}

.product-info {
    display: flex;
    flex: 1 1 12rem;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.product-image {
    align-items: center;
    aspect-ratio: 5 / 4;
    border: 1px solid black;
    border-radius: 0.5rem;
    display: flex;
    flex: 1 1 12rem;
    justify-content: center;
    margin: 0;
    max-width: 15rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 100%;
}

.product-image-preview {
    border-radius: 0.5rem;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.image-text {
    font-size: 0.8rem;
    padding: 1rem;
    text-align: center;
}

.add-to-cart-btn {
    border: none;
    margin-top: 1rem;
    width: 35%;
}

.add-to-cart-btn:hover {
    background: #b86c3ce4;
}

.added {
    font-style: italic;
}

@media (max-width: 55rem) {
    .storefront-header {
        flex-direction: column;
        padding-top: 1.5rem;
        text-align: center;
    }

    .storefront-header p {
        white-space: normal;
    }

    .store-brand {
        padding: 1rem;
    }

    .non-store-brand {
        flex-direction: row;
    }

    #checkout-btn {
        border: 2px solid black;
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-left: none;
        border-top-right-radius: 1rem;
        max-width: 100%;
        min-width: 0;
        width: 10rem;
    }

    .nav-bar {
        border: 2px solid black;
        border-bottom: none;
        border-right: none;
        border-top-left-radius: 1rem;
        border-top-right-radius: 0;
    }

    #storefront-container h2 {
        margin-top: 2rem;
        text-align: center;
    }   

    .product-content {
        align-items: center;
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .product-image {
        max-width: 15rem;
    }

    .add-to-cart-btn {
        width: 70%;
    }
}