/* Restaurant Menu Styles */

:root {
    --primary-color: #46260f;
    --secondary-color: #c9895b;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --price-color: #c61a1a;
    --bg-color: #c7f8e95c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at top left, rgba(201, 137, 91, 0.11), transparent 28%),
        radial-gradient(circle at top right, rgba(70, 38, 15, 0.08), transparent 24%);
}

.network-status-banner {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, rgba(70, 38, 15, 0.97), rgba(201, 137, 91, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff9f2;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(70, 38, 15, 0.18);
}

.network-status-banner[hidden] {
    display: none !important;
}

.network-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.network-status-refresh-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.network-status-refresh-btn:hover,
.network-status-refresh-btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fff7ea 0%, #f6e7d4 100%);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skip-page-loader .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
}

.page-loader-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.coffee-cup {
    display: inline-block;
    transform-origin: center bottom;
    animation: coffeeCupBounce 1s ease-in-out infinite;
}

.coffee-cup-lg {
    font-size: 2.3rem;
}

.coffee-cup-sm {
    font-size: 1.35rem;
}

@keyframes coffeeCupBounce {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    35% {
        transform: translateY(-3px) rotate(-3deg);
    }
    70% {
        transform: translateY(0) rotate(3deg);
    }
}

.image-loader-anchor {
    position: relative;
}

.image-coffee-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 247, 234, 0.84), rgba(246, 231, 212, 0.84));
    pointer-events: none;
}

.image-is-loading {
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .coffee-cup {
        animation: none;
    }
}

.welcome-flyer {
    background: linear-gradient(135deg, #fff4df 0%, #fffdf7 100%);
}

.welcome-flyer [data-featured-welcome-heading] {
    color: #9d4242;
}

.featured-modal-shell {
    background: radial-gradient(circle at top, #ffffff 0%, #f6f4ef 62%, #efebe3 100%);
}

#featuredFlyerModal .modal-body {
    overflow: hidden;
}

.featured-modal-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(3.2rem, 8vh, 4.5rem) 1.1rem clamp(0.9rem, 3vh, 1.8rem);
}

.featured-modal-card {
    width: min(720px, 100%);
    max-height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    justify-items: center;
    gap: clamp(0.4rem, 1.2vh, 0.95rem);
    text-align: center;
}

.featured-modal-close {
    margin: 1.25rem;
    padding: 0.65rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.featured-modal-badge {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    margin-bottom: 0;
    border: 1px solid #c6921f;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3f2a03;
    background: linear-gradient(135deg, #ffd75a 0%, #f4b400 100%);
    box-shadow: 0 8px 18px rgba(186, 132, 13, 0.28);
}

.featured-modal-media-wrap {
    width: min(560px, 100%);
    height: clamp(160px, 42dvh, 460px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 20px 48px rgba(60, 44, 21, 0.18);
    overflow: hidden;
}

.featured-modal-image,
.featured-modal-no-image {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.featured-modal-image {
    display: block;
    object-fit: contain;
}

.featured-modal-no-image {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #9f8f78 0%, #6f624f 100%);
    color: #fff;
}

.featured-modal-name {
    margin: 0;
    font-size: clamp(1.3rem, 2.3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #2f2619;
    line-height: 1.2;
}

.featured-modal-description {
    max-width: 58ch;
    margin: 0 auto;
    color: #5f5a51;
    font-size: clamp(0.88rem, 1.75vw, 1rem);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-modal-actions {
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.featured-modal-actions .btn {
    min-width: 154px;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
}

.featured-modal-menu-btn {
    background: linear-gradient(135deg, #d62828 0%, #b71c1c 100%);
    border: 1px solid #9f1313;
    color: #fff;
    box-shadow: 0 10px 24px rgba(163, 22, 22, 0.35);
}

.featured-modal-menu-btn:hover,
.featured-modal-menu-btn:focus {
    background: linear-gradient(135deg, #bf1f1f 0%, #8f1111 100%);
    border-color: #780d0d;
    color: #fff;
}

.kitchen-note {
    position: relative;
    background: linear-gradient(165deg, #fff8b3 0%, #ffe97a 100%);
    border: 1px solid #dcc449;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(126, 98, 12, 0.22);
    padding: 1rem 1.1rem;
    transform: rotate(-0.35deg);
}

.kitchen-note::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 16px;
    width: 34px;
    height: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(146, 130, 80, 0.32);
    border-radius: 3px;
    transform: rotate(8deg);
}

.kitchen-note-label {
    margin: 0;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #705500;
}

.kitchen-note-message {
    margin: 0;
    color: #3c2c03;
    font-size: 1rem;
    line-height: 1.4;
}

.closed-status-note {
    position: relative;
    background: linear-gradient(165deg, #fff7a8 0%, #ffe36f 100%);
    border: 1px solid #d2b22f;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(126, 98, 12, 0.24);
    padding: 1rem 1.1rem;
    transform: rotate(-0.25deg);
}

.closed-status-note::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 18px;
    width: 36px;
    height: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(146, 130, 80, 0.32);
    border-radius: 3px;
    transform: rotate(8deg);
}

.closed-status-note-label {
    margin: 0;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #705500;
}

.closed-status-note-message {
    margin: 0;
    color: #a81818;
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.45;
}

.availability-sticky-note {
    display: inline-block;
    background: linear-gradient(165deg, #fff8b3 0%, #ffe97a 100%);
    border: 1px solid #dcc449;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(126, 98, 12, 0.2);
    color: #6b4f00;
    font-weight: 700;
    line-height: 1.3;
}

.availability-sticky-note-compact {
    padding: 0.22rem 0.52rem;
    font-size: 0.72rem;
}

.category-pills .availability-sticky-note-compact,
.subcategory-pills .availability-sticky-note-compact {
    margin-top: 0.35rem;
}

.menu-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;
}

.menu-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 17, 11, 0.7);
}

.menu-guide-spotlight {
    position: fixed;
    border-radius: 12px;
    border: 2px solid #ffe28d;
    box-shadow: 0 0 0 100vmax rgba(10, 8, 5, 0.62);
    pointer-events: none;
    z-index: 1;
}

.menu-guide-arrow {
    position: fixed;
    height: 3px;
    background: linear-gradient(90deg, #fff7d6 0%, #ffcf55 100%);
    border-radius: 99px;
    transform-origin: 0 50%;
    pointer-events: none;
    z-index: 2;
}

.menu-guide-arrow::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #ffcf55;
}

.menu-guide-card {
    position: fixed;
    z-index: 3;
    background: #fffef8;
    color: #2b2112;
    border-radius: 14px;
    border: 1px solid rgba(176, 134, 49, 0.34);
    box-shadow: 0 16px 30px rgba(12, 10, 7, 0.32);
    padding: 0.95rem 1rem;
}

.menu-guide-step {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.73rem;
    color: #9b6a12;
    font-weight: 700;
}

.menu-guide-text {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.menu-guide-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.menu-guide-target-highlight {
    outline: 2px solid rgba(255, 226, 141, 0.95);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .menu-guide-card {
        padding: 0.82rem 0.85rem;
    }

    .menu-guide-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .featured-modal-layout {
        padding-top: max(3rem, env(safe-area-inset-top));
        padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
    }

    .featured-modal-close {
        margin: 0.8rem;
    }

    .featured-modal-card {
        gap: 0.6rem;
    }

    .featured-modal-media-wrap {
        height: clamp(150px, 35dvh, 290px);
    }

    .featured-modal-no-image {
        min-height: 0;
    }

    .featured-modal-actions .btn {
        width: 100%;
        padding: 0.6rem 1.1rem;
    }
}

@media (max-height: 760px) {
    .featured-modal-layout {
        padding-top: 2.2rem;
        padding-bottom: 0.55rem;
    }

    .featured-modal-media-wrap {
        height: clamp(190px, 44dvh, 360px);
    }

    .featured-modal-badge {
        font-size: 0.69rem;
        padding: 0.35rem 0.8rem;
    }

    .featured-modal-name {
        font-size: clamp(1rem, 2.3vh, 1.35rem);
    }

    .featured-modal-description {
        font-size: 0.86rem;
        line-height: 1.3;
        -webkit-line-clamp: 1;
    }

    .featured-modal-actions {
        gap: 0.45rem;
    }

    .featured-modal-actions .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.86rem;
        min-width: 132px;
    }
}

.btn-outline-primary {
    --bs-btn-hover-color: #a54c4c;
    --bs-btn-color: #9d4242;
}

.dietary-filter-link {
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.92);
    border-width: 2px;
}

.dietary-filter-link-success {
    color: #0f5132;
    border-color: #0f5132;
}

.dietary-filter-link-success:hover,
.dietary-filter-link-success:focus {
    color: #ffffff;
    background-color: #0f5132;
    border-color: #0f5132;
}

.dietary-filter-link-info {
    color: #0b4f6c;
    border-color: #0b4f6c;
}

.dietary-filter-link-info:hover,
.dietary-filter-link-info:focus {
    color: #ffffff;
    background-color: #0b4f6c;
    border-color: #0b4f6c;
}

.dietary-filter-link-danger {
    color: #842029;
    border-color: #842029;
}

.dietary-filter-link-danger:hover,
.dietary-filter-link-danger:focus {
    color: #ffffff;
    background-color: #842029;
    border-color: #842029;
}

.bg-light {
     background-color: var(--bg-color) !important;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand-lockup {
    line-height: 1.05;
}

.brand-lockup-main {
    white-space: nowrap;
}

.brand-lockup-name {
    font-size: 1.5rem;
}

.brand-lockup-tagline {
    margin-top: 0.22rem;
    padding-left: calc(38px + 0.5rem + 1px);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Lora', 'Times New Roman', serif;
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.6);
}

@media (max-width: 575px) {
    .brand-lockup-name {
        font-size: 1.18rem;
    }

    .brand-lockup-tagline {
        padding-left: calc(38px + 0.5rem + 1px);
        font-size: 0.7rem;
        letter-spacing: 0.01em;
    }
}

.account-icon-btn {
    min-width: 2.35rem;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border-width: 2px;
}

.account-icon-btn::after {
    margin-left: 0.35rem;
}

.order-count-badge {
    min-width: 1.4rem;
    display: none;
}

.offcanvas {
    border-left: 1px solid #e5e7eb;
}

.branded-order-offcanvas {
    background: linear-gradient(180deg, #fffdf9 0%, #fff9f1 100%);
}

.branded-order-offcanvas .offcanvas-body {
    min-height: 0;
    overflow: hidden;
}

.order-offcanvas-scroll {
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

#cartItems {
    min-height: 0;
}

.branded-order-offcanvas-header {
    padding: 1.1rem 1.15rem 1rem;
    border-bottom: 1px solid rgba(70, 38, 15, 0.1);
    background: linear-gradient(135deg, rgba(70, 38, 15, 0.98), rgba(201, 137, 91, 0.98));
    color: #fff;
}

.branded-order-offcanvas-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.order-offcanvas-eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.order-summary-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(70, 38, 15, 0.08);
    background: linear-gradient(135deg, rgba(255, 248, 237, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: 0 12px 28px rgba(70, 38, 15, 0.08);
}

.order-summary-banner-copy {
    min-width: 0;
}

.order-summary-banner-label {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5a38;
}

.order-summary-banner-text {
    color: #4f3828;
    font-size: 0.92rem;
    line-height: 1.35;
}

.order-summary-banner-chip {
    flex: 0 0 auto;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(70, 38, 15, 0.2);
}

.order-signup-prompt {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(70, 38, 15, 0.08);
    background: linear-gradient(135deg, rgba(255, 248, 236, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 12px 28px rgba(70, 38, 15, 0.08);
}

.order-signup-prompt .card-body {
    padding: 0.95rem 1rem;
}

.order-signup-prompt-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #8a5a38;
}

.order-signup-prompt .btn {
    min-width: 0;
    border-radius: 999px;
    font-weight: 700;
}

.order-recommendations-card,
.order-assistance-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(70, 38, 15, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.order-recommendations-card .card-body,
.order-assistance-card .card-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 239, 0.98));
}

.order-total-footer {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 245, 229, 0.98));
}

.order-total-row {
    color: #3b2a1d;
}

.order-submit-button {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    box-shadow: 0 12px 24px rgba(70, 38, 15, 0.18);
}

.order-submit-button:hover,
.order-submit-button:focus {
    transform: translateY(-1px);
}

.app-toast-container {
    z-index: 1100;
}

.app-toast {
    background: linear-gradient(135deg, #7ad17a, #54b96a);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.app-toast.app-toast-error {
    background: linear-gradient(135deg, #dc3545, #b42330);
}

.menu-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    border-radius: 14px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.92);
}

.category-link {
    color: inherit;
}

.category-card:hover {
    background-color: #fff !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(70, 38, 15, 0.16) !important;
}

/* Category image styles */
.category-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.card-img-top.bg-secondary.category-img {
    font-weight: 600;
}

/* Left-aligned category image for row layout */
.category-img-left {
    width: 148px;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px 0 0 14px;
    transition: transform 0.3s ease;
}

.category-card-layout {
    display: flex;
    align-items: stretch;
    min-height: 148px;
}

.category-card-media {
    flex: 0 0 auto;
    display: flex;
}

.category-card-content {
    flex: 1 1 auto;
    display: flex;
}

.category-card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1rem 0.95rem;
}

.category-card:hover .category-img-left {
    transform: scale(1.04);
}

.home-best-sellers-intro {
    max-width: 100%;
}

.home-category-block {
    border: 1px solid rgba(70, 38, 15, 0.14);
    border-radius: 16px;
    padding: 1rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 240, 0.96));
    box-shadow: 0 10px 26px rgba(70, 38, 15, 0.08);
}

.home-category-block-header {
    width: 100%;
}

.home-category-block-heading {
    width: 100%;
}

.home-category-description {
    width: 100%;
    max-width: 100%;
    margin-top: 0.55rem;
    line-height: 1.6;
}

.home-category-block-header h3 {
    color: #3f2a1d;
}

.home-full-menu-cta-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-full-menu-cta {
    min-width: 220px;
    width: auto;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color), #8d5d3c);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 8px 18px rgba(201, 137, 91, 0.28);
}

.home-full-menu-cta:hover,
.home-full-menu-cta:focus-visible,
.home-full-menu-cta:active {
    background: linear-gradient(135deg, #b87a4f, var(--secondary-color));
    border-color: #b87a4f;
    color: #fff;
    box-shadow: 0 10px 22px rgba(201, 137, 91, 0.32);
}

.home-category-view-all {
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.home-category-view-all-wrap {
    display: flex;
}

.home-category-view-all-wrap .home-category-view-all {
    width: 100%;
}

.home-bestseller-link {
    color: inherit;
}

.home-bestseller-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-bestseller-card {
    position: relative;
    border: 1px solid rgba(70, 38, 15, 0.12);
    border-radius: 14px;
    background: #fff;
    padding: 0.58rem;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, filter 0.14s ease;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: rgba(201, 137, 91, 0.3);
}

.home-bestseller-card:hover {
    transform: translateY(-2px);
    border-color: rgba(70, 38, 15, 0.25);
    box-shadow: 0 10px 20px rgba(70, 38, 15, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 247, 240, 0.9));
}

.home-bestseller-card:active,
.home-bestseller-card:focus-visible {
    transform: scale(0.985);
    box-shadow: 0 6px 16px rgba(70, 38, 15, 0.14);
    border-color: rgba(201, 137, 91, 0.65);
    filter: saturate(1.08);
}

.home-bestseller-card:focus-within {
    outline: 2px solid rgba(201, 137, 91, 0.6);
    outline-offset: 2px;
    border-color: rgba(70, 38, 15, 0.3);
}

.home-bestseller-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.home-bestseller-image-link,
.home-bestseller-content,
.home-bestseller-add-btn {
    position: relative;
    z-index: 2;
}

.home-bestseller-image-link {
    display: block;
}

.home-bestseller-image {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.home-bestseller-image-fallback {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, #866346, #5d4330);
    text-align: center;
    line-height: 1.2;
}

.home-bestseller-content {
    padding: 0.6rem 0.2rem 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    flex: 1 1 auto;
}

.home-bestseller-name {
    color: #2e2015;
    font-size: 0.94rem;
    line-height: 1.3;
    text-align: left;
}

.home-bestseller-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
}

.home-bestseller-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
    background: rgba(126, 90, 60, 0.08);
    border: 1px solid rgba(126, 90, 60, 0.18);
    color: var(--price-color);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
}

.home-bestseller-add-btn {
    width: 100%;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: auto;
}

@media (max-width: 1199px) {
    .home-bestseller-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-full-menu-cta-wrap {
        width: 100%;
    }

    .home-full-menu-cta {
        width: 100%;
    }

    .home-bestseller-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
    }

    .home-bestseller-image {
        height: 130px;
    }

    .home-bestseller-name {
        font-size: 0.88rem;
    }

    .home-bestseller-add-btn {
        font-size: 0.78rem;
        padding: 0.36rem 0.65rem;
    }
}

@media (max-width: 575px) {
    .home-category-block {
        padding: 0.82rem;
    }

    .home-bestseller-image {
        height: 112px;
    }
}

@media (min-width: 768px) {
    .home-category-view-all-wrap {
        justify-content: flex-end;
    }

    .home-category-view-all-wrap .home-category-view-all {
        width: auto;
    }
}


.card-title {
    font-weight: 600 !important;
}

.prep-time-badge {
    display: inline-block;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}

.prep-time-badge-fast {
    background: #d1fae5;
    border-color: #86efac;
    color: #166534;
}

.prep-time-badge-medium {
    background: #fef9c3;
    border-color: #fde047;
    color: #854d0e;
}

.prep-time-badge-slow {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.info-card-title {
    color: var(--price-color);
    font-weight: 600;
}

#cartUpsellMessage {
    color: #c61a1a !important;
    font-style: italic;
    font-weight: 700;
}

.cart-recommendation-item {
    border: 1px solid #efe6d9;
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fffdf9;
}

.cart-recommendation-name {
    color: var(--text-dark);
    font-weight: 600;
}

.cart-recommendation-price {
    color: var(--price-color);
    font-weight: 600;
}

.incoming-order-row {
    display: block;
    text-align: left;
    border-left: 0;
    border-right: 0;
    border-radius: 0 !important;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.incoming-order-row:hover {
    background: #f8f4ee;
}

.incoming-order-row.is-unread .order-title,
.incoming-order-row.is-unread .incoming-order-summary {
    font-weight: 700;
    color: #111;
}

.incoming-order-row.expanded {
    background: #fffaf3;
}

.incoming-order-details {
    cursor: default;
}

.incoming-order-items .list-group-item {
    background: transparent;
}

.item-price {
    color: var(--price-color);
    font-weight: 600;
}
.card-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.nav-item .nav-link {
    /* Use a very large radius to guarantee perfectly circular sides */
    border-radius: 50rem !important;
    display: inline-block;
}

.nav-pills .nav-item .nav-link {
    border: 1px solid #111;
    background-color: transparent;
    color: #111;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-pills .nav-item .nav-link:hover {
    background-color: #f3f3f3;
    color: #111;
}

.nav-pills .nav-item .nav-link.active,
.nav-pills .nav-item .nav-link.show {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.badge {
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
}

.category-action-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 575px) {
    .category-img-left {
        width: 118px;
    }

    .category-card-layout {
        min-height: 118px;
    }

    .category-card-body {
        padding: 0.8rem 0.85rem 0.75rem;
    }
}

footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    margin-top: auto;
}

.display-4 {
    font-weight: 700;
    color: var(--primary-color);
}

.lead {
    font-size: 1.15rem;
}

/* img {
    transition: transform 0.3s ease;
} */

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

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .account-icon-btn {
        min-width: 2.65rem;
        min-height: 2.65rem;
        font-size: 1.18rem;
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .account-icon-btn:hover,
    .account-icon-btn:focus {
        background: rgba(255, 255, 255, 0.28);
        border-color: #ffffff;
    }
}

.menu-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.product-img {
    max-width: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.nav-pills-scroll-wrapper {
    position: relative;
}

.nav-pills-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
}

.nav-pills-scroll .nav {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.nav-pills-scroll .nav-link {
    white-space: nowrap;
}

.nav-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #333;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-scroll-arrow.is-visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-scroll-prev {
    left: 0.5rem;
}

.nav-scroll-next {
    right: 0.5rem;
}

.nav-scroll-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.nav-pills-scroll::-webkit-scrollbar {
    display: none;
}

.nav-pills-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.subcategory-scroll-wrapper {
    position: relative;
    z-index: 5;
}

.subcategory-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 6;
}

.subcategory-pills .btn {
    white-space: nowrap;
    flex: 0 0 auto;
    position: relative;
    z-index: 7;
}

.subcategory-pills::-webkit-scrollbar {
    display: none;
}

.subcategory-pills {
    padding-inline-end: 2.75rem;
}

.menu-item-card:has(a[data-local-item-link]) {
    cursor: pointer;
}

.menu-sale-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #ef233c 0%, #c1121f 100%);
    box-shadow: 0 12px 20px rgba(193, 18, 31, 0.28);
    pointer-events: none;
}

.menu-sale-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.95;
}

.menu-sale-price {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
}

.menu-sale-discount {
    font-size: 0.66rem;
    font-weight: 600;
    opacity: 0.95;
}

.menu-card-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.menu-card-old-price {
    font-size: 0.76rem;
    color: #6c757d;
    text-decoration: line-through;
}

.menu-card-sale-price {
    font-size: 1rem;
    font-weight: 800;
    color: #b00020;
}

.item-quick-view-modal .modal-content {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
    box-shadow: 0 24px 60px rgba(22, 19, 16, 0.18);
}

.item-quick-view-modal .modal-header {
    border-bottom: 1px solid rgba(70, 38, 15, 0.1);
    background: linear-gradient(135deg, rgba(70, 38, 15, 0.96), rgba(201, 137, 91, 0.96));
    color: #fff;
}

.item-quick-view-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.item-quick-view-modal .modal-body {
    padding: 0;
}

.item-quick-view-modal .modal-footer {
    border-top: 1px solid rgba(70, 38, 15, 0.08);
    background: rgba(255, 251, 245, 0.92);
}

.item-detail-variation-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

.item-detail-variation-card .card-header,
.item-detail-variation-card .card-body {
    padding-left: 1rem;
    padding-right: 1rem;
}

.item-detail-variation-list {
    display: grid;
    gap: 0.35rem;
}

.item-detail-variation-list-item {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(70, 38, 15, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.item-detail-variation-list-item:nth-child(even) {
    background: rgba(201, 137, 91, 0.07);
}

.item-detail-variation-list-item:hover {
    background: rgba(201, 137, 91, 0.12);
}

.item-detail-variation-name {
    color: #3b2a1d;
}

.item-detail-variation-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(201, 137, 91, 0.12);
    --bs-table-hover-bg: rgba(70, 38, 15, 0.08);
    --bs-table-border-color: rgba(70, 38, 15, 0.1);
}

.item-detail-variation-table thead th {
    border-bottom-width: 1px;
    color: #6c4b33;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.item-detail-variation-table tbody td {
    color: #3b2a1d;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.order-modal .modal-dialog {
    max-width: 620px;
}

.order-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 46px rgba(22, 19, 16, 0.25);
    background: linear-gradient(160deg, #fffdf9 0%, #fff8ee 100%);
}

.order-modal .modal-header::before {
    content: 'Cafe Reze';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.85rem;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.order-modal .modal-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(70, 38, 15, 0.12);
    background: linear-gradient(135deg, rgba(70, 38, 15, 0.96), rgba(201, 137, 91, 0.96));
    color: #fff;
}

.order-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-right: 1rem;
}

.order-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.order-modal .btn-close:hover {
    opacity: 1;
}

.order-modal .modal-body {
    padding: 1rem 1.15rem 1.05rem;
}

.order-modal-form {
    display: grid;
    gap: 0.25rem;
}

.order-field-block {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(70, 38, 15, 0.12);
    border-radius: 12px;
    padding: 0.8rem 0.85rem;
}

.order-modal .form-label {
    font-weight: 600;
    color: #3b2a1d;
    margin-bottom: 0.45rem;
}

.order-modal .form-control,
.order-modal .form-select {
    border-radius: 10px;
    border: 1px solid rgba(70, 38, 15, 0.22);
    background-color: #fffcf7;
}

.order-modal .form-control:focus,
.order-modal .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 137, 91, 0.2);
}

.order-section-title {
    margin-bottom: 0.65rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #3d2815;
}

.order-condiment-group {
    border: 1px dashed rgba(70, 38, 15, 0.18);
    border-radius: 10px;
    padding: 0.7rem;
    margin-bottom: 0.7rem !important;
    background: rgba(255, 255, 255, 0.72);
}

.order-group-name {
    display: inline-block;
    margin-bottom: 0.1rem;
    color: #392316;
}

.order-condiment-options {
    display: grid;
    gap: 0.35rem;
}

.order-condiment-group .form-check {
    margin: 0;
    padding: 0.8rem 0.85rem 0.8rem 2.15rem;
    border-radius: 12px;
    border: 1px solid rgba(70, 38, 15, 0.12);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.order-condiment-options .form-check:nth-child(odd) {
    background: rgba(255, 255, 255, 0.8);
}

.order-condiment-options .form-check:nth-child(even) {
    background: rgba(201, 137, 91, 0.07);
}

.order-condiment-group .form-check:has(.form-check-input:checked) {
    background: rgba(201, 137, 91, 0.18);
}

.order-condiment-group .form-check-input {
    margin-top: 0.38rem;
}

.order-condiment-group .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.order-condiment-group .form-check-label {
    font-size: 0.94rem;
    cursor: pointer;
}

.condiment-extra-price {
    margin-left: 0.35rem;
    font-weight: 800;
    color: #b00020;
}

.order-modal .invalid-feedback {
    font-weight: 600;
}

.order-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    border: 1px solid rgba(70, 38, 15, 0.14);
    background: linear-gradient(135deg, rgba(255, 245, 228, 0.95), rgba(255, 253, 247, 0.95));
    padding: 0.65rem 0.8rem;
    margin-top: 0.2rem;
}

.order-total-label {
    margin: 0;
    font-weight: 700;
    color: #4b2c17;
}

.order-total-value {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--price-color);
}

.order-modal .modal-footer {
    border-top: 1px solid rgba(70, 38, 15, 0.1);
    background-color: rgba(255, 250, 241, 0.95);
    padding: 0.85rem 1.15rem 1rem;
    gap: 0.5rem;
}

.order-modal .modal-footer .btn {
    border-radius: 999px;
    font-weight: 600;
    padding-inline: 1rem;
}

.order-cta-button {
    min-width: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    box-shadow: 0 10px 22px rgba(70, 38, 15, 0.18);
}

.order-cta-button:hover,
.order-cta-button:focus {
    background: linear-gradient(135deg, #5a3317, #d39567);
    border-color: #5a3317;
}

.variation-choice-list {
    display: grid;
    gap: 0.35rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.variation-choice-head {
    display: none;
}

.variation-choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.variation-choice-card:nth-child(odd) .variation-choice-content {
    background: rgba(255, 255, 255, 0.8);
}

.variation-choice-card:nth-child(even) .variation-choice-content {
    background: rgba(201, 137, 91, 0.07);
}

.variation-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variation-choice-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.85rem 0.8rem 2.15rem;
    border-radius: 12px;
    border: 1px solid rgba(70, 38, 15, 0.12);
    color: #3b2a1d;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.variation-choice-card:hover .variation-choice-content {
    background: rgba(70, 38, 15, 0.08);
    border-color: rgba(70, 38, 15, 0.2);
}

.variation-choice-input:checked + .variation-choice-content {
    background: rgba(201, 137, 91, 0.18);
    border-color: rgba(201, 137, 91, 0.45);
}

.variation-choice-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b2a1d;
}

.variation-choice-price-stack,
.variation-table-price-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    text-align: right;
}

.variation-choice-price-old,
.variation-table-price-old {
    font-size: 0.76rem;
    color: #7b7b7b;
    text-decoration: line-through;
}

.variation-choice-price-note {
    text-decoration: none;
    color: #8a7767;
}

.variation-choice-price-sale,
.variation-table-price-sale {
    font-size: 0.95rem;
    font-weight: 800;
    color: #b00020;
}

.variation-choice-price-current {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4d2f18;
}

@media (max-width: 575px) {
    .order-modal .modal-dialog {
        margin: 0.55rem;
    }

    .order-modal .modal-header,
    .order-modal .modal-body,
    .order-modal .modal-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .order-field-block {
        padding: 0.72rem;
    }

    .order-modal .modal-footer {
        justify-content: stretch;
    }

    .order-modal .modal-footer .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

.restaurant-closed-modal-content {
    border-radius: 14px;
    overflow: hidden;
}

.restaurant-closed-modal-header {
    background: linear-gradient(135deg, #8d1f1f, #c63f3f);
    color: #fff;
}

.restaurant-closed-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

