/* style.css - Premium Gourmet Theme for Taza Café */

:root {
    --bg-cream: #FAF6F0; /* Soft bright warm cream */
    --bg-card: rgba(255, 255, 255, 0.85); /* Premium glassmorphism white card */
    --border-color: rgba(140, 94, 60, 0.12); /* Subtle warm coffee border */
    --primary: #6D4C31; /* Roasted rich coffee brown */
    --primary-light: #8C5E3C;
    --primary-hover: #D98A29; /* Cozy golden honey accent */
    --text-dark: #2F2218; /* Rich espresso text */
    --text-muted: #7E6B5F; /* Soft earthy dry almond text */
    --success: #2A9D8F; /* Earthy sage green */
    --success-light: rgba(42, 157, 143, 0.1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 30px rgba(47, 34, 24, 0.04);
    --shadow-hover: 0 16px 40px rgba(47, 34, 24, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-cream);
    background-image: 
        linear-gradient(rgba(250, 246, 240, 0.9), rgba(250, 246, 240, 0.94)),
        url('assets/preview.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes float-small {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.02); }
}

@keyframes pulse-gently {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Landing Page (index.php / qr_landing.php) */
.container-landing {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-height: 100vh;
    justify-content: center;
}

.logo-badge {
    background: linear-gradient(135deg, #FFFFFF, #FAF6F0);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 10px 30px rgba(47, 34, 24, 0.1), 0 0 25px rgba(140, 94, 60, 0.15);
    margin-bottom: 0.5rem;
    animation: float 4s ease-in-out infinite;
}

h1.landing-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(47, 34, 24, 0.08);
}

.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(140, 94, 60, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(140, 94, 60, 0.08);
}

.dining-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeIn 0.6s ease;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.dining-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.btn-dine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 1.85rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-dine:hover {
    transform: translateY(-5px);
    border-color: var(--primary-hover);
    background: rgba(217, 138, 41, 0.05);
    box-shadow: var(--shadow-hover);
    color: var(--primary-hover);
}

.btn-dine .icon {
    font-size: 2.4rem;
    transition: var(--transition);
}

.btn-dine:hover .icon {
    transform: scale(1.15);
}

.btn-dine span.text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: rgba(250, 246, 240, 0.95);
    margin-top: auto;
}


/* Menu Page (menu.php) Sticky Top Bar */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 240, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(47, 34, 24, 0.02);
}

.left-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-link {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.7;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.admin-link:hover {
    opacity: 1;
    color: var(--primary-hover);
    transform: rotate(45deg) scale(1.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    background: rgba(140, 94, 60, 0.04);
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateX(-2px);
}

.brand-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.brand-section h1 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-dark);
}

.dining-badge {
    background: var(--primary-hover);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(217, 138, 41, 0.25);
}


/* Main Menu Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 100px 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


/* Promo Banners (Catering & Facebook Cards) */
.promos-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

@media (min-width: 650px) {
    .promos-container {
        grid-template-columns: 1fr 1fr;
    }
}

.catering-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.catering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-hover), var(--primary-light));
}

.catering-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catering-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.catering-tags {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(140, 94, 60, 0.06);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(140, 94, 60, 0.1);
}

.fb-card {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.06), #FFFFFF);
    border: 1px solid rgba(24, 119, 242, 0.15);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.fb-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 119, 242, 0.4);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.12);
}

.fb-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fb-icon-wrapper {
    background: #1877F2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    flex-shrink: 0;
}

.fb-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}

.fb-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.fb-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.fb-btn {
    background-color: #1877F2;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.25);
    flex-shrink: 0;
    transition: var(--transition);
}

.fb-btn:hover {
    background-color: #145dbf;
    transform: scale(1.05);
}


/* Search Bar Component */
.search-container {
    width: 100%;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    font-size: 1.2rem;
    color: var(--primary-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.95rem 1rem 0.95rem 3.2rem;
    border-radius: 40px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-hover);
    background: #FFFFFF;
    box-shadow: 0 6px 24px rgba(217, 138, 41, 0.15);
}


/* Popular Products Section (McDonald's Style Carousel) */
.popular-section-container {
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.popular-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 1.25rem 0.25rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.popular-row::-webkit-scrollbar {
    display: none; /* Hide scrollbar WebKit */
}

.popular-card {
    flex-shrink: 0;
    width: 250px;
}


/* Category grid navigation (Main Screen) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    background: rgba(217, 138, 41, 0.05);
    border-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card div {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.category-card:hover div {
    transform: scale(1.15);
}


/* Active Category Header with Back Button */
.btn-action {
    padding: 0.55rem 1.25rem;
    border-radius: 30px;
    font-size: 0.85rem;
    background: var(--bg-card);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-action:hover {
    background: rgba(217, 138, 41, 0.05);
    border-color: var(--primary-hover);
}


/* Menu List Sections & Grid (McDonald's Style) */
.menu-section {
    scroll-margin-top: 80px;
    animation: fadeIn 0.4s ease;
}

.section-header {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* McDonald's Inspired Item Card */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.item-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-hover);
}

/* Large McDonald's Style Image Placeholder */
.item-img-placeholder {
    width: 100%;
    height: 220px;
    background-color: #ECE2DA;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.item-card:hover .item-img-placeholder {
    transform: scale(1.02);
}

.img-emoji {
    font-size: 3rem;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    margin-bottom: 0.5rem;
    animation: float-small 4s ease-in-out infinite alternate;
}

.img-lbl {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.item-details-container {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 0.5rem;
}

.item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
}

.item-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-light);
}

.item-card span[style*="Customize"] {
    font-size: 0.85rem;
    color: var(--primary-hover);
    font-weight: 700;
    transition: var(--transition);
}

.item-card:hover span[style*="Customize"] {
    transform: translateX(4px);
}


/* Customizer Panel & Options (Hot/Iced Toggle) */
.option-toggle {
    display: flex;
    background: rgba(140, 94, 60, 0.08);
    border: 1px solid var(--border-color);
    padding: 0.2rem;
    border-radius: 30px;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.toggle-btn.active {
    background: var(--primary-hover);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(217, 138, 41, 0.25);
}

.drink-customizer {
    background: rgba(140, 94, 60, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.custom-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
}

.custom-label input[type="checkbox"] {
    accent-color: var(--primary-hover);
    cursor: pointer;
    width: 16px;
    height: 16px;
}


/* Floating Bottom Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    box-shadow: 0 -10px 40px rgba(47, 34, 24, 0.08);
}

.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-icon-badge {
    background: var(--primary-hover);
    color: #FFFFFF;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    position: relative;
    box-shadow: 0 4px 15px rgba(217, 138, 41, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E63946;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cart-bar-total {
    display: flex;
    flex-direction: column;
}

.cart-bar-total .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-bar-total .val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-view-cart {
    background: var(--primary-hover);
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(217, 138, 41, 0.25);
}

.btn-view-cart:hover {
    transform: translateY(-2px);
    background: #e29f44;
    box-shadow: 0 6px 20px rgba(217, 138, 41, 0.35);
}


/* Cart Slide Drawer Panel */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 34, 24, 0.45);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border-left: 1px solid var(--border-color);
    z-index: 310;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(47, 34, 24, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--primary);
}

.close-cart-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.35rem;
    transition: var(--transition);
}

.close-cart-btn:hover {
    color: var(--text-dark);
    border-color: var(--primary-hover);
    background: rgba(217, 138, 41, 0.05);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 0.75rem;
    text-align: center;
    padding: 2rem;
}

.cart-item {
    background: rgba(140, 94, 60, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.cart-item-option {
    font-size: 0.78rem;
    color: var(--primary-hover);
    font-weight: 700;
    text-transform: uppercase;
}

.cart-item-price {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.qty-btn {
    background: rgba(217, 138, 41, 0.08);
    border: 1px solid rgba(217, 138, 41, 0.2);
    color: var(--primary-hover);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-hover);
    color: #FFFFFF;
}

.cart-item-qty {
    font-size: 1rem;
    font-weight: 700;
    width: 20px;
    text-align: center;
    color: var(--text-dark);
}

.cart-item-total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    min-width: 65px;
    text-align: right;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(250, 246, 240, 0.98);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cart-summary-row.total {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    border-top: 1px dashed var(--border-color);
    padding-top: 0.85rem;
}


/* Order Placement Form inside Cart Drawer */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    color: var(--text-dark);
    font-size: 0.98rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 12px rgba(217, 138, 41, 0.15);
}

.checkout-btn {
    background: var(--success);
    color: #FFFFFF;
    border: none;
    padding: 0.95rem;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.25);
}

.checkout-btn:hover {
    background: #258a7d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 157, 143, 0.35);
}

.checkout-btn:disabled {
    background: #b0c2be;
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


/* Product Customize & Details Modal (McDonald's Style) */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 34, 24, 0.5);
    backdrop-filter: blur(8px);
    z-index: 400;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-modal-overlay.open {
    display: block;
    opacity: 1;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    z-index: 410;
    display: none;
    opacity: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(47, 34, 24, 0.15);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal.open {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 420;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--text-dark);
    border-color: var(--primary-hover);
    transform: rotate(90deg) scale(1.05);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-img-container {
    width: 100%;
    height: 260px;
    background-color: #ECE2DA;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.modal-img-emoji {
    font-size: 4.5rem;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
}

.modal-info-container {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.modal-category-badge {
    align-self: flex-start;
    background: rgba(140, 94, 60, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info-container h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-dark);
    line-height: 1.25;
}

.modal-options-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-qty-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}


/* Success Modal Ticket styling */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 34, 24, 0.65);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-modal-content {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(47, 34, 24, 0.15), 0 0 25px rgba(217, 138, 41, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transform: scale(0.9);
    animation: popModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popModal { to { transform: scale(1); } }

.success-modal-icon {
    width: 58px;
    height: 58px;
    background: var(--success);
    color: #FFFFFF;
    font-size: 2.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.success-modal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--success);
}

.success-modal-content p.desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.modal-ticket-box {
    background: rgba(140, 94, 60, 0.04);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.modal-ticket-box .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.modal-ticket-box .ticket-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 3px;
    line-height: 1.1;
}

.modal-details {
    width: 100%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.detail-row .lbl { color: var(--text-muted); }
.detail-row .val { font-weight: 700; color: var(--text-dark); }

.modal-close-btn {
    background: var(--primary-hover);
    color: #FFFFFF;
    border: none;
    padding: 0.95rem 1.5rem;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(217, 138, 41, 0.25);
}

.modal-close-btn:hover {
    background: #e29f44;
    transform: translateY(-2px);
}

.not-found-message {
    text-align: center;
    padding: 4rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}


/* =====================================================
   CONNECTION STATUS BANNER
   Slides down from top; shows offline / syncing state
   ===================================================== */
@keyframes slideDown {
    from { transform: translateY(-110%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(0);     opacity: 1; }
    to   { transform: translateY(-110%); opacity: 0; }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

.connection-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    pointer-events: none;
    transform: translateY(-110%);
    opacity: 0;
    transition: none;
}

.connection-banner.show-offline {
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    background: linear-gradient(135deg, #b5341a, #e05c3a);
    color: #fff;
    box-shadow: 0 4px 20px rgba(176, 50, 25, 0.45);
}

.connection-banner.show-online {
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    background: linear-gradient(135deg, #1a7a62, #2A9D8F);
    color: #fff;
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.45);
}

.connection-banner.hide-banner {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.connection-banner .cb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: pulseDot 1.4s ease-in-out infinite;
}

.connection-banner .cb-dot.dot-static {
    animation: none;
    opacity: 0.85;
}

/* Push top-bar down when banner is visible so nothing overlaps */
body.banner-visible .top-bar {
    top: 34px;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

