* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Utility classes for repeated inline styles */
.form-input-style { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
.modal-desc { text-align: center; color: #666; margin-bottom: 24px; }
.form-group-col { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.btn-row { display: flex; gap: 12px; }
.btn-secondary-style { flex: 1; padding: 12px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; }
.modal-sm { max-width: 400px; }
.info-card { padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; }
.info-card-label { font-size: 0.85rem; color: #666; margin-bottom: 8px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    overflow-x: hidden;
}
/* Header iFood Style */
.header {
    background: #119a31;
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(17, 154, 49, 0.2);
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #119a31;
}
.logo {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}
.brand-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-subtitle {
    font-size: 0.72rem;
    opacity: 0.82;
    font-weight: 500;
}
.map-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-100% + 10px));
    z-index: 420;
    pointer-events: none;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #dc2626;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
    rotate: -45deg;
}
.map-center-pin::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    top: 7px;
    left: 7px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
}
.btn-shape {
    border: 1px solid transparent;
    min-height: 42px;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn-shape:hover {
    transform: translateY(-1px);
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    background: rgba(255,255,255,0.12);
    padding: 0;
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 999px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    justify-content: center;
}
.user-menu.logged-in {
    cursor: pointer;
    width: auto;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    gap: 8px;
    position: relative;
}
.user-menu.logged-in span {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 132px;
    padding: 8px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    border: 1px solid #e5e7eb;
    z-index: 1200;
}
.user-menu.open .user-menu-dropdown {
    display: block;
}
.logout-inline-btn {
    width: 100%;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.logout-inline-btn:hover {
    background: #ffe4e6;
}
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 60px;
    height: 60px;
    background: #ea1d2c;
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(234, 29, 44, 0.3);
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
    padding: 0 18px;
}
.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(234, 29, 44, 0.4);
}
.cart-count {
    position: static;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-cart-label {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
/* Main Content */
.main-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    gap: 20px;
}
.content-left {
    flex: 1;
    min-width: 0;
}
.content-right {
    width: 380px;
    position: sticky;
    top: 140px;
    height: fit-content;
}
/* Restaurant Card */
.restaurant-card {
    background: white;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: none;
}
.restaurant-header {
    background: white;
    color: #111827;
    padding: 0;
    position: relative;
}
.store-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.store-meta-items {
    display: flex;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    min-width: 0;
    font-size: 0.84rem;
    color: #475569;
}
.store-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.store-profile-link {
    border: none;
    background: transparent;
    color: #16a34a;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.store-profile-link:hover {
    color: #15803d;
}
.store-profile-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.52);
    z-index: 2500;
}
.store-profile-modal.active {
    display: flex;
}
.store-profile-content {
    width: min(100%, 860px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24);
}
.store-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #e5e7eb;
}
.store-profile-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}
.store-profile-close {
    border: none;
    background: #f3f4f6;
    color: #111827;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.2rem;
    cursor: pointer;
}
.store-profile-body {
    padding: 20px 22px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px;
}
.store-profile-panel {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}
.store-profile-summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.store-profile-logo {
    width: 128px;
    height: 128px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.8rem;
}
.store-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}
.store-profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}
.store-profile-tagline {
    font-size: 0.92rem;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.45;
}
.store-profile-list {
    display: grid;
    gap: 12px;
}
.store-profile-item {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f8fafc;
}
.store-profile-item strong {
    display: block;
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 6px;
}
.store-profile-item span,
.store-profile-item a {
    color: #111827;
    text-decoration: none;
    line-height: 1.5;
    word-break: break-word;
}
.store-profile-item a:hover {
    text-decoration: underline;
}
.store-profile-map {
    width: 100%;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.restaurant-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.restaurant-summary {
    padding: 0;
    display: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eef2f7;
}
.store-status-banner {
    margin: 10px 16px 0;
    border-radius: 8px;
    background: #fce7e7;
    color: #b45309;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.restaurant-summary-copy {
    min-width: 0;
}
.restaurant-tagline {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}
.restaurant-summary-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.82rem;
    font-weight: 700;
}
.restaurant-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    opacity: 1;
    margin-top: 10px;
}
.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
}
.restaurant-time {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}
/* Categories */
.categories {
    padding: 12px 16px 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.category-tabs {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
    display: none;
}
.category-tab {
    background: transparent;
    border: none;
    padding: 0 0 12px;
    min-height: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s, border-color 0.2s;
    flex: 0 0 auto;
    border-bottom: 3px solid transparent;
}
.category-tab.active {
    background: transparent;
    color: #119a31;
    border-color: #119a31;
    box-shadow: none;
}
.category-tab:hover {
    background: transparent;
}
.category-tab.active:hover {
    background: transparent;
}
/* Products Grid */
.products-section {
    padding: 0 16px 20px;
    background: #fff;
}
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.products-grid::before {
    content: 'Mais populares';
    display: block;
    padding: 18px 0 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}
.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    transition: none;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    padding: 16px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
    align-items: center;
}
.product-image {
    width: 112px;
    height: 112px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #999;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    order: 2;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ea1d2c;
    color: white;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.product-info {
    padding: 0;
    min-width: 0;
    order: 1;
}
.product-name {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}
.product-description {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.product-price-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-price-label {
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-price {
    font-size: 1rem;
    font-weight: bold;
    color: #111827;
}
.add-btn {
    background: transparent;
    color: #119a31;
    border: none;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    white-space: nowrap;
}
.add-btn:hover {
    background: transparent;
    color: #0f7a28;
}
/* Product Options Modal */
.product-options-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.product-options-modal.active {
    display: flex;
}
.product-options-content {
    background: white;
    border-radius: 22px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}
.product-options-header {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #999;
}
.product-options-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.close-options {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.product-options-body {
    padding: 24px;
}
.product-options-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-options-description {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.4;
}
.options-group {
    margin-bottom: 24px;
}
.options-group-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}
.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.option-item:last-child {
    border-bottom: none;
}
.option-info {
    flex: 1;
}
.option-name {
    font-weight: 500;
    margin-bottom: 4px;
}
.option-description {
    font-size: 0.85rem;
    color: #666;
}
.option-price {
    font-weight: 600;
    color: #ea1d2c;
    margin-left: 12px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #eef2f7;
}
.quantity-btn {
    background: white;
    border: 1px solid #e5e7eb;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.quantity-btn:hover {
    border-color: #ea1d2c;
    color: #ea1d2c;
    transform: translateY(-1px);
}
.quantity-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}
.add-to-cart-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px 24px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ea1d2c;
}
.add-to-cart-btn {
    background: #ea1d2c;
    color: white;
    border: 1px solid transparent;
    padding: 10px 18px;
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.18);
}
.add-to-cart-btn:hover {
    background: #d01120;
    transform: translateY(-1px);
}
/* Cart Sidebar */
.cart-sidebar {
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
    position: sticky;
    top: 140px;
}
.cart-header {
    background: #119a31;
    color: white;
    padding: 18px 16px;
    font-weight: 700;
    font-size: 1rem;
}
.cart-items {
    max-height: 320px;
    overflow-y: auto;
    padding: 16px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}
.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quantity-btn {
    background: #f3f4f6;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: #2563eb;
    font-size: 1rem;
    font-weight: 700;
}
.quantity-btn:hover {
    background: #e0e0e0;
}
.cart-summary {
    padding: 16px;
    border-top: 1px solid #eef2f7;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: #dc2626;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
}
.checkout-btn {
    width: 100%;
    background: #119a31;
    color: white;
    border: 1px solid transparent;
    padding: 10px 18px;
    min-height: 52px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 16px;
    box-shadow: none;
}
.checkout-btn:hover {
    background: #0f7a28;
    transform: translateY(-1px);
}
.bottom-nav {
    display: none;
}
.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.map-modal.active {
    display: flex;
}
.map-content {
    background: white;
    border-radius: 24px;
    width: min(100%, 460px);
    max-height: 92vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}
.map-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.map-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.close-map {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.35rem;
    cursor: pointer;
    color: #be123c;
    flex-shrink: 0;
}
.map-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.map-sidebar {
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.map-sidebar-title {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 700;
}
.map-search-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}
.map-search-input {
    flex: 1;
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 0.94rem;
    background: #fff;
    color: #334155;
}
.map-search-btn {
    min-height: 44px;
    min-width: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-search-btn:hover {
    transform: translateY(-1px);
    background: #f8fafc;
}
.map-search-actions {
    display: flex;
    gap: 10px;
}
.map-search-actions .map-secondary-btn {
    flex: 1;
}
.map-search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 0.96rem;
    color: #111827;
    background: #fff;
}
.map-search-input:focus {
    outline: none;
    border-color: #f43f5e;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}
.map-secondary-btn,
.map-primary-btn {
    min-height: 48px;
    border-radius: 16px;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.map-secondary-btn:hover,
.map-primary-btn:hover {
    transform: translateY(-1px);
}
.map-secondary-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
}
.map-primary-btn {
    border: none;
    background: #facc15;
    color: #111827;
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.28);
}
.map-canvas-wrap {
    position: relative;
    background: #e5e7eb;
    min-height: 0;
    flex: 1;
}
.map-footer {
    padding: 16px;
    border-top: 1px solid #eef2f7;
    background: #fff;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
}
.map-floating-note {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 500;
    width: min(86%, 360px);
    background: rgba(255, 248, 220, 0.96);
    border: 1px solid #fcd34d;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: center;
    color: #57534e;
    font-weight: 500;
}
#map {
    flex: 1;
    width: 100%;
    height: 100%;
}
.map-pin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.map-pin-restaurant {
    background: #059669;
}
@media (max-width: 820px) {
    .map-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .map-sidebar {
        border-bottom: 1px solid #eef2f7;
        padding: 14px 16px;
    }
    .map-footer {
        padding: 12px 16px;
    }
    .map-canvas-wrap {
        flex: 1;
        min-height: 0;
    }
}
#deliveryZones {
    display: none;
}
/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.login-modal.active {
    display: flex;
}
.login-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    max-height: min(90vh, calc(var(--app-vh, 1vh) * 90));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
@media (max-width: 480px) {
    .login-content {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(var(--app-vh, 1vh) * 100 - 24px);
    }
}
.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #ea1d2c;
}
.login-btn {
    width: 100%;
    background: #ea1d2c;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.login-btn:hover {
    background: #d01120;
}
.secondary-btn {
    width: 100%;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.secondary-btn:hover {
    background: #e0e0e0;
}
.register-link {
    text-align: center;
    margin-top: 16px;
    color: #666;
}
.register-link a {
    color: #ea1d2c;
    text-decoration: none;
    font-weight: 500;
}
/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    .content-right {
        width: 100%;
        position: static;
    }
    .cart-sidebar {
        position: static;
        margin-top: 12px;
    }
}
@media (max-width: 768px) {
    .header {
        overflow: visible;
    }
    .header-top {
        padding: 10px 14px;
        gap: 10px;
    }
    .brand-name {
        font-size: 0.96rem;
    }
    .header-actions {
        gap: 8px;
    }
    .user-menu {
        min-height: 36px;
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 12px;
        justify-content: center;
    }
    .user-menu {
        justify-content: center;
    }
    .user-menu.logged-in {
        width: auto;
        max-width: 100%;
        padding: 0 8px;
    }
    .user-menu.logged-in span {
        display: none;
    }
    .user-menu-dropdown {
        right: -4px;
    }
    .restaurant-card {
        border-radius: 0;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
    .store-meta-strip {
        padding: 10px 14px;
        align-items: flex-start;
        flex-direction: column;
    }
    .store-profile-link {
        padding-left: 2px;
    }
    .store-profile-body {
        grid-template-columns: 1fr;
    }
    .store-profile-modal {
        padding: 12px;
        align-items: flex-start;
    }
    .store-profile-content {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }
    .category-tabs {
        gap: 18px;
    }
    .category-tab {
        padding: 8px 12px;
        min-height: 34px;
    }
    .search-btn {
        width: 100%;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .restaurant-summary {
        padding: 14px;
    }
    .restaurant-name {
        font-size: 1.16rem;
    }
    .restaurant-summary-badge {
        min-width: 42px;
        height: 42px;
        font-size: 0.76rem;
    }
    .products-section {
        padding: 0 12px 16px;
    }
    .product-card {
        padding: 14px 0;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) 92px;
    }
    .product-image {
        width: 92px;
        height: 92px;
        border-radius: 14px;
    }
    .product-description {
        line-clamp: 3;
        -webkit-line-clamp: 3;
    }
    .product-footer {
        align-items: center;
    }
    .floating-cart-btn {
        left: 16px;
        right: 16px;
        bottom: 82px;
        min-width: 0;
        height: 58px;
        justify-content: center;
        border-radius: 12px;
    }
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 64px;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        z-index: 1200;
    }
    .bottom-nav-item {
        border: none;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #6b7280;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
    }
    .bottom-nav-item.active {
        color: #119a31;
    }
    .bottom-nav-icon {
        font-size: 1.15rem;
        line-height: 1;
    }
}
@media (max-width: 480px) {
    body {
        padding-bottom: 82px;
    }
    .main-content {
        padding: 0;
    }
    .floating-cart-label {
        display: inline;
    }
    .store-meta-items {
        gap: 6px 10px;
        font-size: 0.78rem;
    }
    .restaurant-summary {
        gap: 12px;
    }
    .product-card {
        grid-template-columns: minmax(0, 1fr) 84px;
    }
    .product-image {
        width: 84px;
        height: 84px;
    }
    .add-btn {
        font-size: 0.8rem;
    }
}
@media (min-width: 1025px) {
    .main-content {
        align-items: start;
    }
    .products-grid {
        gap: 12px;
    }
    .product-card {
        grid-template-columns: minmax(0, 1fr) 120px;
    }
    .product-image {
        width: 120px;
        height: 120px;
    }
}
/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}
/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success {
    background: #4caf50;
}
.toast.error {
    background: #f44336;
}
.install-btn {
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.16);
    color: white;
    min-height: 36px;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.install-card {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    padding: 12px 16px;
    display: none;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.install-card.active {
    display: flex;
}
.install-card-text {
    font-size: 0.88rem;
    opacity: 0.9;
    flex: 1;
    min-width: 200px;
}
.install-card-btn {
    border: none;
    background: #fff;
    color: #111827;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.install-card-secondary {
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: white;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
/* Landing Screen - v20260313 */
#landingScreen { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background-color: #111; background-size: cover; background-position: center; background-repeat: no-repeat; --landing-logo-max-height: 45vh; --landing-logo-max-width: 80vw; --landing-buttons-width: 60%; --landing-buttons-width-mobile: 70%; --landing-buttons-width-small: 75%; transition: opacity 0.18s ease, background-image 0.18s ease; }
#landingScreen.hidden { display: none !important; }
html.landing-pending #landingScreen.hidden { display: flex !important; }
.landing-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.42) 100%); transition: background 0.18s ease; }
.landing-content { position: relative; z-index: 1; text-align: center; width: 100%; max-width: 480px; padding: 40px 24px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; opacity: 1; transform: translateZ(0); transition: opacity 0.18s ease, transform 0.18s ease; }
.landing-logo-wrap { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 100px; }
.landing-logo-wrap img { max-height: var(--landing-logo-max-height); max-width: var(--landing-logo-max-width); width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
.landing-logo-placeholder { font-size: 6rem; }
.landing-subtitle { color: rgba(255,255,255,0.88); font-size: 1rem; margin-bottom: 28px; text-shadow: 0 1px 4px rgba(0,0,0,0.7); letter-spacing: 0.02em; }
#landingModeBtns { width: 100%; display: flex; flex-direction: column; align-items: center; }
.landing-mode-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: var(--landing-buttons-width); padding: 10px 14px; margin-bottom: 10px; background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)); border: 1px solid rgba(255,255,255,0.24); border-radius: 16px; color: #fff; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s, border-color 0.15s, box-shadow 0.15s; backdrop-filter: blur(14px) saturate(145%); -webkit-backdrop-filter: blur(14px) saturate(145%); text-align: center; box-sizing: border-box; box-shadow: 0 10px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18); }
.landing-mode-btn:hover { background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12)); border-color: rgba(255,255,255,0.34); transform: translateY(-1px); }
.landing-mode-btn:active { transform: scale(0.98); }
.landing-mode-icon { font-size: 1.2rem; min-width: 24px; text-align: center; }
@media (max-width: 768px) { 
    .landing-content { max-width: 100%; padding: 28px 16px; } 
    .landing-mode-btn { width: var(--landing-buttons-width-mobile); } 
    .landing-logo-wrap img { 
        max-height: var(--landing-logo-max-height);
        max-width: var(--landing-logo-max-width);
        min-height: 70px;
    } 
}
@media (max-width: 480px) { 
    .landing-content { max-width: 100%; padding: 28px 16px; } 
    .landing-mode-btn { width: var(--landing-buttons-width-small); } 
    .landing-logo-wrap img { 
        max-height: var(--landing-logo-max-height);
        max-width: var(--landing-logo-max-width);
        min-height: 50px;
    } 
}
/* Table Tracking Modal */
.table-track-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.table-track-overlay.hidden { display: none !important; }
.table-track-box { background: #fff; border-radius: 20px; padding: 28px 24px; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.35); max-height: 90vh; overflow-y: auto; }
.table-track-header { text-align: center; margin-bottom: 28px; }
.table-track-icon { font-size: 2.5rem; margin-bottom: 8px; }
.table-track-title { font-size: 1.2rem; font-weight: 800; color: #111; }
.table-track-code { font-size: 0.82rem; color: #888; margin-top: 4px; }
.track-steps { display: flex; flex-direction: column; padding-left: 8px; }
.track-step { display: flex; align-items: flex-start; gap: 16px; padding: 10px 0 10px 20px; border-left: 3px solid #e5e7eb; margin-left: 6px; position: relative; transition: border-color 0.4s; }
.track-step:last-child { border-left-color: transparent; }
.track-step-dot { position: absolute; left: -9px; top: 14px; width: 15px; height: 15px; border-radius: 50%; background: #e5e7eb; border: 3px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; flex-shrink: 0; transition: all 0.4s; }
.track-step.active .track-step-dot { background: var(--primary-color,#dc2626); box-shadow: 0 0 0 2px var(--primary-color,#dc2626); }
.track-step.done .track-step-dot { background: #10b981; box-shadow: 0 0 0 2px #10b981; }
.track-step.done { border-left-color: #10b981; }
.track-step.active { border-left-color: var(--primary-color,#dc2626); }
.track-step-label { font-weight: 700; font-size: 0.92rem; color: #333; opacity: 0.4; transition: opacity 0.4s; }
.track-step.active .track-step-label, .track-step.done .track-step-label { opacity: 1; }
.track-step-desc { font-size: 0.8rem; color: #888; margin-top: 2px; }
.track-status-msg { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #555; min-height: 40px; }
@media (max-width: 480px) { .table-track-box { border-radius: 16px; padding: 20px 16px; } }
/* Required option section styles */
.options-section { margin-bottom: 18px; }
.options-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.options-section-title { font-weight: 700; font-size: 0.97rem; color: #1a1a1a; }
.options-section-required { background: #dc2626; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.03em; }
.options-section-optional { background: #6b7280; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.options-section.required-error { border: 2px solid #dc2626; border-radius: 10px; padding: 10px; background: #fef2f2; }
/* ========== MOBILE COMPACT MODE - Redução de 15% em todos elementos ========== */
@media (max-width: 768px) {
    /* Base font size reduction */
    html { font-size: 85%; }
    /* Container margins - afastar cards das bordas */
    .main-content { padding: 0 12px; }
    .content-left { padding: 0 4px; }
    /* Header */
    .header-top { padding: 8px 12px; gap: 8px; }
    .brand-name { font-size: 0.82rem; }
    .brand-subtitle { font-size: 0.65rem; }
    .brand-mark { font-size: 1.5rem; }
    .install-btn { font-size: 0.72rem; padding: 6px 10px; }
    /* Buttons */
    .user-menu {
        min-height: 32px; width: 32px; height: 32px; border-radius: 10px;
    }
    .user-avatar { font-size: 0.9rem; }
    /* Restaurant card */
    .restaurant-card { padding: 12px; }
    .store-meta-strip { padding: 8px 12px; gap: 6px; }
    .store-profile-link { font-size: 0.72rem; padding: 4px 10px; }
    /* Category tabs */
    .category-tabs { padding: 8px 12px; gap: 6px; }
    .category-tab { font-size: 0.75rem; padding: 6px 12px; border-radius: 16px; }
    /* Cart */
    .cart-item { padding: 12px 14px; gap: 10px; }
    .cart-item-name { font-size: 0.82rem; }
    .cart-item-price { font-size: 0.82rem; }
    .quantity-btn { width: 28px; height: 28px; font-size: 0.9rem; }
    .quantity-value { font-size: 0.82rem; min-width: 24px; }
    /* Checkout */
    .checkout-btn { padding: 12px; font-size: 0.88rem; border-radius: 10px; }
    /* Modals */
    .login-content { padding: 18px 16px; border-radius: 16px; }
    .login-title { font-size: 1.05rem; }
    .login-btn, .btn-primary { padding: 12px; font-size: 0.85rem; border-radius: 10px; }
    .btn-secondary { padding: 10px; font-size: 0.82rem; }
    .form-input, input, select, textarea { 
        padding: 10px 12px; font-size: 0.85rem; border-radius: 8px; 
    }
    label { font-size: 0.82rem; }
    /* Options */
    .options-section-title { font-size: 0.85rem; }
    .options-section-required, .options-section-optional { font-size: 0.62rem; padding: 2px 6px; }
    .option-item { padding: 10px; }
    .option-price { font-size: 0.78rem; }
    /* Delivery modals */
    .map-footer { padding: 12px; }
    .map-footer button { padding: 12px; font-size: 0.85rem; }
    /* Toast */
    .toast { font-size: 0.78rem; padding: 10px 14px; border-radius: 8px; }
    /* Landing */
    .landing-mode-btn { font-size: 0.78rem; padding: 10px 14px; border-radius: 14px; }
    .landing-mode-icon { font-size: 1.1rem; }
    /* Table tracking */
    .table-track-box { padding: 18px 14px; border-radius: 14px; }
    .table-track-title { font-size: 1.05rem; }
    .track-step-label { font-size: 0.82rem; }
    .track-step-desc { font-size: 0.72rem; }
}