/* --- VARIÁVEIS E RESET --- */
:root {
    --primary-color: #f57c00; /* Laranja do logo */
    --primary-dark: #e65100;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #ffffff; /* MUDANÇA: Fundo geral agora é branco puro */
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- NAVBAR --- */
header {
    background-color: var(--white);
    /* Sombra suave para separar o menu do fundo branco */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-bs {
    color: var(--primary-color);
    font-size: 28px;
    margin-right: 5px;
}

.logo-text {
    color: var(--text-dark);
}

.search-bar {
    flex: 1;
    margin: 0 40px;
    position: relative;
    max-width: 500px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-family: var(--font-main);
    outline: none;
    transition: border 0.3s;
    background-color: #f9f9f9; /* Ligeiro cinza para destacar o input */
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background-color: #fff;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

.cart-icon {
    position: relative;
    color: var(--text-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    font-weight: 600;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* --- HERO SECTION (ALTERADA PARA FUNDO BRANCO) --- */
.hero {
    background: #ffffff; /* MUDANÇA: Fundo branco */
    color: var(--text-dark); /* MUDANÇA: Texto escuro */
    padding: 40px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.tag {
    background-color: #fff0e0; /* Fundo laranja muito claro */
    color: var(--primary-color); /* Texto laranja */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111; /* Preto forte para o título */
}

.hero p {
    font-size: 18px;
    color: var(--text-gray); /* Cinza para o subtítulo */
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Ajuste do botão outline para fundo branco */
.btn-outline {
    border: 2px solid var(--text-dark); /* Borda escura */
    color: var(--text-dark); /* Texto escuro */
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: white;
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 450px;
}

/* --- CATEGORIES --- */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.category-item {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    /* Adicionado borda subtil pois o fundo agora é branco */
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-item h3 {
    font-size: 16px;
    font-weight: 600;
}

/* --- PRODUCTS --- */
.products {
    padding: 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    /* Adicionado borda para definição */
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.badge-off {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
}

.product-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid #f5f5f5;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-info .category {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.price-box {
    margin-top: auto;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.new-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.btn-add {
    width: 100%;
    padding: 10px;
    background-color: var(--text-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: var(--primary-color);
}

/* --- PROMO BANNER --- */
.promo-banner {
    background: var(--primary-color);
    color: white;
    padding: 60px 5%;
    text-align: center;
    margin-top: 40px;
    border-radius: 0;
}

.promo-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    margin-top: 20px;
}

.btn-white:hover {
    background-color: #f9f9f9;
}

/* --- FOOTER (MANTIDO ESCURO PARA CONTRASTE) --- */
footer {
    background-color: #111;
    color: #aaa;
    padding: 60px 5% 20px;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col p i {
    vertical-align: middle;
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links, .search-bar, .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 30px;
        color: var(--text-dark);
    }

    .product-img {
        height: 200px;
    }
}