/* ------------------------------
   FONTES & VARIÁVEIS
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --color-neutral-0: #0e0c0c;
    --color-neutral-10: #171717;
    --color-neutral-30: #a8a29e;
    --color-neutral-40: #f5f5f5;
}

/* ------------------------------
   RESET GLOBAL
------------------------------ */
* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 1px;
}

body {
    background: radial-gradient(circle at top, #173d66 0%, #0e001a 60%, #4b6599 100%);
    color: #f5f5f5;
    overflow-x: hidden;
}

/* ------------------------------
   HEADER & BUSCA
------------------------------ */
.header {
    background-color: #0e001a;
    padding: 0.5px;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.headlogo {
    height: 160px;
}

.search-input {
    flex: 1;
    padding: 15px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    outline: none;
    height: 30px;
}

.search-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 10px;
    height: 30px;
    flex-shrink: 0;
}

.search-history {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* mesmo tamanho da barra */
    background: #ffffff;
    /* fundo branco */
    color: #ffffff;
    border-radius: 10px;
    margin-top: 5px;
    padding: 5px 0;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.search-history-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 16px;
    background: #fff;
    /* garante fundo branco nos itens */
}

.search-history-item:hover {
    background: #efefef;
}

------------------------------ CONTAINER ------------------------------ */ 
.container {
    max-width: 1800px;
    margin: 5px;
    padding: 20px;
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
    position: relative;
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 28px;
}

/* ------------------------------
   PRODUTOS
------------------------------ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    justify-items: center;
    gap: 20px;
    margin-top: 20px;
}

h2 {
    margin-left: 15px; /* ou 15px, 20px... */
}


.product-link {
    text-decoration: none;
    color: inherit;
}

.products-section {
    position: relative;
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
}

.products-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.product-card {
    width: 200px;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: 0.5s;
    min-width: 200px;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.product-title {
    font-size: 15px;
    height: 40px;
    overflow: hidden;
    color: #000 !important;
}


.product-price {
    font-size: 1.1rem;
    color: #333;
}

.product-discount {
    color: #7f37c9;
    font-weight: bold;
}

/* ------------------------------
   SETAS
------------------------------ */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: black;
    color: white;
    border: none;
    font-size: 30px;
    padding: 13px;
    cursor: pointer;
    z-index: 30;
    border-radius: 20%;
    opacity: 0.5;
}

.arrow.left {
    left: 0;
}

.arrow.right {
    right: 0;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
    width: 100%;
    background-color: #201e1e;
    color: white;
    margin-top: 150px;
}

/* Bloco principal do footer */
#footer_contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.3rem 0;
    background-color: #201e1e;
}

#footer_contacts_top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

#footer_contacts_top p {
    margin: 0;
    font-size: 1rem;
    color: #f5f5f5;
}

/* Redes sociais */
#footer_social_media {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.8rem;
    width: 2.8rem;
    border-radius: 50%;
    color: #f5f5f5;
    text-decoration: none;
    transition: 0.3s;
}


#instagram {
    background: linear-gradient(#7f37c9, #ff2992, #ff9807);
}

#tiktok {
    background-color: #000;
}

#youtube {
    background-color: red;
}

#footer_copyright {
    display: flex;
    justify-content: center;
    background-color: black;
    font-size: 0.9rem;
    padding: 5px;
}

/* ------------------------------
   RESPONSIVIDADE
------------------------------ */
@media (max-width: 768px) {
    #footer_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}


@media (max-width: 426px) {
    .search-container {
        width: 100%;
        padding: 0 10px;
        gap: 8px;
    }

    .search-input {
        font-size: 16px;
        padding: 10px;
        height: 40px;
    }

    .search-btn {
        font-size: 14px;
        padding: 0 10px;
        height: 40px;
    }

    .container {
        padding: 10px;
    }
}

@media (max-width: 426px) {
    #footer_content {
        grid-template-columns: repeat(1, 1fr);
        padding: 3rem 2rem;
    }
}