@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff5ea; /* Laranja pastel muito suave */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER PRETO --- */
header {
    background-color: #000;
    padding: 10px 0;
    border-bottom: 3px solid #ff6600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    border: none;
    transition: transform 0.3s;
}
.logo img:hover { transform: scale(1.05); }

.btn-carrinho {
    background-color: #ff6600;
    color: white !important; 
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-size: 14px;
}
.btn-carrinho:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

/* --- BARRA DE CATEGORIAS --- */
.categoria-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.categoria-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    overflow-x: auto;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    scrollbar-width: none;
}
.categoria-list::-webkit-scrollbar { display: none; }

.categoria-link {
    color: #ccc;
    text-decoration: none;
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}
.categoria-link:hover { color: #ff6600; border-bottom-color: #ff6600; }

.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 60px 20px;
    color: white;
    margin-bottom: 0; /* MUDANÇA: Era 30px, agora é 0 para colar no banner de baixo */
}

.hero-content h1 { margin: 0 0 10px 0; font-size: 2rem; }

.search-box {
    max-width: 500px;
    margin: 20px auto 0;
    display: flex;
    background: white;
    border-radius: 5px;
    padding: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.search-box input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
}
.search-box button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 18px;
}

/* --- PRODUTOS CARD (MAIORES) --- */
.produtos-grid {
    display: grid;
    /* MUDANÇA: Aumentei para 200px para os cards ficarem mais largos */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 10px;
}

.produto-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #ffccaa;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.produto-card:hover {
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
    transform: translateY(-3px);
    border-color: #ff6600;
}

.produto-img {
    width: 100%;
    height: 180px; /* Imagem maior */
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.produto-info {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.produto-nome {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.produto-preco {
    font-size: 20px;
    color: #ff6600;
    font-weight: 800;
    margin: 10px 0;
    display: block;
}

/* MUDANÇA: Botão Laranja COMPRAR */
.btn-comprar {
    background-color: #ff6600; /* Laranja */
    color: white;
    padding: 10px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    display: block;
    width: 100%;
    transition: 0.2s;
    text-transform: uppercase;
}
.btn-comprar:hover { background-color: #e65c00; }

/* --- MAPA E RODAPÉ --- */
.secao-mapa {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #ddd;
    margin-top: auto; /* Empurra para o fundo */
}
.mapa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.info-box h3 { color: #ff6600; font-size: 24px; margin-bottom: 15px; }
.info-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 16px; color: #555; }
.info-item i { color: #ff6600; margin-top: 4px; }

/* Footer Escuro Profissional */
footer {
    background-color: #111;
    color: #999;
    padding: 40px 0 20px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 { color: white; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #999; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: #ff6600; padding-left: 5px; }
.copy { text-align: center; border-top: 1px solid #222; padding-top: 20px; margin-top: 20px; }

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .header-content { flex-direction: row; padding: 5px 0px; }
    .logo img { height: 50px; width: auto; }
    .btn-carrinho span { display: none; }
    .btn-carrinho { padding: 8px 12px; }
    .categoria-list { justify-content: flex-start; padding-left: 15px; }
    .produtos-grid { gap: 10px; grid-template-columns: repeat(2, 1fr); }
    .produto-img { height: 150px; }
    .produto-nome { font-size: 14px; }
    header {
        padding: 5px 20px;
    }
    
    /* Mapa no celular fica em uma coluna só */
    .mapa-grid { grid-template-columns: 1fr; }
    .secao-mapa iframe { height: 250px; }
}

/* --- PÁGINA DE DETALHES DO PRODUTO --- */
.detalhe-container {
    background: white;
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Esquerda (Fotos) maior que Direita */
    gap: 40px;
}

/* Galeria de Fotos */
.galeria {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.foto-principal {
    width: 100%;
    height: 400px; /* Grande destaque */
    object-fit: contain; /* Mostra a foto inteira sem cortar */
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
}
.miniaturas {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.miniatura {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.7;
}
.miniatura:hover, .miniatura.ativa {
    border-color: #ff6600;
    opacity: 1;
}

/* Informações do Produto */
.info-coluna h1 {
    font-size: 28px;
    margin-top: 0;
    color: #333;
}
.categoria-tag {
    background-color: #eee;
    color: #666;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}
.preco-detalhe {
    font-size: 36px;
    color: #ff6600;
    font-weight: 800;
    margin: 20px 0;
}
.descricao-texto {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Atualização no css/style.css */

.btn-adicionar-carrinho {
    background-color: #ff6600; /* CORRIGIDO: Laranja Raymixx */
    color: white;
    padding: 15px 20px; /* Ajustei o padding lateral */
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: flex; /* Flex ajuda a centralizar */
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    
    /* CORREÇÃO DO TAMANHO */
    width: 100%;
    box-sizing: border-box; /* Garante que o padding não aumente a largura total */
}

.btn-adicionar-carrinho:hover {
    background-color: #e65c00; /* Laranja mais escuro */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

/* Título da seção de relacionados */
.titulo-relacionados {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    position: relative;
}
.titulo-relacionados::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ff6600;
    margin: 10px auto 0;
}

/* Mobile */
@media (max-width: 768px) {
    .detalhe-container {
        grid-template-columns: 1fr; /* Uma coluna só */
        padding: 20px;
        margin: 20px 10px;
    }
    .foto-principal { height: 300px; }
}

/* --- BOTÃO FLUTUANTE (FAB) --- */
.fab-carrinho {
    position: fixed; /* Fixa na tela mesmo rolando */
    bottom: 30px;    /* Distância do fundo */
    right: 30px;     /* Distância da direita */
    width: 60px;
    height: 60px;
    background-color: #28a745; /* Verde Compra (Destaque) */
    color: white;
    border-radius: 50%; /* Redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000; /* Fica por cima de tudo */
    text-decoration: none;
    transition: transform 0.3s;
}

.fab-carrinho:hover {
    transform: scale(1.1); /* Aumenta um pouco ao passar o mouse */
    background-color: #218838;
}

/* Ajuste para mobile (para não tapar conteúdo) */
@media (max-width: 768px) {
    .fab-carrinho {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* --- BANNER CARTÃO RAYMIXX --- */
.secao-banner-cartao {
    margin: 40px 0; /* Espaço em cima e em baixo */
    text-align: center;
}

.img-banner {
    width: 100%;       /* Estica a imagem */
    height: auto;      /* Mantém a proporção */
    display: block;    /* Remove comportamentos de texto */
    border-radius: 0;  /* Remove cantos arredondados para colar nas bordas */
    border: none;
    box-shadow: none;  /* Remove sombra para parecer parte do layout */
}

.img-banner:hover {
    transform: scale(1.01); /* Efeito sutil de zoom ao passar o mouse */
}

/* Regras de Visibilidade */
.banner-desktop {
    display: block; /* Mostra no PC */
}

.banner-mobile {
    display: none; /* Esconde no PC */
}

/* Quando a tela for menor que 768px (Celular) */
@media (max-width: 768px) {
    .banner-desktop {
        display: none; /* Esconde o grandão */
    }
    .banner-mobile {
        display: block; /* Mostra o do celular */
    }
}


.banner-cartao-full {
    width: 100%;       /* Ocupa a tela toda */
    margin: 0;         /* Sem margens */
    padding: 0;        /* Sem espaçamento interno */
    line-height: 0;    /* Remove espaço branco misterioso abaixo da imagem */
    background-color: #fff5ea; /* Garante fundo igual ao site se carregar devagar */
}