/* Importação de Fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #b18e69;
    --secondary-color: #647466;
    --background-dark: #212121;
    --card-background: #333;
    --text-color-light: #f5f5f5;
    --text-color-dark: #343a40;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --hover-gold: #d4af37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header --- */
.main-header {
    background-color: #2c2c2c;
    padding: 0 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.nav-toggle-btn .line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.nav-toggle-btn.active .line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-btn.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle-btn.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Products Section --- */
.products-section {
    padding: 6rem 0;
    transition: opacity 1s ease, transform 1s ease;
}

.products-section[data-section-animation="left"] {
    transform: translateX(-100%);
}

.products-section[data-section-animation="right"] {
    transform: translateX(100%);
}

.products-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

/* --- Carousel --- */
.carousel-container {
    position: relative;
    padding: 0 50px;
}

.products-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 6rem) / 4);
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

.product-card {
    background-color: var(--card-background);
    color: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.product-image-container {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.5rem 1rem 0.5rem;
    color: var(--primary-color);
}

.product-description {
    font-size: 1.4rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
    min-height: 40px;
    color: #ccc;
}

.btn-buy {
    display: block;
    width: calc(100% - 2rem);
    margin: auto 1rem 1rem;
    padding: 1rem;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--background-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-buy:hover {
    background-color: #d4af37;
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
    z-index: 10;
    transition: background-color 0.3s, color 0.3s;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* --- Footer --- */
.main-footer {
    background-color: #111;
    color: #ffffff;
    text-align: center;
    padding: 2.5rem 0;
}

.footer-partners {
    margin-bottom: 1rem;
}

.footer-partners p {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.partner-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.partner-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: #888;
    font-size: 1.4rem;
}

/* --- Media Queries --- */
@media (max-width: 1200px) {
    .products-grid {
        grid-auto-columns: calc((100% - 4rem) / 3);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        justify-content: space-between;
        padding: 0;
    }

    h1.logo {
        font-size: 1.5rem;
        margin-left: 20px;
    }
    
    button.nav-toggle-btn {
        margin-right: 20px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(33, 33, 33, 0.95);
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 150;
    }

    .nav-list.active {
        display: flex;
        right: 0;
    }

    .nav-toggle-btn {
        display: flex;
    }
    
    .carousel-container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-auto-columns: calc((100% - 2rem) / 2);
    }
    
    .carousel-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-auto-columns: 100%;
    }
}