/* Variáveis de Cores (Paleta Profissional) */
:root {
    --primary-color: #E4002B; /* Vermelho vibrante para destaque e CTA's */
    --secondary-color: #2C3E50; /* Azul escuro/quase preto para cabeçalhos e texto principal */
    --accent-color: #27AE60; /* Verde para sucesso/WhatsApp */
    --background-color: #F8F9FA; /* Branco acinzentado para fundos */
    --white-color: #FFFFFF;
    --text-color-dark: #34495E; /* Texto principal escuro */
    --text-color-light: #7F8C8D; /* Texto secundário/parágrafos leves */
    --border-light: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Evita rolagem horizontal */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Títulos de Seção */
.section-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* --- Cabeçalho --- */
.header {
    background-color: var(--white-color);
    box-shadow: 0 4px 15px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 2em;
    color: var(--secondary-color);
    font-weight: 700;
}

.main-nav {
    display: block; /* Visível por padrão no desktop */
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center; /* Alinha itens verticalmente */
}

.main-nav a {
    color: var(--text-color-dark);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
}

.cart-icon .cart-count {
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 0.75em;
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Campo de busca dentro do main-nav */
.main-nav .search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}
.main-nav .search-box form {
    display: flex;
    width: 100%;
}
.main-nav .search-box input {
    border: none;
    padding: 8px 15px;
    font-size: 0.95em;
    flex-grow: 1;
    outline: none;
}
.main-nav .search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
.main-nav .search-box button:hover {
    background-color: #b70025;
}

.category-menu {
    background-color: var(--primary-color);
    padding: 12px 0;
    box-shadow: inset 0 -3px 8px rgba(0,0,0,0.1);
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.category-menu a {
    color: var(--white-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.category-menu a:hover {
    color: var(--secondary-color);
}

.category-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--white-color);
    transition: width 0.3s ease;
}

.category-menu a:hover::after {
    width: 100%;
}

/* Dropdown para Categorias */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    top: calc(100% + 10px); /* Posiciona abaixo do link de Categorias */
    left: 0;
}

.dropdown-content a {
    color: var(--text-color-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Menu mobile (botão hambúrguer) */
.mobile-menu-toggle {
    display: none; /* Escondido por padrão, visível em mobile */
    font-size: 2em;
    color: var(--secondary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
/* Overlay para o menu mobile (para fechar o menu ao clicar fora) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none; /* Escondido por padrão */
}

/* --- Seção Hero com Carrossel --- */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0px; /* Alinhado ao topo */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Altura generosa para impacto */
    overflow: hidden;
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: none;
    background-size: cover;
    background-position: center;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 0; /* Começa do topo */
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alinha texto à esquerda */
    color: white;
    text-align: left;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%); /* Gradiente para legibilidade */
    padding: 0 10%; /* Espaçamento das laterais */
}

.carousel-caption h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.carousel-caption p {
    font-size: 1.4em;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.carousel-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Para quebrar linha no mobile */
}

.carousel-buttons .btn {
    margin-bottom: 0; /* Remove margem extra */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.8em;
    border-radius: 5px;
    z-index: 5;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 6;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* --- Botões Genéricos (Aprimorados) --- */
.btn {
    display: inline-flex; /* Para alinhar ícones */
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1em;
    white-space: nowrap; /* Evita quebra de linha em botões */
}

.btn i {
    margin-right: 8px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1em;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(228, 0, 43, 0.3);
}

.btn-primary:hover {
    background-color: #b70025;
    border-color: #b70025;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(228, 0, 43, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
}

.btn-secondary:hover {
    background-color: #1a2c3a;
    border-color: #1a2c3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.4);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline-dark:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success { /* Para o botão do WhatsApp */
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-success:hover {
    background-color: #1e8e4e;
    border-color: #1e8e4e;
}

/* --- Seção de Vantagens/Diferenciais (com imagem) --- */
.features-section {
    padding: 80px 0;
    background-color: var(--white-color);
    box-shadow: 0 -5px 15px var(--shadow-light);
    border-radius: 8px;
    transform: translateY(-50px); /* Levemente acima para sobrepor */
    position: relative;
    z-index: 10;
    margin-bottom: -50px; /* Compensa o translateY */
}

.features-header {
    margin-bottom: 50px; /* Espaço entre título e conteúdo */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item .icon-large {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-color-light);
    font-size: 0.95em;
}
.feature-item p strong { /* Para os negritos nos textos */
    color: var(--text-color-dark);
}
.feature-image-wrapper {
    margin-top: 50px;
    text-align: center;
}
.feature-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 600px; /* Limita largura máxima para imagem */
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.5s ease;
}
.feature-image-wrapper img:hover {
    transform: scale(1.03);
}


/* --- Seção de Produtos em Destaque/Ofertas --- */
.products-showcase, .category-products-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.bg-light-gray-section {
    background-color: var(--background-color); /* Usando background-color para consistência */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-image-container {
    position: relative;
    /* Removendo altura fixa para usar aspect-ratio */
    width: 100%;
    padding-bottom: 100%; /* Cria um contêiner quadrado (1:1 aspect ratio) */
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o espaço */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge.new { background-color: var(--accent-color); }
.badge.sale { background-color: var(--primary-color); }
.badge.promocao { background-color: var(--primary-color); } /* Para o badge 'Promoção' */
.badge.lancamento { background-color: #3498DB; /* Azul para lançamento */ }
.badge.top-vendas { background-color: #9B59B6; /* Roxo para top vendas */ }
.badge.limited { background-color: #F39C12; /* Laranja */ }


.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que o conteúdo se estenda */
}

.product-info h3 {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-info .description {
    font-size: 0.9em;
    color: var(--text-color-light);
    margin-bottom: 15px;
    flex-grow: 1; /* Permite que a descrição ocupe espaço */
}

.price-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-wrapper .old-price {
    text-decoration: line-through;
    color: var(--text-color-light);
    font-size: 0.9em;
}

.price-wrapper .current-price {
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: 700;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto; /* Empurra os botões para baixo */
    justify-content: center; /* Centraliza botões no card */
}
.product-actions .btn {
    flex-grow: 1; /* Permite que os botões cresçam */
    min-width: 120px; /* Largura mínima para botões */
}


/* Nova seção para categoria com imagem lateral (Pneus, Som, etc) */
.category-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px; /* Espaço do título da seção */
}
.category-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.category-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.5s ease;
}
.category-image img:hover {
    transform: scale(1.03);
}
.category-content-wrapper .product-grid {
    flex: 2; /* Ocupa mais espaço para o grid de produtos */
}


/* --- Seção "Quem Somos" --- */
.about-us-section {
    background-color: var(--white-color);
    padding: 100px 0;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 2; /* Ocupa mais espaço */
    min-width: 350px;
}

.about-text .section-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.about-text .section-title::after {
    margin-left: 0;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--text-color-dark);
}
.about-text p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.5s ease;
}
.about-image img:hover {
    transform: scale(1.03);
}

/* --- Seção de Testemunhos --- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.testimonial-card .quote {
    font-size: 1.1em;
    font-style: italic;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95em;
}

/* --- Seção de Contato --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--white-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.contact-info, .contact-form {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-color-dark);
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

.map-placeholder {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-placeholder iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

.map-address {
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-color-dark);
    background-color: var(--white-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.2);
    outline: none;
}

textarea {
    resize: vertical;
}

.btn-block {
    width: 100%;
    margin-top: 15px;
}

/* --- Suporte WhatsApp Flutuante --- */
.whatsapp-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.whatsapp-button {
    background-color: #25D366; /* Cor oficial do WhatsApp */
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.15);
    background-color: #1DA851;
}

/* Animação de pulso para o botão do WhatsApp */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-button .tooltip-text {
    visibility: hidden;
    width: 150px;
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.9em;
}

.whatsapp-button:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* --- Rodapé --- */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0 30px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 10px;
}

.logo-footer {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-footer img {
    height: 45px;
    margin-right: 10px;
}

.logo-footer h3 {
    font-size: 1.8em;
    color: var(--white-color);
    font-weight: 700;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-section p, .footer-section ul li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}
.footer-section p strong { /* Para negritos no rodapé */
    color: var(--white-color);
}


.footer-section a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.8em;
    margin-right: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.payment-methods {
    max-width: 180px;
    margin-top: 20px;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Modal para Detalhes do Produto --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100; /* Acima do menu mobile */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-color-light);
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover {
    color: var(--primary-color);
}

.modal-product-header {
    text-align: center;
    margin-bottom: 25px;
}
.modal-product-header img {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-bottom: 15px;
}
.modal-product-header h2 {
    font-size: 2em;
    color: var(--secondary-color);
}

.modal-product-body {
    padding: 0 15px;
}
.modal-product-description {
    font-size: 1.05em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}
.modal-product-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.modal-product-price .old-price {
    text-decoration: line-through;
    color: var(--text-color-light);
    font-size: 1.1em;
}
.modal-product-price .current-price {
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: 700;
}
.modal-product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-product-actions .btn {
    width: 100%;
}

/* Custom Toast Notification */
.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.custom-toast {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    max-width: 350px;
    animation: slideInRight 0.5s forwards, fadeOut 0.5s 4.5s forwards;
}
.custom-toast-success {
    background-color: #28a745; /* Verde */
}
.custom-toast-error {
    background-color: #dc3545; /* Vermelho */
}
.custom-toast-info {
    background-color: #17a2b8; /* Azul claro */
}
.close-toast-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 10px;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- Responsividade (Mobile First) --- */

@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
        justify-content: space-between; /* Mantém logo e botão separados */
        align-items: center;
        padding: 15px 20px;
    }
    .logo {
        flex-grow: 1; /* Permite que o logo ocupe espaço */
        justify-content: flex-start; /* Alinha o logo à esquerda */
    }
    .mobile-menu-toggle {
        display: block; /* Mostra o ícone de menu no mobile */
        order: 2; /* Garante que fique à direita */
    }

    .main-nav {
        /* Estado inicial do menu mobile: escondido e fora da tela */
        position: fixed;
        top: 0;
        right: -100%; /* Inicia fora da tela */
        width: 70%; /* Largura do menu lateral */
        max-width: 300px; /* Limita largura */
        height: 100vh;
        background-color: var(--secondary-color); /* Fundo escuro para contraste */
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.4s ease-in-out;
        flex-direction: column;
        padding-top: 80px; /* Espaço para o cabeçalho */
        z-index: 1050;
        display: flex; /* Para que os itens fiquem em coluna */
        overflow-y: auto; /* Para scroll se o conteúdo for grande */
    }

    .header.menu-open .main-nav {
        right: 0; /* Desliza para dentro da tela */
    }
    .header.menu-open .mobile-menu-overlay {
        display: block; /* Mostra o overlay quando o menu está aberto */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0; /* Remove gap para itens de menu em coluna */
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        text-align: left;
    }
    .main-nav ul li:last-child {
        margin-top: 20px; /* Espaço para o botão Entrar */
    }

    .main-nav a {
        color: var(--white-color);
        padding: 15px 25px; /* Mais padding para itens de menu mobile */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        font-size: 1.1em;
    }
    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }
    .main-nav a::after {
        width: 0%; /* Remove a linha de hover no menu mobile */
    }

    /* Dropdown para mobile */
    .main-nav .dropdown-content {
        position: static; /* Remove posicionamento absoluto */
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05); /* Fundo mais claro para sub-itens */
        border-radius: 0;
        padding: 0;
        margin-left: 20px; /* Recua sub-itens */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .main-nav .dropdown:hover .dropdown-content,
    .main-nav .dropdown.active .dropdown-content { /* Adicionado active class para toggle via JS */
        max-height: 300px; /* Ajuste conforme necessário para o conteúdo */
    }
    .main-nav .dropdown-content a {
        padding: 10px 35px; /* Ajusta padding para sub-itens */
        font-size: 1em;
        border-bottom: none; /* Sem borda para sub-itens */
    }
    .main-nav .dropbtn i {
        margin-left: auto; /* Empurra seta para a direita */
        transition: transform 0.3s ease;
    }
    .main-nav .dropdown.active .dropbtn i {
        transform: rotate(180deg); /* Gira seta quando ativo */
    }

    .main-nav .search-box {
        margin: 20px 25px; /* Adiciona margem para caixa de busca no menu mobile */
        width: auto; /* Permite que ocupe a largura total do menu */
    }
    .main-nav .search-box form {
        flex-direction: column; /* Empilha input e botão */
    }
    .main-nav .search-box input {
        width: 100%;
        border-radius: 6px;
        margin-bottom: 10px; /* Espaço entre input e botão */
    }
    .main-nav .search-box button {
        width: 100%;
        border-radius: 6px;
        padding: 10px 15px;
    }

    .category-list {
        flex-direction: column;
        gap: 15px;
    }
    .category-menu a {
        padding: 8px 0;
    }

    .carousel-wrapper {
        height: 450px; /* Ajuste para tablets */
    }
    .carousel-caption h2 {
        font-size: 2.5em;
    }
    .carousel-caption p {
        font-size: 1.1em;
    }
    .carousel-caption {
        padding: 0 5%;
        align-items: center; /* Centraliza o texto no mobile */
        text-align: center;
        background: rgba(0, 0, 0, 0.6); /* Fundo mais sólido para leitura */
    }
    .carousel-buttons {
        justify-content: center; /* Centraliza botões */
    }

    .features-section {
        padding: 60px 0;
        transform: translateY(-30px);
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Permite 2 colunas em tablets */
    }
    .feature-image-wrapper { /* Ajuste para imagem abaixo das features em tablet/mobile */
        margin-top: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .category-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .category-image {
        order: -1; /* Move a imagem para cima na seção de categoria */
    }

    .about-content, .contact-grid {
        flex-direction: column;
        gap: 40px;
    }
    .about-image {
        order: -1; /* Move a imagem para cima da descrição no mobile */
    }
    .about-text .section-title {
        text-align: center;
    }
    .about-text .section-title::after {
        margin: 10px auto 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .logo-footer {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
        display: flex;
    }
    .footer-section h3 {
        text-align: center;
    }

    .modal-content {
        padding: 25px;
    }
    .modal-product-header img {
        max-width: 200px;
    }
    .modal-product-header h2 {
        font-size: 1.6em;
    }
    .modal-product-description {
        font-size: 0.95em;
    }
    .modal-product-price .current-price {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .logo h1 {
        font-size: 1.6em;
    }
    .logo img {
        height: 40px;
    }
    .carousel-wrapper {
        height: 350px; /* Ajuste para smartphones */
    }
    .carousel-caption h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .carousel-caption p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .carousel-buttons .btn {
        width: 100%; /* Botões do carrossel em pilha no mobile */
    }
    .carousel-control {
        padding: 12px 15px;
        font-size: 1.5em;
    }
    .features-section {
        padding: 40px 0;
        transform: translateY(-20px);
    }
    .features-grid {
        grid-template-columns: 1fr; /* Uma coluna no mobile */
    }
    .product-grid {
        grid-template-columns: 1fr; /* Uma coluna no mobile */
    }
    .product-card {
        margin: 0; /* Remove margem extra para não colar nas bordas */
    }
    .section-title {
        font-size: 2em;
    }
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .about-text {
        text-align: center;
    }
    .about-text p {
        font-size: 0.95em;
    }
    .contact-info, .contact-form {
        padding: 30px;
    }
    .contact-info h3, .contact-form h3 {
        font-size: 1.5em;
    }
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 2em;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-button .tooltip-text {
        right: 70px; /* Ajuste para o tooltip */
        width: 130px;
    }
    .footer-section p, .footer-section ul li {
        font-size: 0.9em;
    }

    .modal-content {
        padding: 20px;
    }
    .modal-product-header img {
        max-width: 180px;
    }
    .modal-product-header h2 {
        font-size: 1.4em;
    }
    .modal-product-price .current-price {
        font-size: 2em;
    }
}
