/**
 * Modern Menu Layout Styles
 * Bootstrap row-based layout
 * Horizontal category navigation
 * Bottom sheet modal on mobile
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Menu-specific color system (independent from theme.json) */
    --menu-primary: #0d6efd;
    --menu-success: #198754;
    --menu-danger: #dc3545;
    --menu-light: #ececec;
    --menu-secondary: #6c757d;
    --menu-white: #ffffff;
    --menu-gray-100: #f8f9fa;
    --menu-gray-200: #e9ecef;

    /* Menu layout variables */
    --menu-card-height: 10rem;
    --menu-card-radius: 0.5rem;
    --menu-card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --menu-card-shadow-hover: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    --menu-transition-fast: 150ms ease;
    --menu-transition-normal: 250ms ease;
    --menu-transition-slow: 350ms ease;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.menu-page-header {
    padding: 0.75rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.menu-page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* ============================================
   CONTAINER
   ============================================ */
.menu-container {
    padding-top: 1rem;
}

/* ============================================
   INFO BAR
   ============================================ */
.menu-info-bar {
    margin-bottom: 0.75rem;
}

/* ============================================
   STICKY ROW: Categories + Methods
   ============================================ */
.menu-sticky-row {
    position: sticky;
    top: 0;
    z-index: 100;
    /* padding: 0.5rem 0;
     border-bottom: 1px solid #dee2e6;
    background: #fff; */
}

/* Mobile: methods above categories */
@media (max-width: 991.98px) {
    .menu-methods-col {
        order: -1;
        /* margin-bottom: 0.5rem; */
    }
}

/* ============================================
   HORIZONTAL CATEGORY NAVIGATION
   ============================================ */
.menu-categories-nav {
    position: static;
    background: transparent;
    border-bottom: none;
    padding: 0;
}

.menu-categories-nav .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    /* padding-bottom: 0.25rem; */
}

.menu-categories-nav .nav::-webkit-scrollbar {
    display: none;
}

.menu-categories-nav .nav-link {
    flex-shrink: 0;
    padding: 0.8rem 1rem;
    border-radius: 0.3rem;
    color: var(--brand-color-accent);
    background: var(--brand-color-one);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--menu-transition-fast);
    white-space: nowrap;
    border: 1px solid transparent;
}

.menu-categories-nav .nav-link:hover {
    background: #e9ecef;
    color: #212529;
}

.menu-categories-nav .nav-link.active {
    background: var(--brand-color-accent);
    color: var(--brand-color-one);
    border-color: var(--brand-color-two);
}

.menu-categories-nav .nav-link.featured-link {
    background: #fff3cd;
    color: #856404;
}

.menu-categories-nav .nav-link.featured-link.active {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

/* Scroll indicators */
/* Category scroll buttons */
.menu-categories-wrapper {
    position: relative;
}

.categories-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 10%;
    background: var(--menu-white);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.categories-scroll-btn:hover {
    background: var(--menu-gray-100);
}

.categories-scroll-btn--left {
    left: 0;
}

.categories-scroll-btn--right {
    right: 0;
}

.menu-categories-wrapper.can-scroll-left .categories-scroll-btn--left,
.menu-categories-wrapper.can-scroll-right .categories-scroll-btn--right {
    opacity: 1;
    visibility: visible;
}

/* Add padding to nav when buttons visible */
.menu-categories-wrapper.can-scroll-left #categoriesNav {
    padding-left: 1.5rem;
}

.menu-categories-wrapper.can-scroll-right #categoriesNav {
    padding-right: 1.5rem;
}

.menu-categories-wrapper::before,
.menu-categories-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--menu-transition-fast);
}

.menu-categories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff 30%, transparent);
}

.menu-categories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff 30%, transparent);
}

.menu-categories-wrapper.can-scroll-left::before,
.menu-categories-wrapper.can-scroll-right::after {
    opacity: 1;
}

.menu-category-header.sparkle::after {
    content: '';
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    background: var(--brand-color-accent);
    border-radius: 50%;
    margin-left: 0.5rem;
    vertical-align: middle;
    animation: dot-pulse 0.6s ease-out forwards;
}

@keyframes dot-pulse {
    0% { opacity: 0; transform: scale(0.5); }
    40% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1); }
}

/* ============================================
   MAIN CONTENT ROW
   ============================================ */
.menu-main-row {
    margin-top: 1rem;
}

/* ============================================
   CART SIDEBAR - Desktop sticky with sections
   ============================================ */
.menu-cart-column {
    position: sticky;
    top: 4rem;
    height: calc(100vh - 5rem);
}

.menu-cart-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 0.125rem 0.2rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-sidebar__header {
    flex-shrink: 0;
    /*padding: 0.75rem;
     background: var(--menu-primary); */
    background: white;
    color: #000000;
}

.cart-sidebar__header h5 {
    margin: 0;
    font-size: 1rem;
}

.cart-sidebar__body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 0.75rem;
    /* background: #f8f9fa; */
}

.cart-sidebar__body::-webkit-scrollbar {
    width: 0.375rem;
}

.cart-sidebar__body::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 0.1875rem;
}

.cart-sidebar__extras {
    flex-shrink: 0;
    padding: 0 0.75rem;
    background: #fff;
}

.cart-sidebar__footer {
    flex-shrink: 0;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.cart-sidebar__footer .subtotal-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Sticky offer progress in cart */
.offer-progress-sticky {
    background: #fff8e6;
    border-bottom: 1px solid #ffc107;
    /* padding: 0.5rem 0.75rem;
    margin: -0.75rem -0.75rem 0.75rem; */
    font-size: 0.8125rem;
}

.offer-progress-sticky.d-none {
    display: none !important;
}

/* ============================================
   PRODUCT GRID - 2 COLUMNS
   ============================================ */
.menu-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .menu-products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ============================================
   PRODUCT CARD - MODERN STYLE (Horizontal)
   ============================================ */
.menu-product-card {
    position: relative;
    display: flex;
    flex-direction: row;
    height: var(--menu-card-height);
    background: #fff;
    border-radius: var(--menu-card-radius);
    box-shadow: var(--menu-card-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow var(--menu-transition-fast), transform var(--menu-transition-fast);
}

.menu-product-card:hover {
    box-shadow: var(--menu-card-shadow-hover);
    transform: translateY(-0.125rem);
}

.menu-product-card.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.menu-product-card.unavailable:hover {
    transform: none;
    box-shadow: var(--menu-card-shadow);
}

/* Card Content - LEFT SIDE (2/3) */
.menu-product-card__content {
    flex: 2;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    min-width: 0;
    order: 1;
}

.menu-product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-product-card__description {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.menu-product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.menu-product-card__price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #212529;
}

.menu-product-card__price-from {
    font-size: 0.625rem;
    font-weight: 400;
    color: #6c757d;
    text-transform: uppercase;
    margin-right: 0.25rem;
}

.menu-product-card__availability {
    font-size: 0.625rem;
    color: #6c757d;
}

/* Featured Badge in Title */
.menu-product-card__featured {
    display: inline-flex;
    align-items: center;
    margin-left: 0.375rem;
    color: #ffc107;
    font-size: 0.75rem;
}

/* Card Image - RIGHT SIDE (1/3) */
.menu-product-card__image {
    position: relative;
    flex: 1;
    min-width: 6rem;
    max-width: 8rem;
    background: #f8f9fa;
    overflow: hidden;
    order: 2;
}

.menu-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--menu-transition-normal);
}

.menu-product-card:hover .menu-product-card__image img {
    transform: scale(1.05);
}

.menu-product-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #adb5bd;
    font-size: 1.5rem;
}

/* Quick Add Button on Image */
.menu-product-card__quick-add {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.2);
    color: var(--menu-primary);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--menu-transition-fast);
    z-index: 2;
}

.menu-product-card__quick-add:hover {
    background: var(--menu-primary);
    color: #fff;
    transform: scale(1.1);
}

.menu-product-card__quick-add.added {
    background: var(--menu-success);
    color: #fff;
}

.menu-product-card__quick-add .bi-check {
    display: none;
}

.menu-product-card__quick-add.added .bi-plus {
    display: none;
}

.menu-product-card__quick-add.added .bi-check {
    display: block;
}

.menu-product-card.unavailable .menu-product-card__quick-add {
    display: none;
}

/* Offer Badges */
.menu-product-card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.1875rem 0.375rem;
    background: var(--menu-danger);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.1875rem;
    z-index: 2;
}

/* ============================================
   CATEGORY SECTION HEADERS
   ============================================ */
.menu-category-section {
    scroll-margin-top: 8rem;
    margin-bottom: 1.5rem;
}

.menu-category-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    /* display: inline-block; */
}

.menu-category-header.featured {
    color: #856404;
    border-color: #ffc107;
}

.menu-category-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* ============================================
   PRODUCT DETAIL MODAL - DESKTOP
   ============================================ */
.product-modal .modal-dialog {
    max-width: 64rem;
    margin: 1.75rem auto;
}

.product-modal .modal-content {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.product-modal .modal-body {
    padding: 0;
    display: flex;
    min-height: 32rem;
    max-height: calc(100vh - 5rem);
}

/* Modal Image Side */
.product-modal__image {
    width: 50%;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal__image-placeholder {
    font-size: 5rem;
    color: #adb5bd;
}

/* Modal Content Side */
.product-modal__content {
    width: 50%;
    display: flex;
    flex-direction: column;
    /* max-height: calc(100vh - 5rem); */
}

.product-modal__header {
    padding: 1.25rem 1.25rem 0;
    flex-shrink: 0;
}

.product-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background var(--menu-transition-fast);
}

.product-modal__close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.product-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    padding-right: 2rem;
}

.product-modal__description {
    font-size: 0.9375rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-modal__description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-modal__read-more {
    color: var(--menu-primary);
    cursor: pointer;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-modal__read-more:hover {
    text-decoration: underline;
}

/* Allergens */
.product-modal__allergens {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--menu-gray-200);
}

.product-modal__allergens .allergens-label {
    font-size: 0.75rem;
    color: var(--menu-secondary);
    margin-right: 0.25rem;
}

.product-modal__allergen {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: #fff3cd;
    color: #664d03;
    border-radius: 0.3rem;
}

/* Scrollable Options Area */
.product-modal__options {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

.product-modal__options::-webkit-scrollbar {
    width: 0.375rem;
}

.product-modal__options::-webkit-scrollbar-track {
    background: transparent;
}

.product-modal__options::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 0.1875rem;
}

/* Modal Footer */
.product-modal__footer {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}

.child-view-footer {
    position: sticky;
    bottom: 0;
    background: var(--bs-modal-bg, #fff);
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    z-index: 10;
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.quantity-selector__btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #495057;
    cursor: pointer;
    transition: background var(--menu-transition-fast);
}

.quantity-selector__btn:hover {
    background: #e9ecef;
}

.quantity-selector__btn:disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

.quantity-selector__value {
    width: 3rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

/* Add to Cart Button - Split Design */
.product-modal__add-btn {
    flex: 1;
    max-width: 18rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
}

.product-modal__add-btn-text {
    flex: 2;
    padding: 0 1rem;
    text-align: center;
}

.product-modal__add-btn-divider {
    width: 1px;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
}

.product-modal__add-btn-price {
    flex: 1;
    padding: 0 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

/* Mobile: Plus icon instead of text */
.product-modal__add-btn-icon {
    display: none;
}

/* ============================================
   PRODUCT DETAIL MODAL - MOBILE (BOTTOM SHEET)
   ============================================ */
@media (max-width: 767.98px) {
    .product-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;
    }

    .product-modal .modal-content {
        border-radius: 1rem 1rem 0 0;
        max-height: 90vh;
    }

    .product-modal .modal-body {
        flex-direction: column;
        min-height: auto;
        max-height: none;
    }

    .product-modal__image {
        width: 100%;
        height: 12.5rem;
        flex-shrink: 0;
    }

    .product-modal__content {
        width: 100%;
        max-height: calc(90vh - 12.5rem);
    }

    .product-modal__title {
        font-size: 1.25rem;
    }

    .product-modal__footer {
        flex-direction: row;
        gap: 0.75rem;
    }

    .product-modal__add-btn {
        flex: 1;
        max-width: none;
    }
    
    .product-modal__add-btn-text {
        padding: 0.875rem 0.75rem;
    }
    
    .product-modal__add-btn-price {
        padding: 0.875rem 0.75rem;
    }

    /* Bottom sheet animation */
    .product-modal.modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform var(--menu-transition-slow);
    }

    .product-modal.modal.show .modal-dialog {
        transform: translateY(0);
    }

    .product-modal__add-btn-text {
        display: none;
    }
    .product-modal__add-btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.75rem;
        font-size: 1.25rem;
    }
}

/* ============================================
   OPTION GROUPS IN MODAL
   ============================================ */
.option-group {
    margin-bottom: 1.25rem;
}

.option-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.option-group__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.option-group__title.has-error {
    color: var(--menu-danger);
}

.option-group__badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: #e9ecef;
    color: #6c757d;
}

.option-group__badge.required {
    background: #cfe2ff;
    color: #084298;
}

.option-group__badge.has-error {
    background: #f8d7da;
    color: var(--menu-danger);
}

.option-group__hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Option Buttons */
.option-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* @media (min-width: 576px) {
    .option-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
} */

.option-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all var(--menu-transition-fast);
    width: 100%;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    height: 2.25rem;
}

.option-btn__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.option-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.option-btn.selected {
    background: var(--menu-primary);
    border-color: var(--menu-primary);
    color: #fff;
}

.option-btn__price {
    font-size: 0.75rem;
    opacity: 0.8;
}

.option-btn.selected .option-btn__price {
    opacity: 1;
}

/* Option button badges */
.option-btn__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background: var(--menu-success);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

/* Option button quantity - corner badge style */
.option-btn__qty {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    background: var(--menu-danger);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Option button wrapper for multi-select with decrement */
.option-btn-wrapper {
    display: flex;
    width: 100%;
    min-width: 0;
    position: relative;
    height: 2.25rem;
}

.option-btn-wrapper .option-btn {
    flex: 1;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.option-btn-minus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2.25rem;
    flex-shrink: 0;
    background: var(--menu-danger);
    color: #fff;
    border: none;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--menu-transition-fast);
}

.option-btn-minus:hover {
    background: #c82333;
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes checkmark-pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.menu-product-card__quick-add.added {
    animation: checkmark-pop 0.3s ease;
}
/* ============================================
   MOBILE CART BAR
   ============================================ */
.mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

/* ============================================
   MOBILE OFFCANVAS ADJUSTMENTS
   ============================================ */
.offcanvas-footer {
    position: sticky;
    bottom: 0;
    background: #f8f9fa;
}

/* ============================================
   CART QUANTITY SELECTOR
   ============================================ */
.cart-qty-selector {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.cart-qty-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1rem;
    color: #495057;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.cart-qty-btn:hover {
    background: #e9ecef;
}

.cart-qty-btn.qty-trash {
    color: var(--menu-danger, #dc3545);
}

.cart-qty-btn.qty-trash:hover {
    background: #f8d7da;
}

.cart-qty-value {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0 0.25rem;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}
