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

:root {
    --primary-color: #3B82F6;
    /* Azul royal */
    --secondary-color: #111827;
    /* Preto grafite */
    --accent-color: #64748B;
    /* Cinza azulado */
    --text-color: #111827;
    --light-gray: #F3F4F6;
    --border-color: #E5E7EB;
    --white-color: #FFFFFF;
    --hover-btn-color: rgba(255, 255, 255, 0.08);


}

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #c9d6e3; /* tom azul acinzentado mais escuro e harmonioso */
    color: var(--text-color);
    line-height: 1.6;
}

main {
    background-color: #c9d6e3; /* tom azul acinzentado mais escuro e harmonioso */
}

/* Header */
header {
    background: #1a2332; /* azul grafite um pouco mais claro que #111827 */
    color: var(--white-color);
    padding: 1.2rem 1.2rem 0.6rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.2rem; /* pequeno ajuste para afastar do topo */
}

.logo i {
    font-size: 1.7rem;
    color: #00f6ff;
    /* Neon um pouco mais brilhante, mas ainda sutil */
    filter: drop-shadow(0 0 4px #00f6ffb3);
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3B82F6 48%, #00f6ff 52%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Neon um pouco mais brilhante, mas ainda sutil */
    text-shadow: 0 0 4px #00f6ffb3, 0 0 8px #00f6ff40;
    line-height: 1.1;
}

/* Search container */
.search-container {
    max-width: 340px;
    padding: 0.5rem 0.8rem; /* aumenta o padding superior/inferior */
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    border-radius: 1rem;
    margin-top: 0.2rem; /* afasta do topo */
}

.search-container input {
    width: 100%;
    flex: 1;
    border: none;
    outline: none;
    padding: 0.35rem;
    font-size: 0.98rem;
    background: none;
}

.search-container i {
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #2F3A4A 0%, #4A90E2 50%, #7B5FA3 100%);
    color: var(--white-color);
    text-align: center;
    padding: 2.5rem 1rem 1.5rem 1rem; /* aumenta o padding superior */
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(44, 62, 80, 0.18);
    text-align: center;
    margin-top: 0.5rem; /* afasta do topo da hero */
}

.hero-section p {
    font-size: 1.05rem;
    margin: 0 auto 1.2rem auto;
    opacity: 0.96;
    font-weight: 400;
    max-width: 540px;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    margin-top: 0.7rem; /* afasta do h2 */
}


/* Categories */
.categories-container {
    background-color: #1a2332; /* igual ao header para harmonia */
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.categories-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    color: var(--white-color);
    border: none;
    cursor: pointer;
    background: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 1.1rem;
    gap: 0.5rem;
    border-radius: 1.2rem;
}

.category-btn i {
    font-size: 1.2rem;
}

.category-btn:hover {
    background-color: var(--hover-btn-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--accent-color); /* azul */
    color: var(--white-color);
    border: 1px solid var(--accent-color);
}

/* Products */
.products {
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(58, 65, 81, 0.10);
    padding-bottom: 3rem; /* ou ajuste conforme necessário */
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    transition: height 0.3s;
    opacity: 1;
    transition: opacity 0.3s;
}

.products-container.fade {
    opacity: 0;
    pointer-events: none;
}

.product-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(58, 65, 81, 0.10);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(58, 65, 81, 0.18);
    transform: translateY(-6px) scale(1.02);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

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

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #273043; /* azul grafite escuro, mais escuro que o atual, mas não preto */
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.95rem;
    color: #495366; /* cinza azulado escuro, mais legível e sofisticado */
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-button {
    width: 100%;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    margin-top: auto;
}

.product-button:hover {
    background: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px) scale(1.03);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 2rem 0 1rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.footer-social a {
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent-color);
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .search-container {
        max-width: 100%;
        margin: 0;
    }

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

    .hero-section p {
        font-size: 1rem;
    }

    .categories-bar {
        gap: 0.5rem;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .products {
        padding: 1rem;
    }

    .products-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}