/* Header */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header {
    background-color: #09090b;
    color: var(--white);
    position: relative;
    z-index: 1100;
    border-bottom: 1px solid #27272a;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 10px;
}

.logo-img-extenso {
    height: 60px;
    width: auto;
}

display: block;
}

.center-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-logo-img {
    height: 35px;
    width: auto;
    display: block;
}

.header-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 15px;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

.hamburger-menu:hover {
    color: #dc2626;
}

.hamburger-icon {
    width: 32px;
    height: 32px;
}

/* --- BARRA DE PESQUISA (EXPANSÃƒÂVEL) --- */
.header-search {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2;
    max-width: 600px;
    position: relative;
    height: 40px;
}

/* NAVIGATION BAR (2nd Line) */
.header-nav {
    background-color: var(--black);
    border-bottom: 4px solid #cc0000;
    display: none;
}

@media (min-width: 768px) {
    .header-nav {
        display: block;
    }
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    gap: 3rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #cc0000;
}

.nav-link.active {
    color: #cc0000;
}

.nav-link.active:hover {
    color: var(--white);
}

.nav-icon {
    width: 16px;
    height: 16px;
}

.expandable-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 40px;
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 50;
    /* Fica acima dos outros logos ao expandir */
}

.expandable-search.closed {
    width: 40px;
    background: transparent;
    border-color: transparent;
}

.expandable-search:not(.closed) {
    width: 250px;
}

.expandable-search input {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding-left: 15px;
    padding-right: 40px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.expandable-search.closed input {
    opacity: 0;
    pointer-events: none;
}

.expandable-search input:focus {
    outline: none;
}

.expandable-search:not(.closed) {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(230, 25, 32, 0.2);
}

.expandable-search input::placeholder {
    color: #666;
}

.expandable-search button {
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.expandable-search button:hover {
    color: var(--primary-red);
}

.search-results-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 250px;
    background: #1a1a1a;
    border: 1px solid rgba(230, 25, 32, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: all 0.2s ease;
}

.search-results-dropdown.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.search-results-header {
    padding: 10px 16px;
    background: #2a2a2a;
    font-size: 11px;
    color: #a0a0a0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.search-results-list {
    max-height: 280px;
    /* Suficiente para cerca de 5 itens */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* CustomizaÃƒÂ§ÃƒÂ£o da barra de rolagem (opcional para estilo) */
.search-results-list::-webkit-scrollbar {
    width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
    border-bottom: 1px solid #333;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #333;
}

.search-result-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #222;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.search-result-item:hover .search-result-icon {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.search-result-brand {
    font-size: 14px;
    font-weight: 700;
    color: #e0e0e0;
    transition: color 0.2s ease;
}

.search-result-item:hover .search-result-brand {
    color: #fff;
}

.search-result-code {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary-red);
    background: rgba(230, 25, 32, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.header-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.header-cart-btn:hover {
    color: #dc2626;
}

.header-cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart-btn:hover svg {
    stroke: #dc2626;
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

@media (max-width: 768px) {
    .header-cart-text {
        display: none;
    }

    .center-logo-img {
        height: 30px;
    }
}

/* Hero Section */
.hero {
    background-image: url('../imagens/Hero_BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--black);
    position: relative;
    width: 100%;
    max-width: 1160px;
    aspect-ratio: 1160 / 702;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Overlay escuro para garantir alto contraste do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
}

/* Logotipo no topo esquerdo da seÃƒÂ§ÃƒÂ£o Hero */
.hero-logo {
    position: absolute;
    top: 40px;
    left: 60px;
}

.hero-logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* Container do Bloco de Texto */
.hero-text-block {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Sub-tÃƒÂ­tulo: RESITANK Magistral */
.hero-subtitle {
    color: var(--white);
    font-size: 1.6rem;
    /* text-2xl/3xl */
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    text-transform: none;
}

/* TÃƒÂ­tulo Principal: PROTETOR DE TANQUE (Destaque Ciano) */
.hero-title {
    font-size: 4.6rem;
    /* Tamanho massivo */
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, #e60000 0%, #990000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    text-transform: uppercase;
}

/* DescriÃƒÂ§ÃƒÂ£o detalhada */
.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 300;
    /* font-light */
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-transform: none;
}

/* BotÃƒÂ£o VER PRODUTOS */
.btn-hero-action {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(230, 25, 32, 0.4);
}

.btn-hero-action:hover {
    background: var(--dark-red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(230, 25, 32, 0.55);
}

.btn-hero-action:active {
    transform: translateY(-1px);
}

/* Card de InformaÃƒÂ§ÃƒÂ£o de Tamanhos no Hero */
.hero-sizes-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: rgba(204, 0, 0, 0.9);
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 16px;
    border: 2px solid rgba(15, 15, 18, 0.7) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 320px;
    z-index: 3;
    color: var(--white);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sizes-card-header {
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sizes-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.sizes-card-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sizes-card-col .size-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.sizes-card-col .size-measure {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.sizes-card-col .size-legend {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background-image: url('../imagens/Hero_BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--black);
    position: relative;
    width: 100%;
    max-width: 1160px;
    aspect-ratio: 1160 / 702;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Overlay escuro para garantir alto contraste do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
}

/* Logotipo no topo esquerdo da seÃƒÂ§ÃƒÂ£o Hero */
.hero-logo {
    position: absolute;
    top: 40px;
    left: 60px;
}

.hero-logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* Container do Bloco de Texto */
.hero-text-block {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Sub-tÃƒÂ­tulo: RESITANK Magistral */
.hero-subtitle {
    color: var(--white);
    font-size: 1.6rem;
    /* text-2xl/3xl */
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    text-transform: none;
}

/* TÃƒÂ­tulo Principal: PROTETOR DE TANQUE (Destaque Ciano) */
.hero-title {
    font-size: 4.6rem;
    /* Tamanho massivo */
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, #e60000 0%, #990000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    text-transform: uppercase;
}

/* DescriÃƒÂ§ÃƒÂ£o detalhada */
.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 300;
    /* font-light */
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-transform: none;
}

/* BotÃƒÂ£o VER PRODUTOS */
.btn-hero-action {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(230, 25, 32, 0.4);
}

.btn-hero-action:hover {
    background: var(--dark-red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(230, 25, 32, 0.55);
}

.btn-hero-action:active {
    transform: translateY(-1px);
}

/* Card de InformaÃƒÂ§ÃƒÂ£o de Tamanhos no Hero */
.hero-sizes-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: rgba(204, 0, 0, 0.9);
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 16px;
    border: 2px solid rgba(15, 15, 18, 0.7) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 320px;
    z-index: 3;
    color: var(--white);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sizes-card-header {
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sizes-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.sizes-card-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sizes-card-col .size-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.sizes-card-col .size-measure {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.sizes-card-col .size-legend {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Products Section */
.products-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.products-board {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 10px;
    font-style: italic;
}

/* Site Footer */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 6px 0;
    margin-top: 10px;
    border-top: 5px solid var(--primary-red);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 10px;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    /* placeholder size */
    object-fit: contain;
    /*background: #333; */
    /* Fundo temporÃƒÂ¡rio para marcar espaÃƒÂ§o */
    border-radius: 50%;
    /* Se a logo for redonda como na foto */
    display: inline-block;
}

.footer-bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #222;
    text-align: center;
    width: 100%;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .products-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }


    .hero {
        aspect-ratio: auto;
        min-height: auto;
        padding: 2rem 0 1rem 0;
        background-color: var(--black);
        background-size: cover;
        background-position: left center;
    }

    .hero-content-layout {
        padding: 0 20px;
        padding-top: 50px; /* Espaço para a logo absolute no mobile */
        justify-content: center;
    }

    .hero-logo {
        top: 20px;
        left: 20px;
    }

    .hero-logo-img {
        height: 28px;
    }

    .hero-text-block {
        margin-top: 0;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .btn-hero-action {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .hero-sizes-card {
        display: none;
    }

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

    .cart-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .btn-primary {
        width: 100%;
    }

    .footer-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center; /* Centraliza itens que quebram de linha */
        text-align: center;
        gap: 15px;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-right: auto; /* Empurra o logo para a direita quando estão na mesma linha */
    }

    .products-board {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }
}