/* --- RESET E ESTILOS GLOBAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    /* FUNDO DO SITE */
    background-image: url('../img/atraz.png');
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    width: 100%;
    overflow-x: hidden; /* Evita rolagem lateral indesejada */
}

/* --- 1. HERO PÁGINA PRINCIPAL --- */
.hero-full-width {
    position: relative;
    width: 100%;
    height: 420px; /* Altura padrão PC */
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icons-hero {
    position: absolute;
    bottom: 25px;
    left: 40px;
    display: flex;
    gap: 15px;
}

.social-icons-hero img {
    width: 48px;
    height: 48px;
}

/* --- CONTAINER CENTRALIZADO --- */
.main-content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 2. BARRA DE NAVEGAÇÃO --- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    flex-wrap: wrap; /* Permite quebrar linha no celular */
}

.nav-icon-left img, .nav-icon-right img {
    height: 75px;
    width: auto;
}

/* --- BOTÃO VOLTAR (CÍRCULO PRETO) --- */
.btn-voltar-redondo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    background-color: #000;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-voltar-redondo:hover {
    transform: scale(1.05);
}

.btn-voltar-redondo img {
    width: 65px;
    height: 65px;
    filter: invert(1);
    object-fit: contain;
}

/* --- BARRA DE BUSCA --- */
.search-wrapper {
    flex: 1;
    max-width: 550px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(5px);
}

.search-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 18px;
    background: transparent; 
    color: #000; 
}

.search-wrapper input::placeholder {
    color: #333;
}

.search-wrapper button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-wrapper img {
    width: 25px;
    height: 25px;
}

/* --- 3. SERVIÇOS (BOTÕES PRETOS) --- */
.services-section-centered {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 45px;
}

.service-btn.black {
    flex: 1;
    background-color: #1a1a1a;
    color: white;
    border-radius: 60px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-btn.black img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-txt h3 {
    font-size: 17px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.service-txt p {
    font-size: 11px;
    color: #ccc;
    line-height: 1.2;
}

/* --- 4. AÇÕES (BOTÕES BRANCOS) --- */
.action-buttons-centered {
    display: flex;
    justify-content: center;
    gap: 30px; 
    padding: 20px 0;
}

.btn-action-outline {
    width: 350px; 
    background: white;
    border: 2px solid #000;
    border-radius: 60px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 50px; 
    gap: 20px;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-action-outline img {
    width: 35px;  
    height: 35px; 
    object-fit: contain;
}

/* --- 5. VÍDEO AUTOMÁTICO --- */
.video-area-centered {
    margin: 40px 0;
}

.video-frame {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- ESTILOS DA PÁGINA DE CORTES --- */
.hero-cortes {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #eee;
}

.texto-header-cortes {
    position: absolute;
    top: 30px;
    right: 50px;
    text-align: right;
    color: #000;
}

.texto-header-cortes h1 { 
    font-size: 50px; 
    font-weight: 900; 
    margin: 0;
}

.texto-header-cortes p { 
    font-size: 16px; 
    line-height: 1.2;
}

.lista-cortes {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    padding-bottom: 60px;
}

.corte-item {
    background-color: #000;
    color: #fff;
    display: flex;
    padding: 20px;
    gap: 25px;
    border-radius: 10px;
    align-items: flex-start;
    min-height: 250px;
}

.corte-img {
    width: 220px; 
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
}

.corte-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
}

.corte-info h3 { font-size: 32px; margin-bottom: 10px; }
.corte-info p { font-size: 16px; color: #ccc; line-height: 1.4; }

.corte-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.preco { font-size: 40px; font-weight: bold; }
.preco::before { content: "$ "; font-size: 22px; }

.btn-agregar {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.btn-agregar img { width: 22px; }

/* --- ESTILOS DO CARRINHO --- */
.hero-carrinho {
    width: 100%;
    background-color: #000;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.titulo-carrinho { display: flex; align-items: center; gap: 20px; color: #fff; }
.titulo-carrinho img { width: 45px; filter: invert(1); }
.titulo-carrinho h1 { font-size: 30px; text-transform: uppercase; margin: 0; }

.carrinho-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subtitulo-carrinho { font-size: 24px; margin-bottom: 5px; border-bottom: 2px solid #000; padding-bottom: 10px; }

#lista-itens-carrinho { display: flex; flex-direction: column; gap: 20px; width: 100%; }

.item-carrinho-black {
    background-color: #000;
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center; 
    justify-content: flex-start;
}

.img-produto-carrinho { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 2px solid #333; margin-right: 20px; }
.info-carrinho h3 { font-size: 22px; margin-bottom: 5px; }
.info-carrinho p { color: #ccc; font-size: 14px; }

.preco-area { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.preco-carrinho { font-size: 28px; font-weight: bold; }

.btn-eliminar {
    background-color: #ff0000;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.btn-eliminar:hover { transform: scale(1.1); background-color: #cc0000; }

.total-area { margin-top: 30px; border-top: 1px solid #ccc; padding-top: 20px; }
.total-texto { display: flex; justify-content: space-between; align-items: center; font-size: 28px; font-weight: bold; }

.btn-finalizar {
    background-color: #000;
    color: #fff;
    border: none;
    width: 100%;
    padding: 20px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s;
}
.btn-finalizar:hover { transform: scale(1.02); background-color: #222; }

/* Ícone Carrinho */
.cart-container { position: relative; display: inline-block; cursor: pointer; }
.icon-carrinho { height: 75px; width: auto; }
.badge-carrinho {
    position: absolute; bottom: 0px; right: -5px;
    background-color: #ff0000; color: #fff;
    font-size: 14px; font-weight: bold;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #fff; z-index: 100;
}

/* Página de Reservas */
.container-branco {
    background-color: #fff; padding: 40px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-top: -50px; position: relative; z-index: 10;
}
.layout-reserva { display: flex; justify-content: space-between; gap: 40px; }
.form-container { flex: 1; }
.icone-lateral img { width: 120px; opacity: 0.8; }
.input-reserva { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; background-color: #f9f9f9; color: #000; }
label { font-weight: bold; display: block; margin-bottom: 8px; font-size: 16px; color: #000; }
.fila-data-hora { display: flex; gap: 20px; }
.campo-metade { flex: 1; }
.titulo-resumo { margin-top: 10px; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; color: #000; }
.botao-area { text-align: center; margin-top: 30px; }

.btn-whatsapp {
    background-color: #1a1a1a; color: #fff; border: none;
    padding: 15px 40px; border-radius: 50px; font-size: 18px; font-weight: bold;
    cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s;
}
.btn-whatsapp:hover { transform: scale(1.05); background-color: #000; }
.btn-whatsapp img { width: 24px; height: 24px; filter: invert(1); }


/* ======================================================= */
/* !!! AQUI COMEÇA A MÁGICA PARA O CELULAR (RESPONSIVO) !!! */
/* ======================================================= */

@media (max-width: 768px) {
    
    /* 1. Header Hero (Imagem Principal) */
    .hero-full-width {
        height: 250px; /* Diminui altura no celular */
    }

    /* 2. Barra de Navegação (Ícones e Busca) */
    .nav-bar {
        flex-direction: column; /* Empilha: Ícone - Busca - Ícone */
        gap: 15px;
        padding: 20px 0;
    }

    /* Diminuir tamanho dos ícones grandes */
    .nav-icon-left img, 
    .nav-icon-right img,
    .icon-carrinho,
    .btn-voltar-redondo {
        width: 50px; 
        height: 50px;
    }
    
    .btn-voltar-redondo img {
        width: 30px; height: 30px; /* Ícone de seta menor */
    }

    /* Ajustar barra de busca para ocupar a tela */
    .search-wrapper {
        width: 100%; 
        max-width: 100%;
        margin: 0;
        order: 2; /* Força a busca a ficar no meio ou embaixo se usar flex */
    }

    /* 3. Botões de Serviço (Corte, Barba) */
    .services-section-centered {
        flex-direction: column; /* Um embaixo do outro */
        gap: 15px;
    }

    /* 4. Botões de Ação (Reservas, Contato) */
    .action-buttons-centered {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-action-outline {
        width: 100%; /* Botão ocupa largura total */
        justify-content: center;
        padding-left: 0;
    }

    /* 5. Página de Cortes */
    .corte-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .corte-img {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .corte-info { height: auto; }
    
    .corte-footer {
        width: 100%;
        margin-top: 15px;
    }

    /* 6. Carrinho */
    .item-carrinho-black {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .preco-area {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    /* 7. Reservas */
    .icone-lateral { display: none; } /* Esconde ícone lateral pra dar espaço */
    .container-branco { padding: 20px; margin-top: 10px; }
    
    /* Data e Hora um embaixo do outro se ficar apertado */
    .fila-data-hora {
        gap: 10px;
    }
}