.header {
    font-family: 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
    font-size: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.site-id {
    text-decoration: none;
}

.cart-link {
    margin-left: auto;
}

.header-buttons {
    display: none;
}

.menu-header {
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: black;
    display: flex;
    flex-direction: row;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: -16px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: space-between;
}

.menu-header img {
    width: 24px;
    height: 24px;
    align-self: center;
}

.menu-header {
    padding-left: 32px;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: start;
    position: absolute;
    background-color: white;
    width: 75vw;
    top: 0;
    left: -100%;
    transition: left 0.3s ease;
    height: 100vh;
    z-index: 1000;
}

.opened {
    display: block;
    left: 0;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: start;
    padding-left: 16px;
    margin-top: 8px;
}

.menu-buttons a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.menu-buttons p {
    font-size: 18px;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 999;
}

.menu-backdrop.opened {
    background: rgba(0, 0, 0, 0.4); 
    opacity: 1;
    pointer-events: auto;
}

.logo {
    white-space: nowrap;
    text-align: center;
}

.logo-red {
    color: #EE2A28;
}

.logo-black {
    color: #000000;
}

body {
    background-color: #D9D9D9;
}

.subheader {
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
}

.subheader a {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.subheader span {
    margin-right: 10px;
}

.section-title {
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 32px;
    margin: 16px 0 0 16px;
}

.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 16px;
}

.checkout-container img {
    width: 100%;
    height: auto;
}

.checkout-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info h2 {
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
}

.checkout-button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    border-radius: 50px;
    margin-top: auto;
}

@media screen and (min-width:768px) and (max-width: 1023px) {
    .checkout-item img {
        width: 150px;
    }

    .description{
        font-size: 16px;
        line-height: 1.5;
    }

    .header-buttons {
        display: flex;
        flex-direction: row;
        gap: 32px;
        align-items: center;
        margin-left: auto;
        margin-right: 24px;
    }

    .mobile-menu {
        display: none;
    }

    .cart-link {
        margin-left: auto;
        text-decoration: none;
        color: black;
        font-size: 16px;
        justify-items: center;
    }

    .track-orders {
        font-size: 16px;
    }

    .trade-in {
        font-size: 16px;
    }

    .track-orders,
    .trade-in,
    .cart-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .track-orders img,
    .trade-in img,
    .cart-link img {
        width: 24px;
        display: block;
    }

    .track-orders p,
    .trade-in p,
    .cart-link p {
        margin: 0;
        font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 14px;
    }
}

@media screen and (min-width: 1024px) {
    .header-buttons {
        display: flex;
        flex-direction: row;
        gap: 64px;
        align-items: center;
        margin-left: auto;
        margin-right: 32px;
    }

    .mobile-menu {
        display: none;
    }

    .cart-link {
        margin-left: auto;
        text-decoration: none;
        color: black;
        font-size: 16px;
        justify-items: center;
    }

    .track-orders {
        font-size: 16px;
    }

    .trade-in {
        font-size: 16px;
    }

    .track-orders,
    .trade-in,
    .cart-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .track-orders img,
    .trade-in img,
    .cart-link img {
        width: 32px;
        display: block;
    }

    .track-orders p,
    .trade-in p,
    .cart-link p {
        margin: 0;
        font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 18px;
    }
    
    .subheader {
        font-size: 24px;
    }

    .section-title {
        font-size: 40px;
        margin: 16px 0 0 32px;
    }

    .checkout-container {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 24px;
    }

    .checkout-container img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .checkout-item {
        display: contents;
    }

    .info h2 {
        font-size: 32px;
    }

    .info p {
        font-size: 24px;
    }

    .checkout-button {
        width: 350px;
        padding: 24px 0;
        font-size: 16px;
    }

    .description {
        grid-column: 1 / -1;
        margin-top: 16px;
        font-size: 24px;
    }
}