/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

.marketplace-container {
    min-height: 100vh;
    background: #f8f9fa;
    width: 100%;
}

/* Header Principal */
.marketplace-header {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(251, 191, 36, 0.3);
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

.marketplace-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Header de Categorias Separado */
.categorias-header {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.categorias-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.marketplace-header.scrolled .logo-section {
    margin-bottom: 10px;
}

.marketplace-logo {
    width: 160px;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.marketplace-header.scrolled .marketplace-logo {
    width: 120px;
}

.title-section {
    margin-left: 25px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.marketplace-header.scrolled .title-section {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin-left: 0;
}

.marketplace-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    line-height: 1.1;
}

.marketplace-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
    opacity: 0.9;
}

/* Categorias */
.categorias-container {
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    transition: all 0.3s ease;
}

.categorias-scroll {
    display: flex;
    gap: 12px;
    min-width: max-content;
    padding: 0 0 5px 0;
    transition: all 0.3s ease;
}

.categorias-header.scrolled .categorias-scroll {
    gap: 8px;
    padding-bottom: 3px;
}

.categoria-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 22px;
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 95px;
    text-decoration: none;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.categorias-header.scrolled .categoria-btn {
    padding: 12px 16px;
    min-width: 70px;
}

.categoria-btn:hover, .categoria-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.categoria-img {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    filter: opacity(0.85);
    transition: all 0.3s ease;
}

.categorias-header.scrolled .categoria-img {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.categoria-btn:hover .categoria-img,
.categoria-btn.active .categoria-img {
    filter: opacity(1) drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3)) brightness(0) invert(1);
}

.categoria-btn span {
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.categorias-header.scrolled .categoria-btn span {
    font-size: 10px;
}

/* Destaque */
.destaque-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.destaque-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    min-height: 220px;
    transition: all 0.3s ease;
    border: 1px solid #f0f1f3;
}

.destaque-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.destaque-image {
    position: relative;
    flex: 1;
    max-width: 300px;
}

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

.destaque-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fbbf24;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.destaque-info {
    flex: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.destaque-nome {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.destaque-descricao {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

.destaque-detalhes {
    margin-bottom: 20px;
}

.destaque-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.aberto {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.fechado {
    background: #fee2e2;
    color: #991b1b;
}

.horario-info {
    font-size: 14px;
    color: #6c757d;
}

/* Sistema de avaliação temporariamente desabilitado */
/*
.rating-destaque {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars i {
    color: #fbbf24;
    font-size: 14px;
}

.rating-destaque span {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}
*/

.btn-destaque {
    background: #fbbf24;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-destaque:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Seção de Restaurantes */
.restaurantes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-header {
    margin-bottom: 25px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

/* Busca Simplificada */
.busca-container {
    position: relative;
    width: 300px;
}

.busca-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 1;
}

.busca-container input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.busca-container input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}

/* Filtros Limpos */
.filtros-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.filtro-btn {
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-btn:hover, .filtro-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: transparent;
    color: white;
}

.section-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Lista de Restaurantes */
.restaurantes-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    align-items: start;
}

@media (min-width: 1200px) {
    .restaurantes-lista {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .restaurantes-lista {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .restaurantes-lista {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
}

.restaurante-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f1f3;
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.6s ease forwards;
    height: auto;
    min-height: 140px;
    max-height: 180px;
    display: flex;
    flex-direction: column;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-item {
        width: 100% !important;
        min-height: 120px !important;
        max-height: 120px !important;
        height: 120px !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box;
    }
}

.restaurante-item:nth-child(1) { animation-delay: 0.1s; }
.restaurante-item:nth-child(2) { animation-delay: 0.2s; }
.restaurante-item:nth-child(3) { animation-delay: 0.3s; }
.restaurante-item:nth-child(4) { animation-delay: 0.4s; }
.restaurante-item:nth-child(5) { animation-delay: 0.5s; }
.restaurante-item:nth-child(6) { animation-delay: 0.6s; }

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

.restaurante-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos para empresas fechadas */
.restaurante-item.fechado {
    background: #f5f5f5 !important;
    filter: grayscale(80%);
    opacity: 0.7;
}

.restaurante-item.fechado .restaurante-imagem img {
    filter: grayscale(100%) brightness(0.8);
}

.restaurante-item.fechado .restaurante-nome {
    color: #6c757d !important;
}

.restaurante-item.fechado .status-text {
    color: #6c757d !important;
}

.restaurante-item.fechado .info-linha.delivery span {
    color: #6c757d !important;
}

.restaurante-item.fechado .status-indicator {
    background-color: #9ca3af !important;
}

.restaurante-item.fechado:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.restaurante-link {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    gap: 16px;
    height: 100%;
    min-height: 140px;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-link {
        padding: 12px !important;
        gap: 12px !important;
        height: 100% !important;
        min-height: 120px !important;
        max-height: 120px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box;
        width: 100%;
    }
}

.restaurante-imagem {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-imagem {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0 !important;
        border-radius: 12px;
        overflow: hidden;
    }
}

.restaurante-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-indicator.aberto {
    background-color: #10b981;
}

.status-indicator.fechado {
    background-color: #ef4444;
}

.restaurante-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100px;
    justify-content: space-between;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        gap: 2px !important;
        overflow: hidden;
    }
}

.restaurante-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-header {
        margin-bottom: 2px !important;
    }
}

/* Tags Simples */
.tag-popular {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 6px;
    border-radius: 6px;
}

.tag-promocao {
    position: absolute;
    top: 8px;
    right: 35px;
    background: #fbbf24;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Layout do Restaurante Simplificado */
.nome-rating {
    width: 100%;
    margin-bottom: 4px;
}

.restaurante-nome {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-nome {
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin: 0 0 2px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-height: 1.2em !important;
        font-weight: 700;
        color: #1a202c;
    }
}

.rating-preco {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .rating-preco {
        margin-bottom: 2px !important;
    }
}

.preco-medio {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

/* Info Linhas */
.restaurante-detalhes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-detalhes {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        justify-content: flex-start !important;
    }
}

.info-linha {
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.3;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .info-linha {
        font-size: 12px !important;
        margin-bottom: 1px !important;
        line-height: 1.2 !important;
    }
}

.info-linha.delivery {
    display: flex;
    gap: 12px;
    color: #6b7280;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .info-linha.delivery {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }
}

.tempo-destaque {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white !important;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .tempo-destaque {
        font-size: 10px !important;
        padding: 2px 6px !important;
        white-space: nowrap !important;
    }
}

.status-text.aberto {
    color: #059669;
    font-weight: 500;
}

.status-text.fechado {
    color: #dc2626;
    font-weight: 500;
}

/* Actions Simplificadas */
.restaurante-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    justify-content: center;
    min-width: 40px;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .restaurante-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 80px !important;
    }
}

.btn-favorito {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .btn-favorito {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }
}

.btn-favorito:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
    color: #ff6b6b;
}

.btn-favorito.favorito {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

/* Remove todos os ícones e pseudo-elementos */
.btn-favorito i,
.btn-favorito::before {
    display: none !important;
}

/* Adiciona texto simples */
.btn-favorito::after {
    content: "♡";
    font-size: 14px;
    line-height: 1;
}

.btn-favorito.favorito::after {
    content: "♥";
}

.arrow {
    color: #d1d5db;
    font-size: 14px;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .arrow {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .marketplace-title {
        font-size: 22px;
    }
    
    .marketplace-subtitle {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .marketplace-header {
        padding: 15px 0;
    }
    
    .categorias-header {
        padding: 10px 0;
    }
    
    .categorias-header.scrolled {
        padding: 6px 0;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
    }
    
    .title-section {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .marketplace-logo {
        width: 110px;
    }
    
    .destaque-section {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .restaurantes-section {
        padding: 20px 15px;
    }
    
    .categoria-btn {
        min-width: 65px;
        padding: 10px 12px;
    }
    
    .categorias-header.scrolled .categoria-btn {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .filtros-container {
        flex-wrap: wrap;
    }
    
    .restaurante-link {
        padding: 12px;
        gap: 12px;
        min-height: 110px;
    }
    
    .restaurante-imagem {
        width: 70px;
        height: 70px;
    }
    
    .restaurante-nome {
        font-size: 15px;
        line-height: 1.2;
        -webkit-line-clamp: 1;
        max-height: 1.2em;
    }
    
    .restaurante-info {
        min-height: 70px;
        gap: 3px;
    }
    
    .info-linha {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .tempo-destaque {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .btn-favorito {
        width: 28px;
        height: 28px;
    }
    
    .btn-favorito::after {
        font-size: 12px;
    }
    
    .restaurante-item {
        min-height: 110px;
        max-height: 140px;
    }
    
    .restaurante-actions {
        gap: 8px;
        min-width: 32px;
    }
}

/* Loading Skeleton */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px;
    gap: 15px;
    border: 1px solid #e9ecef;
}

.skeleton-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-subtitle {
    height: 16px;
    width: 40%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-info {
    height: 14px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Scrollbar das categorias */
.categorias-container::-webkit-scrollbar {
    height: 4px;
}

.categorias-container::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.categorias-container::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 10px;
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn-retry {
    background: #fbbf24;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-retry:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
    .marketplace-title {
        font-size: 28px;
    }
    
    .marketplace-subtitle {
        font-size: 15px;
    }
    
    .marketplace-header {
        padding: 20px 0;
    }
    
    .categorias-header {
        padding: 12px 0;
    }
    
    .categorias-header.scrolled {
        padding: 8px 0;
    }
    
    .logo-section {
        margin-bottom: 0;
    }
    
    .marketplace-logo {
        width: 140px;
    }
    
    .categoria-btn {
        padding: 12px 16px;
        min-width: 75px;
    }
    
    .categorias-header.scrolled .categoria-btn {
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .categoria-img {
        width: 28px;
        height: 28px;
    }
    
    .categorias-header.scrolled .categoria-img {
        width: 20px;
        height: 20px;
        margin-bottom: 3px;
    }
    
    .categoria-btn span {
        font-size: 11px;
    }
    
    .categorias-header.scrolled .categoria-btn span {
        font-size: 9px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .busca-container {
        width: 100%;
    }
    
    .destaque-container {
        flex-direction: column;
    }
    
    .destaque-image {
        max-width: none;
        height: 200px;
    }
    
    .destaque-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .marketplace-title {
        font-size: 22px;
    }
    
    .marketplace-subtitle {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .marketplace-header {
        padding: 15px 0;
    }
    
    .categorias-header {
        padding: 10px 0;
    }
    
    .categorias-header.scrolled {
        padding: 6px 0;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
    }
    
    .title-section {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .marketplace-logo {
        width: 110px;
    }
    
    .destaque-section {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .restaurantes-section {
        padding: 20px 15px;
    }
    
    .categoria-btn {
        min-width: 65px;
        padding: 10px 12px;
    }
    
    .categorias-header.scrolled .categoria-btn {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .filtros-container {
        flex-wrap: wrap;
    }
}

/* Seção de Restaurantes Populares */
.populares-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.populares-section .section-header {
    margin-bottom: 25px;
    text-align: center;
}

.populares-section .section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.populares-section .section-title i {
    color: #f59e0b;
    font-size: 24px;
}

.populares-section .section-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.populares-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    align-items: start;
}

@media (min-width: 1200px) {
    .populares-lista {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .populares-lista {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

.popular-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #f0f1f3;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 160px;
}

.popular-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #fbbf24;
}

.popular-item.fechado {
    background: #f5f5f5;
    filter: grayscale(80%);
    opacity: 0.7;
}

.popular-ranking {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.ranking-numero {
    font-size: 16px;
}

.popular-ranking .fa-trophy.gold {
    color: #ffd700;
}

.popular-ranking .fa-trophy.silver {
    color: #c0c0c0;
}

.popular-ranking .fa-trophy.bronze {
    color: #cd7f32;
}

.popular-link {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    gap: 16px;
    height: 100%;
    min-height: 160px;
}

@media (max-width: 767px) {
    .popular-link {
        padding: 12px;
        gap: 12px;
        min-height: 140px;
    }
}

.popular-imagem {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .popular-imagem {
        width: 80px;
        height: 80px;
    }
}

.popular-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .popular-info {
        min-height: 80px;
        gap: 4px;
    }
}

.popular-nome {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .popular-nome {
        font-size: 16px;
        -webkit-line-clamp: 1;
    }
}

.popular-detalhes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-detalhes .info-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 2px;
}

.popular-detalhes .info-linha.delivery {
    justify-content: space-between;
}

.popular-detalhes .status-text.aberto {
    color: #059669;
    font-weight: 500;
}

.popular-detalhes .status-text.fechado {
    color: #dc2626;
    font-weight: 500;
}

.popular-detalhes .tempo-destaque {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.popular-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 40px;
}

@media (max-width: 767px) {
    .popular-actions {
        gap: 8px;
        min-width: 32px;
    }
}

.popular-actions .btn-favorito {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 767px) {
    .popular-actions .btn-favorito {
        width: 32px;
        height: 32px;
    }
}

.popular-actions .btn-favorito:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    transform: scale(1.1);
}

.popular-actions .btn-favorito.favorito {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    color: white;
}

.popular-actions .arrow {
    color: #d1d5db;
    font-size: 16px;
    transition: all 0.3s ease;
}

.popular-item:hover .popular-actions .arrow {
    color: #fbbf24;
    transform: translateX(3px);
}

/* Responsividade para seção populares */
@media (max-width: 480px) {
    .populares-section {
        margin: 15px;
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .populares-section .section-title {
        font-size: 22px;
    }
    
    .populares-section .section-subtitle {
        font-size: 14px;
    }
    
    .popular-link {
        padding: 10px;
        gap: 10px;
        min-height: 120px;
    }
    
    .popular-imagem {
        width: 70px;
        height: 70px;
    }
    
    .popular-nome {
        font-size: 14px;
    }
    
    .popular-detalhes .info-linha {
        font-size: 11px;
    }
    
    .popular-detalhes .tempo-destaque {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .popular-ranking {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .ranking-numero {
        font-size: 14px;
    }
}

/* Slide dos Restaurantes Populares - Design Compacto */
.destaques-slide-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.slide-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
}

.slide-header {
    text-align: center;
    padding: 20px 20px 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
}

.slide-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #1a202c;
}

.slide-title i {
    font-size: 20px;
    color: #f59e0b;
}

.slide-subtitle {
    font-size: 14px;
    margin: 0;
    color: #64748b;
    font-weight: 500;
}

.slide-wrapper {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    height: 180px;
}

.slide-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
}

.slide-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    height: 100%;
}

.slide-ranking {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.ranking-numero {
    font-size: 14px;
    font-weight: 900;
}

.slide-ranking .fa-trophy.gold {
    color: #fbbf24;
    font-size: 12px;
}

.slide-ranking .fa-trophy.silver {
    color: #e5e7eb;
    font-size: 12px;
}

.slide-ranking .fa-trophy.bronze {
    color: #d97706;
    font-size: 12px;
}

.slide-image {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slide-item:hover .slide-image img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0.6;
}

.slide-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.slide-badge i {
    color: #f59e0b;
    font-size: 10px;
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 10px;
}

.slide-nome {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.slide-status .status-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.slide-status .status-badge.aberto {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.slide-status .status-badge.fechado {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.slide-status .horario-info {
    font-size: 11px;
    color: #475569;
    font-weight: 500;
}

.slide-detalhes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detalhe-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detalhe-item i {
    color: #f59e0b;
    font-size: 10px;
}

.btn-slide {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.3s ease;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-slide:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

.btn-slide i {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.btn-slide:hover i {
    transform: translateX(2px);
}

/* Controles do Slide - Compactos */
.slide-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 4;
}

.slide-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.slide-btn:hover:not(:disabled) {
    background: #f59e0b;
    color: white;
    transform: scale(1.1);
}

.slide-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slide-btn i {
    font-size: 12px;
}

/* Indicadores - Compactos */
.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #f59e0b;
    transform: scale(1.5);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.indicator:hover:not(.active) {
    background: #94a3b8;
    transform: scale(1.2);
}

/* Responsividade Compacta */
@media (max-width: 768px) {
    .slide-wrapper {
        height: 160px;
    }
    
    .slide-item {
        padding: 15px;
        gap: 15px;
    }
    
    .slide-image {
        width: 120px;
        height: 120px;
    }
    
    .slide-nome {
        font-size: 18px;
        -webkit-line-clamp: 1;
    }
    
    .slide-controls {
        padding: 0 10px;
    }
    
    .slide-btn {
        width: 28px;
        height: 28px;
    }
    
    .slide-btn i {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .slide-wrapper {
        height: 140px;
    }
    
    .slide-item {
        padding: 12px;
        gap: 12px;
    }
    
    .slide-image {
        width: 100px;
        height: 100px;
    }
    
    .slide-nome {
        font-size: 16px;
    }
    
    .slide-header {
        padding: 15px;
    }
    
    .slide-title {
        font-size: 18px;
    }
    
    .slide-subtitle {
        font-size: 12px;
    }
} 