/* ==========================================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f8f9fa;
    color: #1a1a1a;
    display: flex;
    justify-content: center;
}

/* Container principal - Limita a expansão e centraliza o site no PC */
.app {
    width: 100%;
    max-width: 1040px; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 24px 100px;
}

/* --- HEADER / NAV DESKTOP --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #eef1f6;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav-item {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.desktop-nav-item:hover, .desktop-nav-item.active {
    color: #704A33;
}

/* Botão Entrar */
.btn-login-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2b1b17;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login-header:hover {
    background: #4a2f27;
    transform: translateY(-1px);
}

.bottom-nav {
    display: none;
}

/* --- LAYOUT PRINCIPAL --- */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

/* Seção Sugestões de Hoje */
.suggestion-section {
    width: 100%;
    position: relative;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- ESTRUTURA DO CARROSSEL (CORRIGIDA) --- */
.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden; /* Corta os slides que ficam fora da área visível */
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out; /* Suaviza a transição do slide no PC */
}

.suggestion-card {
    min-width: 100%; /* Cada card obrigatoriamente ocupa 100% da largura do container */
    width: 100%;
    height: 320px;  /* Altura ideal para telas de computador */
    position: relative;
    cursor: pointer;
}

.suggestion-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fade escuro embaixo do texto da imagem */
.suggestion-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: white;
}

.suggestion-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.suggestion-info p {
    font-size: 13px;
    color: #dee2e6;
}

.suggestion-price {
    background: #ffffff;
    color: #2b1b17;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
}

/* Setas de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b1b17;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* Indicadores/Bolinhas */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: #ffffff;
    width: 16px;
    border-radius: 4px;
}


/* --- GRID DE 4 BOTÕES --- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.option-btn {
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 20px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: #704A33;
    background: #fdfaf7;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(43, 27, 23, 0.04);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: #fdfaf7;
    color: #704A33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.option-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}


/* ==========================================================
   MEDIA QUERY: Otimizações para Telas de Celular (Mobile)
   ========================================================== */
@media (max-width: 768px) {
    .app {
        padding: 0 16px 100px;
    }

    .header {
        padding: 16px 0;
        border-bottom: none;
    }

    /* Reduz a altura do carrossel para não sumir com o resto da tela no celular */
    .suggestion-card {
        height: 190px;
    }

    .suggestion-overlay {
        padding: 16px;
    }

    .suggestion-info h3 {
        font-size: 18px;
    }

    .suggestion-info p {
        font-size: 11px;
    }

    .suggestion-price {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Esconde botões de passar slide no celular */
    .carousel-btn {
        display: none;
    }

    /* Habilita o gesto de arrastar com o dedo nativo do celular */
    .carousel-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        transition: none; /* Desativa a propriedade transform no mobile */
    }

    .suggestion-card {
        scroll-snap-align: start;
    }

    /* Transforma os 4 botões em um grid de 2x2 */
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .option-btn {
        padding: 20px 14px;
    }

    /* Menu do App Inferior Ativo */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid #f1f3f5;
        justify-content: space-around;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
        z-index: 999;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #adb5bd;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        flex: 1;
    }

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

    .nav-item.active {
        color: #704A33;
    }
}