/* Header container: a bit wider than the page container (1024px), so logo, menu and cart fit centered. */
@media (min-width: 992px) {
    .header .container {
        max-width: 1280px;
    }
}

/* Cart icon in the header. Mobile: left of the menu toggler. Desktop: right of the menu. */
.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    margin-right: 0.75rem;
    padding: 0.25rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--bs-primary, #88503E);
    text-decoration: none;
}

.header-cart:hover,
.header-cart:focus {
    color: #744435;
}

.header-cart__count {
    position: absolute;
    top: -0.25rem;
    right: -0.5rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--bs-primary, #88503E);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

@media (min-width: 992px) {
    .header-cart {
        order: 1;
        /* Same top margin as .nav-item, so the icon lines up with the menu links. */
        margin-top: 1rem;
        margin-left: 1.5rem;
        margin-right: 0;
    }
}
