/* ===================================================
   NAVBAR — FEMININA, MODERNA E RESPONSIVA
   =================================================== */

.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* FAIXA SUPERIOR */
.header-top {
    background: #8C04A4;
    color: #fff;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.header-top-left,
.header-top-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-top a {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    background: #4b0058;
    border-radius: 999px;
}

/* SOCIAL LINKS */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.social-link:hover {
    background: #fff;
    color: #8C04A4 !important;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 14px;
}

/* NAVBAR */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    position: relative;
}

/* LOGO */
.logo img {
    max-height: 70px;
}

/* MENU DESKTOP */
.nav-menu > ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.has-dropdown {
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.nav-menu a,
.nav-menu .nav-trigger {
    text-decoration: none;
    color: #4a2f3a;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.nav-menu a:hover,
.nav-menu .nav-trigger:hover,
.nav-menu .nav-trigger:focus {
    background: linear-gradient(135deg, #8C04A4 0%, #C066E8 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 4, 164, 0.3);
    outline: none;
}

.has-dropdown > a i {
    font-size: 11px;
    margin-left: 6px;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1200;
    list-style: none;
    margin: 0;
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.has-dropdown:hover .nav-submenu,
.has-dropdown:focus-within .nav-submenu {
    display: flex;
}

/* DIREITA */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BOTÃO CONTA */
.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #fde4ec;
    color: #a12d57;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

.account-btn i {
    width: 18px;
    height: 18px;
    display: block;
    background: #a12d57;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5Zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* CARRINHO */
.cart-btn {
    width: 44px;
    height: 44px;
    background: #8C04A4;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn i {
    width: 22px;
    height: 22px;
    display: block;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM7.2 14h9.6c.8 0 1.5-.5 1.8-1.3l3-7.1-1.9-.8-2.7 6.2H8.1L4.3 2H1v2h2l3.6 8.4-1.3 2.4C4.5 15.4 5.5 17 7.2 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* CONTADOR */
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #fff;
    color: #8C04A4;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BALAO DO CARRINHO */
.cart-bubble-notice {
    position: fixed;
    z-index: 2000;
    background: #1f2937;
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: translateX(-50%) translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cart-bubble-notice::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #1f2937 transparent;
}

.cart-bubble-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cart-bubble-notice.is-floating {
    top: 88px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: auto;
    white-space: normal;
    width: min(92vw, 460px);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.cart-bubble-notice.is-floating::after {
    display: none;
}

.cart-bubble-notice.is-floating.is-error {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}

.cart-bubble-notice.is-floating.is-info {
    background: #1f2937;
    color: #fff;
}

/* BOTÃO MOBILE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #4a2f3a;
    cursor: pointer;
}

/* ===============================
   RESPONSIVO
   =============================== */

@media (max-width: 900px) {

    .cart-bubble-notice.is-floating {
        top: 74px !important;
    }

    .nav-menu {
        position: absolute;
        top: 92px;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .nav-submenu {
        position: static;
        display: flex;
        border: none;
        box-shadow: none;
        padding: 0 0 0 12px;
        margin-top: 2px;
        min-width: 0;
        gap: 6px;
    }

    .has-dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .has-dropdown::after {
        display: none;
    }

    .nav-submenu a {
        padding: 6px 10px;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
}
