/* Modern Delivery Layout - Estilo iFood/Rappi */

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

:root {
    --primary-color: #d32f2f;
    --secondary-color: #028b49;
    --text-dark: #2e2e2e;
    --text-gray: #6e6e6e;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 80px;
}

/* Header com imagem de capa */
.modern-header {
    position: relative;
    background: var(--white);
}

.header-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.header-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

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

.header-badge::before {
    content: "●";
    font-size: 16px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Logo */
.restaurant-logo {
    position: absolute;
    bottom: -40px;
    left: 20px;
    width: 110px;
    height: 110px;
    border-radius: 12px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    background: var(--white);
    overflow: hidden;
}

.restaurant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info da loja */
.restaurant-info {
    padding: 50px 20px 20px;
    background: var(--white);
}

.restaurant-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--text-gray);
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 10px;
}

.delivery-time {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Badge Parceiro iFood */
.ifood-partner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 15px 20px 10px 20px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: fit-content;
    max-width: max-content;
}

.ifood-mini-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.partner-text {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.verified-mini-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Responsivo - Desktop */
@media (min-width: 768px) {
    .ifood-partner-badge {
        gap: 6px;
        padding: 6px 12px;
        margin: 20px 20px 12px 20px;
    }
    
    .ifood-mini-logo {
        width: 16px;
        height: 16px;
    }
    
    .partner-text {
        font-size: 11px;
    }
    
    .verified-mini-icon {
        width: 14px;
        height: 14px;
    }
}

/* Banner de promoção */
.promo-banner {
    margin: 20px;
    background: linear-gradient(135deg, #e85d5d 0%, #d32f2f 100%);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.promo-banner h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-banner p {
    font-size: 14px;
    opacity: 0.95;
}

/* Tabs de categorias */
.category-tabs {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    padding: 10px 24px;
    border-radius: 25px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Seção de produtos */
.products-section {
    padding: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'%3E%3Cpath d='M7 2v11h3v9l7-12h-4l4-8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}


/* Card de produto */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-dark);
    overflow: hidden;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card.featured {
    border: 2px solid var(--secondary-color);
}

/* Badge de promoção no canto - REMOVIDO */
.promo-flag {
    display: none;
}

/* Layout interno do card */
.product-card-inner {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

/* Imagem do produto */
.product-image {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

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

/* Badge de desconto */
.discount-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 4px;
}

/* Conteúdo do produto */
.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0 0 4px 0;
}

.product-description {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Preços */
.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    font-size: 15px;
    color: var(--text-gray);
    text-decoration: line-through;
}

/* Botão Aproveitar */
.add-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.add-button:hover {
    background: #b71c1c;
}

.add-button:active {
    transform: scale(0.98);
}

/* Seção de avaliações */
.reviews-section {
    background: var(--white);
    padding: 24px 20px;
    margin: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.reviews-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.rating-summary {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.rating-stars {
    color: #ffc107;
    font-size: 24px;
    margin-bottom: 5px;
}

.rating-count {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-gray);
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: var(--text-gray);
}

/* Menu inferior fixo */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 12px;
    transition: color 0.3s;
    position: relative;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cart-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
}

.cart-fab:hover {
    transform: scale(1.1);
}

.cart-fab i {
    font-size: 28px;
}

.cart-fab .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .restaurant-name {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .product-card-inner {
        flex-direction: row;
    }
    
    .product-image {
        width: 110px;
        height: 110px;
    }

    .current-price {
        font-size: 22px;
    }

    .product-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 16px;
    }

    .product-card {
        padding: 16px;
    }
}

/* Alertas customizados */
.alert-modern {
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    color: var(--white);
    padding: 16px 20px;
    margin: 0 20px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: var(--shadow);
}

/* Badges especiais */
.best-seller-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 4px;
}

.limited-stock {
    background: #ff6b6b;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

/* Location Modal */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.location-modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.location-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.location-modal-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.location-modal-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.location-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    background: white;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.location-select:focus {
    border-color: var(--primary-color);
}

.location-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.location-btn:hover {
    background: #b71c1c;
}

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

/* Step 3 - Success (Redesign Profissional) */
.location-success-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f0f9f4;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.success-icon-small {
    width: 32px;
    height: 32px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon-small i {
    font-size: 16px;
    color: white;
}

.success-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d4d2b;
    margin: 0;
}

.location-info-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.info-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-icon {
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 700;
}

#locationStep3 {
    margin-top: 10px;
}

