/* Menu Page Styles - Based on ZenFood Reference */

/* ========================================
   Font Override — Inter
   ======================================== */
.menu-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   Layout Structure
   ======================================== */
.menu-page {
    background: #f5f5f5;
    padding-top: 70px; /* Space for fixed header */
    overflow-x: hidden;
}

/* Header FIXED at top - always visible */
.menu-page .header,
.menu-page header.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-left: 256px; /* Space for fixed sidebar */
    margin-right: 400px; /* Space for fixed cart */
}

/* ========================================
   Left Sidebar (256px, FIXED - no scroll)
   ======================================== */
.menu-sidebar {
    width: 256px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    height: calc(100vh - 70px);
    position: fixed;
    left: 0;
    top: 70px; /* Start below fixed header */
    padding: 20px 16px;
    overflow: hidden; /* No scrolling! */
    z-index: 90;
}

.menu-sidebar .sidebar-heading {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hot Deals Button */
.hot-deals-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.hot-deals-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: #fff;
    text-decoration: none;
}

.hot-deals-btn i:first-child {
    margin-right: 10px;
    color: #fcd34d;
}

.hot-deals-btn i:last-child {
    margin-left: auto;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-bottom: 20px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    margin-bottom: 4px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar-nav ul li a:hover {
    background: #f3f4f6;
    color: #111827;
}

.sidebar-nav ul li.active a {
    background: #FF4900;
    color: #fff;
}

.sidebar-nav ul li.active a:hover {
    background: #e04000;
    color: #fff;
}

.sidebar-nav ul li a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    text-align: center;
}

/* Opening Hours */
.sidebar-hours {
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 16px;
}

.sidebar-hours .sidebar-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sidebar-hours .sidebar-heading i {
    font-size: 1rem;
    color: #6b7280;
}

.status-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: lowercase;
    margin-left: auto;
}

.status-badge.open {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.closed {
    background: #fee2e2;
    color: #dc2626;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 6px;
    color: #4b5563;
}

.hours-list li.today {
    background: #ecfdf5;
    border-radius: 4px;
    font-weight: 600;
    color: #065f46;
}

/* Contact Info */
.sidebar-contact {
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.85rem;
    color: #6b7280;
}

.sidebar-contact .sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.sidebar-contact p {
    margin: 4px 0;
}

.sidebar-contact i {
    margin-right: 6px;
    color: #FF4900;
}

/* ========================================
   Main Content Area (flexible width)
   ======================================== */
.menu-main-content {
    flex: 1;
    min-width: 0;
    padding: 74px 20px 40px 20px; /* Top padding for fixed category slider */
}

/* ========================================
   Category Slider (FIXED between sidebars)
   ======================================== */
.category-tabs-horizontal {
    position: fixed;
    top: 70px; /* Below fixed header */
    left: 256px; /* Right edge of left sidebar */
    right: 400px; /* Left edge of cart sidebar */
    z-index: 95;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    height: 80px; /* Fixed height */
}

.category-tabs-horizontal .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 40px; /* Space for arrows */
    gap: 0;
    height: 100%;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x; /* Allow horizontal scrolling on mobile */
}

.category-tabs-horizontal .nav::-webkit-scrollbar {
    display: none;
}

.category-tabs-horizontal .nav-item {
    flex-shrink: 0;
}

.category-tabs-horizontal .nav-link {
    display: inline-block;
    padding: 16px 20px;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(249, 115, 22, 0.2);
}

.category-tabs-horizontal .nav-link:hover {
    color: #111827;
}

.category-tabs-horizontal .nav-link.active {
    color: #f97316;
    border-bottom-color: #f97316;
}

/* Scroll Arrows */
.category-slider-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.2s;
}

.category-slider-arrow.left {
    left: 0;
}

.category-slider-arrow.right {
    right: 0;
}

.category-slider-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.category-slider-arrow i {
    color: #9ca3af;
    font-size: 1rem;
}

.category-slider-arrow:hover i {
    color: #111827;
}

/* Gradient fade */
.category-slider-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
}

.category-slider-arrow.left::after {
    right: -20px;
    background: linear-gradient(to right, #fff, transparent);
}

.category-slider-arrow.right::after {
    left: -20px;
    background: linear-gradient(to left, #fff, transparent);
}

/* ========================================
   Menu Banner
   ======================================== */
.menu-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.menu-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.banner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 10;
}

.banner-badge small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ========================================
   Search Box
   ======================================== */
.menu-search-bar {
    padding: 12px 0;
}

.menu-search-inner {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s ease;
}

.menu-search-inner:focus-within {
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.menu-search-inner > i.fa-search {
    color: #9ca3af;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.menu-search-inner:focus-within > i.fa-search {
    color: #f97316;
}

.menu-search-inner input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 12px;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
}

.menu-search-inner input::placeholder {
    color: #9ca3af;
}

.menu-search-clear {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.menu-search-clear:hover {
    background: #fee2e2;
    color: #ef4444;
}

.menu-search-count {
    font-size: 0.82rem;
    color: #6b7280;
    padding: 4px 0 0;
}

/* Legacy search */
.menu-content-area .menu-search {
    margin-bottom: 20px;
}

.menu-content-area .menu-search .form-control {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    background: #fff;
}

.menu-content-area .menu-search .form-control:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ========================================
   Menu Content Area
   ======================================== */
.menu-content-area {
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 20px;
}

/* Menu Groups - Override inline styles */
.menu-group {
    display: block !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

.menu-group-item {
    margin-bottom: 32px !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Category Title - ZenFood style with left border */
.menu-content-area h3.menu-category-title,
.menu-category-title,
h3.menu-category-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    background: transparent !important;
    margin: 0 0 16px 0 !important;
    padding: 8px 0 8px 16px !important;
    border-left: 4px solid #f97316 !important;
    border-radius: 0 !important;
    text-align: left !important;
    position: relative !important;
}

/* Remove star pseudo-elements */
.menu-category-title::before,
.menu-category-title::after,
h3.menu-category-title::before,
h3.menu-category-title::after {
    display: none !important;
    content: none !important;
}

/* Category Title (JS-generated h4.category-title) */
h4.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 12px 0;
    margin: 32px 0 16px 0;
    border: none;
    border-bottom: 2px solid #f97316;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.01em;
}

.menu-group-item:first-child h4.category-title {
    margin-top: 0;
}

h4.category-title:hover {
    color: #f97316;
}

h4.category-title .category-title-text {
    flex: 1;
}

h4.category-title .category-item-count {
    background: #fff7ed;
    color: #ea580c;
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #fed7aa;
}

h4.category-title .fa-chevron-down {
    color: #d1d5db;
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h4.category-title:hover .fa-chevron-down {
    color: #f97316;
}

h4.category-title.collapsed {
    border-bottom-color: #e5e7eb;
    color: #6b7280;
    margin-bottom: 8px;
}

h4.category-title.collapsed:hover {
    color: #f97316;
    border-bottom-color: #fdba74;
}

h4.category-title.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

h4.category-title.collapsed .category-item-count {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}

/* Category Section */
.menu-category {
    padding: 0 0 16px 0 !important;
}

/* Category Description */
.menu-category-description {
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
    padding-left: 20px !important;
}

/* Hide category images */
.menu-category .image {
    display: none;
}

/* Menu Items Grid - 2 columns */
.menu-content-area .menu-items,
.menu-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

/* Individual Menu Item - ZenFood card style */
.menu-content-area .menu-item,
.menu-item,
div.menu-item {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.menu-content-area .menu-item:hover,
.menu-item:hover,
div.menu-item:hover {
    border-color: #e5e5e5 !important;
    box-shadow: none !important;
    transform: none !important;
}

.menu-item:active,
div.menu-item:active {
    transform: none !important;
}

/* Menu Item Flex Layout */
.menu-item > .d-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
}

/* Menu Item Image */
.menu-item .menu-item-image {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    border-radius: 8px !important;
    margin-right: 12px !important;
}

/* Menu Item Content */
.menu-content-area .menu-item .menu-content,
.menu-item .menu-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Product Name - ZenFood style */
.menu-item .product-name,
.menu-item p.product-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
}

/* Menu Item Name */
.menu-item .menu-name,
.menu-item h6.menu-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Popular Badge */
.badge-popular {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Menu Description - ZenFood style with line clamp */
.menu-content-area .menu-item .menu-desc,
.menu-item .menu-desc,
.menu-item p.menu-desc {
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Menu Price - Orange ZenFood style */
.menu-content-area .menu-item .menu-price,
.menu-item .menu-price,
.menu-item div.menu-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #f97316 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: auto !important;
    white-space: nowrap !important;
}

.menu-item .menu-price s {
    color: #9ca3af !important;
    font-size: 0.9rem !important;
    margin-right: 8px !important;
}

.menu-item .menu-price b {
    font-weight: 700 !important;
}

/* Menu Button Container */
.menu-item .menu-button {
    display: flex !important;
    align-items: center !important;
    margin-left: 12px !important;
}

/* Add to Cart Button - Round Orange Circle */
.menu-content-area .menu-item .btn-cart,
.menu-item .btn-cart,
.menu-item .menu-button .btn-cart,
.menu-item button.btn-cart {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f97316 !important;
    border: none !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3) !important;
}

.menu-item .btn-cart:hover,
.menu-item button.btn-cart:hover {
    background: #ea580c !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
}

.menu-item .btn-cart i {
    margin: 0 !important;
}

/* Allergens - subtle styling */
.menu-item .allergens {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f3f4f6 !important;
}

.menu-item .allergen {
    font-size: 0.75rem !important;
    padding: 2px 6px !important;
    background: #f9fafb !important;
    border-radius: 4px !important;
    margin-right: 4px !important;
    margin-bottom: 4px !important;
    color: #6b7280 !important;
}

/* Hide the "10% Rabatt" badge - shown differently */
.menu-item .menu-meta {
    display: none !important;
}

/* Badge for special items */
.menu-item .badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

/* ========================================
   Cart Sidebar (400px, FIXED right)
   ======================================== */
.cart-sidebar {
    width: 400px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    height: calc(100vh - 70px);
    position: fixed;
    right: 0;
    top: 70px; /* Start below fixed header */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 90;
}

/* Hide TastyIgniter's default cart box styling */
.cart-sidebar .panel,
.cart-sidebar .card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    margin: 0;
}

.cart-sidebar .panel-heading,
.cart-sidebar .card-header {
    background: transparent;
    border: none;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-sidebar .panel-title,
.cart-sidebar .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.cart-sidebar .panel-body,
.cart-sidebar .card-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Cart Items */
.cart-sidebar .cart-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-sidebar .cart-item:last-child {
    border-bottom: none;
}

/* Cart Total */
.cart-sidebar .cart-total {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #f9fafb;
}

/* Discount Code */
.cart-sidebar .discount-section {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
}

.cart-sidebar .discount-input {
    display: flex;
    gap: 8px;
}

.cart-sidebar .discount-input input {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.cart-sidebar .discount-input button {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Cart Buttons */
.cart-sidebar .btn-primary,
.cart-sidebar .btn-cart {
    background: #f97316;
    border-color: #f97316;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 600;
    width: 100%;
    font-size: 0.95rem;
}

.cart-sidebar .btn-primary:hover,
.cart-sidebar .btn-cart:hover {
    background: #ea580c;
    border-color: #ea580c;
}

.cart-sidebar .btn-primary:disabled {
    background: #d1d5db;
    border-color: #d1d5db;
    color: #6b7280;
}

/* Minimum order warning */
.cart-sidebar .alert-warning,
.cart-sidebar .alert-danger {
    background: #f97316;
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    text-align: center;
    font-weight: 500;
    margin: 16px 20px;
}

/* Empty cart */
.cart-sidebar .empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.cart-sidebar .empty-cart i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

/* Local box in cart */
.cart-sidebar .local-box-fluid,
.cart-sidebar .local-box {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-sidebar .btn-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.cart-sidebar .btn-group .btn {
    flex: 1;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #374151;
}

.cart-sidebar .btn-group .btn.active,
.cart-sidebar .btn-group .btn:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1400px) {
    .menu-sidebar {
        width: 220px;
    }

    .menu-layout {
        margin-left: 220px;
        margin-right: 350px;
    }

    .cart-sidebar {
        width: 350px;
    }

    .category-tabs-horizontal {
        left: 220px;
        right: 350px;
    }
}

@media (max-width: 1200px) {
    .menu-sidebar {
        width: 200px;
    }

    .menu-layout {
        margin-left: 200px;
        margin-right: 320px;
    }

    .cart-sidebar {
        width: 320px;
    }

    .category-tabs-horizontal {
        left: 200px;
        right: 320px;
    }

    .menu-content-area .menu-items,
    .menu-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {
    .menu-content-area .menu-items,
    .menu-items {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .menu-page {
        padding-top: 60px;
        overflow-x: hidden;
    }

    .menu-page body,
    .menu-page .menu-layout,
    .menu-page .menu-main-content,
    .menu-page .menu-content-area {
        overflow-x: hidden;
    }

    .menu-layout {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }

    .menu-sidebar,
    .cart-sidebar {
        display: none !important;
    }

    .category-tabs-horizontal {
        left: 0;
        right: 0;
        top: 60px;
    }

    .menu-main-content {
        padding: 70px 16px 16px 16px;
        width: 100%;
        max-width: 100vw;
    }

    .menu-content-area .menu-items,
    .menu-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .menu-banner {
        margin-top: 10px;
        position: relative;
        z-index: 1;
    }

    .menu-banner img {
        height: 100px;
        object-position: center;
    }

    .banner-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    .banner-badge small {
        font-size: 0.5rem;
    }

    .category-tabs-horizontal .nav-link {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .menu-content-area .menu-items,
    .menu-items {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .menu-item .product-name,
    .menu-item p.product-name {
        font-size: 0.95rem !important;
    }

    .menu-item .menu-price,
    .menu-item div.menu-price {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .menu-main-content {
        padding: 80px 12px 12px 12px;
    }

    .menu-content-area {
        padding: 12px;
        border-radius: 0;
    }

    .menu-banner {
        height: 100px;
        margin-bottom: 12px;
    }

    .menu-banner img {
        height: 100px;
    }

    .category-tabs-horizontal {
        border-radius: 0;
        margin: 0 -12px 16px;
    }

    .menu-banner {
        border-radius: 12px;
        margin: 0 0 16px;
    }

    .menu-content-area .menu-item,
    .menu-item,
    div.menu-item {
        padding: 12px !important;
    }

    .menu-item .btn-cart,
    .menu-item button.btn-cart {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    h3.menu-category-title,
    .menu-category-title {
        font-size: 1.1rem !important;
        padding: 6px 0 6px 12px !important;
    }

    h4.category-title {
        font-size: 1.05rem;
        margin: 24px 0 12px 0;
        padding: 0 0 10px 0;
    }
}

/* ========================================
   Override existing TastyIgniter styles
   ======================================== */
.menu-page .panel {
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.menu-page .affix-categories {
    display: none;
}

/* Menu list should not use grid by default */
.menu-content-area .menu-list {
    display: block;
}

/* Hide pagination */
.menu-content-area .pagination-bar,
.menu-list .pagination-bar,
.pagination-bar {
    display: none !important;
}

/* ========================================
   Item Modal - ZenFood Style (Centered)
   ======================================== */
.modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-dialog,
.modal-dialog-centered {
    max-width: 500px !important;
    width: 100% !important;
    margin: auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}

.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
}

/* Modal Header/Image */
.modal-top img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Modal Body */
.modal-body {
    padding: 24px !important;
    position: relative;
}

.modal-body .close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.7) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: #fff !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    padding: 0 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
}

.modal-body .close:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

/* Modal Product Name */
.modal-body h4 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 8px 0 !important;
    padding-right: 40px;
}

/* Modal Price - Display prominently in orange */
.modal-body .modal-price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #f97316 !important;
    margin: 0 0 12px 0 !important;
}

/* Modal Description */
.modal-body .modal-description,
.modal-body p.text-muted {
    font-size: 0.95rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

/* Extras Header */
.modal-body .options-header {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 16px 0 12px 0 !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* Option Title */
.modal-body .option-details {
    margin-bottom: 8px;
}

.modal-body .option-details .option-name,
.modal-body .option-details h5,
.modal-body .option-details h6 {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.modal-body .option-details .required-badge {
    font-size: 0.7rem !important;
    color: #dc2626 !important;
    font-weight: 500 !important;
}

.modal-body .option-details .option-summary {
    font-size: 0.8rem !important;
    color: #9ca3af !important;
}

.modal-body .option-details h5 .text-muted {
    font-size: 0.8rem !important;
    color: #9ca3af !important;
}

/* Option Group - Container for toppings */
.modal-body .option-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

/* Menu Option container */
.modal-body .menu-option {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.modal-body .menu-option:last-child {
    margin-bottom: 0 !important;
}

.modal-body .menu-option .option {
    display: block !important;
    width: 100% !important;
}

/* Topping Item - ZenFood Style Card */
.modal-body .topping-item {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
}

.modal-body .topping-item:hover {
    border-color: #d1d5db !important;
    background: #f9fafb !important;
}

/* Topping Label - flex container */
.modal-body .topping-label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* Topping Left Side - checkbox + name */
.modal-body .topping-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Checkbox and Radio styling */
.modal-body .topping-checkbox,
.modal-body .topping-radio {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #f97316 !important;
    flex-shrink: 0 !important;
}

/* Topping Name */
.modal-body .topping-name {
    font-size: 0.95rem !important;
    color: #111827 !important;
    font-weight: 400 !important;
}

/* Topping Price */
.modal-body .topping-price {
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Menu Options Container */
.modal-body .menu-options {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

/* Comment Textarea - comes AFTER options */
.modal-body .menu-comment {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e7eb !important;
}

.modal-body .menu-comment textarea {
    width: 100% !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    resize: none !important;
    display: block !important;
    position: static !important;
}

.modal-body .menu-comment textarea:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
    outline: none;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 24px !important;
    border-top: 1px solid #f3f4f6 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Quantity Section Container */
.modal-footer .quantity-section {
    text-align: center;
}

.modal-footer .quantity-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

/* Quantity Section - ZenFood Style */
.modal-footer .input-group[data-cart-toggle="quantity"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
    margin: 0 auto !important;
}

.modal-footer .input-group-prepend,
.modal-footer .input-group-append {
    display: flex !important;
}

.modal-footer .input-group .btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    border: none !important;
    color: #374151 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s !important;
}

.modal-footer .input-group .btn:hover {
    background: #e5e7eb !important;
}

/* Plus button - Orange like ZenFood */
.modal-footer .input-group-append .btn {
    background: #f97316 !important;
    color: #fff !important;
}

.modal-footer .input-group-append .btn:hover {
    background: #ea580c !important;
}

.modal-footer .input-group .form-control {
    width: 60px !important;
    height: 48px !important;
    text-align: center !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    border: none !important;
    background: transparent !important;
    color: #111827 !important;
    -moz-appearance: textfield;
}

.modal-footer .input-group .form-control::-webkit-outer-spin-button,
.modal-footer .input-group .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button - Full width orange */
.modal-footer .btn-primary,
.modal-footer button[type="submit"] {
    width: 100% !important;
    padding: 16px 24px !important;
    background: #f97316 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: background 0.2s !important;
}

.modal-footer .btn-primary:hover,
.modal-footer button[type="submit"]:hover {
    background: #ea580c !important;
}

.modal-footer .btn-primary .pull-right,
.modal-footer button[type="submit"] .pull-right,
.modal-footer [data-item-subtotal] {
    font-weight: 700 !important;
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

/* Modal scrolling */
.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modal responsive */
@media (max-width: 576px) {
    .modal-dialog,
    .modal-dialog-centered {
        max-width: 100% !important;
        margin: 0 !important;
        height: 100% !important;
        min-height: 100% !important;
    }

    .modal-content {
        border-radius: 0 !important;
        height: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 60px !important;
    }

    .modal-body .close {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 99999 !important;
    }

    .modal-footer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: #fff;
    }

    .modal-footer .input-group .btn {
        width: 44px !important;
        height: 44px !important;
    }

    .modal-footer .input-group .form-control {
        width: 50px !important;
        height: 44px !important;
    }

    /* Ensure backdrop is clickable */
    .modal-backdrop {
        z-index: 1040 !important;
    }

    .modal {
        z-index: 1050 !important;
    }
}

/* Mobile cart button */
.mobile-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.mobile-cart-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
    font-size: 1.5rem;
    position: relative;
}

.mobile-cart-btn .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix: Scroll offset for category sections - Title should be visible below fixed header */
section[id^="id"] {
    scroll-margin-top: 170px !important;
}

/* Alternative selector for menu categories */
.menu-category[id],
[class*="menu-category"][id] {
    scroll-margin-top: 170px !important;
}

/* Fix: Mobile Modal Scrolling */
@media (max-width: 576px) {
    .modal-content {
        overflow: visible !important;
        max-height: 100vh !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .modal-dialog-centered {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .modal-body {
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
    }
}

/* Fix: Hide fixed cart button when modal is open on mobile */
@media (max-width: 576px) {
    body.modal-open .fixed-bottom,
    .modal.show ~ .fixed-bottom,
    .modal-open .fixed-bottom {
        display: none !important;
    }
    
    /* Add bottom padding to modal footer for spacing */
    .modal-footer {
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
    }
}

/* Mobile Order Type Button in Header */
.mobile-order-type {
    margin-right: 10px;
}

.btn-order-type {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-order-type i.fa-store,
.btn-order-type i.fa-motorcycle {
    color: #f97316;
}

.btn-order-type:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ========================================
   Cart Sidebar — UI/UX Improvements
   ======================================== */

/* ── Cart Container ── */
.cart-sidebar {
    background: #fff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -4px 0 24px rgba(0,0,0,0.06);
}

/* ── Cart Header (pseudo element) ── */
.cart-sidebar .panel-body {
    padding: 0 !important;
    overflow: visible;
}

.cart-sidebar .panel-body::before {
    content: 'Warenkorb';
    display: block;
    padding: 20px 22px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    letter-spacing: 0;
}

/* ── Timeslot Section ── */
.cart-sidebar .local-timeslot {
    padding: 16px 22px !important;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.cart-sidebar .btn-timepicker {
    background: #f3f3f3 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-size: 0.85rem !important;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    width: 100%;
}

.cart-sidebar .btn-timepicker:hover {
    border-color: #ccc !important;
    background: #eee !important;
}

.cart-sidebar .btn-timepicker b {
    font-weight: 700;
    color: #333;
    letter-spacing: 0.03em;
}

.cart-sidebar .btn-timepicker i {
    color: #f97316;
    font-size: 0.95rem;
}

/* ── Order Type Toggle ── */
.cart-sidebar .local-control {
    padding: 14px 22px 18px !important;
    margin-top: 0 !important;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.cart-sidebar .btn-group-toggle,
.cart-sidebar .local-control .btn-group {
    gap: 8px !important;
    border: none !important;
    border-radius: 0 !important;
}

.cart-sidebar .btn-group-toggle .btn,
.cart-sidebar .local-control .btn-group .btn {
    border-radius: 10px !important;
    padding: 11px 8px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    border: 1.5px solid #e0e0e0 !important;
    background: #fff !important;
    color: #666 !important;
    transition: all 0.2s ease !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}

.cart-sidebar .btn-group-toggle .btn.active,
.cart-sidebar .local-control .btn-group .btn.active {
    background: #f97316 !important;
    border-color: #f97316 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(249,115,22,0.2) !important;
    font-weight: 600 !important;
}

.cart-sidebar .btn-group-toggle .btn:not(.active):hover,
.cart-sidebar .local-control .btn-group .btn:not(.active):hover {
    border-color: #f97316 !important;
    color: #f97316 !important;
    background: #fff7ed !important;
}

.cart-sidebar .btn-group-toggle .btn.active .small,
.cart-sidebar .btn-group-toggle .btn.active span {
    color: rgba(255,255,255,0.8) !important;
}

/* Min order text */
.cart-sidebar .local-control > p.text-muted {
    font-size: 0.85rem !important;
    color: #999 !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    text-align: center;
}

/* ── Cart Items Area ── */
.cart-sidebar .module-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-sidebar #cart-items {
    flex: 1;
    overflow-y: auto;
}

/* ── Empty Cart State ── */
.cart-sidebar .cart-empty-state {
    padding: 48px 24px;
    text-align: center;
}

.cart-sidebar .cart-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-sidebar .cart-empty-icon i {
    font-size: 1.6rem;
    color: #f97316;
}

.cart-sidebar .cart-empty-state h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

.cart-sidebar .cart-empty-state p {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 0;
}

/* Legacy empty state (fallback) */
.cart-sidebar #cart-items > .panel-body.text-center,
.cart-sidebar #cart-items .panel-body.text-center {
    padding: 50px 22px !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.cart-sidebar #cart-items .panel-body.text-center::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border: 2px solid #ddd;
    border-radius: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px;
}

.cart-sidebar #cart-items .panel-body.text-center p {
    color: #aaa !important;
    font-size: 0.88rem !important;
    margin: 0 !important;
}

/* ── Cart Items List (when items present) ── */
.cart-sidebar .cart-items {
    padding: 4px 0;
}

.cart-sidebar .cart-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-sidebar .cart-items ul li {
    padding: 12px 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.cart-sidebar .cart-items ul li:hover {
    background: #f9fafb;
}

.cart-sidebar .cart-items ul li:last-child {
    border-bottom: none;
}

/* Remove button */
.cart-sidebar .cart-items .cart-btn,
.cart-sidebar .cart-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    border: none !important;
    color: #bbb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.6rem !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0;
}

.cart-sidebar .cart-items .cart-btn:hover,
.cart-sidebar .cart-btn:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

/* Item name */
.cart-sidebar .cart-items .name-image {
    flex: 1;
    min-width: 0;
    text-decoration: none !important;
}

.cart-sidebar .cart-items .name {
    font-size: 0.92rem;
    font-weight: 500;
    color: #333;
    display: block;
    line-height: 1.3;
}

.cart-sidebar .cart-items .name .quantity {
    color: #f97316;
    font-weight: 700;
}

.cart-sidebar .cart-items .comment {
    font-size: 0.82rem !important;
    color: #aaa !important;
    font-style: italic;
    margin: 2px 0 0 !important;
}

/* Item price */
.cart-sidebar .cart-items .price {
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 8px;
}

.cart-sidebar .cart-items .price s {
    color: #ccc;
    font-size: 0.82rem;
    font-weight: 400;
}

/* ── Coupon Form ── */
.cart-sidebar #cart-coupon {
    border-top: 1px solid #e5e7eb;
}

.cart-sidebar .cart-coupon {
    padding: 14px 22px;
}

.cart-sidebar .cart-coupon .input-group {
    display: flex !important;
    gap: 8px;
    border: none !important;
    box-shadow: none !important;
}

.cart-sidebar .cart-coupon .form-control {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
}

.cart-sidebar .cart-coupon .form-control:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1) !important;
    outline: none !important;
}

.cart-sidebar .cart-coupon .btn {
    border-radius: 8px !important;
    background: #22c55e !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.cart-sidebar .cart-coupon .btn:hover {
    background: #16a34a !important;
}

/* ── Totals ── */
.cart-sidebar .cart-total,
.cart-sidebar #cart-totals .cart-total {
    padding: 0 !important;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0 !important;
}

.cart-sidebar .cart-total .table {
    margin: 0;
    font-size: 0.92rem;
}

.cart-sidebar .cart-total .table td {
    padding: 8px 22px;
    border: none;
    color: #6b7280;
}

.cart-sidebar .cart-total .table td.text-right {
    color: #374151;
}

.cart-sidebar .cart-total .table tr:last-child td {
    padding-top: 12px;
    padding-bottom: 14px;
    border-top: 1.5px solid #e5e7eb;
    color: #111827;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
}

/* ── Checkout / CLOSED Button ── */
.cart-sidebar #cart-buttons {
    padding: 16px 22px !important;
    margin-top: 0 !important;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.cart-sidebar .checkout-btn,
.cart-sidebar #cart-buttons .btn-primary {
    background: #f97316 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-weight: 700 !important;
    width: 100% !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 12px rgba(249,115,22,0.2) !important;
    color: #fff !important;
    letter-spacing: 0.01em !important;
}

.cart-sidebar .checkout-btn:hover,
.cart-sidebar #cart-buttons .btn-primary:hover {
    background: #ea580c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 20px rgba(249,115,22,0.3) !important;
}

.cart-sidebar .checkout-btn.disabled,
.cart-sidebar #cart-buttons .btn-primary.disabled,
.cart-sidebar #cart-buttons .btn-primary:disabled {
    background: #d1d5db !important;
    color: #6b7280 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    cursor: not-allowed;
    opacity: 1 !important;
    border: none !important;
}

/* ── Alerts ── */
.cart-sidebar .alert-warning,
.cart-sidebar .alert-danger {
    background: #fff7ed !important;
    border: 1.5px solid rgba(249,115,22,0.2) !important;
    color: #c2410c !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    margin: 12px 22px !important;
}

/* ── Scrollbar ── */
.cart-sidebar::-webkit-scrollbar { width: 4px; }
.cart-sidebar::-webkit-scrollbar-track { background: transparent; }
.cart-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* ── Mobile Cart Bar ── */
.fixed-bottom .cart-toggle,
.fixed-bottom .cart-toggle.btn-primary {
    background: #f97316 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 16px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 -3px 16px rgba(0,0,0,0.1) !important;
    border-radius: 0 !important;
}

.fixed-bottom .cart-toggle .fw-bold {
    font-weight: 800 !important;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fixed-bottom .cart-toggle {
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }
}
