:root {
    --primary: #8c0d31;
    --primary-dark: #da0e48;
    --secondary: #8c0d31;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --gray-border: #E0E0E0;
    --red-error: #dc3545;
    --footer-bg: #36441f; /* Cor de fundo do rodapé alterada para um cinza escuro */
    --footer-text-color: #E0E0E0;
    --footer-link-hover: #da0e48; /* Cor de hover dos links do rodapé alterada para primary-dark */
    --feature-icon-bg: rgba(140, 13, 49, 0.1); /* Fundo sutil para ícones de feature */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-y: scroll;
    background-color: #f8faf7;
    background-image:
        radial-gradient(at 10% 20%, rgba(210, 230, 213, 0.3) 0px, transparent 30%),
        radial-gradient(at 90% 80%, rgba(189, 218, 196, 0.3) 0px, transparent 30%);
    background-size: cover;
    background-attachment: fixed;
}

body::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

body {
    scrollbar-width: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.904);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: rgba(252, 250, 250, 0.767);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 35px;
    padding-top: 5px;
    height: auto;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.2px;
}

.logo h1:hover {
    color: var(--primary);
}

/* Desktop Navigation (visible only on larger screens) */
.desktop-nav {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav a.active {
    color: var(--primary);
    position: relative;
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0.8);
    transition: transform 0.3s ease;
}

.whatsapp-btn {
    background-color: #25D366;
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.whatsapp-btn i {
    font-size: 0.9rem;
    margin-right: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
    color: #000000 !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: none;
}

/* Mobile Menu Toggle Button (visible only on smaller screens) */
.open-mobile-menu {
    display: none; /* Hidden by default, shown in media query */
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050; /* Above main content, below sidebar */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen to the right */
    width: 280px; /* Width of the sidebar */
    max-width: 80%; /* Max width for smaller screens */
    height: 100%;
    background-color: var(--white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1060; /* Above overlay */
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-menu-sidebar.active {
    right: 0; /* Slide into view */
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    align-self: flex-end; /* Align to the right */
    margin-bottom: 20px;
    padding: 0;
}

/* Estilo para a logo dentro do menu mobile */
.mobile-menu-logo {
    text-align: center; /* Centraliza a imagem */
    margin-bottom: 20px; /* Espaçamento abaixo da logo */
    padding-bottom: 15px; /* Espaçamento interno inferior */
    border-bottom: 1px solid var(--gray-border); /* Linha separadora */
}

.mobile-menu-logo img {
    width: 250px; /* Tamanho da imagem da logo */
    height: auto;
    max-width: 100%; /* Garante que não ultrapasse o limite do contêiner */
    transition: transform 0.3s ease; /* Adiciona uma transição suave */
}

.mobile-menu-logo img:hover {
    transform: scale(1.05); /* Efeito de zoom ao passar o mouse */
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1; /* Allows it to take available space */
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
    transition: color 0.3s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    color: var(--primary);
}

.mobile-nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.mobile-nav .whatsapp-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1rem; /* Adjust padding for mobile button */
    font-size: 1rem;
}

.mobile-menu-footer {
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
    text-align: center;
}

.mobile-menu-footer .footer-social {
    justify-content: center; /* Center social icons */
}

/* Mobile Menu Footer - Ajustes para visibilidade dos ícones */
.mobile-menu-footer .footer-social a {
    color: var(--primary); /* Define a cor inicial dos ícones para a cor primária (vermelho bordô) */
    background: rgba(140, 13, 49, 0.1); /* Um fundo sutil para os ícones, usando a cor primária com transparência */
    border: 1px solid var(--primary); /* Adiciona uma borda para maior visibilidade */
}

.mobile-menu-footer .footer-social a:hover {
    background: var(--primary); /* Mantém o fundo primário ao passar o mouse */
    color: var(--white); /* Altera a cor do ícone para branco ao passar o mouse */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.mobile-menu-footer .footer-social a i {
    color: var(--primary); /* Garante que a cor do ícone seja a primária inicialmente */
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-footer .footer-social a:hover i {
    color: var(--white); /* Altera a cor do ícone para branco ao passar o mouse */
    transform: rotate(360deg);
}


/* Media Query for Mobile */
@media (max-width: 767px) {
    .desktop-nav {
        display: none; /* Hide desktop nav on mobile */
    }

    .open-mobile-menu {
        display: block; /* Show mobile menu toggle button */
    }

    /* Ensure body doesn't scroll when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
}

/* Restante do CSS permanece o mesmo */
/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    align-items: center;
}

.hero-content {
    padding: 0 5vw;
    max-width: 600px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h2 span {
    color: var(--primary);
    font-weight: 400;
    font-style: italic;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem 0;
    border-radius: 2px;
}

.hero-content p {
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    max-width: 80%;
}

.hero-image-wrapper {
    height: 100%;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s ease;
}

.hero:hover .hero-image-wrapper img {
    transform: scale(1.03);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.4s ease-in-out;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
    animation: float 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    transition: left 0.4s ease-in-out;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--white);
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Catalog Styles */
.catalog-main {
    padding: 4rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 0.5rem 0;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 1rem auto;
    border-radius: 1px;
}

/* Filters */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1rem;
    align-items: center;
    background-color: transparent;
    border-radius: 10px;
}

.filter-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 250px;
    max-width: 100%;
}

.filter-group i {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.filter-group:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.filter-group #search-input {
    background-image: none;
    padding-right: 1rem;
}

.filter-input,
.filter-select {
    color: var(--text-dark);
    padding: 0.8rem 1rem 0.8rem 40px;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--background-light);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%237F8C8D%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.2-6.4H18.2c-4.8%200-9.3%201.8-13.2%206.4-4.1%204.5-6.4%2010.6-6.4%2016.9v14.8c0%206.3%202.3%2012.4%206.4%2016.9l133.9%20146.2c3.9%204.3%209.1%206.4%2014.3%206.4s10.4-2.1%2014.3-6.4l133.9-146.2c4.1-4.5%206.4-10.6%206.4-16.9V86.3c0-6.3-2.3-12.4-6.4-16.9z%22%2F%3E%3C%2Fsvg%3E');
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background-color: var(--white);
    outline: none;
}

.btn-clear-filters {
    background-color: #000000;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 300px;
    position: relative;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card.new::before {
    content: 'NOVO';
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    transform: rotate(5deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.product-image-container {
    height: 320px;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-border);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    min-height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0.5rem 0 0.8rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    position: relative;
    min-height: 4.5em;
}

.product-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none;
}

.read-more-btn {
    display: block;
    text-align: right;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

.product-items ul {
    padding-left: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    list-style: disc;
}

.product-items li {
    margin-bottom: 0.2rem;
}

.product-items .see-more {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.product-items .see-more:hover {
    color: var(--primary-dark);
}

.whatsapp-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.5rem;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
}

.whatsapp-order-btn i {
    font-size: 1rem;
    margin-right: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.whatsapp-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease-in-out;
    z-index: -1;
}

.whatsapp-order-btn:hover::before {
    transform: scaleY(1);
    transform-origin: bottom;
}

.whatsapp-order-btn:hover {
    background-color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
}

.whatsapp-order-btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.whatsapp-order-btn-card i {
    font-size: 1rem;
    margin-right: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.whatsapp-order-btn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease-in-out;
    z-index: -1;
}

.whatsapp-order-btn-card:hover::before {
    transform: scaleY(1);
    transform-origin: bottom;
}

.whatsapp-order-btn-card:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.35);
}

/* Empty/Error Messages */
.empty-message, .error-message {
    text-align: center;
    padding: 2.5rem;
    grid-column: 1 / -1;
    color: var(--text-light);
    background-color: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin: 2rem auto;
    max-width: 600px;
}

.empty-message i, .error-message i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.empty-message:hover i, .error-message:hover i {
    transform: rotate(-5deg) scale(1.05);
}

.error-message i {
    color: var(--red-error);
}

.empty-message h3, .error-message h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.empty-message p, .error-message p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.error-message .retry-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.error-message .retry-btn:hover {
    background-color: var(--primary-dark);
}

/* Loading Overlay for Products */
.product-grid.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-grid.loading::after {
    content: '\f110';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--primary);
    z-index: 11;
    animation: spin 1.5s linear infinite;
}

/* Animação de entrada para seções */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animação de entrada para cards de produto */
.product-grid.loaded .product-card {
    opacity: 1;
    transform: translateY(0);
}

/* Modal de Imagem Expandida (com carrossel) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
    z-index: 2002;
}

.image-modal .carousel-container {
    position: relative;
    width: 80%;
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    margin-bottom: 0;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 35px;
    font-weight: normal;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    z-index: 11;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: var(--white);
    transform: scale(1.1);
}

/* Carousel Navigation Buttons */
.prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border: none;
    z-index: 10;
}

.next-button {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-button {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Carousel Dots */
.carousel-dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* Animações */
@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

@keyframes zoomOut {
    from {transform: scale(1);}
    to {transform: scale(0.8);}
}

/* Responsividade para o modal */
@media only screen and (max-width: 700px){
    .image-modal .carousel-container {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 4rem 0 2rem; /* Aumentado o padding superior e inferior */
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1); /* Sombra sutil para o rodapé */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removido o radial-gradient para um fundo mais limpo, ou pode ser ajustado para um efeito mais sutil */
    /* background: radial-gradient(circle at 10% 90%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(76, 175, 80, 0.05) 0%, transparent 50%); */
    z-index: 0;
    pointer-events: none;
}

.footer-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem; /* Aumentado o gap entre as colunas */
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-contact, .footer-links, .footer-hours, .footer-map {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Aumentado o gap interno */
}

.footer-contact .logo {
    margin-bottom: 1rem;
}

.footer-contact .logo i {
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.footer-contact .logo:hover i {
    transform: rotate(15deg) scale(1.1);
}

.footer-contact .logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; /* Aumentado o tamanho da fonte do título do logo */
    font-weight: 700;
    color: var(--white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Aumentado o gap entre os itens de contato */
}

.contact-info a {
    color: var(--footer-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px; /* Aumentado o gap entre ícone e texto */
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1rem; /* Aumentado o tamanho da fonte */
    position: relative;
    padding-left: 0;
}

.contact-info a i {
    font-size: 1.1rem; /* Aumentado o tamanho dos ícones */
    color: var(--primary-dark); /* Cor dos ícones de contato */
}

.contact-info a:hover {
    color: var(--footer-link-hover);
    transform: translateX(5px); /* Efeito de translação mais pronunciado */
}

.contact-info a::before {
    display: none;
}

.footer-social {
    display: flex;
    gap: 1.5rem; /* Aumentado o gap entre os ícones sociais */
    margin-top: 1.5rem; /* Aumentado a margem superior */
}

.footer-social a {
    color: var(--white);
    font-size: 1.6rem; /* Aumentado o tamanho dos ícones sociais */
    width: 50px; /* Aumentado o tamanho do círculo */
    height: 50px; /* Aumentado o tamanho do círculo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08); /* Fundo mais sutil */
    transition: all 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25); /* Sombra mais pronunciada */
}

.footer-social a:hover {
    background: var(--primary); /* Cor primária ao hover */
    transform: translateY(-5px) scale(1.1); /* Efeito de hover mais pronunciado */
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.footer-social a i {
    font-size: 1.8rem; /* Aumentado o tamanho do ícone dentro do círculo */
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover i {
    color: var(--white);
    transform: rotate(360deg);
}

.footer-copyright {
    text-align: center;
    margin-top: 3rem; /* Aumentado a margem superior */
    padding-top: 2rem; /* Aumentado o padding superior */
    border-top: 1px solid rgba(255,255,255,0.2); /* Borda mais visível */
    font-size: 0.95rem; /* Aumentado o tamanho da fonte */
    color: #C0C0C0; /* Cor mais clara para o texto de copyright */
}

.footer h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; /* Aumentado o tamanho da fonte dos títulos */
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.2rem; /* Aumentado a margem inferior */
    position: relative;
    padding-bottom: 8px; /* Aumentado o padding inferior */
    letter-spacing: 0.8px; /* Aumentado o espaçamento entre letras */
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px; /* Aumentado o tamanho da linha */
    height: 3px; /* Aumentado a espessura da linha */
    background-color: var(--primary-dark); /* Cor da linha alterada para primary-dark */
    border-radius: 2px;
}

.footer-links ul, .footer-hours ul {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-hours li {
    margin-bottom: 0.8rem; /* Aumentado a margem inferior */
}

.footer-links a, .footer-hours p {
    color: var(--footer-text-color);
    text-decoration: none;
    font-size: 1rem; /* Aumentado o tamanho da fonte */
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    transform: translateX(5px); /* Efeito de translação mais pronunciado */
}

.footer-hours li p {
    display: flex;
    align-items: center;
    gap: 10px; /* Aumentado o gap entre ícone e texto */
}

.footer-hours li p i {
    font-size: 1.1rem; /* Aumentado o tamanho dos ícones */
    color: var(--primary-dark); /* Cor dos ícones de horário */
}

/* Footer Map */
.footer-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.footer-map iframe:hover {
    transform: scale(1.02);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

/* About Us Page Styles */
.about-main {
    padding: 3rem 5%;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 2;
    min-width: 300px;
    max-width: 700px;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--primary);
}

/* Adicionado para o dropdown de opções */
/* Dropdown Quantity Selector */
.product-options {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 220px;
    margin-top: 0.3rem;
}

.product-options label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 10px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.buque-quantity-select {
    color: var(--text-dark);
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding-right: 2rem;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%237F8C8D%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.2-6.4H18.2c-4.8%200-9.3%201.8-13.2%206.4-4.1%204.5-6.4%2010.6-6.4%2016.9v14.8c0%206.3%202.3%2012.4%206.4%2016.9l133.9%20146.2c3.9%204.3%209.1%206.4%2014.3%206.4s10.4-2.1%2014.3-6.4l133.9-146.2c4.1-4.5%206.4-10.6%206.4-16.9V86.3c0-6.3-2.3-12.4-6.4-16.9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.buque-quantity-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.select-arrow {
    display: none;
}

/* Estilo para a informação adicional */
.product-extra-info {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.6rem;
    line-height: 1.4;
    padding: 0.5rem 0;
    padding-top: 0.8rem;
}

.product-extra-info strong {
    color: var(--primary-dark);
}

/* Modal de Detalhes do Produto */
.product-details-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease-out;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.modal-content-details {
    background-color: #ffffffea;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideInUp 0.4s ease-out;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.close-button-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 35px;
    font-weight: normal;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.close-button-details:hover,
.close-button-details:focus {
    color: var(--white);
    transform: scale(1.1);
}

.modal-header-details {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-product-image {
    width: 90%;
    max-width: 200px;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    object-position: center 30%;
    margin: 0 auto;
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.modal-header-info {
    flex-grow: 1;
}

#modal-product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

#modal-product-price {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

#modal-product-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.modal-body-details {
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.modal-product-options .quantity-selector {
    max-width: 100%;
    margin-top: 10px;
}

.modal-product-options label {
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.modal-product-items {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-product-items li {
    margin-bottom: 5px;
}

.modal-extra-info {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed var(--gray-border);
}

.modal-extra-info strong {
    color: var(--primary-dark);
}

.modal-footer-details {
    padding: 20px 0;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    flex-shrink: 0;
}

#modal-whatsapp-button {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    background-color: var(--primary);
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 5%;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white); /* Fundo branco para os itens */
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    background-color: #fff; /* Garante que o fundo permaneça branco ou mude sutilmente */
}

.feature-icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--feature-icon-bg); /* Usando a nova variável CSS */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1; /* Garante que o fundo do ícone esteja acima do pseudo-elemento */
}

.feature-item:hover .feature-icon-bg {
    background-color: var(--primary); /* Cor primária ao passar o mouse */
    transform: rotate(10deg) scale(1.1);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary);
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2; /* Garante que o ícone esteja acima do fundo */
}

.feature-item:hover i {
    color: var(--white); /* Cor branca para o ícone ao passar o mouse */
    transform: scale(1.05);
}

.feature-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    z-index: 1;
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image-wrapper {
        height: 60vh;
        order: -1;
    }

    .hero-content {
        padding: 3rem 2rem;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        height: 50vh;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .footer-simple {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact, .footer-links, .footer-hours, .footer-map {
        align-items: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info a {
        justify-content: center;
    }

    .contact-info a::before {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .filters-container {
        flex-direction: column;
        align-items: center;
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .filter-group {
        width: 100%;
        max-width: 300px;
    }

    .filter-input,
    .filter-select,
    .btn-clear-filters {
        width: 100%;
        max-width: 100%;
    }

    .product-image-container {
        height: 320px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .whatsapp-order-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        max-width: 100%;
    }

    .btn-clear-filters {
        width: 100%;
        max-width: 300px;
    }

    .modal-content-details {
        width: 97%;
        padding: 15px;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .modal-header-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #modal-product-title {
        font-size: 1.5rem;
    }

    #modal-product-price {
        font-size: 1.4rem;
    }

    .modal-section h3 {
        font-size: 1.1rem;
    }

    .modal-product-items {
        padding-left: 20px;
        font-size: 0.9rem;
    }

    #modal-whatsapp-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
    .why-choose-us {
        padding: 3rem 5%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-item i {
        font-size: 2.5rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .image-modal {
        padding-top: 20px;
    }

    .image-modal .carousel-container {
        max-width: 95%;
    }

    .image-modal .modal-content {
        max-height: 70vh;
    }

    .modal-content-details {
        padding: 10px;
    }
    .modal-header-details {
        gap: 10px;
    }
    .modal-product-image {
        border-radius: 6px 6px 3px 3px;
        max-width: 190px;
        max-height: 220px;
    }
    #modal-product-title {
        font-size: 1.3rem;
    }
    #modal-product-price {
        font-size: 1.2rem;
    }
    .modal-section h3 {
        font-size: 1rem;
    }
    .modal-product-items {
        font-size: 0.85rem;
    }
    #modal-whatsapp-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .modal-footer-details {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10;
    }
}
