/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    font-size: 1.6rem;
    color: #c4722e;
    letter-spacing: 2px;
    line-height: 1;
}

.logo span {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
}

.nav a:hover {
    color: #c4722e;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-whats {
    background: #25D366;
    color: #fff;
}

.btn-whats:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37,211,102,0.3);
}

.btn-whats-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #25D366;
    color: #fff;
    transition: all 0.3s;
}

.btn-whats-sm:hover {
    background: #1da851;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #c4722e;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ========== HERO ========== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
    min-height: 550px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196,114,46,0.92) 0%, rgba(168,93,36,0.88) 50%, rgba(139,77,31,0.85) 100%);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 30px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== ENTREGA ========== */
.entrega {
    padding: 60px 0;
    background: #faf7f4;
}

.entrega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.entrega-card {
    text-align: center;
    padding: 35px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.entrega-card:hover {
    transform: translateY(-5px);
}

.entrega-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.entrega-card h3 {
    font-size: 1.1rem;
    color: #c4722e;
    margin-bottom: 8px;
}

.entrega-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.section-sub {
    text-align: center;
    color: #888;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

/* ========== FILTROS ========== */
.filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filtro {
    padding: 8px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    color: #666;
}

.filtro:hover,
.filtro.active {
    border-color: #c4722e;
    background: #c4722e;
    color: #fff;
}

/* ========== PRODUTOS ========== */
.produtos {
    padding: 70px 0;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.produto-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.produto-card.hidden {
    display: none;
}

.produto-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #f8f4f0;
}

.produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.produto-card:hover .produto-img img {
    transform: scale(1.05);
}

.produto-badge-cor {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c4722e;
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.produto-badge-cor.cor-preto {
    background: #333;
}

.produto-badge-cor.cor-madeira {
    background: #a8844a;
}

.produto-emoji {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.produto-info {
    padding: 20px;
}

.produto-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
}

.produto-info p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
}

.produto-opcoes {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 50px;
    background: #f0e6dc;
    color: #c4722e;
    font-weight: 600;
}

/* ========== PREÇO ========== */
.produto-preco {
    margin-bottom: 12px;
}

.preco {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c4722e;
}

/* ========== BOTÃO COMPRAR ========== */
.btn-comprar {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #25D366;
    color: #fff;
    transition: all 0.3s;
}

.btn-comprar:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37,211,102,0.3);
}

/* ========== BOTÃO ADICIONAR CARRINHO ========== */
.btn-add-cart {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #c4722e;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: #a85d24;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196,114,46,0.3);
}

.btn-add-cart.added {
    background: #25D366;
}

/* ========== BOTÃO CARRINHO HEADER ========== */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #c4722e;
    transition: color 0.3s;
    margin-right: 10px;
}

.cart-btn:hover {
    color: #a85d24;
}

.cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.cart-count.bump {
    transform: scale(1.4);
}

/* ========== PAINEL CARRINHO ========== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -560px;
    width: 540px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 1.1rem;
    color: #333;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 5px;
}

.cart-close:hover {
    color: #333;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-items {
    padding: 15px;
    padding-bottom: 0;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.cart-empty p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-empty span {
    font-size: 0.85rem;
}

/* Item do carrinho */
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #faf7f4;
    align-items: flex-start;
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #c4722e;
    margin-bottom: 6px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-qty button:hover {
    background: #c4722e;
    color: #fff;
    border-color: #c4722e;
}

.cart-item-qty span {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 2px 6px;
    flex-shrink: 0;
    transition: color 0.2s;
    position: absolute;
    top: 8px;
    right: 8px;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

/* Footer carrinho */
.cart-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    background: #faf7f4;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cart-total strong {
    font-size: 1.3rem;
    color: #c4722e;
}

.btn-pagar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c4722e, #a85d24);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-bottom: 10px;
}

.btn-pagar:hover {
    background: linear-gradient(135deg, #a85d24, #8b4d1f);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196,114,46,0.35);
}

.btn-comprovante {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #27ae60, #1e8e4e);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    animation: pulseGreen 1.5s infinite;
}

.btn-comprovante:hover {
    background: linear-gradient(135deg, #1e8e4e, #177a3f);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(39,174,96,0.35);
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(39,174,96,0); }
}

/* Frete automático */
.cart-frete {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #eef9f1;
    border-radius: 8px;
    border: 1px solid #d4edda;
}

.frete-valor {
    display: block;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 6px;
}

.cart-subtotal strong {
    color: #555;
}

/* Campos do cliente */
.cart-cliente {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.cart-cliente input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #333;
    transition: border-color 0.2s;
}

.cart-cliente input:focus {
    outline: none;
    border-color: #c4722e;
}

/* Toggle Entrega / Retirada */
.cart-entrega-toggle {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #c4722e;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #c4722e;
    transition: all 0.25s;
    user-select: none;
}

.toggle-option.active {
    background: #c4722e;
    color: #fff;
}

.toggle-option:hover:not(.active) {
    background: #fdf0e6;
}

.cart-retirada-info {
    background: #fff8f0;
    border: 1px solid #f0d9be;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.cart-retirada-info strong {
    color: #c4722e;
}

.cart-retirada-info small {
    color: #999;
    display: block;
    margin-top: 6px;
}

.cart-cliente-row {
    display: flex;
    gap: 8px;
}

.cart-cliente-row input:first-child {
    width: 35%;
    flex-shrink: 0;
}

.cart-cliente-row input:last-child {
    flex: 1;
}

.cart-cliente input.input-erro {
    border-color: #e74c3c;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Toast confirmação */
.toast-confirmacao {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(39,174,96,0.3);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    max-width: 350px;
}

.toast-confirmacao.show {
    transform: translateX(0);
}

.toast-confirmacao p {
    margin: 0;
}

.toast-confirmacao small {
    opacity: 0.85;
    font-weight: 400;
}

/* ========== COMO FUNCIONA ========== */
.como-funciona {
    padding: 70px 0;
    background: #faf7f4;
}

.passos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.passo {
    text-align: center;
    padding: 25px 15px;
}

.passo-num {
    width: 50px;
    height: 50px;
    background: #c4722e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.passo h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.passo p {
    font-size: 0.85rem;
    color: #777;
}

/* ========== SOBRE ========== */
.sobre {
    padding: 70px 0;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.sobre-texto .section-title {
    text-align: left;
}

.sobre-texto p {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
}

.sobre-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 18px;
    background: #faf7f4;
    border-radius: 12px;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: #c4722e;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.info-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* ========== CONTATO CTA ========== */
.contato {
    padding: 70px 0;
    background: linear-gradient(135deg, #c4722e, #a85d24);
    color: #fff;
    text-align: center;
}

.contato .section-title {
    color: #fff;
}

.contato p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contato .btn-whats {
    background: #fff;
    color: #25D366;
}

.contato .btn-whats:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* ========== FOOTER ========== */
.footer {
    background: #2a2a2a;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.footer h3 {
    color: #c4722e;
    margin-bottom: 5px;
    font-size: 1rem;
}

.footer p {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* ========== WHATSAPP FLUTUANTE ========== */
.whats-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whats-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
    100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        transition: transform 0.3s;
    }

    .nav.active {
        transform: translateY(0);
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .entrega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .passos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .produtos-grid {
        grid-template-columns: 1fr;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sobre-texto .section-title {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .passos-grid {
        grid-template-columns: 1fr;
    }

    .filtros {
        gap: 6px;
    }

    .filtro {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
