/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --primary-color: #E6A4B4; /* Rosa Sofisticado */
    --secondary-color: #F3D7CA; /* Bege Suave */
    --text-color: #333333;
    --text-light: #555555;
    --background-color: #FFFFFF;
    --footer-background: #fdfaf9;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

h1, h2, .logo, .logo-footer {
    font-family: var(--font-primary);
    font-weight: 500;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* --- PRÉ-CARREGAMENTO (PRELOADER) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-loader {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-style: italic;
    color: var(--primary-color);
    animation: pulse-loader 1.5s infinite ease-in-out;
}

@keyframes pulse-loader {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- CABEÇALHO --- */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-style: italic;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 101;
}

.desktop-nav {
    display: flex;
}

.desktop-nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary-color);
}
.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.header-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid var(--background-color);
    transition: transform 0.2s ease;
    transform: scale(0);
}
#cart-count.visible {
    transform: scale(1);
}


/* --- MENU MOBILE --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 101;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-menu-link {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--primary-color);
}


/* --- SEÇÃO VITRINE --- */
#vitrine {
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
}

.vitrine-content {
    max-width: 800px;
    padding: 1rem;
}

.vitrine-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.vitrine-content h1 {
    font-size: 4.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    animation-delay: 0.5s;
}

.vitrine-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    animation-delay: 0.7s;
}

.vitrine-content .btn {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BOTÕES --- */
.btn {
    padding: 1rem 2.5rem;
    background-color: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--background-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    width: 100%; 
    background-color: var(--primary-color); 
    color: white;
    border: 2px solid var(--primary-color); 
    border-radius: 4px; 
    padding: 1rem;
    font-size: 1rem; 
    cursor: pointer;
}
.btn-primary:hover { 
    background-color: #d68fa0; 
    border-color: #d68fa0; 
    color: white; 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 143, 160, 0.4);
}
.btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-light);
    border: 2px solid #f0f0f0;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
}
.btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: var(--text-color);
    transform: translateY(-2px);
}


.btn-promo {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.btn-promo:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-card-add {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-card-add:hover {
    background-color: #d68fa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- ANIMAÇÕES DE ROLAGEM --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- SEÇÕES PRINCIPAIS --- */
#sobre, #promocoes, #produtos, .main-footer {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

#sobre p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

#promocoes {
    background-color: var(--footer-background);
}
.promo-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.promo-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}
.promo-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.promo-content strong {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 700;
}

/* --- SEÇÃO DE PRODUTOS --- */
#produtos {
    position: relative;
}

.product-swiper {
    padding: 0 40px;
}

.product-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* SOLUÇÃO: Ajuste para imagens dos produtos */
.product-card .img-container {
    overflow: hidden;
    background-color: #f5f5f5;
    aspect-ratio: 3 / 4; /* Proporção da imagem (largura / altura) */
    width: 100%;
}

.product-card img {
    width: 100%;
    height: 100%; /* Imagem preenche o contêiner */
    object-fit: cover; /* Imagem cobre o espaço sem distorcer */
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem 1rem;
}

.product-info h3 {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- RODAPÉ --- */
.main-footer {
    background-color: var(--footer-background);
}
.logo-footer {
    font-size: 2rem;
    font-style: italic;
    color: var(--primary-color);
    margin: 1rem 0;
}

.social-icons {
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    margin-top: 2rem;
    color: var(--text-light);
}

/* --- BOTÃO FLUTUANTE WHATSAPP --- */
#whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease, border-radius 0.3s ease;
}
#whatsapp-float:hover {
    transform: scale(1.1);
    border-radius: 50%;
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 164, 180, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(230, 164, 180, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 164, 180, 0); }
}

/* --- ESTILOS DOS MODAIS --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 2000; display: flex;
    align-items: center; justify-content: center; opacity: 0;
    visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--background-color); padding: 2.5rem; border-radius: 8px;
    max-width: 900px; width: 90%; max-height: 90vh; overflow-y: auto;
    position: relative; transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.close-modal {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 2rem; color: var(--text-light); cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}
.close-modal:hover { color: var(--primary-color); transform: rotate(90deg); }
.product-modal-body { display: flex; gap: 2rem; }
.product-carousel { flex: 1; }
.product-carousel .main-image img { width: 100%; height: auto; border-radius: 4px; }
.thumbnail-images { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap;}
.thumbnail-images img {
    width: 80px; height: 80px; object-fit: cover; cursor: pointer;
    border-radius: 4px; border: 2px solid transparent; transition: border-color 0.3s;
}
.thumbnail-images img.active { border-color: var(--primary-color); }
.product-details { flex: 1; }
.product-details h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.product-details .price { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1rem; font-weight: bold; }
.product-details .description { margin-bottom: 1.5rem; }
.option-group { margin-bottom: 1.5rem; }
.option-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
select, input[type="text"], input[type="tel"] { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 4px; background-color: white; }

/* --- CARRINHO DE COMPRAS (DENTRO DO MODAL) --- */
#cart-items { margin-bottom: 1.5rem; max-height: 300px; overflow-y: auto; padding-right: 1rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid #eee; }
.cart-item-info { flex-grow: 1; margin-right: 1rem; }
.cart-item button.remove-from-cart { background: none; border: none; color: #cc0000; cursor: pointer; font-size: 1.2rem; transition: transform 0.2s ease; }
.cart-item button.remove-from-cart:hover { transform: scale(1.2); }
.cart-summary { text-align: right; font-size: 1.2rem; font-weight: bold; margin-top: 1rem; }
.cart-summary .btn-primary { margin-top: 1rem; width: auto; }

/* --- FORMULÁRIO DE CHECKOUT --- */
#checkout-form .form-group { margin-bottom: 1rem; }
#checkout-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }

/* NOVO: ESTILOS PARA O MODAL DE CONFIRMAÇÃO */
.confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: pop-in 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}
@media (min-width: 480px) {
    .confirmation-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    .vitrine-content h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    #sobre, #promocoes, #produtos, .main-footer {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .product-modal-body { flex-direction: column; }
    .modal-content { padding: 2rem 1.5rem; }
    .product-carousel { flex: none; }
    
    .product-swiper {
        padding: 0 25px;
    }
    .swiper-button-next, .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .vitrine-content h1 { font-size: 2.5rem; }
    .vitrine-content p { font-size: 1rem; }
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    .promo-content {
        padding: 2rem;
    }
    .social-icons a {
        margin: 0 0.5rem;
    }
    #whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}
