/**
 * CLIENT APP CSS - Modular Structure with UX Improvements
 */

/* Core design system */
@import url('design-system.css');

/* Menu core styles */
@import url('menu-core.css');

/* Menu components */
@import url('menu-components.css');

/* Menu filters */
@import url('menu-filters.css');

/* Menu checkout */
@import url('menu-checkout.css');

/* Menu orders */
@import url('menu-orders.css');

/* Menu modals */
@import url('menu-modals.css');

/* Notifications */
@import url('notifications.css');

/* UX Improvements - Breadcrumb navigation */
@import url('components/breadcrumbs.css');

/* UX Improvements - Progress steps */
@import url('components/progress-steps.css');

/* UX Improvements - Mobile navigation */
@import url('components/mobile-nav.css');
/* ============================================
   Sticky Cart Bar + Undo Snackbar
   Prevent raw text fallback when classes render before JS.
   ============================================ */
.sticky-cart-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 1100;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.sticky-cart-bar.sticky-cart-bar--visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-cart-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 14px;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
    padding: 0.65rem 0.75rem;
}

.sticky-cart-bar__info {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.sticky-cart-bar__icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.sticky-cart-bar__icon svg {
    width: 18px;
    height: 18px;
}

.sticky-cart-bar__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ff6b35;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

.sticky-cart-bar__details {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    flex-wrap: wrap;
    font-size: 0.86rem;
}

.sticky-cart-bar__label {
    color: #cbd5e1;
}

.sticky-cart-bar__total {
    color: #fff;
    font-weight: 700;
}

.sticky-cart-bar__items {
    color: #94a3b8;
}

.sticky-cart-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ff6b35;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.sticky-cart-bar__btn svg {
    width: 14px;
    height: 14px;
}

.undo-snackbar {
    position: fixed;
    left: 50%;
    bottom: 4.8rem;
    transform: translateX(-50%) translateY(10px);
    z-index: 1110;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.undo-snackbar.undo-snackbar--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.undo-snackbar__message {
    font-size: 0.85rem;
    font-weight: 600;
}

.undo-snackbar__action {
    border: 0;
    background: transparent;
    color: #ff9f7a;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 769px) {
    .sticky-cart-bar {
        max-width: 620px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .sticky-cart-bar {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .sticky-cart-bar__content {
        padding: 0.55rem 0.6rem;
        gap: 0.5rem;
    }

    .sticky-cart-bar__details {
        font-size: 0.8rem;
        gap: 0.2rem;
    }

    .sticky-cart-bar__btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.78rem;
    }

    .undo-snackbar {
        width: calc(100vw - 1rem);
        max-width: 430px;
        bottom: 4.25rem;
        justify-content: space-between;
        padding: 0.5rem 0.65rem;
    }
}
