:root {
    --primary-color: #8B0000;
    --primary-dark: #5c0000;
    --accent-color: #D4AF37;
    --bg-light: #FDFBF7;
    --text-dark: #2C1E16;
    --text-light: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* --- HEADER INTELIGENTE --- */
header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    min-height: 220px; 
    padding: 0; 
    
    background-image: url('logo/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.4s ease;
}

.header-scrolled {
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* --- BARRA DE AÇÕES (Ícones + Menu) --- */
.header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 1.2rem;
    padding: 0.6rem 1.5rem;
    
    background-color: rgba(44, 30, 22, 0.85); 
    backdrop-filter: blur(5px); 
}

.quick-icons {
    display: flex;
    gap: 0.8rem;
}

.icon-svg {
    width: 26px;
    height: 26px;
    fill: var(--accent-color);
    transition: transform 0.2s, fill 0.2s;
}

.icon-svg:hover {
    transform: scale(1.1);
    fill: var(--text-light);
}

/* LINHA DOURADA ANIMADA */
.golden-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent-color), #FFF7D6, var(--accent-color), var(--primary-dark));
    background-size: 200% 100%;
    animation: shine 3s linear infinite;
}

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

/* --- MENU MOBILE --- */
#nav { position: relative; }

#btn-mobile {
    display: block;
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

#menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    background-color: var(--primary-dark);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

#menu.active { display: block; }
#menu li { list-style: none; }
#menu a {
    display: block;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#menu a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* --- HERO SECTION --- */
#hero {
    padding: 4rem 1.5rem;
    text-align: center;
    background: linear-gradient(rgba(139, 0, 0, 0.05), rgba(212, 175, 55, 0.1));
}

#hero h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

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

/* --- SEÇÕES E CARROSSEL MOBILE --- */
#kits-copa, #cortes {
    padding: 3rem 0; 
    text-align: center;
    background-color: #FFFFFF;
}

#cortes { background-color: var(--bg-light); }

#kits-copa h2, #cortes h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

#kits-copa > p, #cortes > p {
    margin-bottom: 2rem;
    color: #666;
    padding: 0 1.5rem;
}

.cards-container {
    display: flex;
    flex-direction: row; 
    gap: 1rem;
    overflow-x: auto; 
    padding: 0 1.5rem 1.5rem 1.5rem;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
}

.cards-container::-webkit-scrollbar { height: 6px; }
.cards-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; margin: 0 1.5rem; }
.cards-container::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

.card-kit, .card {
    flex: 0 0 85%; 
    scroll-snap-align: center; 
    background-color: var(--bg-light);
    border: 1px solid #Eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card {
    background-color: white;
    padding: 2rem 1.5rem;
    border-bottom: 4px solid var(--accent-color);
}

.card-kit img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: 1rem;
}

.card-kit h3, .card h3 {
    color: var(--primary-dark);
    margin: 0.5rem 1rem;
}

.kit-preco {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.kit-lista {
    list-style: none;
    text-align: left;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.kit-lista li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #ccc;
    font-size: 0.95rem;
    color: #444;
}

.kit-lista li strong {
    color: var(--primary-dark);
    display: inline-block;
    width: 55px;
}

.btn-pedir {
    display: block;
    margin: 0 1.5rem;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-pedir:hover { background-color: var(--primary-dark); }

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 1.5rem;
}

footer h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.contato-links p { margin-bottom: 0.5rem; }

.social-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.social-link:hover { text-decoration: underline; }

/* --- BOTÃO FLUTUANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba56;
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    fill: white;
}

/* --- JANELA MODAL DE ENDEREÇO E FORMULÁRIO --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: left;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.modal-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.modal-content > p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Opções de Entrega (Bolinhas) */
.opcoes-entrega {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.opcoes-entrega label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
}

/* Campos do Formulário */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.half { flex: 1; }

.erro-msg {
    display: none;
    color: #cc0000 !important;
    font-size: 0.85rem !important;
    font-weight: bold;
    margin-bottom: 1rem !important;
}

.btn-confirmar-pedido {
    width: 100%;
    padding: 1rem;
    background-color: #25D366; 
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.btn-confirmar-pedido:hover { background-color: #20ba56; }


/* --- MEDIA QUERIES (DESKTOP) --- */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 768px) {
    #btn-mobile { display: none; }

    #menu {
        display: flex;
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
    }

    #menu li { margin-left: 1rem; }

    #menu a {
        border-bottom: none;
        padding: 0.5rem 1rem;
        font-weight: bold;
    }

    #menu a:hover {
        background-color: transparent;
        color: var(--accent-color);
    }

    .cards-container {
        flex-wrap: wrap;
        overflow-x: visible; 
        justify-content: center;
    }

    .card, .card-kit {
        flex: 1 1 300px; 
        max-width: 350px;
    }
}