.sv-shell {
    font-family: "Montserrat", sans-serif;
    width: 100%;
    max-width: 100%;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.sv-navbar {
    background: var(--header-bg);
    position: relative;
    top: auto;
    z-index: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
}
.sv-navbar .nav-link { color: var(--link-col) !important; font-weight: 600; font-size: 0.9rem; margin: 0 5px; }
.sv-navbar .navbar-brand img { height: var(--logo-height); width: auto; max-width: 100%; object-fit: contain; }
.sv-navbar .dropdown-menu { background: var(--header-bg); border: 1px solid rgba(255,255,255,0.1); }
.sv-navbar .dropdown-item { color: var(--link-col); }
.sv-navbar .dropdown-item:hover { background: rgba(255,255,255,0.1); }

.sv-navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
    width: 100%;
    max-width: 100%;
}
.sv-navbar-brand {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    max-width: calc(100% - 7rem);
}
.sv-navbar-brand span,
.sv-navbar-brand img {
    display: block;
    max-width: 100%;
}
.sv-navbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.85rem, 3.6vw, 1.25rem);
    line-height: 1.2;
}
.sv-navbar-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}
.sv-navbar #pwaInstallBtn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
    border: none;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
}
.sv-navbar #pwaInstallBtn.is-visible {
    display: inline-flex !important;
}
.sv-navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.4rem;
    margin: 0;
    background: transparent;
}
.sv-navbar-toggler:focus,
.sv-navbar-toggler:focus-visible {
    box-shadow: none !important;
    outline: none;
}
.sv-navbar-toggler .navbar-toggler-icon {
    width: 1.35rem;
    height: 1.35rem;
    filter: invert(1);
}
@media (max-width: 991.98px) {
    .sv-navbar #pwaInstallBtn.is-visible {
        width: 2.15rem;
        height: 2.15rem;
        padding: 0 !important;
        border-radius: 50% !important;
    }
    .sv-navbar #pwaInstallBtn .pwa-install-label {
        display: none !important;
    }
    .sv-navbar #pwaInstallBtn i {
        margin: 0;
        font-size: 1rem;
    }
    .sv-navbar .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .sv-navbar .navbar-nav {
        align-items: stretch !important;
        width: 100%;
        margin: 0;
    }
    .sv-navbar .navbar-nav .nav-link {
        padding: 0.7rem 0.15rem;
        margin: 0;
    }
    .sv-navbar-cta {
        width: 100%;
    }
    .sv-navbar-cta .btn-custom {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }
}
@media (min-width: 992px) {
    .sv-navbar-inner {
        flex-wrap: nowrap;
    }
    .sv-navbar-brand {
        flex: 0 1 auto;
        max-width: none;
        margin-right: 1rem;
    }
    .sv-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }
    .sv-navbar-actions {
        order: 3;
        margin-left: 0.75rem;
    }
}
.btn-custom { border-radius: 50px; padding: 6px 16px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; transition: 0.2s; }
.btn-custom:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--link-col); border: 1px solid var(--link-col); }
#pwaInstallBtn.is-visible {
    display: inline-flex !important;
    align-items: center;
}
.pwa-install-fab {
    position: fixed;
    z-index: 1050;
    display: none;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    cursor: pointer;
}
.pwa-install-fab.is-visible {
    display: flex !important;
}
.pwa-fab-br { right: 20px; bottom: 20px; }
.pwa-fab-bl { left: 20px; bottom: 20px; }
.pwa-fab-tr { right: 20px; top: 80px; }
.pwa-fab-tc { left: 50%; top: 80px; transform: translateX(-50%); }

.store-wa-fab {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 1045;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-wa-fab:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}
@media (max-width: 767.98px) {
    .store-wa-fab {
        left: 16px;
        bottom: 88px;
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
    }
    body.store-body:has(.sticky-footer-product) .store-wa-fab,
    body.store-body:has(.fab-cart-right[style*="flex"]) .store-wa-fab {
        bottom: max(108px, calc(88px + env(safe-area-inset-bottom, 0px)));
    }
}
.cart-icon-custom { color: var(--link-col); }
.badge-carrinho { background: #dc3545; font-size: 0.65rem !important; padding: 4px 6px !important; top: 0 !important; right: 0 !important; transform: translate(30%, -30%) !important; border: 2px solid var(--header-bg); }
.btn-icon-only {
    width: 40px; height: 40px; padding: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; vertical-align: middle;
}

html {
    height: 100%;
}
body.store-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
}
main.store-main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Mobile: esconde barra de rolagem (scroll continua ativo). Desktop mantém a barra. */
@media (max-width: 767.98px) {
    html {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    html::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
    body.store-body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    body.store-body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
    .modal-body,
    .modal-dialog-scrollable .modal-body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .modal-body::-webkit-scrollbar,
    .modal-dialog-scrollable .modal-body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
}

.saas-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 80px;
    padding-bottom: 30px;
    margin-top: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
.saas-footer > .container {
    overflow-x: clip;
}
.saas-footer .row {
    --bs-gutter-x: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}
.saas-footer .row > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}
@media (max-width: 767.98px) {
    .saas-footer {
        padding-top: 48px;
    }
    .saas-footer .row {
        --bs-gutter-x: 1rem;
    }
}
.saas-footer h5 {
    color: var(--footer-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}
.saas-footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--footer-text);
    opacity: 0.3;
    border-radius: 2px;
}
.saas-footer a { color: var(--footer-text); text-decoration: none; opacity: 0.85; transition: 0.2s; }
.saas-footer a:hover { opacity: 1; text-decoration: underline; }
.saas-footer .footer-link-list li { margin-bottom: 12px; }
.saas-footer .social-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: var(--footer-text);
    transition: 0.3s; font-size: 1.1rem;
}
.saas-footer .social-icon:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

.saas-footer .footer-brand-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.saas-footer .footer-map-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.saas-footer .footer-map-wrapper iframe {
    width: 100% !important;
    max-width: 100%;
    min-height: 200px;
    height: 250px;
    border: 0;
    display: block;
}

.saas-footer .footer-text {
    opacity: 0.9;
    line-height: 1.6;
    word-break: break-word;
}

/* ── Selo "Desenvolvido por Ativa BRD" (rodapé das lojas) ── */
.ativa-credit {
    margin-top: 10px;
    text-align: center;
    line-height: 1;
}
.ativa-credit a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: inherit;
    opacity: .7;
    transition: opacity .2s;
}
.ativa-credit a:hover { opacity: 1; }
.ativa-credit span {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.ativa-credit img {
    height: 20px;
    width: auto;
    display: block;
}
.ativa-credit--dark { color: #fff; }
.ativa-credit--auto { color: var(--footer-text, #fff); }
/* Logo tem tracos claros: em fundo claro vai dentro de um chip escuro */
.ativa-credit--onlight a {
    background: #111827;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    opacity: .9;
}
