/* --- Global Styles & Variables --- */
:root {
    --primary-color: #ED313A;
    --dark-color: #333;
    --light-color: #fff;
    --grey-color: #f4f4f4;
    --text-color: #555;
    --font-family-base: 'Gotham-Light', Sans-serif;
    --font-family-heading: 'Gotham-Light', Sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-title {
    font-family: var(--font-family-heading);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
	color: var(--primary-color);
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c41a28;
}

/* --- Header --- */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo img {
    height: 40px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.header-nav > ul > li {
    margin-left: 35px;
    position: relative;
}

.header-nav > ul > li > a {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 30px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav > ul > li > a .fa-chevron-down {
    font-size: 0.7rem;
    opacity: 0.7;
}

.header-nav > ul > li:hover > a {
    color: #b01421;
}

.header-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background-color: var(--light-color);
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0;
    margin-top: -10px;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, margin-top 0.2s ease;
}

.header-nav .dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.header-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #e0e0e0 transparent;
}

.header-nav .dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -2px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--light-color) transparent;
}


.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu li:not(:first-child) {
    border-top: 1px solid #e0e0e0;
}

.dropdown-menu li a {
    padding: 15px 20px;
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f8f8f8;
}

.header-actions {
    display: flex;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 20px;
}

#menu-btn { display: none; }


.search-bar {
    display: none;
    padding: 15px 20px;
    background-color: var(--grey-color);
    border-top: 1px solid #ddd;
}
.search-bar.active { display: flex; }

.search-bar input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

.search-bar button {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* --- Slider Section --- */
.slider-section {
    background-color: var(--grey-color);
    padding: 40px 20px;
}

.slider {
    position: relative;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;

}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--dark-color);
}


/* --- Products Section --- */
.products-section {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.product-card {
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-card figcaption {
	font-size: 25px;
    padding: 15px;
    font-weight: bold;
    color: var(--dark-color);
    background: var(--light-color);
}

/* --- Highlights Section --- */
.highlights-section {
    padding: 60px 0;
    background-color: #fff;
}

.highlights-section .section-title {
    color: var(--primary-color);
    text-transform: uppercase;
}

.highlights-grid-masonry {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 15px;
}

.highlight-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.highlight-card:hover img {
    transform: scale(1.05);
}

/* Posicionamento de cada item no grid */
.grid-item-1 { grid-area: 1 / 1 / 3 / 3; }
.grid-item-2 { grid-area: 1 / 3 / 2 / 4; }
.grid-item-3 { grid-area: 1 / 4 / 2 / 5; }
.grid-item-4 { grid-area: 1 / 5 / 2 / 5; }
.grid-item-5 { grid-area: 2 / 3 / 4 / 5; }
.grid-item-6 { grid-area: 2 / 5 / 3 / 6; } /* Uma célula na segunda linha, coluna 5 */
.grid-item-7 { grid-area: 3 / 5 / 4 / 6; } /* Uma célula na terceira linha, coluna 5 */
.grid-item-8 { grid-area: 3 / 1 / 3 / 2; }
.grid-item-9 { grid-area: 3 / 2 / 4 / 3; }


/* --- Catalog Section --- */
.catalog-section {
    padding: 60px 0;
}

.catalog-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.catalog-image {
    flex: 1;
}

.catalog-content {
    flex: 1;
    text-align: center;
}
.catalog-content .section-title { margin-bottom: 20px; }
.catalog-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Where to Buy Section --- */
.where-to-buy-section {
    background-image: url('https://web.archive.org/web/20240727001441im_/https://www.cozimax.com.br/wp-content/themes/cozimax/assets/images/encontre-uma-loja-proxima-de-voce-map.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    padding: 60px 0;
    text-align: center;
}

.where-to-buy-section .section-title {
    color: var(--primary-color);
}

.where-to-buy-flag {
    margin: 20px auto 0;
    max-width: 300px;
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 80px 20px;
    background-color: #D73343; /* Vermelho vibrante da imagem */
    color: var(--light-color);
}

.newsletter-container {
    text-align: center;
}

.newsletter-container h3 {
    font-family: var(--font-family-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-control-wrapper {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--light-color);
    border-radius: 50px; /* Borda arredondada (pílula) */
    padding: 5px; /* Espaçamento interno para o botão */
    overflow: hidden;
}

.newsletter-form input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 15px 25px;
    color: var(--light-color);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.newsletter-form button {
    background-color: var(--dark-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #555;
}

.newsletter-form button .fa-paper-plane {
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 30px;
    background-color: #fff;
    color: #696969;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #696969;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-color);
}

.footer-col address {
    font-style: normal;
    margin-bottom: 20px;
}

.social-media h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--primary-color);
}
.social-media a {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}
.social-media a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.copyright img {
    height: 25px;
    margin: 0 auto;
}

/* --- Modals and Floating Button --- */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
}
.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}
.modal-body p {
    margin-bottom: 1em;
}

/* --- Reseller Banner --- */
.reseller-banner {
    position: fixed;
    bottom: 20px;
    z-index: 998; /* Um pouco abaixo de outros botões flutuantes para evitar conflitos */
    
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    display: flex;
    align-items: center;
    gap: 20px; /* Espaço entre o texto e o botão de fechar */

    /* Animação para esconder */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.reseller-banner.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* Impede cliques após ser escondido */
}

.reseller-link {
    color: var(--light-color);
    text-decoration: none;
    font-size: 24px;
	margin-left: 80px;
}

.reseller-close-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
    transition: opacity 0.2s ease;
}

.reseller-close-btn:hover {
    opacity: 1;
}


/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .header-nav { display: none; }
    #menu-btn { display: block; }
    .header-nav.mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: var(--light-color);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 20px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .header-nav.mobile-nav.active {
        transform: translateX(0);
    }
    .header-nav.mobile-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .header-nav.mobile-nav > ul > li {
        margin: 0;
        width: 100%;
    }
    .header-nav.mobile-nav > ul > li > a {
        padding: 15px 10px;
        width: 100%;
        justify-content: space-between;
    }
    .header-nav.mobile-nav .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
        border: none;
        background-color: #fafafa;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .header-nav.mobile-nav .dropdown-menu::before,
    .header-nav.mobile-nav .dropdown-menu::after {
        display: none;
    }
    .header-nav.mobile-nav .dropdown.open > .dropdown-menu {
        display: flex;
    }

    .catalog-container {
        flex-direction: column;
    }

    .highlights-grid-masonry {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        grid-auto-rows: 250px;
    }
    
    .grid-item-1, .grid-item-2, .grid-item-3, .grid-item-4, .grid-item-5, .grid-item-6, .grid-item-7, .grid-item-8, .grid-item-9 {
        grid-area: auto / auto / auto / auto;
    }

    .grid-item-1 { grid-column: 1 / 3; } /* Ocupa 2 colunas */
    .grid-item-5 { grid-column: 1 / 3; } /* Ocupa 2 colunas */
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .highlights-grid-masonry {
        display: flex;
        flex-direction: column;
        height: auto;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: row; /* Garante que permaneça em linha */
    }
	
    .newsletter-form input,
    .newsletter-form .btn {
        border-radius: 5px;
    }
}