:root {
    --primary: #f2c200;
    --primary-dark: #d4aa00;
    --danger: #ff4444;
    --success: #00c851;
    --radius: 12px;
    --font: 'Outfit', sans-serif;
    --container-width: 1100px;
    --header-height: 78px;
}

@media (max-width: 480px) {
    :root {
        --header-height: 120px;
    }
}

:root[data-theme="light"] {
    --bg: #fdfdfd;
    --surface: #ffffff;
    --surface-light: #f8f9fa;
    --text: #1a1a1a;
    --text-secondary: #5f6368;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --input-bg: #f1f3f4;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

:root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --surface-light: #242424;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    --input-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(18, 18, 18, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px));
    position: relative;
    overflow-x: hidden !important;
    /* Force no horizontal scroll */
    width: 100%;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(242, 194, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(242, 194, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 40px;
    opacity: 0.08;
    filter: grayscale(0.5);
    will-change: transform;
    animation: float 20s infinite ease-in-out;
}

:root[data-theme="dark"] .floating-emoji {
    opacity: 0.15;
    filter: grayscale(0);
}

/* Accessibility: Support for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-emoji {
        animation: none !important;
        opacity: 0.05;
        transform: translateY(50vh);
    }
}

.floating-emoji:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-emoji:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.floating-emoji:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
    animation-duration: 28s;
}

.floating-emoji:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
    animation-duration: 24s;
}

.floating-emoji:nth-child(5) {
    left: 85%;
    animation-delay: 12s;
    animation-duration: 26s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.1;
    }

    90% {
        opacity: 0.1;
    }

    50% {
        transform: translateY(-20vh) rotate(180deg);
        opacity: 0.15;
    }
}

.container,
.app-header {
    position: relative;
    z-index: 1;
}

.container {
    overflow: visible !important;
}

/* Header */
.app-header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    width: 48px;
    height: 48px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon {
    font-size: 28px;
}

.logo-area h1 {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.status-badge.open .dot {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-badge.open {
    border-color: rgba(0, 200, 81, 0.3);
    color: var(--success);
}

.status-badge.closed .dot {
    background: var(--danger);
}

.status-badge.closed {
    border-color: rgba(255, 68, 68, 0.3);
    color: var(--danger);
}

.whatsapp-btn-header {
    background: #25D366;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn-header {
    background: var(--surface-light);
    color: var(--primary);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

/* Optimize Touch Targets for Mobile */
@media (max-width: 768px) {
    .icon-btn-header,
    .whatsapp-btn-header,
    .btn-ver-horarios {
        min-width: 44px;
        min-height: 44px;
    }
}

.icon-btn-header:hover {
    background: var(--primary);
    color: #000;
}

.whatsapp-btn-header:active,
.icon-btn-header:active {
    transform: scale(0.9);
}

/* Container */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
}

/* Closed Banner */
.closed-banner {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--danger);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.1);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.closed-banner i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.schedule-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.schedule-day {
    background: rgba(var(--danger-rgb, 255, 68, 68), 0.1);
    border: 1px solid rgba(var(--danger-rgb, 255, 68, 68), 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--danger);
    white-space: nowrap;
}

/* Navigation - Responsive Category Bar (Full Width) */
.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible !important;
    overflow-x: overlay; /* Smooth scrollbar behavior */
    scrollbar-width: none;
    
    /* Sticky positioning - sempre abaixo do header */
    position: sticky;
    top: var(--header-height); /* Responsivo: muda com @media queries */
    z-index: 1099; /* Just below header (z-index: 1100) */
    
    /* Full Width Coverage */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 0;
    
    /* Styling */
    background: var(--bg);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

/* Opcional: efeito de vidro ao fazer scroll */
.category-scroll.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}




.category-scroll::-webkit-scrollbar {
    display: none;
}

.nav-item {
    background: var(--surface);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.3s;
}

.nav-item.active {
    background: var(--primary);
    color: #000;
    font-weight: 600;
}

/* Menu List */
.menu-section {
    margin-bottom: 30px;
    scroll-margin-top: 130px;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: clamp(20px, 5vw, 28px);
    color: var(--text);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.menu-item {
    background: var(--surface);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* Glass effect highlight on hover */
.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.menu-item.is-promo {
    border: 1.5px solid var(--primary);
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface-light) 100%);
}

.menu-item.is-promo::after {
    content: 'OFERTA';
    position: absolute;
    top: 10px;
    right: -20px;
    background: var(--primary);
    color: #000;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 20px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item-img-container {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-light);
    flex-shrink: 0;
}

.item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-price {
    font-weight: 600;
    color: var(--primary);
}

.item-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 80px;
}

.add-btn {
    background: var(--surface-light);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.add-btn:active {
    background: var(--primary);
    color: #000;
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-light);
    border-radius: 8px;
    padding: 4px;
}

.qty-control button {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.qty-control span {
    font-size: 14px;
    font-weight: 600;
}

/* Floating Cart */
.float-cart-btn {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 10px));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(242, 194, 0, 0.3);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 900;
    width: 90%;
    max-width: 400px;
    justify-content: space-between;
}

.float-cart-btn.visible {
    transform: translateX(-50%) translateY(0);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon-wrapper i {
    font-size: 24px;
}

.cart-icon-wrapper .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-price {
    font-weight: 700;
    font-size: 16px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: flex;
    align-items: center;
    /* Centered by default on large screens */
    justify-content: center;
}

:root[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        /* Bottom sheet only on mobile */
    }
}

#checkoutModal {
    z-index: 2001;
}

#personalizarModal {
    z-index: 2002;
}

#confirmacaoModal {
    z-index: 2003;
}

#locationModal {
    z-index: 2004;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-bottom-sheet {
    background: var(--surface);
    width: 95%;
    /* Fluid width */
    max-width: 600px;
    border-radius: 20px;
    /* Fully rounded card by default */
    padding: 20px;
    transform: translateY(20px);
    /* Subtle slide up */
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    /* Reduced from 95vh for better mobile safety */
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .modal-bottom-sheet {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        padding: 10px;
        /* Further reduced from 15px */
    }
}

.modal-overlay.active .modal-bottom-sheet {
    transform: translateY(0);
}

.modal-bottom-sheet.full-height {
    height: 95vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    color: var(--primary);
}

.close-btn,
.back-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding: 0 20px 20px;
    /* Original padding */
}

@media (max-width: 480px) {
    .modal-body {
        padding: 0 10px 15px;
        /* Reduced for mobile */
    }
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 15px;
}

/* Cart Items */
.cart-item {
    background: var(--surface-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.removed-tags {
    font-size: 11px;
    color: var(--danger);
    margin-bottom: 8px;
    background: rgba(255, 68, 68, 0.1);
    padding: 4px;
    border-radius: 4px;
    display: inline-block;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-text.danger {
    color: var(--danger);
}

/* Summary */
.cart-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.summary-row.total {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.summary-note {
    text-align: right;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.full-width {
    width: 100%;
}

.mt-4 {
    margin-top: 16px;
}

/* Form */
.delivery-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-option {
    flex: 1;
    background: var(--surface-light);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-option.selected {
    background: rgba(242, 194, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.toggle-option i {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section h4 {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 12px 12px 40px;
    border-radius: 8px;
    font-family: var(--font);
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.input-group-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-icon {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 46px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.readonly-input {
    background: #111 !important;
    color: #666 !important;
}

/* Checkbox */
.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-light);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-item input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Confirmation */
.modal-card {
    background: var(--surface);
    padding: 25px 20px;
    /* Adjusted padding */
    border-radius: 24px;
    text-align: center;
    width: 95%;
    /* Increased from 92% */
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scroll inside modal */
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

@media (max-width: 480px) {
    .modal-card {
        padding: 20px;
        border-radius: 20px;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 200, 81, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.client-info-box {
    background: var(--surface-light);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    font-size: 14px;
}

/* Payment options consolidated below line 1470 */

.pix-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 20px;
    border: 1px dashed var(--border);
    width: 100%;
}

@media (max-width: 480px) {
    .pix-box {
        padding: 10px 5px;
        /* Reduced for mobile space */
    }

    #paymentCardBrick_container {
        width: calc(100% + 10px) !important;
        /* Use almost full width by negative margin */
        margin-left: -5px;
    }
}

#paymentCardBrick_container {
    width: 100% !important;
    min-height: 300px;
}

.pix-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.pix-key {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    word-break: break-all;
}

.btn-copy {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
}

.pix-instruction {
    font-size: 0.85rem;
    color: var(--primary);
    text-align: center;
    margin-top: 10px;
}

.info-text {
    text-align: center;
    color: var(--text-secondary);
}


/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
}

.icon-btn-header {
    background: var(--surface-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Status Button */
.float-status-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Status Modal */
.status-header {
    text-align: center;
    margin-bottom: 20px;
}

.status-badge-large {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
    background: var(--surface-light);
    color: var(--text-secondary);
}

.status-badge-large.warning {
    background: rgba(255, 187, 51, 0.2);
    color: #ffbb33;
}

.status-badge-large.info {
    background: rgba(51, 181, 229, 0.2);
    color: #33b5e5;
}

.status-badge-large.primary {
    background: rgba(242, 194, 0, 0.2);
    color: var(--primary);
}

.status-badge-large.success {
    background: rgba(0, 200, 81, 0.2);
    color: #00c851;
}

.status-badge-large.danger {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.status-timeline {
    margin: 30px 0;
    position: relative;
    padding-left: 20px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--surface-light);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    opacity: 0.5;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item.completed {
    opacity: 1;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--surface-light);
    border-radius: 50%;
    margin-right: 15px;
    z-index: 1;
    border: 2px solid var(--surface);
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(242, 194, 0, 0.2);
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
}

.timeline-content {
    font-size: 14px;
    font-weight: 500;
}

.status-message {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- Promotions --- */
.promo-carousel {
    display: none;
    /* hidden by default */
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    scrollbar-width: none;
    
    /* Full Width Coverage */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 40px;
    margin-top: 0;
    
    /* Smooth scrolling behavior */
    scroll-behavior: smooth;
    /* Snap points para parar em cada card */
    scroll-snap-type: x mandatory;
    /* Momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    
    /* Bordas suaves */
    border-radius: 24px;
    /* Garante overflow com border-radius */
    overflow: hidden;
    
    /* === LIQUID GLASS EFFECT === */
    background: rgba(var(--surface-rgb, 26, 26, 26), 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .promo-carousel {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.promo-carousel.active {
    display: flex;
}

.promo-card {
    width: clamp(280px, 80vw, 400px);
    background: linear-gradient(135deg, #2b1d00 0%, #000000 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 8px 25px rgba(242, 194, 0, 0.25);
    flex-shrink: 0;
    /* Snap point - CENTER para scroll infinito */
    scroll-snap-align: center;
    scroll-snap-stop: always;
    /* Transição suave ao passar o mouse */
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 170px;
    /* Opacidade reduzida para cards fora do destaque */
    opacity: 0.6;
    filter: brightness(0.85);
}

.promo-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(242, 194, 0, 0.1), transparent);
    pointer-events: none;
}

.promo-card:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: #fff;
    box-shadow: 0 12px 35px rgba(242, 194, 0, 0.35);
}

.promo-card:active {
    transform: scale(0.98);
}

/* Card no centro aparece maior e mais nítido */
.promo-card.centered {
    transform: scale(1.08);
    opacity: 1;
    filter: brightness(1);
    z-index: 10;
    box-shadow: 0 12px 40px rgba(242, 194, 0, 0.35);
}

.promo-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--danger);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-bottom-right-radius: 12px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.promo-ranking-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary), #d4a900);
    color: #000;
    font-weight: 900;
    font-size: 18px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(242, 194, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.promo-img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    border-right: 2px solid var(--primary);
}

.promo-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Alinha topo e botão nas extremidades */
}

.promo-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--primary);
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
}

.promo-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.promo-old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #666;
}

.promo-price {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(242, 194, 0, 0.5);
}

.promo-timer {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
}

.promo-timer strong {
    color: var(--danger);
    font-family: monospace;
    font-size: 13px;
}

.promo-add-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(242, 194, 0, 0.3);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-add-btn:active {
    transform: scale(0.95);
    background: #fff;
}

.promo-add-btn i {
    font-size: 14px;
}

/* Menu List Styles for Promo */
.price-strike {
    text-decoration: line-through;
    font-size: 12px;
    color: #888;
    margin-right: 6px;
}

.price-highlight {
    color: var(--success);
    font-weight: 800;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .app-header {
        padding: 15px 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo-area {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .logo-wrapper {
        width: 50px;
        height: 50px;
    }

    .store-info h1 {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-btn-header,
    .whatsapp-btn-header {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .btn-ver-horarios {
        font-size: 11px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .menu-item {
        flex-direction: column;
    }

    .item-img-container {
        width: 100%;
        height: 180px;
    }

    .item-content {
        padding: 15px;
    }

    .float-cart-btn {
        bottom: calc(15px + env(safe-area-inset-bottom, 15px));
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        border-radius: 15px;
    }

    .modal-bottom-sheet {
        max-height: 90vh;
    }

    .category-scroll {
        /* Sempre obedece a altura do header em mobile também */
        top: var(--header-height);
        
        /* Full Width */
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding-left: calc(50vw - 50% + 15px);
        padding-right: calc(50vw - 50% + 15px);
        padding-top: 12px;
        padding-bottom: 12px;
        margin-bottom: 20px;
        
        gap: 15px;
        -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
        overflow-y: visible !important;
    }

    .nav-item {
        padding: 10px 20px;
        font-size: 15px;
    }

    .promo-carousel {
        /* Full Width em mobile também */
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding-left: calc(50vw - 50% + 12px);
        padding-right: calc(50vw - 50% + 12px);
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 20px;
    }

    .promo-card {
        height: 185px;
        /* Altura aumentada para caber tudo sem apertar */
        width: 300px;
        /* Largura fixa para não achatar o conteúdo */
    }

    .promo-img {
        width: 120px;
        /* Reduzido o tamanho da imagem no mobile para sobrar mais espaço para o texto */
    }

    .promo-content {
        padding: 10px;
        gap: 5px;
    }

    .promo-info h3 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .promo-price {
        font-size: 18px;
    }

    .promo-add-btn {
        padding: 8px 12px;
        font-size: 11px;
        margin-top: 5px;
    }
}

@media (min-width: 769px) {
    /* Desktop specific refinements if needed */
}

/* Removed redundant 480px override */

/* Consolidated Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding-bottom: 20px;
    /* Safe space at the bottom */
}

@media (max-width: 480px) {
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns is safer than 3 for small screens */
    }
}

.payment-option {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.payment-option input {
    display: none;
}

.payment-card {
    background: var(--surface-light);
    border: 2px solid var(--border);
    padding: 12px 8px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: relative;
}

@media (min-width: 481px) {
    .payment-card {
        aspect-ratio: 1 / 1;
    }
}

.payment-card i {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: 0.3s;
}

.payment-card span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: 0.3s;
    line-height: 1.2;
}

.payment-option input:checked+.payment-card {
    border-color: var(--primary);
    background: rgba(242, 194, 0, 0.08);
    transform: scale(0.95);
}

.payment-option input:checked+.payment-card i,
.payment-option input:checked+.payment-card span {
    color: var(--primary);
}

/* Checkmark on selected payment */
.payment-option input:checked+.payment-card::after {
    content: '\eb7a';
    font-family: 'remixicon';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* UI Refinements for Cart Buttons */
.cart-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.cart-actions .btn-text {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-actions .btn-text:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}

.cart-actions .btn-text.danger {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.2);
}

.cart-actions .btn-text.danger:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
}

.cart-actions .btn-text:not(.danger):hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Hourly Modal & Header Link */
.btn-ver-horarios {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 4px;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-ver-horarios:hover {
    opacity: 1;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.horario-item:last-child {
    border-bottom: none;
}

.horario-day {
    font-weight: 600;
    text-transform: capitalize;
}

.horario-time {
    color: var(--primary);
    font-weight: 700;
}

.horario-item.today {
    background: rgba(242, 194, 0, 0.1);
    margin: 0 -15px;
    padding: 12px 15px;
    border-radius: 8px;
    border-bottom: none;
}

/* Confirmation Enhanced */
.confirmation-details {
    padding: 20px 0;
    text-align: center;
}

.order-id {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.bot-notify-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 200, 81, 0.1);
    border-radius: 12px;
    color: #00c851;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-notify-info i {
    font-size: 24px;
}

/* Utility classes */
.modal-overlay.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Checkout Steps */
.checkout-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.checkout-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Indicator */
.header-title {
    flex: 1;
    text-align: center;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.step-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(242, 194, 0, 0.5);
}

.step-line {
    width: 20px;
    height: 2px;
    background: var(--border);
}

.step-line.active {
    background: var(--primary);
}

/* Delivery Toggle V2 */
.delivery-toggle-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.toggle-card {
    cursor: pointer;
}

.toggle-card input {
    display: none;
}

.toggle-card .card-content {
    background: var(--surface-light);
    border: 2px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.toggle-card .card-content i {
    font-size: 24px;
    color: var(--text-secondary);
}

.toggle-card .card-content span {
    font-weight: 600;
    font-size: 14px;
}

.toggle-card .card-content small {
    font-size: 10px;
    color: var(--text-secondary);
}

.toggle-card input:checked+.card-content {
    border-color: var(--primary);
    background: rgba(242, 194, 0, 0.05);
}

.toggle-card input:checked+.card-content i {
    color: var(--primary);
}

/* Cart Preview Inline */
.cart-preview-inline {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Removed duplicate pix-box styles */
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
}

/* Modal Adjustments */
@media (max-width: 480px) {
    .payment-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* Status Timeline Overhaul */
.status-timeline {
    margin: 30px 0;
    position: relative;
    padding-left: 20px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.4s ease;
}

.timeline-item.active {
    opacity: 1;
    filter: grayscale(0);
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface-light);
    border: 3px solid var(--border);
    transition: all 0.3s;
    flex-shrink: 0;
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    border-color: rgba(242, 194, 0, 0.3);
    box-shadow: 0 0 10px var(--primary);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--surface-light);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    flex: 1;
    transition: all 0.3s;
}

.timeline-item.active .timeline-content {
    color: var(--text);
    border-color: rgba(242, 194, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

#statusModal .modal-card {
    padding: 25px 20px;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    #statusModal {
        align-items: flex-end;
    }

    #statusModal .modal-card {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        margin: 0;
        padding: 30px 20px;
        max-height: 90vh;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    #statusModal.active .modal-card {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .status-timeline {
        padding-left: 5px;
        margin: 25px 0;
    }

    .status-timeline::before {
        left: 13px;
    }

    .timeline-item {
        gap: 15px;
        margin-bottom: 20px;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
    }
}

.status-header {
    text-align: center;
    margin-bottom: 20px;
}

.status-badge-large {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--surface-light);
    margin-top: 10px;
}

.status-badge-large.pending {
    color: #ffa900;
    background: rgba(255, 169, 0, 0.1);
}

.status-badge-large.accepted {
    color: #00c851;
    background: rgba(0, 200, 81, 0.1);
}

.status-badge-large.preparing {
    color: #33b5e5;
    background: rgba(51, 181, 229, 0.1);
}

.status-badge-large.ready {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--primary);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.image-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== ENHANCED CARD ANIMATIONS ===== */
.menu-item {
    animation: slideUp 0.4s ease-out backwards;
}

.menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.15s;
}

.menu-item:nth-child(4) {
    animation-delay: 0.2s;
}

.menu-item:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item:active {
    transform: scale(0.98);
}

/* Image container with click effect */
.item-img-container {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.item-img-container:hover {
    transform: scale(1.05);
}

.item-img-container::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.item-img-container:hover::after {
    opacity: 0.8;
}

/* Placeholder image styling */
.img-placeholder {
    opacity: 0.8;
    filter: grayscale(0.5);
    transition: all 0.3s;
}

.item-img-container:hover .img-placeholder {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Promo card pulse animation */
.menu-item.is-promo {
    animation: slideUp 0.4s ease-out backwards, promoPulse 2s ease-in-out infinite;
}

@keyframes promoPulse {

    0%,
    100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(242, 194, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(242, 194, 0, 0);
    }
}

/* Button press animation */
.add-btn,
.btn-primary,
.btn-whatsapp {
    position: relative;
    overflow: hidden;
}

.add-btn::after,
.btn-primary::after,
.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-btn:active::after,
.btn-primary:active::after,
.btn-whatsapp:active::after {
    width: 300px;
    height: 300px;
}

/* Floating cart button bounce */
.float-cart-btn {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.float-cart-btn:hover {
    animation: none;
    transform: scale(1.05);
}

/* Redundant transition removed */

.hidden {
    display: none !important;
}

/* --- ANIMATIONS & COMPONENTS --- */

/* Confetti */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allow clicks through container */
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
    pointer-events: auto;
    /* Re-enable clicks on toasts */
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-left: 4px solid var(--primary);
}

.toast-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-info .toast-icon {
    color: var(--primary);
}

/* Scroll Reveal */
.menu-item,
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.menu-item.visible,
.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Item Quantity Badge */
.item-qty {
    background: var(--primary);
    color: #000;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-right: 8px;
    box-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
}

.cart-item-title {
    display: flex;
    align-items: center;
}

/* Location Selector Modal */
.location-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}

.location-btn:hover {
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.location-btn i {
    font-size: 22px;
    color: var(--primary);
}

/* --- Monte seu Açai Modal Styles --- */
.acai-card {
    max-width: 500px !important;
    width: 95vw !important;
}

.acai-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.acai-base-info {
    display: flex;
    gap: 15px;
    background: var(--surface-light);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: center;
}

#acai-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.acai-base-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.acai-base-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 2px 0;
}

.acai-base-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.addons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.addons-header h4 {
    font-size: 1rem;
    color: var(--text);
}

.addons-badge {
    background: var(--surface-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--primary);
}

.addons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.addon-item:hover {
    border-color: var(--primary);
}

.addon-item.selected {
    border-color: var(--primary);
    background: rgba(242, 194, 0, 0.05);
}

.addon-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.addon-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.selected .addon-check {
    background: var(--primary);
    border-color: var(--primary);
}

.addon-check i {
    color: #000;
    font-size: 14px;
    display: none;
}

.selected .addon-check i {
    display: block;
}

.addon-name {
    font-size: 0.95rem;
    color: var(--text);
}

.addon-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.acai-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.acai-total-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.acai-total-area .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.acai-total-area .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 480px) {
    .acai-body {
        max-height: 50vh;
    }
}