.header {
    font-family: 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
    font-size: 36px;
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    align-items: center;
}

.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;
}

.cart-title {
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    margin: 16px 0 16px 16px;
}

.cart{ 
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px;
}

.cart-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
    background-color: #FFFFFF;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-info h2 {
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: bold; 
}

.item-info p {
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: auto;
    justify-content: flex-end;
    margin-top: auto;
}

.buttons button {
    width: 100%;
}

.buy-now {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
}

.remove {
    background-color: #8B8B8B;
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .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;
    }
    
    .subheader{
        font-size: 18px;
    }
    
    .cart-item{
        padding: 20px;
        gap: 12px;
    }

    .cart-item img {
        width: 120px;
        height: auto;
    }  

    .cart{ 
        margin: 24px;
    }

    .cart-title {
        margin: 16px 0 0 24px;
        font-size: 28px;
    }

    .item-info{
        gap: 12px;
        flex: 1;
        max-width: 400px;
    }

    .item-info h2 {
        font-size: 22px;
    }

    .item-info p {
        font-size: 18px;
    }

    .buttons {
        width: 140px;
        align-items: stretch;
        min-width: 160px;
    }
}

@media screen and (min-width: 1024px) {
    .header {
        font-size: 48px;
        gap: 16px;
        padding: 32px;
    }
    
    .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;
    }
    
    .cart-item{
        padding: 24px;
        gap: 16px;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item img {
        width: 150px;
        height: auto;
    }  

    .cart{ 
        margin: 32px;
    }

    .cart-title {
        margin: 16px 0 0 32px;
        font-size: 32px;
    }

    .item-info{
        gap: 16px;
        flex: 1;
        max-width: 500px;
    }

    .item-info h2 {
        font-size: 24px;
    }

    .item-info p {
        font-size: 18px;
    }

    .buttons {
        width: 160px;
        align-items: stretch;
        min-width: 180px;
    }
}