* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background: #F2F2F7;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-elevated: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #F2F2F7;
        --text-secondary: #98989D;
        --background: #000000;
        --surface: rgba(28, 28, 30, 0.8);
        --surface-elevated: rgba(44, 44, 46, 0.95);
        --border: rgba(255, 255, 255, 0.1);
        --shadow: rgba(0, 0, 0, 0.3);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism backdrop */
.glass {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-pwa-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 1rem;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.install-pwa-btn:hover {
    background: #4A47C4;
    transform: translateY(-1px);
}

.install-pwa-btn.hidden { display: none; }

.cart-button {
    position: relative;
    background: var(--primary-color);
    color: white;
    border: none;
    /* Cria um botão quadrado */
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Centraliza o ícone */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.cart-count {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface-elevated);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* Cart Items */
.cart-items {
    margin-bottom: 2rem;
}

/* Empty Cart Styles */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-cart h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-cart p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn-browse-menu {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-browse-menu:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

/* Elegant Cart Items */
.cart-item-elegant {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cart-item-elegant:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--primary-color);
}

.cart-item-image {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

.remove-btn-elegant {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.remove-btn-elegant:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.cart-item-notes {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-left: 2px solid var(--primary-color);
}

.cart-item-notes i {
    font-size: 0.7rem;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.cart-item-price {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1rem;
}

.quantity-controls-elegant {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.qty-btn-elegant {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.qty-btn-elegant:hover {
    background: #0056CC;
    transform: scale(1.05);
}

.qty-btn-elegant:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.quantity-elegant {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Legacy styles for compatibility */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cart-item-info {
    flex: 1;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #0056CC;
    transform: scale(1.1);
}

.qty-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #CC2E24;
}

/* Checkout Form */
.checkout-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.delivery-option {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--surface);
}

.delivery-option:hover {
    border-color: var(--primary-color);
}

.delivery-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.delivery-option i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-method {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--surface);
}

.payment-method:hover {
    border-color: var(--primary-color);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.coupon-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coupon-input {
    flex: 1;
}

.apply-coupon-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-coupon-btn:hover {
    background: #4A47C4;
}

.coupon-section.hidden,
.applied-coupon-display.hidden {
    display: none;
}

.applied-coupon-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(52, 199, 89, 0.1); /* success-color with alpha */
    border: 1px solid var(--success-color);
    border-radius: 8px;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.applied-coupon-display i {
    margin-right: 0.5rem;
}

.remove-coupon-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-coupon-btn:hover {
    opacity: 1;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.summary-row:not(.total) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--success-color);
    background: rgba(52, 199, 89, 0.1);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.discount {
    color: var(--success-color);
    font-weight: 600;
}

/* WhatsApp Preview */
.whatsapp-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-line;
    max-height: 200px;
    overflow-y: auto;
}

.final-buttons {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    flex: 1;
    background: var(--text-secondary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #6D6D72;
}

.btn-whatsapp {
    flex: 2;
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #20B954;
    transform: translateY(-1px);
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Hero Carousel */
.hero-carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-carousel-slides {
    display: flex;
    width: 300%; /* 100% for each of the 3 slides */
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.hero-slide {
    width: 33.3333%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-carousel-indicators .indicator.active {
    background: white;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.hero-feature i {
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.hero-feature span {
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056CC 0%, #4A47C4 100%);
}

.hero-cta i {
    font-size: 1.1rem;
}

/* Categories */
.categories {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 0;
    justify-content: center;
    flex-wrap: wrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search Bar */
.search-bar-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-bar-wrapper .fa-search {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem; /* Add padding for the icon */
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Menu Grid */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.popular-section {
    margin-bottom: 4rem;
}

.section-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title-main i {
    color: var(--warning-color);
}

.popular-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 6rem;
}

.menu-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    padding: 1rem;
    border: 1px solid var(--border);
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.menu-item.popular {
    border: 2px solid var(--warning-color);
    background: linear-gradient(135deg, var(--surface-elevated) 0%, rgba(255, 149, 0, 0.05) 100%);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--warning-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 10;
}

.popular-badge i {
    font-size: 0.7rem;
}

.item-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    object-fit: cover;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    border-radius: 12px;
    margin-right: 1rem;
    overflow: hidden; /* Garante que a imagem respeite o border-radius */
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Efeito de zoom na imagem ao passar o mouse sobre o item do menu */
.menu-item:hover .item-image img {
    transform: scale(1.1);
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-color);
}

.add-btn {
    background: var(--success-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

.add-btn:hover {
    background: #28A745;
    transform: scale(1.1);
}

/* Cart Footer */
.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.cart-footer.show {
    transform: translateY(0);
}

.cart-summary {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.checkout-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #28A745;
    transform: translateY(-1px);
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-features {
        gap: 2rem;
    }

    .hero-feature i {
        font-size: 1.5rem;
    }

    .hero-feature span {
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .header-content {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .categories {
        padding: 0 1rem;
    }

    .category-filters {
        justify-content: flex-start;
        padding: 0.75rem 0;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .menu-container {
        padding: 0 1rem;
    }

    .menu-item {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .item-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-right: 1rem;
        font-size: 1.6rem;
    }

    .item-content {
        padding: 0;
        gap: 0.3rem;
    }

    .item-name {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .item-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .item-price {
        font-size: 1.1rem;
    }

    .add-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .cart-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .checkout-btn {
        width: 100%;
    }

    .modal {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .final-buttons {
        flex-direction: column;
    }

    .cart-item-elegant {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .cart-item-image {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1.1rem;
    }

    .cart-item-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-item-name {
        font-size: 0.85rem;
    }

    .cart-item-notes {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .cart-item-footer {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }

    .quantity-controls-elegant {
        gap: 0.4rem;
        padding: 0.25rem;
    }

    .qty-btn-elegant {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .quantity-elegant {
        font-size: 0.8rem;
        min-width: 20px;
    }

    .remove-btn-elegant {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    /* Legacy responsive styles */
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .quantity-controls {
        order: 1;
    }

    .remove-btn {
        order: 2;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 45vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-feature i {
        font-size: 1.3rem;
    }

    .hero-feature span {
        font-size: 0.8rem;
    }

    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .header-content {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1rem;
    }

    .install-pwa-btn {
        width: 48px;
        padding: 0;
    }

    .install-pwa-btn .install-text {
        display: none;
    }

    .category-btn {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }

    .menu-container {
        padding: 0 0.75rem;
    }

    .categories {
        padding: 0 0.75rem;
    }

    .menu-item {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .item-image {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.2rem;
    }

    .item-name {
        font-size: 0.95rem;
    }

    .item-description {
        font-size: 0.75rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .add-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 0.95rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .cart-item-elegant {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* Product Detail Modal */
.product-modal {
    background: var(--surface-elevated);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.product-header {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    overflow: hidden;
}

.product-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    display: none; /* Oculto por padrão */
}

.product-header.has-image::after {
    display: block; /* Mostra a sobreposição apenas se houver imagem */
}

#productModalImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.product-header > * {
    position: relative;
    z-index: 1;
}

.product-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.product-content {
    padding: 2rem;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.observations-section {
    margin-bottom: 2rem;
}

.section-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.observations-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.observations-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.btn-add-to-cart {
    width: 100%;
    background: var(--success-color);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.btn-add-to-cart:hover {
    background: #28A745;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 199, 89, 0.3);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--danger-color);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

.toast.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--warning-color);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.toast-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Loading Spinner Component */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-medium {
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Button Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Pulse Animation for Cart Button */
.cart-button.pulse-animation {
    animation: cartPulse 0.6s ease-in-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Success Animation for Add Button */
.add-btn.success-animation {
    background: var(--success-color) !important;
    animation: addSuccess 0.8s ease-in-out;
}

@keyframes addSuccess {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile Toast Adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        margin: 0;
    }
}