@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #f8f8f8 0%, #f5f5f5 100%);
}

.screen {
    display: none;
    min-height: 100vh;
    background: #f5f5f5;
}

.screen.active {
    display: block;
}

#menu-content {
    opacity: 0;
    animation: fadeInContent 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#menu-content[style*="display: block"] {
    display: block !important;
    opacity: 1;
}

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

body:has(.menu-container) {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #EA1D2C;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.ifood-logo-loading {
    animation: pulse-logo 1.5s ease-in-out infinite;
}

.ifood-logo-loading img {
    height: 50px;
    width: auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === MODAL DE LOCALIZAÇÃO === */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.location-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.location-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-icon-img {
    width: 80px;
    height: 80px;
    filter: brightness(0) saturate(100%) invert(28%) sepia(93%) saturate(4632%) hue-rotate(340deg) brightness(92%) contrast(93%);
}

.location-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.location-modal-text {
    font-size: 0.95rem;
    color: #717171;
    margin-bottom: 25px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.loading-spinner-unit {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #EA1D2C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.unit-found-info {
    font-size: 0.95rem;
    color: #717171;
    margin-top: 20px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.unit-found-info .font-bold {
    font-weight: 700;
    color: #2e2e2e;
}

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

/* === MODAL DE REVISÃO DE PEDIDO === */
.reviewing-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    overflow: hidden;
}

.reviewing-order-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.reviewing-order-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.reviewing-order-animation {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviewing-order-gif {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.reviewing-order-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviewing-order-text {
    font-size: 1rem;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.reviewing-order-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.reviewing-order-progress-fill {
    height: 100%;
    background: #4cd964;
    border-radius: 2px;
    width: 0%;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.reviewing-order-wait-text {
    font-size: 0.85rem;
    color: #717171;
    font-family: 'Inter', sans-serif;
}

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

.location-detected {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.location-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.location-city {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

.location-confirm-btn {
    width: 100%;
    background: #EA1D2C;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-confirm-btn:hover {
    background: #d41a29;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.3);
}

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

.location-change-btn {
    width: 100%;
    background: white;
    color: #2e2e2e;
    border: 2px solid #e0e0e0;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-change-btn:hover {
    border-color: #EA1D2C;
    color: #EA1D2C;
    background: #fff5f5;
}

/* === TELA INICIAL (SPLASH) === */
#splash-screen {
    background-color: #EA1D2C;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.splash-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
}

.logo-container {
    margin-bottom: 30px;
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
}

.logo-container img {
    height: 40px;
    width: auto;
    display: block;
}

.offer-card {
    background: #ffffff;
    width: 100%;
    border-radius: 12px;
    padding: 35px 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    animation: fadeInUp 0.6s ease-out;
}

.check-icon-container {
    width: 80px;
    height: 80px;
    background-color: #4cd964;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    animation: pulse-green 2s infinite;
}

.checkmark {
    width: 25px;
    height: 45px;
    border-bottom: 6px solid white;
    border-right: 6px solid white;
    transform: rotate(45deg) translate(-4px, -4px);
}

.offer-card h1 {
    font-size: 1.4rem;
    color: #2e2e2e;
    font-weight: 700;
    margin-bottom: 10px;
}

.offer-card p {
    font-size: 0.95rem;
    color: #717171;
    margin-bottom: 25px;
    line-height: 1.5;
}

.action-btn {
    background-color: #EA1D2C;
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s;
    font-family: 'Inter', sans-serif;
}

.action-btn:active {
    transform: scale(0.98);
}

.footer-legal {
    margin-top: auto;
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding-left: 10px;
    padding-right: 10px;
}

.disclaimer-text {
    font-size: 9px;
    color: white;
    opacity: 0.4;
    line-height: 1.3;
    margin-bottom: 5px;
}

.copyright-text {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* === HEADER RESTAURANTE === */
.restaurant-header-bg {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.restaurant-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/70_peças.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.1);
}

.restaurant-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 12;
}

.back-btn, .search-btn, .account-btn {
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    z-index: 13;
}

.back-btn:hover, .search-btn:hover, .account-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.back-btn:active, .search-btn:active, .account-btn:active {
    transform: scale(0.95);
}

.back-btn svg, .search-btn svg, .account-btn svg {
    color: #2e2e2e;
    width: 18px;
    height: 18px;
}

.restaurant-info-card {
    background: white;
    padding: 0 20px 24px 20px;
    margin: -50px 0 0 0;
    border-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 5;
}

.restaurant-info-card .restaurant-logo {
    position: relative;
    z-index: 2;
    margin-top: -45px;
    margin-bottom: 12px;
}

.restaurant-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-logo:hover {
    transform: scale(1.05);
}

.restaurant-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.restaurant-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4AF37; /* Fallback para navegadores que não suportam gradient em texto */
    margin-bottom: 6px;
    background: linear-gradient(135deg, #D4AF37 0%, #FDB813 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback adicional */
    display: inline-block;
}

.restaurant-details {
    font-size: 0.9rem;
    color: #424242;
    margin-bottom: 12px;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2e2e2e;
}

.rating-item svg {
    color: #2e2e2e;
    fill: #2e2e2e;
}

.super-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #EA1D2C;
    font-weight: 600;
}

.super-badge svg:last-child {
    color: #EA1D2C;
    fill: none;
    stroke: #EA1D2C;
}

.delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #424242;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.delivery-dot {
    color: #424242;
}

.delivery-free {
    color: #4cd964;
    font-weight: 500;
}

.more-options {
    font-size: 0.8rem;
    color: #9e9e9e;
    margin: 0;
    padding-top: 8px;
}

/* === TABS DE CATEGORIAS === */
.category-tabs {
    display: flex;
    gap: 12px;
    padding: 20px;
    overflow-x: auto;
    background: white;
    margin-bottom: 20px;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    animation: fadeInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tab-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #717171;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    border-radius: 24px;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(234, 29, 44, 0.1);
    color: #EA1D2C;
}

.tab-btn.active {
    background: #EA1D2C;
    color: white;
    font-weight: 600;
}

/* === PRODUTOS === */
.menu-container {
    padding: 0 20px 90px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@media (max-width: 480px) {
    .menu-container {
        padding: 0 15px 100px;
    }
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 20px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    display: flex;
    gap: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 150px;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.product-info-left {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.product-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card.featured-product {
    background: #fff;
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EA1D2C;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.product-badge-special {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EA1D2C;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(234, 29, 44, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.product-badge-special.badge-special-cpf {
    top: 8px;
}

.product-badge-inline {
    display: inline-block;
    background: #EA1D2C;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 4px;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

.product-warning {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.product-description {
    font-size: 0.8rem;
    font-weight: 400;
    color: #717171;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-price-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price {
    font-size: 1rem;
    font-weight: 500;
    color: #4cd964;
    line-height: 1;
}

.product-old-price {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.product-offer-badge {
    background: #EA1D2C;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.product-badge {
    display: inline-block;
    background: #EA1D2C;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* === CARRINHO FLUTUANTE === */
.cart-float {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #EA1D2C;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.4);
    cursor: pointer;
    z-index: 100;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.cart-float-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-total {
    margin-left: 10px;
    font-weight: 700;
}

/* === BOTÃO WHATSAPP FLUTUANTE === */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}

@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }
}

/* === MODAL PRODUTO === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.modal.active {
    display: block;
    pointer-events: auto;
}

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

.modal.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    padding-bottom: 300px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10002;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

#product-modal-body {
    flex: 1;
    min-height: 0;
    padding-bottom: 200px;
}

@media (min-width: 768px) {
    .modal-content {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, 150%);
        max-width: 500px;
        width: 90%;
        border-radius: 20px;
        padding: 30px;
        padding-bottom: 30px;
        max-height: 85vh;
    }
    
    .modal.active .modal-content {
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 28px;
    color: #717171;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10004;
    transition: all 0.2s ease;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2e2e2e;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
    line-height: 1;
}

.product-modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.product-modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 8px;
}

.product-modal-description {
    font-size: 0.9rem;
    color: #717171;
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-modal-price-wrapper {
    margin-bottom: 20px;
}

.product-modal-old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.product-modal-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4cd964;
}

.yakisoba-options {
    margin: 20px 0;
}

.option-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item.selected {
    border-color: #EA1D2C;
    background: #fff5f5;
}

.option-item input[type="radio"] {
    margin-right: 12px;
}

.option-name {
    flex: 1;
    font-size: 0.9rem;
    color: #2e2e2e;
}

.option-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4cd964;
}

.addons-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.addons-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.addon-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.addon-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

.addon-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4cd964;
    font-family: 'Inter', sans-serif;
}

.addon-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 12px;
    background: white;
}

.addon-quantity-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #EA1D2C;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.addon-quantity-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.observations-field {
    margin-top: 20px;
    margin-bottom: 120px;
}

.observations-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 8px;
}

.observations-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    resize: none;
}

.observations-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

.modal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10003;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .modal-footer {
        position: relative;
        margin-top: 20px;
        padding: 16px 0 0 0;
        padding-bottom: 0;
        border-top: 1px solid #e0e0e0;
        box-shadow: none;
    }
    
    .modal-content {
        padding-bottom: 30px;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    background: white;
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #EA1D2C;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.quantity-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    background: #EA1D2C;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* === TELA CARRINHO === */
#cart-screen {
    background: white;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.cart-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e2e2e;
}

.close-btn {
    background: none;
    border: none;
    color: #EA1D2C;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.cart-content {
    padding: 20px;
    padding-bottom: 150px;
}

.cart-restaurant-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-restaurant-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.cart-restaurant-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 5px;
}

.add-more-items {
    background: none;
    border: none;
    color: #EA1D2C;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 0;
}

.cart-items-list {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-quantity {
    background: #f5f5f5;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #2e2e2e;
}

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

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #717171;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #717171;
    cursor: pointer;
    padding: 5px;
}

.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cart-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #2e2e2e;
}

.summary-row.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.summary-row.total-row span:last-child {
    color: #4cd964;
}

.free-delivery {
    color: #4cd964;
    font-weight: 600;
}

.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.cart-footer-left {
    display: flex;
    flex-direction: column;
}

.cart-footer-left span:first-child {
    font-size: 0.85rem;
    color: #717171;
}

.cart-footer-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4cd964;
}

.continue-btn {
    background: #EA1D2C;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.continue-btn:active {
    opacity: 0.9;
}

/* === TELA CHECKOUT === */
.checkout-header {
    background: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.checkout-back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

.checkout-content {
    padding: 16px;
    padding-bottom: 120px;
    max-width: 600px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e2e2e;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.checkout-section {
    margin-bottom: 18px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-header svg {
    color: #EA1D2C;
    flex-shrink: 0;
}

.section-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.address-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-row {
    display: flex;
    gap: 10px;
}

.address-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.address-input:focus {
    outline: none;
    border-color: #EA1D2C;
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.1);
}

.address-number {
    flex: 0 0 100px;
}

.address-complement {
    flex: 1;
}

.checkout-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-input:focus {
    outline: none;
    border-color: #EA1D2C;
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.1);
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.delivery-option.selected {
    border-color: #4cd964;
    background: #f0fdf4;
}

.delivery-option:active {
    transform: scale(0.98);
}

.delivery-radio {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.delivery-radio input {
    position: absolute;
    opacity: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: block;
    position: relative;
}

.delivery-radio input:checked + .radio-custom {
    border-color: #4285f4;
    background: #4285f4;
}

.delivery-radio input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}


.delivery-name {
    font-weight: 600;
    color: #2e2e2e;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
}

.delivery-time {
    font-size: 0.85rem;
    color: #717171;
    font-family: 'Inter', sans-serif;
}

.delivery-price {
    font-weight: 700;
    color: #2e2e2e;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.delivery-price.free {
    color: #4cd964;
    font-weight: 700;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #4cd964;
    border-radius: 12px;
    background: #f0fdf4;
    cursor: pointer;
}

.payment-logo-img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-name {
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 3px;
}

.payment-desc {
    font-size: 0.85rem;
    color: #4cd964;
}

.payment-option svg {
    color: #4cd964;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-top: 16px;
}

.checkout-total span:first-child {
    font-weight: 700;
    color: #2e2e2e;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.checkout-total span:last-child {
    font-weight: 700;
    color: #4cd964;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
}

.order-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    background: #EA1D2C;
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.order-btn:active {
    opacity: 0.9;
}

/* === YAKISOBA OPTIONS === */
.yakisoba-options {
    margin-top: 20px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #717171;
    margin-bottom: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item.selected {
    border-color: #EA1D2C;
    background: #fff5f5;
}

.option-item input[type="radio"] {
    margin-right: 10px;
}

.option-name {
    flex: 1;
    font-weight: 500;
    color: #2e2e2e;
}

.option-price {
    font-weight: 600;
    color: #4cd964;
}

/* === ANIMAÇÕES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 217, 100, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(76, 217, 100, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 217, 100, 0);
    }
}

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

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 100px;
        margin-bottom: 0;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* === BOTTOM CART === */
.bottom-cart {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10049 !important; /* Abaixo do modal (10050+) */
    background: #EA1D2C;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
    transform: translateY(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bottom-cart-btn {
    width: 100%;
    background: #EA1D2C;
    border: none;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-cart-btn:active {
    background: #d41a29;
}

.bottom-cart-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #EA1D2C;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.bottom-cart-text {
    flex: 1;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.bottom-cart-total {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* === MODAL SACOLA === */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10050;
    pointer-events: none;
}

.cart-modal.active {
    display: block;
    pointer-events: auto;
}

.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10051;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(4px);
}

.cart-modal.active .cart-modal-overlay {
    opacity: 1;
}

.cart-modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 10052;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
}

.cart-view-step,
.checkout-view-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-modal.active .cart-modal-content {
    transform: translateY(0);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.cart-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
    text-align: center;
    flex: 1;
    margin: 0;
    padding: 0 50px;
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 0;
}

#checkout-view .cart-modal-header h2 {
    padding: 0;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #EA1D2C;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 20px;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.checkout-body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.checkout-form-section {
    margin-bottom: 18px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.checkout-form-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.checkout-form-section .section-header svg {
    color: #EA1D2C;
}

.checkout-form-section .section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

.checkout-form-section .checkout-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    background: white;
}

.checkout-form-section .checkout-input:focus {
    outline: none;
    border-color: #EA1D2C;
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.1);
}

.checkout-form-section .address-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-form-section .address-row {
    display: flex;
    gap: 10px;
}

.checkout-form-section .address-number {
    flex: 0 0 100px;
}

.checkout-form-section .address-complement {
    flex: 1;
}

/* Header da seção de endereço */
.address-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.address-header-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.address-header-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e2e2e;
    margin: 0 0 4px 0;
    font-family: 'Inter', sans-serif;
}

.address-subtitle {
    font-size: 0.9rem;
    color: #717171;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Seção CEP */
.cep-section {
    margin-bottom: 24px;
}

.cep-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cep-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

.cep-help-link {
    font-size: 0.85rem;
    color: #EA1D2C;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.cep-help-link:hover {
    text-decoration: underline;
}

.cep-input {
    width: 100%;
}

/* Seção Complete seu endereço */
.complete-address-section {
    margin-bottom: 16px;
}

.complete-address-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2e2e2e;
    margin: 0 0 16px 0;
    font-family: 'Inter', sans-serif;
}

.address-info-box {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.info-box-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2e2e2e;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.info-box-text {
    font-size: 0.9rem;
    color: #717171;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.address-complete-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-field-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

.required-star {
    color: #EA1D2C;
}

.optional-label {
    color: #717171;
    font-weight: 400;
    font-size: 0.85rem;
}

.number-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-number-input {
    width: 100%;
}

.no-number-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
    user-select: none;
}

.no-number-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #EA1D2C;
}

.no-number-checkbox span {
    cursor: pointer;
}

.delivery-notice {
    font-size: 0.8rem;
    color: #717171;
    margin: 16px 0 0 0;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

/* Email Input com Autocomplete */
.email-input-wrapper {
    position: relative;
    width: 100%;
}

.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    animation: fadeInDown 0.2s ease;
}

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

.email-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.email-suggestion-item:hover {
    background-color: #f5f5f5;
}

.email-suggestion-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.email-suggestion-item span {
    font-size: 0.95rem;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

/* Scrollbar customizada para suggestions */
.email-suggestions::-webkit-scrollbar {
    width: 6px;
}

.email-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.email-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.email-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.checkout-form-section .delivery-options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-form-section .delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.checkout-form-section .delivery-options-group {
    gap: 12px;
}

.checkout-form-section .delivery-option:not(:last-child) {
    margin-bottom: 0;
}

.checkout-form-section .delivery-option.selected {
    border-color: #4285f4;
    background: #f0fdf4;
}

.checkout-delivery-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-form-section .payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #4cd964;
    border-radius: 12px;
    background: #f0fdf4;
    cursor: pointer;
}

.checkout-total-checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.checkout-total-checkout span:first-child {
    font-weight: 700;
    color: #2e2e2e;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.checkout-total-checkout span:last-child {
    font-weight: 700;
    color: #4cd964;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
}

.checkout-view-step .cart-modal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 10053;
}

.order-btn-modal {
    width: 100%;
    background: #EA1D2C;
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-radius: 10px;
}

.order-btn-modal:active {
    opacity: 0.9;
}

.cart-restaurant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-restaurant-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.cart-restaurant-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.add-more-items {
    background: none;
    border: none;
    color: #EA1D2C;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-more-items:hover {
    opacity: 0.8;
    transform: translateX(2px);
}

.add-more-items:active {
    transform: translateX(0);
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
}

.cart-item-row.removing {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(100%);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #717171;
    font-family: 'Inter', sans-serif;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.cart-item-remove:hover {
    background: rgba(234, 29, 44, 0.1);
    transform: scale(1.1);
}

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

.cart-item-remove svg {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-remove:hover svg {
    stroke: #EA1D2C;
}

.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cart-summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.cart-minimum-order-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-minimum-order-warning span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: #856404;
    font-family: 'Inter', sans-serif;
}

.cart-minimum-order-warning span:last-child {
    font-size: 0.85rem;
    color: #856404;
    font-family: 'Inter', sans-serif;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #2e2e2e;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-summary-row.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.cart-summary-row.total-row span:last-child {
    color: #4cd964;
}

.delivery-fee-text {
    color: #4cd964;
    font-weight: 600;
}

.cart-modal-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-footer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-footer-label {
    font-size: 0.85rem;
    color: #717171;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.cart-footer-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4cd964;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-continue-btn {
    background: #EA1D2C;
    color: white;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.cart-continue-btn:active:not(:disabled) {
    opacity: 0.9;
}

.cart-continue-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #ccc !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.category-section {
    margin-bottom: 50px;
    scroll-margin-top: 140px;
    scroll-behavior: smooth;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 24px;
    padding: 0 20px;
    letter-spacing: -0.3px;
}

/* === RESPONSIVO === */
@media (max-width: 480px) {
    .restaurant-info-card {
        margin: -40px 15px 15px 15px;
        padding: 20px 15px;
    }
    
    .menu-container {
        padding: 0 15px 100px;
    }
    
    .product-card {
        min-height: 140px;
    }
    
    .product-info-left {
        padding: 14px 16px;
        min-height: 140px;
    }
    
    .product-image-wrapper {
        width: 140px;
        height: 140px;
        padding: 10px;
    }

}
