/* RESET & VARIABLES */
:root {
    --bg-body: #0f0f12;
    --bg-card: #18181b;
    --ciano: #2BD4D7;
    --vermelho: #D7243F;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --font-main: 'Segoe UI', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 40px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: auto;
    height: 85px;
    /* Reduzi levemente para alinhar melhor com o texto */
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(43, 212, 215, 0.3));
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    /* Remove margem superior para alinhar perfeitamente */
    letter-spacing: -1px;
}

header h1 span {
    color: var(--ciano);
}

/* NAV BUTTONS */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    /* margin-bottom removido pois está dentro do header agora */
}

.btn-top {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid #333;
    color: var(--text-main);
}

.btn-top:hover {
    transform: translateY(-2px);
    border-color: var(--ciano);
}

.btn-vip {
    color: #25d366;
    border-color: #25d366;
}

.btn-vip:hover {
    background: rgba(37, 211, 102, 0.1);
}

.btn-blog {
    color: var(--ciano);
}

.btn-blog:hover {
    background: rgba(43, 212, 215, 0.1);
}

/* SEARCH SECTION */
.search-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.search-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: normal;
    color: var(--text-muted);
}

.search-title span {
    color: var(--text-main);
    font-weight: bold;
}

.input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 12px;
    background: #222;
    border: 1px solid #444;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: var(--ciano);
    box-shadow: 0 0 15px rgba(43, 212, 215, 0.1);
}

.search-btn {
    padding: 0 25px;
    background: var(--ciano);
    border: none;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.search-btn:hover {
    background: white;
}

/* RESULTS AREA */
#results-area {
    display: none;
    margin-top: 20px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.store-btn {
    background: #2a2a2e;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.store-btn i {
    font-size: 1.5rem;
}

.store-btn:hover {
    border-color: var(--ciano);
    background: #333;
}

.amz:hover {
    color: #feaa2d;
}

.mgl:hover {
    color: #0086ff;
}

.ml:hover {
    color: #ffe600;
}

.shp:hover {
    color: #ee4d2d;
}

/* CHIPS (Categorias) */
.category-scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    /* Adicionado espaço solicitado (+ ESPAÇO) */
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.chip {
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.chip:hover {
    border-color: var(--ciano);
    color: var(--text-main);
    background: #222;
}

.chip.active {
    background: var(--ciano);
    color: #0f172a;
    font-weight: bold;
    border-color: var(--ciano);
}

/* GRID OFERTAS */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-left: 5px solid var(--ciano);
    padding-left: 15px;
}

.section-title {
    font-size: 1.5rem;
    margin: 0;
}

.grid-ofertas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* CARD DESIGN */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

.badge-desconto {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--vermelho);
    color: white;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-img-container {
    width: 100%;
    height: 220px;
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.loja-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    /* Fix height for 2 lines */
}

.price-container {
    margin-top: auto;
    margin-bottom: 15px;
}

.old-price {
    color: #666;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.new-price {
    color: var(--ciano);
    font-size: 1.6rem;
    font-weight: 800;
}

.cupom-box {
    background: rgba(43, 212, 215, 0.1);
    border: 1px dashed var(--ciano);
    color: var(--ciano);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.cupom-box:hover {
    background: rgba(43, 212, 215, 0.2);
}

.btn-oferta {
    display: block;
    width: 100%;
    background: #333;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-oferta:hover {
    background: var(--ciano);
    color: black;
}

.card-footer-info {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #555;
    text-align: center;
}

/* FOOTER */
footer {
    text-align: center;
    color: #666;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #222;
}

footer a {
    color: #888;
    transition: 0.3s;
}

footer a:hover {
    color: var(--ciano);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .search-btn {
        padding: 15px;
    }

    .grid-ofertas {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .header-brand {
        flex-direction: column;
        /* Ou row se preferir manter lado a lado no mobile */
        justify-content: center;
    }
}