/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #2e7d32; /* Verde Supermercado */
    font-size: 28px;
}

.logo h1 span {
    color: #e65100; /* Laranja Destaque */
}

.logo p {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #2e7d32;
}

.cart-icon {
    font-size: 20px;
    color: #2e7d32;
    position: relative;
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e65100;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Banner Principal */
.hero {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.8)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1200&q=80') center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn {
    background-color: #e65100;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #bf360c;
}

/* Produtos */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 32px;
    color: #2e7d32;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.product-img-placeholder {
    height: 150px;
    background-color: #e8f5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #81c784;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #e65100;
    margin-bottom: 15px;
}

.btn-add {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn-add:hover {
    background-color: #1b5e20;
}

/* Rodapé */
footer {
    background-color: #212121;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-info h3, .footer-social h3 {
    color: #81c784;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-info a {
    color: #81c784;
    text-decoration: none;
}

.footer-social a {
    color: white;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #81c784;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 14px;
}

/* Responsividade para Celulares */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Sobre Nós */
.about-section {
    background-color: #fff;
    padding: 80px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #555;
}
.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    font-weight: bold;
    color: #2e7d32;
}
.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 10px 10px 0 #e65100;
}

/* Carrinho Lateral */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Escondido */
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active {
    right: 0;
}
.cart-header {
    padding: 20px;
    background: #2e7d32;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-cart {
    font-size: 30px;
    cursor: pointer;
}
.cart-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}
.total-area {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.btn-checkout {
    width: 100%;
    padding: 15px;
    background: #25d366; /* Cor do WhatsApp */
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}