/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   MOBILE-FIRST: Estilos base para mobile
   ============================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header - Mobile First */
.header {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.75rem;
    width: 100%;
    margin: 0;
}

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

.header-left i {
    font-size: 1.2rem;
    cursor: pointer;
}

.restaurant-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: lowercase;
}

.header-right {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.cart-icon:active {
    transform: scale(0.95);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(255, 107, 107, 0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}



/* Establishment Info */
.establishment-info {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    margin: 1rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.establishment-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.establishment-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.establishment-details {
    padding: 1.5rem;
    color: #ffffff;
}

.establishment-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.establishment-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}



.establishment-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.establishment-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.establishment-whatsapp i {
    color: #25D366;
    font-size: 1rem;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

.establishment-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.status {
    font-weight: 600;
    font-size: 0.9rem;
}

.status.open {
    color: #22c55e;
}

.status.closed {
    color: #94a3b8;
}

/* Overlay de estabelecimento fechado */
.closed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.closed-overlay-box {
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.closed-overlay-box h2 {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
}

.closed-subtitle {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.closed-today-hours {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.closed-full-hours {
    margin-top: 1rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    margin-top: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hours-day {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    min-width: 100px;
}

.hours-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* Categories */
.categories {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Search Bar */
.search-container {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 60px;
    z-index: 99;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.search-results {
    margin-top: 1rem;
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-price {
    font-weight: 600;
    color: #22c55e;
    font-size: 0.9rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
    scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    position: relative;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-tab.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    padding: 0 1rem;
    border-left: 4px solid #dc2626;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
}

/* Layout responsivo para produtos */
@media (min-width: 401px) {
    .category-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 501px) {
    .category-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 601px) {
    .category-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card - Mobile First */
.product-card {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 46, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 0.875rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.product-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #22c55e;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Espaço para o footer fixo */
    padding-bottom: 1rem;
}

.modal-image-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-options {
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.option-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.option-group-title .required {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: normal;
}

.option-group-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.option-group-limits {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
}

/* Opção com contador de quantidade */
.option-item-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.option-item-counter .option-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-item-counter .option-max-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.option-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-quantity-controls .qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.option-quantity-controls .qty-btn:hover {
    background: #dc2626;
}

.option-quantity-controls .qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.option-label:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.option-input {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #dc2626;
    flex-shrink: 0;
}

.option-input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.option-input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.option-input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.option-input[type="checkbox"]:hover {
    border-color: rgba(220, 38, 38, 0.5);
}

.option-name {
    flex: 1;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.option-price {
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 700;
    margin-left: 0.5rem;
}

.no-options {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.modal-observations {
    margin-bottom: 1.5rem;
}

.modal-observations label {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal-observations textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-observations textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.modal-quantity label {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.quantity-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 35px;
    text-align: center;
    padding: 0 0.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    /* Garantir que fique acima da barra de navegação em mobile */
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.modal-total {
    font-size: 1.1rem;
    color: #ffffff;
}

.modal-total strong {
    color: #22c55e;
    font-size: 1.2rem;
}

.modal-add-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal-add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-add-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modal-add-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Loading */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5cc6c3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Sidebar - Mobile First */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para mobile */
    max-height: 100vh;
    max-height: 100dvh;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Garantir scroll suave em mobile */
    -webkit-overflow-scrolling: touch;
    /* Usar viewport dinâmico para mobile */
    box-sizing: border-box;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cart-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
    background: rgba(10, 10, 10, 0.5);
    min-height: 0;
    /* Scroll suave em todos os dispositivos */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Melhorar scroll em mobile */
    overscroll-behavior: contain;
    /* Scrollbar para Firefox */
    scrollbar-width: thin;
    scrollbar-color: #22c55e rgba(255, 255, 255, 0.1);
    /* Espaço extra para garantir que todo conteúdo seja visível */
    padding-bottom: 150px;
    /* Garantir que o scroll funcione corretamente */
    box-sizing: border-box;
    /* Scroll padding para melhor experiência */
    scroll-padding-bottom: 20px;
}

.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 8px 0;
}

.cart-items::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

/* Carrinho Novo Layout */
.cart-restaurant-header {
    display: none;
}

.order-type-indicator {
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.order-type-indicator {
    margin-top: 0.5rem;
}

.order-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-type-badge.delivery {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.order-type-badge.pickup {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.order-type-badge.dine-in {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cart-item-card {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    background: rgba(30, 30, 46, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.cart-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-customizations {
    margin-bottom: 0.75rem;
}

.customization-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.customization-item::before {
    content: '-';
    color: #dc2626;
    font-weight: 700;
    font-size: 0.7rem;
}

.customization-name {
    color: rgba(255, 255, 255, 0.8);
}

.customization-price {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.7rem;
}

.cart-item-observations {
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.2;
}

.obs-label {
    color: #dc2626;
    font-weight: 600;
}

.cart-item-price {
    margin-top: 0.75rem;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quantity-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: #22c55e;
    min-width: 20px;
    text-align: center;
}

.remove-item-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.remove-item-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

/* Seção de Cupom */
.coupon-section {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.coupon-header svg {
    color: #dc2626;
}

.coupon-input-group {
    display: flex;
    gap: 0.75rem;
}

.coupon-input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.coupon-input:focus {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.coupon-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.coupon-apply-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    min-height: 42px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.coupon-apply-btn:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* Resumo do Pedido */
.order-summary-card {
    background: rgba(20, 20, 30, 1) !important;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Garantir que o resumo fique no conteúdo scrollável */
    position: relative;
}

.order-summary-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.summary-row:last-of-type {
    margin-bottom: 0;
}

.summary-row span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.summary-row span:last-child {
    font-weight: 600;
    color: #22c55e;
}

.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.total-row span:first-child {
    color: #ffffff;
}

.total-row span:last-child {
    color: #22c55e;
    font-size: 1.1rem;
}

/* Botão Continuar */
.checkout-continue-btn {
    width: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* Garantir que o botão seja sempre clicável */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Área mínima de toque para dispositivos móveis */
    min-height: 48px;
    /* Garantir que sempre apareça acima da barra do navegador */
    margin: 0;
    display: block;
    box-sizing: border-box;
    /* Garantir que o botão não seja cortado */
    flex-shrink: 0;
}

.checkout-continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.checkout-continue-btn:hover::before {
    left: 100%;
}

.checkout-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.checkout-continue-btn:active {
    transform: translateY(0);
}

.checkout-continue-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Carrinho Moderno (mantido para compatibilidade) */
.cart-item-modern {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cart-item-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    background: rgba(30, 30, 46, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-item-image-container {
    position: relative;
    flex-shrink: 0;
}

.cart-item-image-modern {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #f8f9fa;
}

.cart-item-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #5cc6c3, #4a9e9b);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(92, 198, 195, 0.3);
}

.cart-item-main-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.cart-item-price-modern {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.unit-price-modern {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.item-total-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #22c55e;
}

.remove-btn-modern {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-btn-modern:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.cart-item-customizations-modern {
    margin-bottom: 0.75rem;
}

.customizations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.customization-tag {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    color: #155724;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #c3e6cb;
}

.cart-item-observations-modern {
    margin-bottom: 1rem;
}

.observations-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    font-size: 0.85rem;
    line-height: 1.4;
}

.observations-content svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quantity-btn-modern {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.quantity-btn-modern:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.quantity-btn-modern:active {
    transform: scale(0.95);
}

.quantity-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #22c55e;
    min-width: 30px;
    text-align: center;
}

/* Carrinho antigo (mantido para compatibilidade) */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

 .cart-item-customizations {
     font-size: 0.8rem;
     color: #666;
     margin-bottom: 0.25rem;
     line-height: 1.3;
 }
 
 .cart-item-observations {
     font-size: 0.8rem;
     color: #999;
     font-style: italic;
     margin-bottom: 0.25rem;
     line-height: 1.3;
 }
 
 .cart-item-price {
     display: flex;
     flex-direction: column;
     gap: 0.25rem;
 }
 
 .unit-price {
     color: #666;
     font-size: 0.8rem;
 }
 
 .total-price {
     color: #22c55e;
     font-size: 0.9rem;
     font-weight: 600;
 }

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

.quantity-btn {
    background: #5cc6c3;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
}

 .quantity-btn:hover {
     background: #4a9e9b;
 }
 
 .cart-item-quantity {
     font-weight: 600;
     color: #22c55e;
     min-width: 20px;
     text-align: center;
 }
 
 .remove-btn {
     background: #dc3545;
     color: white;
     border: none;
     width: 30px;
     height: 30px;
     border-radius: 50%;
     cursor: pointer;
     font-weight: 600;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background-color 0.3s ease;
 }
 
 .remove-btn:hover {
     background: #c82333;
 }

.cart-footer {
    padding: 0.875rem 1rem;
    background: rgba(30, 30, 46, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    margin-top: auto;
    /* Garantir que fique acima da barra de navegação em mobile */
    padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 100px));
    /* Garantir que o footer sempre apareça quando há conteúdo */
    display: block;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
    /* Garantir que não seja cortado */
    margin-bottom: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* Área mínima de toque para dispositivos móveis */
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

/* Carrinho vazio moderno */
.empty-cart-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.empty-cart-icon {
    margin-bottom: 1.5rem;
    color: #5cc6c3;
    opacity: 0.6;
}

.empty-cart-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.empty-cart-modern p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.checkout-btn:hover:not(:disabled) {
    background: #4a9e9b;
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Order Type Modal */
.order-type-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    max-width: 90%;
    width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    color: #ffffff;
}

.order-type-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.order-type-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-type-overlay.show {
    opacity: 1;
    visibility: visible;
}

.order-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-type-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-type-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-type-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.order-type-options {
    padding: 1rem 1.5rem 1.5rem;
}

.order-type-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.order-type-option:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.order-type-option.selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.option-icon svg {
    color: white;
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.option-note {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

/* Notifications */
.notification {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    z-index: 9999;
    transition: transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 240px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

@media (min-width: 481px) {
    .notification {
        max-width: 280px;
        padding: 0.45rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   MOBILE MÉDIO: 361px - 480px
   ============================================ */
@media (min-width: 361px) {
    body {
        font-size: 14px;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .restaurant-name {
        font-size: 1rem;
    }
    
    .cart-icon {
        width: 46px;
        height: 46px;
    }
}

/* ============================================
   MOBILE GRANDE: 481px - 768px
   ============================================ */
@media (min-width: 481px) {
    body {
        font-size: 15px;
    }
    
    .header {
        padding: 0.875rem 0;
    }
    
    .header-content {
        padding: 0 1.25rem;
    }
    
    .restaurant-name {
        font-size: 1.05rem;
    }
    
    .cart-icon {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   TABLET: 769px+
   ============================================ */
@media (min-width: 769px) {
    body {
        font-size: 16px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        padding: 0 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .restaurant-name {
        font-size: 1.1rem;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   MOBILE PEQUENO: até 360px (estilos específicos)
   ============================================ */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }
    
    .header-content {
        padding: 0 0.5rem;
    }
    
    .restaurant-name {
        font-size: 0.85rem;
    }
    
    .cart-icon {
        width: 40px;
        height: 40px;
    }
    
}

/* Estilos base mobile para outros elementos */
.establishment-info {
    margin: 0.75rem;
    border-radius: 16px;
}

.establishment-details {
    padding: 1rem;
}

.establishment-title {
    font-size: 1.2rem;
}

.establishment-description {
    font-size: 0.85rem;
}

.categories {
    padding: 0.5rem 0;
}

.category-tabs {
    padding: 0 0.75rem;
    gap: 0.5rem;
}

.category-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.main-content {
    padding: 0.75rem;
}

.products-grid {
    gap: 1rem;
}

.category-products {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.75rem;
}

.category-title {
    font-size: 1.25rem;
    padding: 0 0.75rem;
}

/* Ajustes para mobile médio */
@media (min-width: 361px) {
    .establishment-info {
        margin: 1rem;
    }
    
    .establishment-details {
        padding: 1.25rem;
    }
    
    .establishment-title {
        font-size: 1.3rem;
    }
    
    .category-tabs {
        padding: 0 1rem;
    }
    
    .category-tab {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .category-products {
        padding: 0 1rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
}

/* Ajustes para mobile grande */
@media (min-width: 481px) {
    .establishment-info {
        margin: 1.25rem;
    }
    
    .establishment-details {
        padding: 1.5rem;
    }
    
    .establishment-title {
        font-size: 1.4rem;
    }
    
    .category-tabs {
        padding: 0 1.25rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1.25rem;
    }
    
    .category-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1.25rem;
    }
    
    .category-title {
        font-size: 1.4rem;
        padding: 0 1.25rem;
    }
}

/* Ajustes para tablet */
@media (min-width: 769px) {
    .establishment-info {
        margin: 1.5rem;
    }
    
    .establishment-details {
        padding: 1.5rem;
    }
    
    .establishment-title {
        font-size: 1.5rem;
    }
    
    .category-tabs {
        padding: 0 1.5rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .category-products {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        padding: 0 1.5rem;
    }
    
/* Ajustes para mobile médio */
@media (min-width: 361px) {
    .cart-header {
        padding: 1.25rem;
    }
    
    .cart-header h3 {
        font-size: 1.15rem;
    }
    
    .cart-items {
        padding: 1rem;
        padding-bottom: 130px;
    }
    
    .cart-footer {
        padding: 1rem 1.25rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 80px));
    }
    
    .checkout-continue-btn {
        min-height: 50px;
    }
}

/* Ajustes para mobile grande */
@media (min-width: 481px) {
    .cart-header {
        padding: 1.5rem;
    }
    
    .cart-header h3 {
        font-size: 1.2rem;
    }
    
    .cart-items {
        padding: 1.25rem;
        padding-bottom: 140px;
    }
    
    .cart-footer {
        padding: 1rem 1.5rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 70px));
    }
    
    .checkout-continue-btn {
        min-height: 52px;
    }
}

/* Ajustes para tablet */
@media (min-width: 769px) {
    .cart-sidebar {
        width: 420px;
        right: -420px;
    }
    
    .cart-header {
        padding: 1.5rem;
    }
    
    .cart-items {
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + 80px);
    }
    
    .cart-footer {
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 60px));
    }
}
    
    .cart-item-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cart-item-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-customizations {
        margin-bottom: 0.5rem;
    }
    
    .customization-item {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }
    
    .cart-item-observations {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-item-price {
        margin-top: 0.5rem;
    }
    
    .price-amount {
        font-size: 1rem;
    }
    
    .cart-footer {
        padding: 0.75rem;
    }
    
    .cart-summary {
        padding: 0.75rem;
    }
    
    .summary-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .summary-row {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-total {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .checkout-continue-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        min-height: 44px;
    }
    
    .cart-total {
        font-size: 1rem;
    }
    
    .order-summary-card h3 {
        font-size: 0.95rem;
    }
    
    .summary-row {
        font-size: 0.85rem;
    }
    
    .total-row {
        font-size: 0.95rem;
    }
    
    .total-row span:last-child {
        font-size: 1.05rem;
    }
    
    .coupon-header {
        font-size: 0.85rem;
    }
    
    .coupon-input {
        font-size: 0.8rem;
        padding: 0.65rem;
    }
    
    .coupon-apply-btn {
        font-size: 0.8rem;
        padding: 0.65rem 1.1rem;
    }
    
    .order-type-indicator {
        margin-bottom: 0.5rem;
    }
    
    .order-type-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
/* Ajustes de produtos para mobile médio */
@media (min-width: 361px) {
    .product-image {
        height: 190px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 1.15rem;
    }
    
    .add-to-cart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Ajustes de produtos para mobile grande */
@media (min-width: 481px) {
    .product-image {
        height: 200px;
    }
    
    .product-name {
        font-size: 1.05rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* Ajustes de produtos para mobile pequeno */
@media (max-width: 360px) {
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .modal-header {
        padding: 1rem;
        flex-shrink: 0;
    }
    
    .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        padding-bottom: 1rem;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-description {
        font-size: 0.85rem;
    }
    
    .option-group-title {
        font-size: 0.9rem;
    }
    
    .option-name {
        font-size: 0.85rem;
    }
    
    .modal-footer {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        position: sticky;
        bottom: 0;
        z-index: 100;
    }
    
    .modal-total {
        font-size: 0.95rem;
    }
    
    .modal-add-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
    
    .modal-image-container {
        height: 150px;
    }
}

/* Mobile pequeno - ajustes específicos */
@media (max-width: 360px) {
    .establishment-info {
        margin: 0.5rem;
    }
    
    .establishment-details {
        padding: 0.875rem;
    }
    
    .establishment-title {
        font-size: 1.1rem;
    }
    
    .establishment-description {
        font-size: 0.8rem;
    }
    
    .category-tabs {
        padding: 0 0.5rem;
        gap: 0.4rem;
    }
    
    .category-tab {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .category-products {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
        padding: 0 0.5rem;
    }
    
    /* Carrinho Mobile - Telas Muito Pequenas */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        height: 100vh;
        /* Garantir que o carrinho não seja cortado pela barra de navegação */
        height: calc(100vh - env(safe-area-inset-bottom, 0px));
    }
    
    .cart-header {
        padding: 0.5rem 0.75rem;
    }
    
    .cart-header h3 {
        font-size: 0.9rem;
    }
    
    .cart-items {
        padding: 0.5rem;
        padding-bottom: calc(1rem + 110px);
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior: contain;
        min-height: 0;
    }
    
    .order-summary-card {
        margin: 0.75rem 0;
        padding: 0.9rem;
    }
    
    .cart-items::-webkit-scrollbar {
        width: 4px;
    }
    
    .cart-footer {
        position: sticky;
        bottom: 0;
        padding: 0.6rem 0.75rem;
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 80px));
        background: rgba(30, 30, 46, 0.95) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        z-index: 100;
        margin-bottom: 0;
    }
    
    .checkout-continue-btn {
        padding: 1rem;
        font-size: 1rem;
        /* Garantir área de toque adequada em mobile */
        min-height: 48px;
    }
    
    .cart-item-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .cart-item-customizations {
        margin-bottom: 0.4rem;
    }
    
    .customization-item {
        font-size: 0.6rem;
        margin-bottom: 0.15rem;
    }
    
    .cart-item-observations {
        font-size: 0.55rem;
        margin-bottom: 0.4rem;
    }
    
    .cart-item-controls {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .cart-item-price {
        margin-top: 0.4rem;
    }
    
    .price-amount {
        font-size: 0.85rem;
    }
    
    .quantity-btn {
        font-size: 0.85rem;
    }
    
    .cart-footer {
        padding: 0.5rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 80px)) !important;
    }
    
    .cart-summary {
        padding: 0.5rem;
    }
    
    .summary-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-row {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
    
    .summary-total {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .checkout-continue-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin-top: 0.4rem;
        min-height: 44px;
    }
    
    .checkout-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .cart-total {
        font-size: 0.95rem;
    }
    
    .order-summary-card h3 {
        font-size: 0.85rem;
    }
    
    .summary-row {
        font-size: 0.75rem;
    }
    
    .total-row {
        font-size: 0.85rem;
    }
    
    .total-row span:last-child {
        font-size: 0.95rem;
    }
    
    .coupon-header {
        font-size: 0.8rem;
    }
    
    .coupon-input {
        font-size: 0.75rem;
        padding: 0.6rem;
    }
    
    .coupon-apply-btn {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
    
    .order-type-indicator {
        margin-bottom: 0.4rem;
    }
    
    .order-type-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-name {
        font-size: 0.85rem;
    }
    
    .product-description {
        font-size: 0.7rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }
    
    .add-to-cart-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-header h2 {
        font-size: 0.95rem;
    }
    
    .modal-description {
        font-size: 0.8rem;
    }
    
    .modal-image-container {
        height: 120px;
    }
    
    .option-label {
        padding: 0.3rem;
    }
    
    .option-group-title {
        font-size: 0.85rem;
    }
    
    .option-name {
        font-size: 0.75rem;
    }
    
    .option-price {
        font-size: 0.75rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        position: sticky;
        bottom: 0;
        z-index: 100;
    }
    
    .modal-add-btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem 1.1rem;
    }
    
    .modal-total {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .modal-total strong {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background: rgba(30, 30, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-content a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 0.75rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
    }
    
    .footer-content p {
        font-size: 0.85rem;
    }
}
