/* Shared storefront navigation and footer; financial pages retain their handlers. */
body.storefront-shell.storefront-layout {
    --sidebar-width: 284px;
    --storefront-accent: #ff163d;
}

.storefront-layout #sidebar.sidebar {
    position: fixed;
    top: var(--topbar);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid #29292b;
    border-radius: 0;
    background: #0b0b0c;
    box-shadow: none;
}

.storefront-layout #sidebar .sidebar__navigation {
    height: 100%;
    padding: 18px 12px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #363638 transparent;
}

.storefront-layout #sidebar .sidebar__mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 0 12px;
    padding: 2px;
    border: 1px solid #2a2a2c;
    border-radius: 9px;
    background: #0e0e0f;
}

.storefront-layout #sidebar .sidebar__mode {
    height: 42px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #a4a4a9;
    font-size: 17px;
    font-weight: 700;
}

.storefront-layout #sidebar .sidebar__mode::before,
.storefront-layout #sidebar .sidebar__mode::after { display: none; }
.storefront-layout #sidebar .sidebar__mode:hover { background: #19191b; color: #fff; }
.storefront-layout #sidebar .sidebar__mode--active,
.storefront-layout #sidebar .sidebar__mode--active:hover {
    border-color: #681422;
    border-bottom: 3px solid var(--storefront-accent);
    background: linear-gradient(110deg, #350b10, #230a0f);
    color: #fff;
}

.storefront-layout .sidebar-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-shrink: 0;
    gap: 7px;
    margin-bottom: 24px;
}

.storefront-layout .sidebar-services button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 65px;
    padding: 8px 2px;
    border: 1px solid #2b2b2d;
    border-radius: 8px;
    background: linear-gradient(135deg, #131314, #0f0f10);
    color: #929297;
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    opacity: 1;
    cursor: not-allowed;
}
.storefront-layout .sidebar-services svg { width: 22px; height: 22px; stroke-width: 1.8; }
/* Released services are links; the rest stay as disabled "Em breve" buttons. */
.storefront-layout .sidebar-services__open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 65px;
    padding: 8px 2px;
    border: 1px solid #3a2a2e;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1214, #120e0f);
    color: #f2eff1;
    font-size: 11px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.storefront-layout .sidebar-services__open svg { color: var(--storefront-accent); }
.storefront-layout .sidebar-services__open:hover,
.storefront-layout .sidebar-services__open:focus-visible { border-color: #681422; background: linear-gradient(135deg, #2a0d12, #1a0b0e); }
.storefront-layout .sidebar-services__open--active {
    border-color: #681422;
    border-bottom: 3px solid var(--storefront-accent);
    background: linear-gradient(110deg, #350b10, #230a0f);
    color: #fff;
}

.storefront-layout #sidebar .sidebar__group { gap: 3px; }
.storefront-layout #sidebar .sidebar__group--main { padding-bottom: 0; }
.storefront-layout #sidebar .sidebar__group-header {
    min-height: 20px;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0 10px;
}
.storefront-layout #sidebar .sidebar__label {
    color: #828286;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}
.storefront-layout #sidebar .sidebar__group-line { display: block; background: #272729; }
.storefront-layout #sidebar .sidebar__link {
    position: relative;
    min-height: 43px;
    height: auto;
    gap: 14px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.35;
}
.storefront-layout #sidebar .sidebar__link:hover { background: #171719; color: #fff; }
.storefront-layout #sidebar .sidebar__link--active,
.storefront-layout #sidebar .sidebar__link--active:hover {
    border-color: #671421;
    padding-left: 12px;
    background: linear-gradient(100deg, #3d0a12, #240b10);
    color: #fff;
    font-weight: 700;
}
.storefront-layout #sidebar .sidebar__link--active::before {
    content: '';
    display: block;
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 4px;
    height: auto;
    transform: none;
    border-radius: 7px 0 0 7px;
    background: var(--storefront-accent);
    box-shadow: 3px 0 14px #ff163d22;
}
.storefront-layout #sidebar .sidebar__icon {
    width: 23px;
    height: 23px;
    min-width: 23px;
    flex: 0 0 23px;
    color: #e2e2e6;
}
.storefront-layout #sidebar .sidebar__icon svg,
.storefront-layout #sidebar .sidebar__icon i { width: 23px; height: 23px; stroke-width: 1.8; }
.storefront-layout #sidebar .sidebar__link--active .sidebar__icon { color: var(--storefront-accent); }
.storefront-layout #sidebar .sidebar__storefront-label { min-width: 0; white-space: normal; }
.storefront-layout #sidebar .sidebar__storefront-badge {
    padding: 3px 7px;
    border-color: #3c3c40;
    border-radius: 5px;
    color: #b9b9bf;
    font-size: 10px;
    font-weight: 600;
}
.storefront-layout #sidebar .sidebar__bottom {
    flex: 1 0 auto;
    gap: 3px;
    margin-top: 22px;
    padding-top: 0;
    border-top: 0;
}
.storefront-layout #sidebar .sidebar__whatsapp-simple {
    min-height: 66px;
    flex-shrink: 0;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 9px;
    border: 1px solid #214d32;
    border-radius: 8px;
    background: linear-gradient(110deg, #0c1d13, #0c1510);
    color: #f0f5f1;
}
.storefront-layout #sidebar .sidebar__whatsapp-simple:hover { border-color: #33774c; background: #11291b; color: #fff; }
.storefront-layout #sidebar .sidebar__whatsapp-simple-icon {
    width: 32px;
    height: 34px;
    flex: 0 0 32px;
    border: 0;
    border-right: 1px solid #285339;
    border-radius: 0;
    background: none;
    color: #24de74;
}
.storefront-layout #sidebar .sidebar__whatsapp-simple-icon svg { width: 25px; height: 25px; }
.storefront-layout #sidebar .sidebar__whatsapp-simple-content { min-width: 0; gap: 4px; }
.storefront-layout #sidebar .sidebar__whatsapp-simple-content small { color: #929e97; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.storefront-layout #sidebar .sidebar__whatsapp-simple-content strong { font-size: 12px; font-weight: 650; white-space: normal; }
.storefront-layout #sidebar .sidebar__whatsapp-simple-arrow { margin-left: auto; color: #a8b7ae; }
.storefront-layout #sidebar .sidebar__whatsapp-simple-arrow svg { width: 19px; height: 19px; }

.storefront-layout .storefront-footer {
    position: relative;
    scroll-margin-top: var(--topbar);
    margin: 0 24px 24px calc(var(--sidebar-width) + 24px);
    overflow: hidden;
    border: 1px solid #202022;
    border-radius: 28px;
    background: radial-gradient(ellipse at 50% 0, #17171955, transparent 65%), #0a0a0b;
    color: #c3c3ca;
}
.storefront-layout .storefront-footer::before { display: none; }
.storefront-layout .storefront-footer__inner { width: min(calc(100% - 80px), 1240px); margin: 0 auto; }
.storefront-layout .storefront-footer__help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid #303032;
}
.storefront-layout .storefront-footer__help-copy { display: flex; align-items: center; gap: 15px; min-width: 0; }
.storefront-layout .storefront-footer__help-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ff1238;
}
.storefront-layout .storefront-footer__help-icon svg { width: 32px; height: 32px; stroke-width: 1.8; }
.storefront-layout .storefront-footer__help h2 { margin: 0 0 6px; color: #f7f7f9; font-size: 20px; font-weight: 700; line-height: 1.3; }
.storefront-layout .storefront-footer__help p { margin: 0; color: #c3c3ca; font-size: 14px; line-height: 1.6; }
.storefront-layout .storefront-footer__support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 18px;
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid #ff1238;
    border-radius: 5px;
    background: #ff082b;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background .15s;
}
.storefront-layout .storefront-footer__support-button:hover { background: #ff2046; }
.storefront-layout .storefront-footer__support-button svg { width: 17px; height: 17px; }
.storefront-layout .storefront-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 32px 0 30px;
}
.storefront-layout .storefront-footer__brand { min-width: 0; padding-right: 20px; }
.storefront-layout .storefront-footer__logo { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; color: #fff; text-decoration: none; }
.storefront-layout .storefront-footer__logo img { display: block; flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
.storefront-layout .storefront-footer__logo-fallback { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #652033; border-radius: 12px; background: #2a1019; color: #ff3c5e; }
.storefront-layout .storefront-footer__logo-fallback svg { width: 25px; height: 25px; }
.storefront-layout .storefront-footer__logo strong { min-width: 0; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.5px; overflow-wrap: anywhere; }
.storefront-layout .storefront-footer__tagline { max-width: 380px; margin: 17px 0 10px; color: #f0f0f3; font-size: 18px; font-weight: 700; line-height: 1.45; }
.storefront-layout .storefront-footer__description { max-width: 385px; margin: 0; color: #bdbdc5; font-size: 14px; line-height: 1.7; }
.storefront-layout .storefront-footer__community { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin-top: 17px; color: #e0e0e5; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.storefront-layout .storefront-footer__community svg { width: 20px; height: 20px; flex: 0 0 20px; }
.storefront-layout .storefront-footer__community svg:first-child { color: #00d879; }
.storefront-layout .storefront-footer__community:hover { color: #fff; }
.storefront-layout .storefront-footer__socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.storefront-layout .storefront-footer__social { display: inline-grid; place-items: center; width: 39px; height: 39px; border: 1px solid #343437; border-radius: 9px; background: #121214; color: #e1e1e7; text-decoration: none; }
.storefront-layout .storefront-footer__social svg { width: 21px; height: 21px; }
.storefront-layout .storefront-footer__social:hover { border-color: #ff163d; color: #ff4d6d; background: #211116; }
.storefront-layout .storefront-footer__social--whatsapp { color: #32d987; }
.storefront-layout .storefront-footer__social.is-unconfigured { opacity: .45; cursor: not-allowed; }
.storefront-layout .storefront-footer__links { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 4px; padding-top: 5px; }
.storefront-layout .storefront-footer__links h2 { position: relative; margin: 0 0 14px; padding-bottom: 13px; color: #f4f4f6; font-size: 17px; font-weight: 700; line-height: 1.5; }
.storefront-layout .storefront-footer__links h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; background: var(--storefront-accent); border-radius: 2px; }
.storefront-layout .storefront-footer__links a { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; padding: 5px 0; color: #c4c4cc; font-size: 14px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; transition: color .15s; }
.storefront-layout .storefront-footer__links a:hover { color: #ff6d87; }
.storefront-layout .storefront-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 0 23px; border-top: 1px solid #303032; }
.storefront-layout .storefront-footer__bottom p { margin: 0; color: #b2b2bb; font-size: 12px; line-height: 1.7; }
.storefront-layout .storefront-footer__back-top { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; color: #c3c3cc; font-size: 12px; line-height: 1.5; text-decoration: none; }
.storefront-layout .storefront-footer__back-top span { display: grid; place-items: center; width: 24px; height: 26px; border: 0; border-radius: 0; background: transparent; color: #ff1238; }
.storefront-layout .storefront-footer__back-top svg { width: 21px; height: 21px; }
.storefront-layout .storefront-footer__back-top:hover { color: #fff; }
.storefront-layout .storefront-footer a:focus-visible { outline: 2px solid #ff597a; outline-offset: 4px; border-radius: 4px; }
.storefront-layout.sidebar-closed .storefront-footer { margin-left: 24px; }

@media (min-width: 801px) and (max-width: 1100px) {
    .storefront-layout:not(.sidebar-closed) .storefront-footer__help { align-items: stretch; flex-direction: column; gap: 18px; }
    .storefront-layout:not(.sidebar-closed) .storefront-footer__support-button { align-self: flex-start; }
    .storefront-layout:not(.sidebar-closed) .storefront-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
    .storefront-layout:not(.sidebar-closed) .storefront-footer__brand { grid-column: 1 / -1; padding-right: 0; }
    .storefront-layout:not(.sidebar-closed) .storefront-footer__bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 800px) {
    body.storefront-shell.storefront-layout { --sidebar-width: min(284px, calc(100vw - 36px)); }
    body.storefront-layout.mobile-menu-open { overflow: hidden; }
    .storefront-layout .storefront-footer,
    .storefront-layout.sidebar-closed .storefront-footer { margin: 0 14px 14px; border-radius: 22px; }
    .storefront-layout .storefront-footer__inner { width: min(calc(100% - 48px), 1240px); }
    .storefront-layout .storefront-footer__grid { gap: 28px; }
    .storefront-layout .storefront-footer__brand { padding-right: 0; }
}
@media (max-width: 600px) {
    .storefront-layout .storefront-footer__help { align-items: stretch; flex-direction: column; gap: 18px; padding: 25px 0; }
    .storefront-layout .storefront-footer__support-button { align-self: flex-start; }
    .storefront-layout .storefront-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; padding: 28px 0; }
    .storefront-layout .storefront-footer__brand { grid-column: 1 / -1; }
    .storefront-layout .storefront-footer__links { padding-top: 0; }
    .storefront-layout .storefront-footer__links h2 { font-size: 16px; }
    .storefront-layout .storefront-footer__bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
    .storefront-layout .storefront-footer,
    .storefront-layout.sidebar-closed .storefront-footer { margin: 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .storefront-layout #sidebar.sidebar { transition: none; }
}
