:root {
    --primary: #8B5A2B;
    --primary-light: #A67C52;
    --secondary: #4E3629;
    --accent: #D4A76A;
    --light: #f5d8ef;
    --dark: #2A2118;
    --white: #FFFFFF;
    --gray: #e0e0e0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 4px 12px #A67C52;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo img {
    height: 90px;
}
.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}
.logo span {
    color: var(--secondary);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-toggle::after {
    display: none;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 650px;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}
.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-decoration: none;
    color: var(--dark);
}
.dropdown-item:hover {
    background: var(--light);
}
.dropdown-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.3rem;
}
.dropdown-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Hero Slider */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: var(--white);
    overflow: hidden;
}
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.hero-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}
.hero-btn:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Instagram icon */
.instagram-icon {
    color: var(--dark);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
}
.instagram-icon:hover {
    color: #E1306C;
}

/* Products Filter */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 200px;
}
.loading-products {
    text-align: center;
    padding: 3rem;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Product Card */
.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}
.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.1);
}
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover .product-actions {
    opacity: 1;
}
.product-actions button {
    background-color: var(--white);
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-actions button:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}
.product-info {
    padding: 1.5rem;
}
.product-category {
    color: var(--primary-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}
.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}
.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
}
.add-to-fav {
    background-color: var(--primary-light);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.add-to-fav:hover {
    background-color: var(--primary);
}

/* About, Contact, Footer - mantidos do original */
.about { padding: 6rem 5%; background-color: var(--white); }
.section-title { text-align: center; margin-bottom: 3rem; position: relative; }
.section-title h2 { font-size: 2.5rem; color: var(--secondary); display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--primary); }
.about-content { display: flex; align-items: center; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.about-img { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-img img { width: 100%; height: auto; transition: transform 0.5s ease; }
.about-img:hover img { transform: scale(1.05); }
.about-text { flex: 1; }
.about-text h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.5rem; line-height: 1.6; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-icon { background-color: var(--primary-light); color: var(--white); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-text h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--secondary); }
.products { padding: 6rem 5%; background-color: var(--light); }
.contact { padding: 6rem 5%; background-color: var(--light); }
.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { background-color: var(--primary); color: var(--white); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.contact-text h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--secondary); }
.contact-text p, .contact-text a { color: var(--dark); text-decoration: none; transition: color 0.3s ease; }
.contact-text a:hover { color: var(--primary); }
footer { background-color: var(--secondary); color: var(--white); padding: 4rem 5% 2rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
.footer-col h3 { font-size: 1.3rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background-color: var(--primary); }
.footer-col p { margin-bottom: 1rem; opacity: 0.8; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--white); text-decoration: none; opacity: 0.8; transition: opacity 0.3s ease; }
.footer-links a:hover { opacity: 1; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); border-radius: 50%; color: var(--white); transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; font-size: 0.9rem; }
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 999; }
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--secondary); transform: translateY(-5px); }

/* Carrinho Sidebar */
.favorites-overlay { position: fixed; top: 0; right: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.favorites-overlay.active { opacity: 1; visibility: visible; }
.favorites-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100%; background-color: var(--white); z-index: 10000; overflow-y: auto; transition: right 0.3s ease; padding: 2rem; display: flex; flex-direction: column; }
.favorites-sidebar.active { right: 0; }
.favorites-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray); }
.favorites-header h3 { font-size: 1.5rem; color: var(--secondary); }
.close-favorites { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); transition: color 0.3s ease; }
.close-favorites:hover { color: var(--primary); }
.favorites-items { flex: 1; overflow-y: auto; margin-bottom: 2rem; }
.favorites-empty { text-align: center; padding: 2rem 0; color: var(--primary-light); }
.favorites-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray); }
.favorites-item-img { width: 80px; height: 80px; border-radius: 5px; overflow: hidden; }
.favorites-item-img img { width: 100%; height: 100%; object-fit: cover; }
.favorites-item-details { flex: 1; }
.favorites-item-title { font-size: 1rem; margin-bottom: 0.5rem; color: var(--secondary); }
.favorites-item-price { font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.remove-favorite { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 1.2rem; align-self: flex-start; transition: color 0.3s ease; }
.remove-favorite:hover { color: #ff0000; }
.favorites-actions { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--gray); display: flex; flex-direction: column; gap: 1rem; }
.whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background-color: #25D366; color: white; border: none; padding: 1rem; border-radius: 5px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background-color 0.3s ease; }
.whatsapp-btn:hover { background-color: #128C7E; }
.favorites-count { position: absolute; top: -8px; right: -8px; background-color: var(--primary); color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; }
.favorites-icon { position: relative; cursor: pointer; }

/* Gallery Modal */
.gallery-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); z-index: 11000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.gallery-modal.active { opacity: 1; visibility: visible; }
.gallery-container { position: relative; max-width: 90%; max-height: 90%; width: 800px; background-color: var(--white); border-radius: 10px; overflow: hidden; }
.gallery-main-img { width: 100%; height: 400px; overflow: hidden; position: relative; }
.gallery-main-img img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbnails { display: flex; padding: 1rem; overflow-x: auto; gap: 0.5rem; background-color: var(--light); }
.gallery-thumbnail { width: 80px; height: 80px; border-radius: 5px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; flex-shrink: 0; }
.gallery-thumbnail.active { border-color: var(--primary); }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.close-gallery { position: absolute; top: 15px; right: 15px; background-color: var(--primary); color: var(--white); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 1; transition: all 0.3s ease; }
.close-gallery:hover { background-color: var(--secondary); transform: rotate(90deg); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 1rem; }
.gallery-nav-btn { background-color: rgba(0,0,0,0.5); color: var(--white); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.gallery-nav-btn:hover { background-color: var(--primary); }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; left: -100%; width: 100%; max-width: 300px; height: 100%; background-color: var(--white); z-index: 1000; overflow-y: auto; transition: left 0.3s ease; padding: 2rem; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.mobile-menu.active { left: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray); }
.close-menu { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-links a { text-decoration: none; color: var(--dark); font-size: 1.1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--gray); transition: color 0.3s ease; }
.mobile-nav-links a:hover { color: var(--primary); }
.hamburger { display: none; cursor: pointer; }
.nav-icons { display: flex; gap: 1.5rem; align-items: center; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 1s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .about-content { flex-direction: column; }
    .about-img, .about-text { flex: none; width: 100%; }
    .hero h2 { font-size: 2.8rem; }
    .gallery-main-img { height: 350px; }
    .dropdown-menu { grid-template-columns: repeat(2, 1fr); min-width: 300px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero h2 { font-size: 2.2rem; }
    .section-title h2 { font-size: 2rem; }
    .about-features { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
    .favorites-sidebar { max-width: 100%; }
    .gallery-main-img { height: 300px; }
    .gallery-thumbnail { width: 60px; height: 60px; }
    .dropdown-menu { grid-template-columns: repeat(2, 1fr); min-width: 280px; }
}
@media (max-width: 576px) {
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-btn { padding: 0.6rem 1.5rem; }
    .products-filter { gap: 0.3rem; }
    .filter-btn { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-main-img { height: 250px; }
    .gallery-thumbnail { width: 50px; height: 50px; }
    .dropdown-menu { grid-template-columns: 1fr 1fr; min-width: 250px; }
    .dropdown-item img { width: 50px; height: 50px; }
}