/* Reset básico e configurações globais */
:root {
    --primary-blue: #0d2c54;
    --secondary-blue: #1a53a0;
    --accent-gray: #f0f2f5;
    --text-dark: #333;
    --text-light: #fff;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Layout Principal e Correção do Footer --- */
/* --- Layout Principal e Correção Definitiva do Footer (com CSS Grid) --- */
html {
    height: 100%;
}

body {
    display: grid; /* 1. Define o body como um container de grade */
    grid-template-rows: auto 1fr auto; /* 2. Cria 3 linhas: header(auto), main(1fr), footer(auto) */
    min-height: 100%; /* 3. Garante que a grade ocupe a altura total da tela */
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fff;
}



.produto-galeria {
    display: flex;
    flex-direction: column;
}

.img-principal {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.thumbs {
    display: flex;
    gap: 10px;
}

.thumbs img {
    width: 70px;
    cursor: pointer;
    border-radius: 6px;
}

.produto-descricao.destaque {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.produto-outros {
    margin-top: 30px;
}

.lista-tamanhos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-tamanho {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #000;
}

.tag-tamanho:hover {
    background: #000;
    color: #fff;
}


.btn-comprar {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
}

.btn-ver-detalhes {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    background: #2693FF;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card:hover .btn-ver-detalhes {
    background: #1f7ae0;
    transform: scale(1.05);
}

.btn-secondary.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary.disabled:hover {
    background-color: #ccc;
}

/* A regra para limpar o float no carrinho ainda é útil */
.cart-page .container::after {
    content: "";
    display: table;
    clear: both;
}
/* --- Fim da Correção do Footer --- */

/* --- Fim da Correção do Footer --- */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cabeçalho */
.main-header { background-color: var(--primary-blue); padding: 15px 0; border-bottom: 1px solid var(--primary-blue); position: sticky; top: 0; z-index: 100; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 50px; }
.main-nav { display: flex; }
.main-nav a { margin: 0 15px; text-decoration: none; color: var(--text-light); font-weight: 700; transition: color 0.3s; }
.main-nav a:hover { color: var(--secondary-blue); }
.main-nav a.nav-outlet { color: var(--text-light); font-weight: 700; }
.header-icons { display: flex; align-items: center; gap: 20px; font-size: 1.5rem; }
.header-icons a { text-decoration: none; color: inherit; }
.cart-icon-wrapper { position: relative; }
.cart-count { position: absolute; top: -8px; right: -12px; background-color: red; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.8rem; font-weight: bold; }
.hamburger-menu { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; }

/* Animação do contador */
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.cart-count.pulse { animation: pulse 0.5s; }

/* Busca */
.search-container { position: relative; }
#search-input { padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; width: 200px; transition: width 0.3s ease-in-out; }
#search-input:focus { width: 250px; }
.search-results { display: none; position: absolute; top: 110%; left: 0; width: 100%; background-color: white; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 4px; max-height: 400px; overflow-y: auto; z-index: 200; }
.search-results.is-visible { display: block; }
.search-result-item { display: flex; align-items: center; padding: 10px; text-decoration: none; color: var(--text-dark); border-bottom: 1px solid #f0f0f0; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background-color: var(--accent-gray); }
.search-result-item img { width: 50px; height: 50px; object-fit: cover; margin-right: 10px; }

/* Banner Principal */
/* .hero-banner { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/fundo1.jpg'); background-size: cover; background-position: center; color: var(--text-light); text-align: center; padding: 100px 0; }
.hero-banner h1 { font-family: var(--font-title); font-size: 3rem; margin-bottom: 10px; }
.hero-banner p { font-size: 1.2rem; margin-bottom: 30px; } */

.hero-slider {
    width: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;

    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    background: #000;
}

.slide.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;

    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: rgba(255,255,255,0.5);

    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0,0,0,0.4);
    color: #fff;

    border: none;
    font-size: 24px;

    width: 40px;
    height: 40px;

    border-radius: 50%;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}



.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    transition: transform 0.4s ease;
}

.product-card:hover .image-container img {
    transform: scale(1.08);
}


.badge-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #e60023, #ff4d4d);
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Botões */
.btn-primary, .btn-secondary { padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: 700; transition: background-color 0.3s, transform 0.2s; display: inline-block; border: none; cursor: pointer; }
.btn-primary { background-color: var(--text-light); color: var(--primary-blue); }
.btn-primary:hover { background-color: #f0f0f0; transform: translateY(-2px); }
.btn-secondary { background-color: var(--primary-blue); color: var(--text-light); width: 100%; text-align: center; }
.btn-secondary:hover { background-color: var(--secondary-blue); transform: translateY(-2px); }

/* Seção de Produtos */
.products-section { padding: 80px 0; background-color: var(--accent-gray); }
.products-section h2 { text-align: center; font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 50px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.product-card { transition: all 0.3s ease; background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; padding: 20px; }
.product-card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 15px; border-radius: 8px}

.product-card h3 { font-family: var(--font-title); font-size: 1.2rem; margin-bottom: 10px; flex-grow: 1; text-align: center; }

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.price-container { margin-bottom: 20px; text-align: center;}
.price-old { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 10px; }
.price-new { color: var(--primary-blue); font-size: 1.4rem; font-weight: 700; }

/* Footer */
.main-footer { background-color: var(--primary-blue); color: var(--text-light); text-align: center; padding: 20px 0; }

/* Responsividade */
@media (max-width: 992px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-top: 1px solid #eee; }
    .main-nav.is-active { display: flex; }
    .main-nav a { padding: 15px; text-align: center; border-bottom: 1px solid #f0f0f0; }
    .hamburger-menu { display: block; order: -1; }
    .main-header .container { justify-content: space-between; }
    .header-icons { order: 1; }
    .logo { order: 0; }
}
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 2.2rem; }
    .hero-banner p { font-size: 1rem; }
    .products-section h2 { font-size: 2rem; }
    .logo { position: absolute; left: 50%; transform: translateX(-50%); }

    .slider {
        height: 300px;
    }
    .slider-arrow {
        display: none;
    }

}


@media (max-width: 480px) {
    .header-icons { gap: 15px; font-size: 1.2rem; }
    .logo { height: 40px; }
    .hero-banner { padding: 60px 0; }
    .hero-banner h1 { font-size: 1.8rem; }
    #search-input { width: 120px; }
    #search-input:focus { width: 150px; }
}
