/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3d72;
    --secondary-color: #4CAF50;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1DA851;
    --email-color: #EA4335;
    --instagram-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--bg-white);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

.btn-whatsapp i,
.btn-email i,
.btn-instagram i {
    margin-right: 0.5rem;
}

/* Header */
.header {
    background-color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.cart-button:hover {
    color: var(--primary-dark);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Seções */
main {
    padding-top: 80px;
}

section {
    padding: 5rem 0;
}

/* Hero Section */
.hero {
    background: none;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Estilo para o conteúdo do texto, que agora terá o fundo azul */
.hero-content {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-content h1,
.hero-content p {
    color: white;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Estilo para o contêiner da imagem */
.hero-image {
    text-align: center; /* Centraliza a imagem no contêiner */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto; /* Adicione esta linha para centralizar a imagem */

}

/* Produtos */
.products {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-container {
    text-align: center;
    margin-bottom: 2rem;
}

.search-box {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-box i {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.search-box input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--text-dark);
}

.search-results {
    margin-top: 1rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    #categoryFilters.filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colunas de tamanho igual */
        gap: 10px; /* Espaçamento entre as categorias */
    }
}

.filter-tab {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}


/* Layout da Grade de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px; /* Aumenta o espaçamento entre os cards */
    padding: 20px;
}

/* Layout do Card de Produto */
.product-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex; /* Transforma o card em um container flexível */
    flex-direction: column; /* Organiza os itens verticalmente */
    text-align: center; /* Centraliza todo o texto e o botão */
    transition: var(--transition); /* Efeito de transição suave */
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px); /* Efeito sutil ao passar o mouse */
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 200px; /* Altura fixa para as imagens */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    border-radius: calc(var(--border-radius) - 5px);
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1; /* Permite que a descrição ocupe o espaço extra */
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-card .btn {
    width: 100%; /* Botão ocupa a largura total do card */
    margin-top: auto; /* Empurra o botão para a parte inferior */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    text-transform: uppercase;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.02);
}

.favorite-btn {
    color: var(--text-muted);
}

.favorite-btn:hover {
    background-color: #ff3b3b;
    color: white;
}

/* Estilo para a barra de filtros de categorias */
.filter-tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 0;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha em telas pequenas */
}

.filter-tabs li {
    padding: 10px 20px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
}

.filter-tabs li:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.filter-tabs .active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* About */
.about {
    background-color: var(--bg-white);
}

.about-content {
    display: flex;
    flex-direction: column-reverse; /* A imagem da seção 'Sobre' também irá para o topo */
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-card {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 6rem;
    padding: 2rem;
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}


/* Contato */
.contact {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-card:nth-child(1) i { color: var(--whatsapp-color); }
.contact-card:nth-child(2) i { color: var(--email-color); }
.contact-card:nth-child(3) i { background: var(--instagram-gradient); 
-webkit-text-fill-color: transparent; }


/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo img {
    height: 48px;
    margin-right: 0.5rem;
}

.footer-links, .footer-contact {
    flex-basis: 200px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li a, .footer-contact p a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-links li a:hover, .footer-contact p a:hover {
    color: var(--bg-white);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-dark);
}

.modal h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.modal-body h4 {
    color: var(--primary-dark);
    margin: 1.5rem 0 0.75rem;
}

.modal-body h4:first-of-type {
    margin-top: 0;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.size-buttons,
.color-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.size-btn,
.color-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.size-btn.active,
.color-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--primary-dark);
}

#productQuantity {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    padding: 0.5rem;
}

.modal-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.add-to-cart-modal {
    width: 100%;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast.error {
    background-color: #d9534f;
}

.toast.info {
    background-color: #5bc0de;
}

/* Cart Modal Specific Styling */
#cartModal .modal-content {
    max-width: 600px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cart-item-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-quantity-input {
    width: 40px;
    text-align: center;
    border: none;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #d9534f;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.remove-item-btn:hover {
    color: #c9302c;
}

.cart-summary {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.cart-total-shipping {
    color: var(--secondary-color);
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.caixa-com-texto {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: 2rem;
    font-weight: bold;
}

.unavailable-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #d9534f;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.unavailable .add-to-cart-btn {
    display: none;
}

/* Modal de opções */
.size-options, .color-options {
    margin-bottom: 1.5rem;
}

.size-buttons, .color-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.size-btn, .color-btn {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.size-btn:hover, .color-btn:hover {
    background-color: #f0f0f0;
}

.size-btn.active, .color-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Estilo para a barra de filtros de categorias */
.filter-tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 0;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
}

.filter-tab:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 5px);
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.unavailable {
    opacity: 0.6;
    pointer-events: none;
}


/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
}

/* Media Queries para Responsividade */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
        padding: 1rem 0;
    }
    .nav-menu.active ul {
        flex-direction: column;
        gap: 0;
    }
    .nav-menu.active li a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 1;
    }
    .hero-image {
        order: 2;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .header .logo {
        flex-grow: 1;
        justify-content: center;
    }
    .header .header-actions {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin-top: 20px;
    }

    .hero-content, .about-content {
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center; /* Centraliza cada item da grade horizontalmente */
}

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para telas de até 480px (smartphones) */
@media (max-width: 480px) {
    .header .nav-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .logo {
        flex-grow: 1;
        justify-content: center;
    }

    .header-actions {
        order: 1; /* Coloca os botões de ação abaixo do logo */
        width: 100%;
        justify-content: space-around;
        margin-top: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
}


/* Estilos para a Seção de Cupom no Carrinho */
.coupon-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    align-items: center;
}

#couponInput {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

#couponInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(44, 90, 160, 0.3);
}

#applyCouponBtn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    flex-shrink: 0; /* Impede que o botão encolha */
}

#couponDiscountRow {
    color: var(--secondary-color);
    font-weight: 600;
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.cart-summary p {
    margin: 0.5rem 0;
}

/* Adicionado para produtos indisponíveis */
.unavailable-product {
    opacity: 0.7;
    background-color: #f9f9f9;
}

.unavailable-product .product-image {
    filter: grayscale(80%);
}
/* ... todo o seu CSS existente acima ... */

/* Correção para Ícone do Instagram com Gradiente */
.contact-card:nth-child(3) i {
    background: var(--instagram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* CORRIGIDO: Usa a propriedade 'color' como padrão */
}

/* Correção para Menu Hambúrguer */
.mobile-close-btn {
    display: block; /* Garante que é visível */
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

@media (min-width: 993px) {
    .nav-menu.active {
        display: flex !important; /* Mantém o display original em telas grandes */
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    .nav-menu.active ul {
        flex-direction: row;
    }
    .nav-menu.active li a {
        padding: 0;
        border-bottom: none;
    }
    .mobile-close-btn {
        display: none; /* Esconde o botão 'X' em telas grandes */
    }
}

/* Garante que o no-products-found ocupe o espaço */
.no-products-found {
    grid-column: 1 / -1; /* Ocupa todas as colunas da grade */
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}
#checkoutBtn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Estilos para Checkout e Frete */
.shipping-container {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.shipping-container label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}
.cep-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.cep-group input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
}
.cep-group button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    flex-shrink: 0;
}
#shippingOptions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.shipping-option {
    display: flex;
}
.shipping-option input[type="radio"] {
    display: none;
}
.shipping-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.shipping-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: #f0f5ff;
}
.shipping-details {
    display: flex;
    flex-direction: column;
}
.shipping-name {
    font-weight: 600;
}
.shipping-deadline {
    font-size: 0.85rem;
    color: var(--text-light);
}
.shipping-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}
#checkoutBtn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#checkoutBtn:disabled:hover {
    background-color: #cccccc;
}

/* Modal de Endereço */
.address-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
.address-form input,
.address-form textarea {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.address-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
}
.address-grid input:nth-child(3),
.address-grid input:nth-child(4),
.address-grid input:nth-child(5) {
    grid-column: span 2;
}
@media (min-width: 600px) {
    .address-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .address-grid input:nth-child(1) { grid-column: 1 / 3; }
    .address-grid input:nth-child(2) { grid-column: 3 / 4; }
    .address-grid input:nth-child(3) { grid-column: 1 / 2; }
    .address-grid input:nth-child(4) { grid-column: 2 / 3; }
    .address-grid input:nth-child(5) { grid-column: 3 / 4; }
}

.payment-options {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.payment-options h4 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}
.payment-options .btn {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
#finalizeOnlineBtn:disabled {
    background-color: #ccc !important;
    border-color: #bbb !important;
    color: #666 !important;
}

/* --- AJUSTES DE RESPONSIVIDADE PARA O MODAL --- */

@media (max-width: 768px) {
    /* Faz o modal ocupar quase toda a largura e ter margem no topo/base */
    .modal-content {
        width: 95% !important;
        margin: 10px auto !important;
        padding: 15px !important;
        max-height: 90vh; /* Não deixa o modal sumir para baixo da tela */
        overflow-y: auto; /* Cria scroll interno se houver muitos itens */
    }

    /* Ajusta os botões de ação do carrinho (Limpar e Continuar) */
    .cart-actions {
        display: flex;
        flex-direction: column; /* Empilha os botões um sobre o outro */
        gap: 10px;
    }

    .cart-actions .btn {
        width: 100%; /* Botões ocupam a largura total no mobile */
        margin: 0 !important;
    }

    /* Ajusta a área de CEP e Cálculo */
    .cep-group {
        display: flex;
        flex-direction: column; /* Input em cima, botão embaixo */
        gap: 8px;
    }

    .cep-group input {
        width: 100% !important;
    }

    .cep-group .btn {
        width: 100%;
    }

    /* Ajusta os botões de finalizar pedido (Online e WhatsApp) */
    .payment-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .payment-options .btn {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    /* Diminui o tamanho das imagens no carrinho para sobrar espaço para o texto */
    .cart-item-image {
        width: 50px !important;
        height: 50px !important;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }
}

/* --- AJUSTE DE RESPONSIVIDADE PARA GRADE DE PRODUTOS (3 POR LINHA) --- */

@media (max-width: 768px) {
    /* O GRID principal deve ser ajustado para telas menores */
    #productsGrid {
        /* Permite que o container se adapte a 3 colunas */
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px; /* Reduz o espaçamento entre os cards no mobile */
    }

    /* O CARD do produto deve ter seu conteúdo ajustado para caber no espaço menor */
    .product-card {
        padding: 8px; /* Reduz o padding interno do card */
        /* Garante que o conteúdo não estoure o limite de 3 colunas */
        min-width: 0;
    }

    /* Ajuste de tamanho da imagem */
    .product-card .product-image {
        height: 80px; /* Diminui a altura fixa da imagem */
        object-fit: contain; /* Garante que a imagem caiba bem */
    }

    /* Ajuste de fontes e descrições */
    .product-card .product-name {
        font-size: 0.8rem; /* Nome do produto menor */
        height: 2.4em; /* Limita a duas linhas de altura */
        line-height: 1.2;
        overflow: hidden;
    }

    .product-card .product-description {
        display: none; /* Oculta a descrição completa para economizar espaço */
    }

    .product-card .product-price {
        font-size: 0.9rem; /* Preço levemente menor */
        margin: 5px 0;
    }

    /* Ajuste do botão 'Adicionar ao Carrinho' */
    .product-card .add-to-cart-btn,
    .product-card .notify-me-btn {
        font-size: 0.65rem; /* Fonte bem pequena para caber na largura */
        padding: 5px;
        width: 100%;
        min-height: 25px; /* Altura mínima para ser clicável */
    }

    .product-card .add-to-cart-btn i,
    .product-card .notify-me-btn i {
        margin-right: 2px; /* Reduz o espaço do ícone */
    }
    
    /* Outros ajustes de responsividade que você pode ter (ex: filtros) */
    .category-filters {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 10px;
    }
    .filter-tab {
        font-size: 0.8rem;
        padding: 8px 10px;
        display: inline-block;
    }
}