:root {
    --primary: #00b900;
    --primary-dark: #009900;
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #f3f4f6;
    --red: #ef4444;
    --orange: #d97706;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Be Vietnam Pro", Roboto, "Segoe UI", sans-serif;
    background: var(--bg);
    margin: 0;
    padding-bottom: calc(115px + env(safe-area-inset-bottom, 12px));
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Nav */
.store-header {
    background: #f8fafc;
    color: #1e293b;
    padding: 18px 16px 14px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.store-header-top,
.store-details {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.store-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.store-logo-wrapper {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 14px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.store-info {
    flex-grow: 1;
}

.store-name {
    font-size: 23px;
    font-weight: 900;
    margin: 0 0 3px 0;
    letter-spacing: -0.2px;
    color: #0f172a;
}

.store-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    line-height: 1.35;
}

.store-status {
    background-color: #059669;
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 99px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
    white-space: nowrap;
}

.store-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    align-self: flex-start;
}

.waiting-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #f59e0b;
    font-size: 14px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 99px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.hours-toggle-btn {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid #a7f3d0;
    transition: all 0.15s ease;
}

.hours-toggle-btn:active {
    background: #d1fae5;
    transform: scale(0.97);
}

.hours-arrow-icon {
    transition: transform 0.25s ease;
}

.store-status.closed {
    background-color: #9ca3af;
}

.store-status.busy {
    background-color: #d97706;
}

.store-status.paused {
    background-color: #dc2626;
}

/* Store Status Alert Banners */
.store-alert-banner {
    max-width: 600px;
    width: calc(100% - 28px);
    margin: 14px auto 16px;
    padding: 14px 16px;
    border-radius: 14px;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.store-alert-banner.paused {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.store-alert-banner.busy {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

/* Dining Append Mode Banner */
.append-mode-banner {
    max-width: 600px;
    width: calc(100% - 28px);
    margin: 14px auto 16px;
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.28);
    border: 1.5px solid #a78bfa;
}

.append-mode-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.append-mode-banner strong {
    color: #fef08a;
    font-weight: 900;
}

.store-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14.5px;
    line-height: 22px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #374151;
}

.store-detail-row:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 16px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 0;
}

.detail-svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.time-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Dining Option Switcher (Uber Eats Style - Mobile First) */
.dining-option-wrapper {
    background: #ffffff;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.dining-segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    gap: 6px;
    max-width: 600px;
    margin: 0 auto;
}

.dining-seg-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    min-height: 46px;
    border: 1.5px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.dining-seg-btn .dining-seg-icon,
.dining-seg-btn .dining-seg-svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.dining-seg-btn:active {
    transform: scale(0.97);
}

.dining-seg-btn.active {
    color: #ffffff;
    font-weight: 800;
}

#btn-dining-dinein.active,
#checkout-btn-dinein.active {
    color: #ffffff;
    background: #7c3aed;
    border-color: #7c3aed;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#btn-dining-takeaway.active,
#checkout-btn-takeaway.active {
    color: #ffffff;
    background: var(--primary, #059669);
    border-color: var(--primary, #059669);
    box-shadow: 0 3px 10px rgba(0, 185, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    padding: 8px 14px;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sticky-nav::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .sticky-nav {
        justify-content: center;
    }
}

.nav-btn {
    padding: 7px 14px;
    white-space: nowrap;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 99px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    font-size: 14.5px;
    flex-shrink: 0;
}

.nav-btn.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 185, 0, 0.25);
}

/* Sections */
.container {
    padding: 12px 14px;
    max-width: 600px;
    margin: 0 auto;
}

.section-container {
    scroll-margin-top: 65px;
    margin-bottom: 22px;
}

@keyframes section-flash-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 185, 0, 0);
        background-color: transparent;
    }
    20% {
        box-shadow: 0 0 0 3.5px rgba(0, 185, 0, 0.3), 0 8px 24px rgba(0, 185, 0, 0.12);
        background-color: rgba(0, 185, 0, 0.04);
        border-radius: 16px;
    }
    55% {
        box-shadow: 0 0 0 2px rgba(0, 185, 0, 0.18), 0 4px 12px rgba(0, 185, 0, 0.06);
        background-color: rgba(0, 185, 0, 0.02);
        border-radius: 16px;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 185, 0, 0);
        background-color: transparent;
    }
}

.section-container.section-highlight-flash {
    animation: section-flash-glow 1.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    padding: 6px 8px;
    margin-left: -8px;
    margin-right: -8px;
}

.section-container.section-highlight-flash .section-title {
    color: var(--primary, #00b900);
    transition: color 0.3s ease;
}

.section-title {
    font-size: 19.5px;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4.5px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
}

.checkout-section-title::before {
    display: none !important;
}

.section-title-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Product Card */
.card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.card-main {
    display: flex;
    gap: 12px;
}

.item-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    background: #f8fafc;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 6px;
    padding: 1px 0;
}

.card-main:has(.item-img) .card-info {
    min-height: 88px;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.3;
    color: #0f172a;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.card-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

/* Badge */
.badge {
    color: #fff;
    background-color: #ef4444;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 900;
}

/* Quantity Controls */
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 99px;
    padding: 3px;
}

.btn-qty {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.12s ease, background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    line-height: 1;
}

.btn-qty:active {
    transform: scale(0.92);
    background: #f8fafc;
}

.qty-text {
    font-size: 16px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
    user-select: none;
}

.customize-btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    background: #fff7ed;
    color: #c2410c;
    padding: 7px 10px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #fed7aa;
}

/* Combo drink selector inside card */
.combo-drinks {
    padding: 12px;
    background: #f0fdf4;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px dashed #86efac;
}

.combo-drinks strong {
    font-size: 14px;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

/* Forms */
.input-group {
    background: var(--card);
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.datetime-row {
    display: flex;
    gap: 8px;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
    padding: 11px 13px;
    font-size: 15px;
    box-sizing: border-box;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 6px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 185, 0, 0.1);
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary);
}

/* Customizations Panel (Store-Wide Flavors & Modifiers) */
.custom-panel {
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-size: 15px;
    color: #374151;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.custom-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-label {
    font-weight: 900;
    font-size: 16.5px;
    color: #0f172a;
    margin-bottom: 6px;
}

.custom-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.custom-panel label.radio-label,
.custom-panel label.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    white-space: nowrap;
    user-select: none;
    transition: all 0.15s ease;
}

.custom-panel label.radio-label:has(input:checked),
.custom-panel label.checkbox-label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(0, 185, 0, 0.06);
    color: #065f46;
    font-weight: 700;
}

.flavor-option-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
}

.sub-option-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid var(--primary);
    border-radius: 10px;
    margin-top: 2px;
    width: 100%;
}

.custom-panel label.sub-chip {
    padding: 6px 12px;
    font-size: 13.5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.custom-panel label.sub-chip:has(input:checked) {
    border-color: var(--primary);
    background: rgba(0, 185, 0, 0.08);
    color: #065f46;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    z-index: 100;
    box-sizing: border-box;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease, box-shadow 0.22s ease;
    will-change: transform, opacity;
}

.footer-inner {
    max-width: 600px;
    width: 100%;
    padding: 13px 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 12px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: padding 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scroll collapsing effect */
.footer.scrolling {
    opacity: 0.92;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(2px) scale(0.985);
}

.footer.scrolling .footer-inner {
    padding-top: 8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 8px));
}

.total-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.total-price {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.4px;
    transition: font-size 0.22s ease;
}

.footer.scrolling .total-price {
    font-size: 21px;
}

.footer-cart-icon-wrap {
    transition: transform 0.22s ease;
}

.footer.scrolling .footer-cart-icon-wrap {
    transform: scale(0.88);
}

.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 13px 26px;
    min-height: 50px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 185, 0, 0.38);
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s, box-shadow 0.2s, padding 0.22s ease, font-size 0.22s ease, min-height 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.footer.scrolling .btn-send {
    padding: 9px 20px;
    min-height: 40px;
    font-size: 15px;
}

.btn-send:active {
    transform: scale(0.96);
}

.btn-send:disabled {
    background: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 999;
    animation: fade 0.2s;
}

.popup-box {
    background: white;
    padding: 24px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.close-btn {
    background: #f3f4f6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Custom Alert */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.custom-alert-box {
    background: white;
    width: 85%;
    max-width: 340px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    animation: alertShow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.custom-alert-header {
    padding: 20px;
    font-weight: 900;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    color: #111;
}

.custom-alert-body {
    padding: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    line-height: 1.5;
}

.custom-alert-btn {
    width: 100%;
    padding: 18px;
    border: none;
    background: #fff;
    border-top: 1px solid #eee;
    color: var(--primary);
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes alertShow {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Subtle & Professional BLAB Footer Credit */
.powered-by-blab-link {
    transition: all 0.2s ease;
}

.powered-by-blab-link:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1e293b;
    transform: translateY(-1px);
}

.powered-by-blab-link:active {
    transform: scale(0.98);
}

/* Dynamic Multi-Tenant Modifiers & Options */
.modifier-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
}

.modifier-group-title {
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modifier-required-badge {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 99px;
}

.modifier-optional-badge {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 99px;
}

.modifier-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.modifier-pill {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modifier-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.modifier-pill.active {
    border-color: var(--primary);
    background: #f0fdf4;
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.modifier-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.modifier-checkbox-chip {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 13.5px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.modifier-checkbox-chip.active {
    border-color: var(--primary);
    background: #f0fdf4;
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.modifier-pill.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.modifier-checkbox-chip.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.modifier-oos-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    background: #fee2e2;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

@keyframes pulse-attention {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        border-color: #ef4444;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.25);
        border-color: #dc2626;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        border-color: #ef4444;
    }
}

.attention-pulse {
    animation: pulse-attention 1.2s infinite ease-in-out;
    border: 2px solid #ef4444 !important;
    background: #fff5f5 !important;
}

/* --- Desktop Auth Bar & Login Modal --- */
.desktop-auth-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    border-bottom: 2px solid #06C755;
    padding: 12px 18px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.desktop-auth-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* --- Page Body Preview on Desktop when Guest --- */
.page-body-content {
    position: relative;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.page-body-content.desktop-guest-locked {
    filter: blur(0.5px);
    opacity: 0.95;
    user-select: none;
    pointer-events: none;
}

/* --- Center Auth Overlay & Card --- */
.desktop-center-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.desktop-center-auth-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.18);
    cursor: pointer;
}

.desktop-center-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(6, 199, 85, 0.65);
    border-radius: 24px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(6, 199, 85, 0.25);
    animation: center-card-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f8fafc;
}

@keyframes center-card-pop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.center-auth-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(6, 199, 85, 0.12);
    border: 1.5px solid rgba(6, 199, 85, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
}

.center-auth-title {
    font-size: 20px;
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 10px 0;
    letter-spacing: 0.3px;
    line-height: 1.35;
}

.center-auth-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 26px 0;
}

.btn-center-line-login {
    width: 100%;
    background-color: #06C755;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-center-line-login:hover {
    background-color: #05b04c;
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.55);
}

.btn-center-line-login:active {
    transform: scale(0.98);
}

.lock-badge-btn:active {
    transform: scale(0.98);
}

.desktop-auth-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #06C755;
}

.desktop-user-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.desktop-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-auth-badge {
    font-size: 11px;
    font-weight: 700;
    color: #06C755;
    background: rgba(6, 199, 85, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(6, 199, 85, 0.3);
}

.desktop-auth-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.desktop-auth-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
}

.btn-line-login {
    background-color: #06C755;
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.btn-line-login:hover {
    background-color: #05b04c;
}

.btn-line-login:active {
    transform: scale(0.98);
}

.line-btn-svg {
    flex-shrink: 0;
}

/* Modal */
.desktop-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.desktop-login-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.desktop-login-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    text-align: center;
    z-index: 1;
    animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.desktop-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.desktop-login-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.desktop-login-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.desktop-login-close:hover {
    color: #334155;
}

.desktop-login-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.btn-line-login-full {
    width: 100%;
    background-color: #06C755;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.25);
}

.btn-line-login-full:hover {
    background-color: #05b04c;
}

.btn-line-login-full:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Skeleton Shimmer Loading Engine (Ultra-Smooth 60fps)
   ========================================================================== */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes catalog-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 40%, #cbd5e1 50%, #e2e8f0 60%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-nav-pill {
    width: 68px;
    height: 32px;
    border-radius: 99px;
    flex-shrink: 0;
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.skeleton-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-title {
    width: 65%;
    height: 18px;
    border-radius: 6px;
}

.skeleton-subtitle {
    width: 40%;
    height: 13px;
    border-radius: 4px;
}

.skeleton-price {
    width: 52px;
    height: 20px;
    border-radius: 6px;
    margin-top: 4px;
}

.skeleton-img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    flex-shrink: 0;
}

.section-container {
    animation: catalog-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Responsive 2-Column Desktop Order Layout & Sticky Checkout Sidebar
   ========================================================================== */
.main-order-layout {
    width: 100%;
    margin: 0 auto;
}

.menu-catalog-col {
    width: 100%;
    min-width: 0;
}

.checkout-sidebar-col {
    width: 100%;
    min-width: 0;
}

.checkout-sidebar-card {
    width: 100%;
}

.desktop-sidebar-submit-wrap {
    display: none;
}

/* Desktop & Wide Screen Layout (>= 1024px) */
@media (min-width: 1024px) {
    body {
        padding-bottom: 24px;
        background: #f8f9fa;
    }

    .store-header-top,
    .store-details {
        max-width: 1160px;
    }

    .dining-option-wrapper {
        display: flex;
        justify-content: center;
    }

    .dining-segmented-control {
        max-width: 480px;
    }

    .desktop-auth-bar {
        position: sticky;
        top: 0;
        z-index: 900;
    }

    .sticky-nav {
        position: sticky;
        top: 48px;
        z-index: 850;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        justify-content: center;
        padding: 10px 20px;
    }

    .container.main-order-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) 400px;
        gap: 36px;
        max-width: 1180px;
        padding: 24px 20px 48px;
        align-items: start;
    }

    .checkout-sidebar-col {
        position: sticky;
        top: 108px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
        padding-right: 2px;
        padding-bottom: 8px;
        z-index: 800;
    }

    .checkout-sidebar-col::-webkit-scrollbar {
        width: 5px;
    }

    .checkout-sidebar-col::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    .checkout-sidebar-card {
        background: #ffffff;
        border-radius: 24px;
        border: 1px solid #f1f5f9;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
        padding: 24px 20px;
        box-sizing: border-box;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Hide Mobile Bottom Fixed Footer on Desktop */
    .footer {
        display: none !important;
    }

    /* Show Desktop Action Box inside Sticky Sidebar */
    .desktop-sidebar-submit-wrap {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px dashed #e2e8f0;
    }

    .desktop-sidebar-total-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .desktop-sidebar-cart-icon {
        font-size: 22px;
        line-height: 1;
    }

    .desktop-sidebar-price {
        font-size: 30px;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -0.5px;
        line-height: 1.1;
    }

    .btn-desktop-submit {
        width: 100%;
        background: var(--primary, #00b900);
        color: #ffffff;
        border: none;
        border-radius: 14px;
        height: 52px;
        font-size: 17.5px;
        font-weight: 800;
        cursor: pointer;
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 14px rgba(0, 185, 0, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-desktop-submit:hover {
        background: var(--primary-dark, #009900);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 185, 0, 0.45);
    }

    .btn-desktop-submit:active {
        transform: translateY(0);
    }
}


