:root {
    --primary-brown: #3D1F14;
    --secondary-gold: #C5A059;
    --accent-cream: #FFF8F0;
    --text-dark: #333;
    --text-light: #666;
    --price-red: #D32F2F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.2rem 0;
    background: #fff;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo img {
    height: 35px; /* Logo reduzida conforme solicitado */
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
    color: var(--primary-brown);
    font-size: 1.3rem;
}

.header-icons i {
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
    border-radius: 50%;
}

.header-icons i:hover {
    color: var(--secondary-gold);
    background-color: #fff8f0;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #fff;
}

.cart-count.bump {
    transform: scale(1.3);
}

.header-nav {
    background-color: var(--primary-brown); /* Navegação marrom */
    padding: 0;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.header-nav a {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 1rem 2rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.header-nav a:hover, .header-nav a.active {
    color: var(--secondary-gold);
    background-color: rgba(0,0,0,0.2);
    border-bottom: none;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--secondary-gold);
    transition: width 0.3s;
}

.header-nav a:hover::after, .header-nav a.active::after {
    width: 100%;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.breadcrumb .current {
    color: var(--primary-brown);
    font-weight: 600;
}

.banner-pascoa {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 300px;
}

.banner-pascoa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 500px;
}

.banner-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.banner-btn {
    display: inline-block;
    background-color: var(--secondary-gold);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s;
}

.banner-btn:hover {
    transform: scale(1.05);
}

/* Products Section Layout */
.products-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Filters Sidebar */
.filters {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px; /* Stick below header */
}

.filters h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-brown);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.filter-group input {
    margin-right: 8px;
}

/* Products Grid */
.products-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Aumentado de 250px para 300px */
    gap: 2.5rem; /* Aumentado o gap */
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Sombra mais suave e elegante */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(61, 31, 20, 0.1); /* Sombra marrom ao passar o mouse */
    border-color: #eecfa1; /* Borda dourada sutil */
}

.product-image {
    position: relative;
    height: 280px; /* Aumentado de 240px para 280px */
    overflow: hidden;
    background-color: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajuste para não cortar produtos */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px; /* Espaço interno para a imagem */
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--price-red);
    color: #fff;
    padding: 5px 12px 5px 15px;
    border-radius: 0 20px 20px 0; /* Formato de tag */
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 2;
}

.wishlist-btn:hover {
    color: var(--price-red);
    transform: scale(1.1);
    background: #fff;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    min-height: 3rem; /* Garante alinhamento */
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rating span {
    color: #ccc;
    font-size: 0.8rem;
    margin-left: 5px;
}

.price-container {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.final-price {
    color: var(--price-red);
    font-weight: 800;
    font-size: 1.5rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
    border: none; /* Removido borda para usar fundo sólido */
    background: var(--primary-brown); /* Fundo marrom solicitado */
    color: #fff; /* Texto branco */
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(61, 31, 20, 0.2);
}

.add-to-cart-btn:hover {
    background: #2a150e; /* Marrom mais escuro no hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(61, 31, 20, 0.3);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: var(--primary-brown);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}

.toast i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Notifications Refined - Copied from styles.css */
.notification-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10001; /* High z-index to be on top of everything */
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-left: 5px solid var(--secondary-gold);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), fadeOut 0.5s ease-in 4.5s forwards;
    max-width: 350px;
    pointer-events: auto; /* Allow interaction */
}

.notification-icon {
    background-color: var(--accent-cream);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #333;
    text-align: left;
}

.notification-text strong {
    color: var(--primary-brown);
    margin-bottom: 2px;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

/* Footer */
footer {
    background-color: var(--primary-brown); /* Fundo marrom escuro */
    padding: 4rem 1.5rem 2rem;
    color: #fff;
    border-top: 5px solid var(--secondary-gold); /* Borda dourada no topo */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--secondary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: #e0e0e0; /* Texto claro */
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-col a:hover {
    color: var(--secondary-gold);
    transform: translateX(5px);
}

.payment-methods {
    font-size: 2.2rem;
    color: #fff;
    display: flex;
    gap: 15px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: #aaa;
    font-size: 0.85rem;
}

/* Promo Header & Timer Styling */
.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #3D1F14 0%, #4E2A1B 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--secondary-gold);
    box-shadow: 0 5px 15px rgba(61, 31, 20, 0.2);
    position: relative;
    overflow: hidden;
}

.promo-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23C5A059" fill-opacity="0.2"/></svg>');
    opacity: 0.1;
}

.promo-header h2 {
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.promo-header h2 i {
    color: var(--secondary-gold);
    animation: swing-clock 2s ease-in-out infinite;
}

@keyframes swing-clock {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

#promo-timer {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-brown);
    background: var(--secondary-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3);
    border: 2px solid #e0b86c;
    font-family: 'Open Sans', sans-serif; /* Monospace for steady numbers */
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    min-width: 140px;
    text-align: center;
}

#promo-timer::after {
    content: "minutos";
    display: block;
    font-size: 0.6rem;
    color: var(--primary-brown);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -5px;
    font-weight: 600;
}

/* Media Query Adjustment for Promo Header */
@media (max-width: 768px) {
    .promo-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.2rem;
    }
    
    .promo-header h2 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 5px;
    }
    
    #promo-timer {
        font-size: 1.6rem;
        padding: 0.4rem 1.2rem;
    }

    .header-nav ul {
        display: none; /* Hide nav on mobile for simplicity */
    }

    .banner-pascoa {
        height: 200px;
    }

    .products-section {
        flex-direction: column;
    }
}

/* Promo Product Styling */
#promo-products-grid .product-card {
    border: 3px solid var(--secondary-gold);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    transform: scale(1.02);
    z-index: 1; /* Lower z-index for the card itself */
    overflow: visible; /* Crucial: allow the label to spill out */
    margin-top: 20px; /* Add space for the top label */
}

#promo-products-grid .product-card::before {
    content: "OFERTA EXCLUSIVA";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--secondary-gold), #ffd700);
    color: #3D1F14;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
    white-space: nowrap;
}

#promo-products-grid .product-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.3);
}

#promo-products-grid .discount-badge {
    background: linear-gradient(135deg, #D32F2F 0%, #ff5252 100%);
    font-size: 1rem;
    padding: 8px 15px;
    box-shadow: 2px 2px 8px rgba(211, 47, 47, 0.3);
}

    .filters {
        width: 100%;
    }

    .filter-group {
        display: none; /* Hide filters initially on mobile */
    }

    .filter-group.active {
        display: block;
    }

    /* Notification adjustments for mobile */
    .notification-container {
        bottom: 10px;
        right: 10px;
        left: 10px; /* Center on mobile */
    }
    
    .notification {
        max-width: 100%;
        font-size: 0.9rem;
    }
}
.side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 999;
}
.side-cart-overlay.visible {
    opacity: 1;
    pointer-events: all;
}
.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    box-shadow: -6px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.side-cart.open {
    transform: translateX(0);
}
.side-cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-brown);
    color: #fff;
}
.side-cart-header span {
    font-size: 1.2rem;
    font-weight: 600;
}
.close-side-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.close-side-cart:hover {
    transform: scale(1.1);
}
.side-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.side-cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.side-cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}
.side-item-details {
    flex-grow: 1;
}
.side-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}
.side-item-price {
    color: var(--price-red);
    font-weight: 700;
    font-size: 1rem;
}
.side-cart-summary {
    padding: 1.5rem;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}
.side-cart-summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #555;
}
.side-cart-summary .row.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}
.side-checkout-btn {
    display: block;
    background: var(--secondary-gold);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1.5rem;
    transition: background 0.3s;
}
.side-checkout-btn:hover {
    background: #b08d4a;
}
.side-view-cart {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;
    text-decoration: underline;
}
.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 2rem;
}

/* Reviews Section */
.reviews-section {
    max-width: 1200px;
    margin: 3rem auto; /* Center with auto margin if outside footer columns */
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 3rem;
}

.reviews-section h3 {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--secondary-gold);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.review-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--secondary-gold);
}

.review-header strong {
    color: #fff;
    display: block;
    font-size: 0.95rem;
}

.stars {
    color: #FFD700;
    font-size: 0.8rem;
}

.review-card p {
    color: #ccc;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.time-ago {
    font-size: 0.75rem;
    color: #888;
    display: block;
    text-align: right;
}