:root {
    /* Paleta Original Restaurada */
    --cor-fundo: #FDFBF6; /* Creme/Off-white */
    --cor-texto: #45301F; /* Marrom Café */
    --cor-cta-escuro: #643f21;
    --cor-ouro-acento: #A58A5C;
    --cor-marrom-cta: #643f21;
}

html, body { 
    overflow-x: hidden; 
    max-width: 100%;
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--cor-fundo); 
    color: var(--cor-texto); 
    position: relative;
}

.serif { font-family: 'Cormorant Garamond', serif; }
.allura { font-family: 'Allura', cursive; letter-spacing: 0.05em; }

/* Botões */
.main-button { 
    background-color: var(--cor-cta-escuro); 
    color: white;
    transition: all 0.3s ease; 
}
.main-button:hover { 
    background-color: #4a2e18; 
    box-shadow: 0 4px 15px rgba(100, 63, 33, 0.3); 
    transform: translateY(-2px); 
}
.gold-accent { color: var(--cor-ouro-acento); }

/* SPA */
.page { display: none; }
.page.active { display: block; }

/* Animações */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Mobile */
#mobile-menu { 
    transition: all 0.3s ease-in-out; 
    transform: translateY(-10px); 
    opacity: 0; 
    pointer-events: none; 
}
#mobile-menu.active { 
    transform: translateY(0); 
    opacity: 1; 
    pointer-events: auto; 
}

/* Modais */
.modal-overlay { 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 300ms ease-in-out; 
}
.modal-overlay.visivel { 
    opacity: 1; 
    pointer-events: auto; 
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }

.modal-content {
    background: var(--cor-fundo);
    border-radius: 0.5rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Carrinho */
#cart-drawer { 
    transition: transform 0.3s ease-in-out; 
    transform: translateX(100%);
    background-color: var(--cor-fundo);
}
#cart-drawer.open { 
    transform: translateX(0); 
}

/* Badge */
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-item-count {
    position: absolute;
    top: -5px; 
    right: -8px;
    background: var(--cor-ouro-acento);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px; 
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 25px; right: 25px;
    background: #25D366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}
.floating-whatsapp:hover { transform: scale(1.1); }

/* Acordeão */
.accordion-content {
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}
.accordion-content.hidden {
    max-height: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
}
.accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--cor-texto);
    border-top: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    cursor: pointer;
}
.accordion-icon {
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.4s ease;
}
.accordion-icon.rotate { transform: rotate(45deg); }

/* --- PRODUTOS E HOVER ANIMATION --- */
.product-image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 3/4;
}

.product-image {
    transition: opacity 0.5s ease-in-out;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image.hover {
    position: absolute; 
    top: 0; 
    left: 0;
    opacity: 0;
    z-index: 2;
}

.product-image-container:hover .product-image.hover,
.group:hover .product-image.hover { 
    opacity: 1; 
}

/* Opções Tamanho/Cor */
.size-selector { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.size-option {
    width: 40px; height: 40px;
    border: 1px solid #d1d5db;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem;
    transition: all 0.2s ease;
}
.size-option.selected {
    background-color: var(--cor-marrom-cta);
    color: white;
    border-color: var(--cor-marrom-cta);
}

.color-option {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex; align-items: center; gap: 8px;
}
.color-option.selected {
    border-color: var(--cor-marrom-cta);
    background-color: #fffbeb;
}

/* Splide */
.splide__arrow { background: rgba(255, 255, 255, 0.8); opacity: 0.7; }
.splide__arrow:hover { opacity: 1; }
.splide__pagination__page.is-active { background: var(--cor-marrom-cta); }

#main-carousel .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    height: 50vh; 
}
@media (min-width: 768px) {
    #main-carousel .splide__slide { height: 60vh; }
}
#main-carousel .splide__slide img { 
    max-width: 100%; max-height: 100%; object-fit: contain;
}

/* Hero */
.hero-section { position: relative; width: 100%; height: 70vh; }
.hero-section img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.hero-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}
.hero-content { position: relative; z-index: 3; }

/* Animação Seta Sidebar */
.rotate-180 {
    transform: rotate(180deg);
}

/* Sidebar Custom */
#sidebar-menu {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Esconder barra de rolagem da sidebar mas manter funcional */
#sidebar-menu nav::-webkit-scrollbar {
    width: 4px;
}
#sidebar-menu nav::-webkit-scrollbar-thumb {
    background-color: #E5E0D8;
    border-radius: 4px;
}
