/* ======================= CONFIGURAÇÕES GLOBAIS E VARIÁVEIS ======================= */
:root {
    --primary-color: #F38446; /* Cor Laranja da Lola Store */
    --secondary-color: #333333; /* Cinza escuro para textos e fundos */
    --text-color: #333;
    --light-gray: #f9f9f9;
    --white: #F2ECE4; /* Tom de areia */
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    background-color: var(--white); 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-section {
    padding: 80px 0;
}

#categorias, #produtos, #sobre, .cart-page-section, .about-page-section, .products-page {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    position: relative;
}

body > .page-section .section-title {
    color: var(--white);
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ======================= HEADER ======================= */
.main-header {
    background-color: rgba(242, 236, 228, 0.9); /* Fundo areia semi-transparente */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.main-nav {
    display: flex;
    flex: 1; 
    justify-content: center; 
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #d16c35;
    transform: scale(1.05);
}

.cta-button.secondary-cta {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
}

.cta-button.secondary-cta:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-cta i {
    margin-right: 8px;
}

.header-cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.cart-item-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    border: 2px solid var(--white);
}

/* Botões de navegação mobile (escondidos no desktop) */
.mobile-nav-toggle, .mobile-nav-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}
.mobile-nav-overlay, .mobile-nav-menu {
    display: none;
}


/* ======================= SEÇÃO HERO ======================= */
.hero-section {
    height: 85vh;
    /* CAMINHO DA IMAGEM ATUALIZADO AQUI */
    background-image: url('images/capa-lola.webp');
    background-color: var(--primary-color); /* Cor de fallback caso a imagem falhe */
    background-size: cover;
    background-position: center 30%;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Sobreposição escura para legibilidade */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================= SEÇÃO PRODUTOS ======================= */
.product-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, 280px); /* Impede que os cards estiquem */
    justify-content: center; /* Centraliza os cards */
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    cursor: pointer; 
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    object-fit: cover;
    height: 280px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 1rem 1rem 0.25rem 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.product-card .category {
    margin: 0 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* ATUALIZADO: Lógica de Preço (De/Por) */
.product-card .price-container {
    margin: 0.5rem 1rem 1rem 1rem;
    margin-top: auto; /* Mantém o preço no fim do card */
    line-height: 1.4;
}
.product-card .old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}
.product-card .new-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}
/* FIM DA ATUALIZAÇÃO DE PREÇO */


.product-card .add-to-cart-btn {
    display: none; 
}

/* ======================= SEÇÃO SOBRE NÓS (Homepage) ======================= */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image { 
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-image img { 
    width: 100%; 
    max-width: 400px;
    height: auto; 
}

.about-text { flex: 1; }
.about-text .section-title { text-align: left; }
.about-text .section-title::after { left: 0; transform: none; }
.about-text p { margin-bottom: 15px; line-height: 1.8; }

/* ======================= FOOTER ======================= */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-gray);
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--white); }
.footer-section a, .footer-section p { color: var(--light-gray); text-decoration: none; display: block; margin-bottom: 10px; opacity: 0.8; }
.footer-section a:hover { opacity: 1; color: var(--primary-color); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.7; }

/* ======================= ANIMAÇÕES ======================= */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }


/* ======================= ESTILOS DA PÁGINA DO CARRINHO ======================= */
.cart-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.cart-items-list .cart-item { display: flex; background: var(--white); padding: 20px; border-radius: 10px; margin-bottom: 20px; box-shadow: var(--shadow); align-items: center; }
.cart-item img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; margin-right: 20px; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-size: 1.2rem; margin: 0 0 5px 0; }
.cart-item-info .price { color: var(--primary-color); font-weight: 600; }
.cart-item-info .size,
.cart-item-info .color { /* Adicionada classe .color */
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 5px;
}
.cart-item-actions { text-align: right; }
.cart-item-actions .quantity-controls { display: flex; align-items: center; margin-bottom: 10px; }
.quantity-controls button { background: var(--light-gray); border: 1px solid #ddd; width: 30px; height: 30px; cursor: pointer; font-weight: bold; }
.quantity-controls span { padding: 0 15px; font-size: 1.1rem; }
.remove-item-btn { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 0.9rem; text-decoration: underline; }
.cart-empty-message { padding: 40px; text-align: center; background-color: var(--white); border-radius: 10px; }
.cart-summary { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); position: sticky; top: 120px; }
.cart-summary h3 { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 20px; text-align: center; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1.1rem; }
.summary-row.total-row { font-size: 1.3rem; font-weight: bold; padding-top: 15px; border-top: 1px solid #eee; }
#checkout-btn { display: block; width: 100%; text-align: center; margin-top: 20px; font-size: 1.2rem; padding: 15px; }


/* ======================= ESTILOS DA PÁGINA SOBRE NÓS ======================= */
.about-page-banner {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Mulish', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    padding: 100px 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}
.about-page-text h3 { font-size: 2rem; color: var(--secondary-color); margin-bottom: 20px; }
.about-page-text p { line-height: 1.8; margin-bottom: 20px; }
.values-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; margin-bottom: 20px; text-align: center; }
.value-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.value-item h4 { font-size: 1.3rem; color: var(--secondary-color); margin-bottom: 10px; }


/* ======================= ESTILOS: PÁGINA DE PRODUTOS E FILTROS ======================= */
.main-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 40px;
}
.main-filter-bar #linha-filters {
    flex: 1;
    min-width: 300px; 
}
.main-filter-bar #open-filter-modal-btn {
    flex-shrink: 0; 
    padding-top: 8px; 
    padding-bottom: 8px; 
    margin-top: 0; 
}
.filter-group {
    min-width: 250px;
}
.filter-group h3, .filter-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-buttons button {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    border: 2px solid #ddd;
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-buttons button:hover {
    background-color: #eee;
}
.filter-buttons button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

#price-slider {
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none; 
    appearance: none;
    height: 20px;
    background: transparent; 
    outline: none;
}
#price-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: var(--primary-color); 
    border-radius: 5px;
}
#price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color); 
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--white); 
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    margin-top: -6px; 
}
#price-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: var(--primary-color); 
    border-radius: 5px;
    cursor: pointer;
}
#price-slider::-moz-range-thumb {
    width: 20px; 
    height: 20px;
    background: var(--primary-color); 
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}


/* ======================= CARROSSÉIS DE DESTAQUES ======================= */
.carousel-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.carousel-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}
.carousel-container {
    overflow-x: auto; 
    padding-bottom: 20px; 
}
.product-carousel {
    display: flex; 
    gap: 20px;
    width: max-content; 
}
.product-carousel .product-card {
    flex: 0 0 240px; 
}
.product-carousel .product-card img {
    height: 240px; 
}
.see-more-card {
    flex: 0 0 240px; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.see-more-card:hover {
    background-color: var(--light-gray);
    transform: translateY(-5px);
}

/* ======================= POP-UP DE PRODUTO (MODAL) ======================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none; 
    justify-content: center;
    align-items: center;
}
.modal-overlay.open {
    display: flex; 
}
.modal-content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1003;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #999;
    cursor: pointer;
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* CARROSSEL DO MODAL */
.modal-image-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
#modal-slides-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.modal-slide {
    flex-shrink: 0;
    width: 100%;
}
.modal-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.modal-prev-btn, .modal-next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    background-color: rgba(0,0,0,0.3);
    user-select: none;
}
.modal-next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.modal-prev-btn:hover, .modal-next-btn:hover {
    background-color: rgba(0,0,0,0.6);
}
.modal-dots-container {
    text-align: center;
    padding: 10px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}
.modal-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.modal-dot.active {
    background-color: var(--primary-color);
}
/* FIM DO CARROSSEL DO MODAL */

.modal-details-container h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* ATUALIZADO: Lógica de Preço do Modal (De/Por) */
.modal-details-container .modal-product-price {
    margin-bottom: 20px;
    line-height: 1.3;
}
.modal-details-container .modal-product-price .old-price {
    font-size: 1.2rem; 
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 500;
    display: block; /* "De" em cima */
}
.modal-details-container .modal-product-price .new-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block; 
}
/* FIM DA ATUALIZAÇÃO DE PREÇO DO MODAL */


.size-selector h3,
.color-selector h3 { /* Adicionada classe .color-selector */
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.size-buttons {
    display: flex;
    flex-wrap: wrap; /* Adicionado para quebrar linha */
    gap: 10px;
    margin-bottom: 20px;
}
.size-btn {
    min-width: 40px; /* Alterado de width para min-width */
    height: 40px;
    border: 2px solid #ddd;
    background-color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0 10px; /* Adicionado padding para tamanhos/cores com texto */
}
.size-btn:hover {
    border-color: #aaa;
}
.size-btn.active { 
    border-color: var(--primary-color);
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.product-info-tabs .tab {
    margin-bottom: 15px;
}
.product-info-tabs h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.product-info-tabs p, .product-info-tabs ul {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}
.product-info-tabs ul {
    padding-left: 0; /* Removido padding para lista de medidas */
    margin-top: 10px;
}
/* NOVO: Estilo para as medidas dinâmicas */
#modal-product-measurements li {
    list-style-type: none; 
    margin-bottom: 5px;
}


.modal-add-to-cart-btn { 
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
}

/* ======================= POP-UP DE ALERTA ======================= */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1004; 
    display: none; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}
.alert-modal-overlay.open {
    display: flex;
}
.alert-modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 1005;
    max-width: 90%;
    width: 400px;
}
.alert-modal-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.alert-modal-content .cta-button {
    padding: 10px 40px;
}

/* ======================= POP-UP DE FILTRO (NOVO) ======================= */
.filter-modal-content {
    max-width: 500px; 
}
.filter-modal-content .filter-group {
    margin-bottom: 20px;
}
.filter-modal-content .filter-group:last-of-type {
    margin-bottom: 0;
}


/* ======================= RESPONSIVIDADE (MOBILE) ======================= */
@media (max-width: 768px) {
    .hero-content h1 { 
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title { font-size: 2rem; }

    /* --- ESTILOS DO MENU MOBILE --- */
    .main-header .container {
        justify-content: space-between;
    }
    
    .main-nav, .header-cta {
        display: none;
    }

    .mobile-nav-toggle {
        display: block; 
    }

    .mobile-nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1003;
        transition: right 0.4s ease-in-out;
        
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 30px 30px 30px;
        gap: 30px;
    }

    .mobile-nav-menu.open {
        right: 0; 
    }
    
    .mobile-nav-close {
        display: block;
        position: absolute;
        top: 15px;
        left: 20px;
        font-size: 2.5rem;
    }

    .mobile-main-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .mobile-main-nav a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-color);
        text-decoration: none;
    }

    .mobile-header-cta {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1002;
        display: none; 
        transition: opacity 0.4s ease;
    }

    .mobile-nav-overlay.open {
        display: block; 
    }
    /* --- FIM DO MENU MOBILE --- */


    .about-content { flex-direction: column; }
    
    .cart-container { grid-template-columns: 1fr; }
    .cart-item { 
        flex-direction: column; 
        align-items: center; 
    }
    .cart-item-info { 
        text-align: center; 
        margin: 15px 0; 
    }
    .cart-item-actions { 
        text-align: center; 
        margin-top: 0;
        width: 100%;
    }
    .cart-item-actions .quantity-controls {
        justify-content: center; 
        margin-bottom: 10px;
    }
    
    .about-image {
        width: 100%;
        max-width: 300px;
    }
    .about-page-banner {
        font-size: 3rem;
        padding: 60px 20px;
    }
    
    .modal-body {
        grid-template-columns: 1fr; 
    }
    .modal-image-carousel-container, /* Ajuste para o carrossel no mobile */
    .modal-slide img {
        height: 300px; 
    }
    .modal-content {
        padding: 20px;
    }
    
    .main-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .main-filter-bar #linha-filters {
        overflow-x: auto; 
    }
    .main-filter-bar #linha-filters .filter-buttons {
        flex-wrap: nowrap; 
        width: max-content;
    }
    .main-filter-bar #open-filter-modal-btn {
        width: 100%;
        text-align: center;
    }
    /* Estilo para a etiqueta de ESGOTADO */
.product-tag.sold-out-tag {
    background-color: #e74c3c; /* Vermelho */
    color: white;
}

/* Estilo para o botão desabilitado no modal */
.modal-add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    border-color: #ccc;
    color: #666;
}
/* Estilo para a etiqueta de NOVIDADE */
.product-tag.new-tag {
    background-color: #27ae60; /* Verde Esmeralda */
    color: white;
}

/* Estilo para a etiqueta de NOVIDADE no Modal (Pop-up) */
.modal-new-tag {
    background-color: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: 600;
}
}