/* =========================================================
   HEADER - DROGARIA AMERICANA
   ========================================================= */

.header {
    width: 100%;
    background: #ffffff;
    position: relative;
    z-index: 1000;
}

/* ---------- Barra superior ---------- */

.topbar {
    width: 100%;
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.topbar-content {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 38px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: #d71920;
}

.topbar i {
    margin-right: 5px;
    color: #d71920;
}

/* ---------- Cabeçalho principal ---------- */

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 95px;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    gap: 35px;
}

/* ---------- Logo ---------- */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 220px;
    height: auto;
    object-fit: contain;
}

/* ---------- Caixa de pesquisa ---------- */

.search-box {
    flex: 1;
    max-width: 650px;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 50px;

    padding: 0 65px 0 20px;

    border: 1px solid #d8d8d8;
    border-radius: 28px;

    background: #ffffff;
    color: #333333;

    font-size: 16px;
    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-box input::placeholder {
    color: #888888;
}

.search-box input:focus {
    border-color: #d71920;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.10);
}

/* ---------- Botão pesquisar ---------- */

.search-box button {
    position: absolute;
    right: 0;
    top: 0;

    width: 55px;
    height: 50px;

    border: none;
    border-radius: 0 28px 28px 0;

    background: #d71920;
    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.search-box button:hover {
    background: #b9151b;
}

/* ---------- Atendimento pelo chat ---------- */

.chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 11px 16px;

    background: #25d366;
    color: #ffffff;

    border: 0;
    border-radius: 6px;

    text-decoration: none;
    font-weight: 600;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.chat-button:hover,
.chat-button:focus-visible {
    background: #1ebe5d;
    transform: translateY(-1px);
}

/* ---------- Menu principal ---------- */

.main-nav {
    width: 100%;
    background: #d71920;
}

.main-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav ul {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;

    padding: 15px 22px;

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-nav a:hover {
    background: #b9151b;
}

/* ---------- Ícones sociais ---------- */

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #d71920;
    background: #f2f2f2;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.header-main .social-links a {
    width: 38px;
    height: 38px;
}

.social-links a:hover {
    background: #d71920;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---------- Ajustes gerais ---------- */

.header a {
    -webkit-tap-highlight-color: transparent;
}

.header button {
    font-family: inherit;
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {

    .header-main {
        gap: 20px;
    }

    .logo img {
        width: 180px;
    }

    .search-box {
        max-width: none;
    }

    .main-nav a {
        padding: 14px 12px;
        font-size: 14px;
    }

}

/* ---------- Celular ---------- */

@media (max-width: 700px) {

    .topbar-content {
        justify-content: center;
        text-align: center;
    }

    .topbar-left,
    .topbar-right {
        gap: 10px;
    }

    .topbar-right {
        display: none;
    }

    .header-main {
        min-height: auto;
        padding: 15px;

        flex-wrap: wrap;
        justify-content: center;
    }

    .logo img {
        width: 190px;
    }

    .search-box {
        width: 100%;
        flex-basis: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 11px 10px;
        font-size: 13px;
    }

}
/* =========================================================
   MENU PRINCIPAL
   ========================================================= */

.menu {
    width: 100%;
    background: #d71920;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.menu .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu ul {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

.menu li {
    margin: 0;
    padding: 0;
}

.menu a {
    display: block;

    padding: 15px 24px;

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: background-color 0.2s ease;
}

.menu a:hover {
    background: #b9151b;
}

/* Menu em telas menores */

@media (max-width: 900px) {

    .menu a {
        padding: 14px 14px;
        font-size: 14px;
    }

}

@media (max-width: 700px) {

    .menu ul {
        flex-wrap: wrap;
    }

    .menu a {
        padding: 11px 10px;
        font-size: 13px;
    }

}
