@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;
}

* {
    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;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

h2 {
    margin-left: 15px;
}

.container {
    max-width: 1800px;
    margin: 5px;
    padding: 20px;
}

a {
    text-decoration: none; 
    color: inherit;
}


.header {
    background-color: #0e001a;
    padding: 0.5px;
    display: flex;
    align-items: center;
    width: 100%;
}

.headlogo {
    height: 160px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.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%;
    background: #ffffff;
    color: var(--color-neutral-0);
    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;
    color: var(--color-neutral-0);
}

.search-history-item:hover {
    background: #efefef;
}



.category-tabs {
    background-color: #0e001a;
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-button {
    background-color: transparent;
    color: #f5f5f5;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    background-color: #173d66;
}

.tab-button.active {
    background-color: #7f37c9;
    font-weight: bold;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


.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 50px; 
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.products-carousel.grid-view {
  
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 15px; 
    overflow-x: visible; 
    scroll-behavior: auto;
    padding: 2px;
    
}

.products-carousel.grid-view::after {
    content: '';
    flex-grow: 1000;
}

.product-card {
    width: 200px;
    min-width: 200px; 
    height: 360px; 
    flex-grow: 0; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: 0.5s;
    background: white;
    padding: 10px;
    border-radius: 10px;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none; 
    color: #000; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #f0f0f0;
}

.product-card img {
    width: 100%;           
    height: 220px;
    object-fit: contain;
    object-position: center; 
    border-radius: 20px; 
    transition: transform 0.3s ease; 
}

.card-details {
    padding: 5px 0 0 0; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
    text-align: left;
}

.product-title {
    font-size: 15px;
    height: 40px; 
    overflow: hidden;
    color: #000;
    text-decoration: none; 
    margin: 5px 0;
    font-weight: 500;
}

.product-price {
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
    margin: 5px 0;
}

.discount-label {
    color: rgb(0, 111, 32);
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 5px;
}

.products-carousel.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}



.product-card {
    min-height: 360px; 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.products-carousel.grid-view .product-card {
    min-width: auto;
    width: 100%;
    height: auto; 
    flex-shrink: 1; 
}

.products-carousel.grid-view .product-card img {
    height: 220px; 
}


footer {
    width: 100%;
    background-color: #201e1e;
    color: white;
    margin-top: 150px; 
}

#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;
}

#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;
}
.main {
    flex: 1; 
    width: 100%;
}

@media (max-width: 900px) {
    .headlogo {
        height: 120px;
    }
}

@media (max-width: 600px) {
    
    .products-carousel.grid-view {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        padding: 5px;
    }

    .products-carousel.grid-view .product-card {
        padding: 8px;
    }

    .products-carousel.grid-view .product-title {
        font-size: 0.9em;
        height: 36px; 
        overflow: hidden;
    }
    
    .products-carousel.grid-view .product-price {
        font-size: 1em;
    }
}
@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;
    }
    
    #footer_contacts {
        padding: 1rem 0.5rem;
    }

    /* 👇 NOVOS AJUSTES PARA AS ABAS 👇 */
    .tabs-container {
        gap: 5px; 
        padding: 0 10px;
    }

    .tab-button {
        padding: 8px 10px;
        font-size: 14px;
    }
    /* 👆 FIM DOS NOVOS AJUSTES 👆 */
}