/* Shared navbar primitives, followed by the approved storefront shell. */
.topbar-brand__logo--image {
    overflow: hidden;
    transform: none !important;
    rotate: 0deg !important;
    background: transparent !important;
}
.topbar-brand__logo--image::before,
.topbar-brand__logo--image::after {
    transform: none !important;
}
.topbar-brand__logo--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none !important;
    rotate: 0deg !important;
}
.topbar-brand__text {
    justify-content: center;
}
.topbar-brand__text strong {
    line-height: 1.1;
}
.topbar-notifications { position:relative; }
.notification-count {
    position:absolute; top:-5px; right:-6px; min-width:17px; height:17px; padding:0 4px;
    display:flex; align-items:center; justify-content:center; border-radius:999px;
    background:#ff3155; color:#fff; border:2px solid #09090b; font-size:9px; font-weight:900;
}
.topbar-notification-dropdown {
    position:absolute; top:calc(100% + 12px); right:0; width:min(380px, calc(100vw - 24px));
    background:#0d0d10; border:1px solid #27272d; border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,.45);
    z-index:1200; overflow:hidden; opacity:0; visibility:hidden; transform:translateY(-6px); transition:.18s ease;
}
.topbar-notification-dropdown.is-open { opacity:1; visibility:visible; transform:translateY(0); }
.topbar-notification-dropdown__header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 18px; border-bottom:1px solid #24242a; }
.topbar-notification-dropdown__header strong { display:block; color:#fff; font-size:14px; }
.topbar-notification-dropdown__header span { display:block; color:#72727c; font-size:11px; margin-top:3px; }
.topbar-notification-list { max-height:360px; overflow:auto; }
.topbar-notification-item { display:flex; gap:12px; padding:14px 16px; border-bottom:1px solid #1d1d22; }
.topbar-notification-item:last-child { border-bottom:0; }
.topbar-notification-item__icon { width:32px; height:32px; flex:0 0 32px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:rgba(255,49,85,.09); color:#ff3155; }
.topbar-notification-item__icon svg { width:15px; height:15px; }
.topbar-notification-item p { margin:0; color:#e9e9ed; font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.topbar-notification-item small { display:block; margin-top:5px; color:#686872; font-size:10px; }
.topbar-notification-empty { padding:30px 20px; text-align:center; color:#6d6d76; }
.topbar-notification-empty svg { width:28px; height:28px; margin-bottom:10px; }
.topbar-notification-empty strong { display:block; color:#ddd; font-size:12px; }
.topbar-notification-empty span { display:block; margin-top:5px; font-size:10px; }
@media (max-width:600px) { .topbar-notification-dropdown { right:-52px; } }

/* Encaixe do link Blog na navbar existente, sem esconder as ações. */
.topbar.topbar--with-blog { grid-template-columns:auto minmax(0,1fr) auto; }
.topbar--with-blog .topbar__center, .topbar--with-blog .navbar-search__input { min-width:0; }
@media(max-width:620px) {
    .topbar.topbar--with-blog { gap:6px; padding:0 8px; }
    .topbar--with-blog .topbar__left { gap:6px; }
    .topbar--with-blog .topbar-brand__logo { width:28px; height:28px; }
    .topbar--with-blog .topbar-icon-button, .topbar--with-blog .topbar-profile, .topbar--with-blog .topbar-cart-button { width:32px; height:34px; }
    .topbar--with-blog .topbar-login { padding:0 8px; gap:5px; height:34px; }
    .topbar--with-blog .topbar-account { max-width:64px; padding:6px; gap:0; }
    .topbar--with-blog .topbar-account__info { min-width:0; }
    .topbar--with-blog .topbar-account__info strong { max-width:52px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
@media(max-width:520px) { .topbar--with-blog .navbar-search { width:32px; height:34px; } }

.topbar-blog-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex-shrink:0; min-height:38px; padding:8px 12px; border:1px solid #65303f; border-radius:9px; background:#231119; color:#fff; font-size:13px; font-weight:700; line-height:1; text-decoration:none; }
.topbar-blog-link svg { width:16px; height:16px; color:#ff667f; }
.topbar-blog-link:hover { background:#341620; border-color:#ff3155; }
.topbar-blog-link:focus-visible { outline:3px solid #ff667f; outline-offset:3px; }
@media(max-width:620px) { .topbar-blog-link { padding:8px; min-height:36px; font-size:12px; } .topbar-blog-link svg { display:none; } }

/* Applies only to the public layouts that opt in; admin and Fintech retain their styles. */
.topbar-sms-wallet{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #442020;border-radius:8px;background:#211010;color:#f7d4d4;white-space:nowrap;flex-shrink:0}
.topbar-sms-wallet svg{width:17px;height:17px;color:#f45757}
.topbar-sms-wallet span{display:grid;gap:2px}
.topbar-sms-wallet small{font-size:9px;font-weight:500;color:#bc9292;line-height:1}
.topbar-sms-wallet strong{font-size:12px;font-weight:700;line-height:1.2}
.topbar-sms-wallet:hover{background:#311414;border-color:#753030}
@media(max-width:580px){.topbar-sms-wallet{padding:5px 6px;gap:4px}.topbar-sms-wallet svg{display:none}.topbar-sms-wallet strong{font-size:10px}.topbar-sms-wallet small{font-size:8px}}
body.storefront-shell {
    --topbar: 68px;
    --sidebar-width: 220px;
    --navigation-red: #e11919;
}
.storefront-shell .topbar.topbar--storefront {
    height: var(--topbar);
    display: grid;
    grid-template-columns: 196px minmax(180px, 1fr) auto;
    gap: 28px;
    padding: 0 24px 0 15px;
    background: #0b0b0b;
    border-bottom: 1px solid #242424;
    box-shadow: none;
    backdrop-filter: none;
}
.storefront-shell .topbar__left { min-width: 0; gap: 13px; }
.storefront-shell .topbar #sidebarToggle { width: 23px; flex: 0 0 23px; }
.storefront-shell .topbar-brand { gap: 9px; white-space: nowrap; }
.storefront-shell .topbar-brand__logo { width: 27px; height: 30px; flex: 0 0 27px; box-shadow: none; }
.storefront-shell .topbar-brand__logo--image { border-radius: 0; }
.storefront-shell .topbar-brand__logo--image::before,
.storefront-shell .topbar-brand__logo--image::after { display: none; }
.storefront-shell .topbar-brand__logo img { object-fit: contain; object-position: center; }
.storefront-shell .topbar-brand__text { display: flex; }
.storefront-shell .topbar-brand__text strong { font-size: 17px; font-weight: 850; letter-spacing: -.75px; line-height: 1; }
.storefront-shell .topbar__center { min-width: 0; justify-content: center; }
.storefront-shell .navbar-search {
    width: 100%; max-width: 690px; height: 37px; margin: 0 auto;
    padding: 0 13px; gap: 11px; border: 1px solid #303030;
    border-radius: 7px; background: #141414;
}
.storefront-shell .navbar-search:focus-within { border-color: #737373; box-shadow: none; }
.storefront-shell .navbar-search__icon { width: 16px; height: 16px; flex-basis: 16px; margin: 0; color: #8d8d8d; stroke-width: 1.7; }
.storefront-shell .navbar-search__input { display: block; font-size: 11px; font-weight: 400; color: #eaeaea; }
.storefront-shell .navbar-search__input::placeholder { color: #858585; }
.storefront-shell .navbar-search__shortcut { height: auto; padding: 3px 5px; margin: 0; border-color: #333; border-radius: 4px; background: transparent; color: #737373; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.storefront-shell .topbar__right { gap: 14px; min-width: 0; }
.storefront-shell .topbar .topbar-icon-button,
.storefront-shell .topbar .topbar-profile,
.storefront-shell .topbar .topbar-cart-button {
    display: inline-flex; width: 30px; height: 34px; padding: 0; border: 0;
    border-radius: 6px; background: transparent; color: #a1a1a1;
    box-shadow: none; transform: none;
}
.storefront-shell .topbar .topbar-icon-button:hover,
.storefront-shell .topbar .topbar-profile:hover,
.storefront-shell .topbar .topbar-profile.is-active,
.storefront-shell .topbar .topbar-cart-button:hover { background: #191919; color: #fff; }
.storefront-shell .topbar .topbar-icon-button svg,
.storefront-shell .topbar .topbar-profile svg,
.storefront-shell .topbar .topbar-cart-button svg { width: 17px; height: 17px; stroke-width: 1.7; }
.storefront-shell .topbar-blog-link { min-height: 34px; padding: 0; border: 0; background: transparent; color: #c4c4c4; font-size: 11px; font-weight: 500; }
.storefront-shell .topbar-blog-link svg { color: inherit; width: 17px; height: 17px; }
.storefront-shell .topbar-blog-link:hover { color: #fff; }
.storefront-shell .topbar-login { height: 33px; min-height: 33px; padding: 0 13px; gap: 7px; border: 1px solid #606060; border-radius: 6px; background: transparent; color: #eee; font-size: 10px; font-weight: 500; transform: none; }
.storefront-shell .topbar-login svg { width: 14px; height: 14px; }
.storefront-shell .topbar-login:hover { background: #1c1c1c; border-color: #999; filter: none; }
.storefront-shell .topbar--guest .topbar-user-menu { display: none; }
.storefront-shell .topbar-account { min-width: 0; max-width: 180px; height: 34px; padding: 0 9px; border: 1px solid #333; border-radius: 6px; background: #141414; gap: 7px; transform: none; }
.storefront-shell .topbar-account__avatar { width: 22px; height: 22px; background: transparent; color: #aaa; }
.storefront-shell .topbar-account__avatar svg { width: 15px; height: 15px; }
.storefront-shell .topbar-account__info strong { max-width: 140px; }
.storefront-shell .notification-count,
.storefront-shell .topbar-cart-count { top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 3px; background: var(--navigation-red); font-size: 9px; }
.storefront-shell .topbar-notification-item__icon,
.storefront-shell .user-dropdown-avatar,
.storefront-shell .user-dropdown-item--logout .user-dropdown-item__icon { background: #261212; color: #e95050; border-color: #502121; }
.storefront-shell .user-dropdown-item--logout { color: #e95050; }
.user-dropdown-logout-form { margin: 0; }
button.user-dropdown-item { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.storefront-shell .topbar a:focus-visible,
.storefront-shell .topbar button:focus-visible { outline: 2px solid var(--navigation-red); outline-offset: 3px; }

.storefront-shell #sidebar.sidebar {
    top: var(--topbar); width: var(--sidebar-width); height: auto;
    padding: 0; border-right: 1px solid #242424;
    background: #0d0d0d; box-shadow: none; transform: none;
    transition: transform .2s;
}
.storefront-shell #sidebar .sidebar__navigation { height: 100%; min-height: 0; padding: 25px 12px 15px; scrollbar-color: #343434 transparent; }
.storefront-shell #sidebar .sidebar__group { gap: 3px; }
.storefront-shell #sidebar .sidebar__group--main { padding-bottom: 0; }
.storefront-shell #sidebar .sidebar__group-header { min-height: 0; margin: 0 0 11px; padding: 0 12px; }
.storefront-shell #sidebar .sidebar__label { color: #737373; font-size: 8px; line-height: 1.4; letter-spacing: 1.65px; font-weight: 700; }
.storefront-shell #sidebar .sidebar__group-line,
.storefront-shell #sidebar .sidebar__link-content,
.storefront-shell #sidebar .sidebar__mini-badge { display: none; }
.storefront-shell #sidebar .sidebar__link {
    width: 100%; min-height: 39px; height: auto; margin: 0; padding: 0 12px;
    gap: 11px; border: 1px solid transparent; border-radius: 6px;
    background: transparent; color: #aaa; font-size: 11px; font-weight: 500;
    line-height: 1.3; transform: none; box-shadow: none;
}
.storefront-shell #sidebar .sidebar__link:hover { background: #181818; color: #f4f4f4; }
.storefront-shell #sidebar .sidebar__link--active,
.storefront-shell #sidebar .sidebar__link--active:hover { color: #fff; border-color: #3b1717; border-left: 2px solid var(--navigation-red); padding-left: 11px; background: linear-gradient(90deg, #351010, #211010); font-weight: 650; box-shadow: none; }
.storefront-shell #sidebar .sidebar__link--active::before { display: none; }
.storefront-shell #sidebar .sidebar__icon { width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px; border: 0; background: transparent; color: #777; }
.storefront-shell #sidebar .sidebar__icon svg,
.storefront-shell #sidebar .sidebar__icon i { width: 16px; height: 16px; stroke-width: 1.6; }
.storefront-shell #sidebar .sidebar__link:hover .sidebar__icon { color: #ccc; }
.storefront-shell #sidebar .sidebar__link--active .sidebar__icon { color: var(--navigation-red); background: transparent; }
.storefront-shell #sidebar .sidebar__storefront-label { display: block; white-space: nowrap; }
.storefront-shell #sidebar .sidebar__storefront-badge { display: block; margin-left: auto; padding: 3px 5px; border: 1px solid #333; border-radius: 4px; color: #989898; font-size: 7px; font-weight: 500; }
.storefront-shell #sidebar .sidebar__bottom { display: flex; flex-direction: column; flex: 1 0 auto; margin: 23px 0 0; padding: 22px 0 0; border-top: 1px solid #242424; }
.storefront-shell #sidebar .sidebar__group--account { margin-top: 0; }
.storefront-shell #sidebar .sidebar__whatsapp-simple { min-height: 0; margin-top: auto; padding: 20px 9px 2px; border: 0; border-radius: 0; background: transparent; color: #aaa; gap: 9px; }
.storefront-shell #sidebar .sidebar__whatsapp-simple:hover { background: transparent; color: #e0e0e0; }
.storefront-shell #sidebar .sidebar__whatsapp-simple-icon { width: 28px; height: 28px; flex-basis: 28px; border: 1px solid #1d3b28; border-radius: 7px; background: #112318; color: #53a36b; }
.storefront-shell #sidebar .sidebar__whatsapp-simple-icon svg { width: 15px; height: 15px; }
.storefront-shell #sidebar .sidebar__whatsapp-simple-content { gap: 3px; }
.storefront-shell #sidebar .sidebar__whatsapp-simple-content small { color: #696969; font-size: 7px; font-weight: 400; letter-spacing: .4px; }
.storefront-shell #sidebar .sidebar__whatsapp-simple-content strong { color: inherit; font-size: 10px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.storefront-shell #sidebar .sidebar__whatsapp-simple-arrow { color: #666; }
.storefront-shell #sidebar .sidebar__whatsapp-simple-arrow svg { width: 11px; height: 11px; }
.storefront-shell #sidebar a:focus-visible { outline: 2px solid var(--navigation-red); outline-offset: -2px; }
.storefront-shell .main-content { padding-top: var(--topbar); margin-left: var(--sidebar-width); }
.storefront-shell.sidebar-closed #sidebar.sidebar { transform: translateX(-100%); }
.storefront-shell.sidebar-closed .main-content { margin-left: 0; }
.storefront-shell .mobile-overlay { top: var(--topbar); }

@media (max-width: 1100px) {
    .storefront-shell .topbar.topbar--storefront { gap: 18px; grid-template-columns: 196px minmax(160px, 1fr) auto; padding-right: 18px; }
    .storefront-shell .topbar__right { gap: 10px; }
    .storefront-shell .navbar-search__shortcut { display: none; }
    .storefront-shell .topbar-account { display: none; }
}
@media (max-width: 800px) {
    .storefront-shell .topbar.topbar--storefront { grid-template-columns: auto minmax(120px, 1fr) auto; gap: 14px; padding: 0 16px; }
    .storefront-shell .topbar__left { gap: 12px; }
    .storefront-shell .topbar-brand__text strong { font-size: 16px; }
    .storefront-shell .topbar-brand__logo { width: 25px; height: 27px; flex-basis: 25px; }
    .storefront-shell .topbar-blog-link span { display: none; }
    .storefront-shell .topbar-blog-link svg { display: block; }
    .storefront-shell .navbar-search { max-width: none; }
    .storefront-shell #sidebar.sidebar { transform: translateX(-100%); }
    .storefront-shell.mobile-menu-open #sidebar.sidebar { transform: translateX(0); }
    .storefront-shell .main-content { margin-left: 0; }
}
@media (max-width: 580px) {
    body.storefront-shell { --topbar: 110px; }
    .storefront-shell .topbar.topbar--storefront { height: var(--topbar); grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 59px 39px; gap: 0 8px; padding: 0 14px 12px; }
    .storefront-shell .topbar__left { gap: 10px; }
    .storefront-shell .topbar-brand__text strong { font-size: 17px; }
    .storefront-shell .topbar-brand__logo { width: 26px; height: 28px; flex-basis: 26px; }
    .storefront-shell .topbar__center { grid-column: 1 / -1; grid-row: 2; }
    .storefront-shell .navbar-search { width: 100%; height: 37px; justify-content: initial; padding: 0 13px; }
    .storefront-shell .navbar-search__input { font-size: 12px; }
    .storefront-shell .topbar__right { grid-column: 2; grid-row: 1; gap: 4px; }
    .storefront-shell .topbar .topbar-icon-button,
    .storefront-shell .topbar .topbar-profile,
    .storefront-shell .topbar .topbar-cart-button { width: 27px; }
    .storefront-shell .topbar-blog-link { display: none; }
    .storefront-shell .topbar-login { padding: 0 10px; height: 31px; min-height: 31px; }
    .storefront-shell .topbar-login svg { display: none; }
    .storefront-shell .topbar-notification-dropdown { position: fixed; top: 59px; right: 12px; width: min(380px, calc(100vw - 24px)); }
    .storefront-shell .topbar-user-dropdown { position: fixed; top: 59px; right: 12px; max-width: calc(100vw - 24px); }
    .storefront-shell #sidebar .sidebar__navigation { padding-top: 22px; }
}
@media (max-width: 360px) {
    .storefront-shell .topbar.topbar--storefront { padding-left: 9px; padding-right: 9px; gap: 0 5px; }
    .storefront-shell .topbar__left { gap: 6px; }
    .storefront-shell .topbar-brand { gap: 5px; }
    .storefront-shell .topbar-brand__text strong { font-size: 15px; }
    .storefront-shell .topbar-brand__logo { width: 23px; flex-basis: 23px; }
    .storefront-shell .topbar__right { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .storefront-shell #sidebar.sidebar,
    .storefront-shell #sidebar .sidebar__link,
    .storefront-shell .navbar-search { transition: none; }
}

/* Account actions and search remain shared across storefront pages. */
.navbar-search { position: relative; }
.navbar-search-results[hidden] { display: none !important; }
.navbar-search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    z-index: 1300; max-height: min(480px, calc(100dvh - 135px)); overflow-y: auto;
    padding: 6px; border: 1px solid #382327; border-radius: 12px;
    background: #111013; box-shadow: 0 18px 48px #0009; text-align: left;
}
.navbar-search-results__heading { margin: 7px 10px 5px; color: #977d83; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.navbar-search-results__status { margin: 0; padding: 16px 12px; color: #bbb0b3; font-size: 12px; line-height: 1.5; }
.navbar-search-result { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; text-decoration: none; color: #eee; }
.navbar-search-result:hover, .navbar-search-result[aria-selected="true"] { background: #2b151b; }
.navbar-search-result__icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #47232d; border-radius: 8px; color: #f2647c; background: #201317; font-size: 15px; }
.navbar-search-result__text { display: grid; gap: 3px; min-width: 0; }
.navbar-search-result__label { font-size: 12px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.navbar-search-result__detail { color: #a38f95; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.topbar-user-dropdown { max-height: calc(100dvh - 86px); overflow-y: auto; }
.user-dropdown-info { min-width: 0; }
.user-dropdown-info strong { overflow-wrap: anywhere; }
.user-dropdown-wallet { display: flex; align-items: center; gap: 12px; margin: 10px; padding: 14px 12px; border: 1px solid #58212d; border-radius: 11px; background: linear-gradient(115deg, #30131c, #1d1015); color: #fff; text-decoration: none; }
.user-dropdown-wallet:hover { border-color: #cf334f; background: linear-gradient(115deg, #411824, #241117); }
.user-dropdown-wallet__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; color: #ff6b85; background: #451b27; }
.user-dropdown-wallet__icon svg { width: 18px; height: 18px; }
.user-dropdown-wallet__text { display: grid; gap: 4px; flex: 1; }
.user-dropdown-wallet__text small { color: #c3a1a9; font-size: 10px; }
.user-dropdown-wallet__text strong { font-size: 21px; font-weight: 750; line-height: 1.15; }
.user-dropdown-wallet__text > span { margin-top: 2px; color: #ff879b; font-size: 10px; }
.user-dropdown-wallet__plus { width: 16px; height: 16px; color: #f4798f; }
@media (min-width: 1101px) {
    .topbar.topbar--storefront, .storefront-shell .topbar.topbar--storefront {
        grid-template-columns: minmax(260px, 1fr) minmax(240px, 690px) minmax(260px, 1fr);
        padding-left: 24px; padding-right: 24px;
    }
    .topbar--storefront .topbar__right { justify-content: flex-end; }
}
@media (min-width: 801px) and (max-width: 1100px) {
    .topbar.topbar--storefront, .storefront-shell .topbar.topbar--storefront {
        grid-template-columns: minmax(260px, 1fr) minmax(160px, 1.8fr) minmax(260px, 1fr);
        padding-left: 18px; padding-right: 18px;
    }
    .topbar--storefront .topbar__right { justify-content: flex-end; }
}
@media (max-width: 580px) {
    .topbar-user-dropdown { max-height: calc(100dvh - 75px); }
    .navbar-search-results { max-height: calc(100dvh - 135px); }
}

.storefront-wallet-feedback { position: fixed; z-index: 1400; right: 20px; bottom: 20px; width: max-content; max-width: min(360px, calc(100vw - 40px)); margin: 0; padding: 14px 18px; border: 1px solid #743041; border-radius: 11px; background: #24131a; color: #ffe0e8; box-shadow: 0 12px 36px #0008; font-size: 12px; line-height: 1.6; }
.storefront-wallet-feedback[hidden] { display: none !important; }

@media (min-width: 581px) and (max-width: 800px) {
    .storefront-shell .topbar__right { gap: 8px; }
    .topbar--storefront .topbar-sms-wallet { padding: 5px 6px; gap: 4px; }
    .topbar--storefront .topbar-sms-wallet svg { display: none; }
    .topbar--storefront .topbar-sms-wallet strong { font-size: 10px; }
    .topbar--storefront .topbar-sms-wallet small { font-size: 8px; }
}
