/* cart-ui.css — global cart widget styles.
   Loaded on every page (via base.html) so the cart badge in the
   header and the add-to-cart buttons on the Speisekarte work
   without requiring the full ordering.css to be present.
   ordering.css is loaded only on /bestellung and /reservierung. */

/* ===== Cart badge ============================================== */

.nav-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-masala);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.cart-badge--empty {
    background: rgba(122, 31, 23, 0.18);
    color: var(--color-masala);
}

/* ===== Plus button used in menu rows and specialty cards ======= */

.cart-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--color-saffron);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
    box-shadow: 0 6px 14px rgba(198, 90, 31, 0.25);
}

.cart-add-btn:hover,
.cart-add-btn:focus-visible {
    background: var(--color-saffron-dark);
    transform: translateY(-1px);
}

.cart-add-btn--inline {
    margin-left: 8px;
}

.cart-add-btn--xs {
    min-width: 28px;
    height: 28px;
    font-size: 1rem;
    padding: 0 8px;
}

.cart-add-btn--specialty {
    margin-left: auto;
    font-size: 0.92rem;
    padding: 0 14px;
    height: 38px;
}

.cart-add-btn--flash {
    animation: cart-add-flash 0.55s ease;
}

@keyframes cart-add-flash {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.18);
        box-shadow: 0 12px 22px rgba(198, 90, 31, 0.4);
    }

    100% {
        transform: scale(1);
    }
}

.menu-row__not-orderable {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ===== Mobile burger-button cart badge ========================= */

/* Wrapper keeps the badge inline next to the burger button */
.site-header__toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Use the same visual treatment as the nav-bar badge.
   No size overrides — inherits the standard .cart-badge styles. */
.site-header__toggle-cart-badge {
    flex-shrink: 0;
}

/* Desktop: the burger button itself is hidden (>880px),
   so hide the badge wrapper too to keep layout clean. */
@media (min-width: 881px) {
    .site-header__toggle-cart-badge {
        display: none;
    }
}