.sap-main.sap-main--store { padding-top: 80px; }
.sap-panel-main.sap-main--store { padding-top: 80px !important; }
.sap-main--store > .sap-wrap:not(:has(> .sap-catalog, > .tl-page)) { padding-top: 1.5rem; }

.sap-store-subheader {
    position: relative;
    z-index: 12;
    background: radial-gradient(ellipse at 0 0, #172952, transparent 60%), linear-gradient(105deg, #121e33, #0e1523);
    border-block: 1px solid #243147;
    color: #f1f5fb;
}
.sap-store-subheader__inner,
.sap-panel-main.sap-main--store > .sap-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
.sap-store-subheader__top { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.4rem; padding-block: .72rem; }
.sap-store-subheader__brand { display: inline-flex; align-items: center; min-width: 0; gap: .7rem; color: inherit; }
.sap-store-subheader__logo {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #8798ff6b;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #6d28d9);
    color: #fff;
    box-shadow: 0 8px 22px #27399b48;
}
.sap-store-subheader__logo .sap-svg-icon { font-size: 22px; }
.sap-store-subheader__brand-copy { display: grid; gap: .12rem; }
.sap-store-subheader__brand-copy strong { font-size: .94rem; font-weight: 850; line-height: 1.25; }
.sap-store-subheader__brand-copy small { color: #b2c1d5; font-size: .7rem; line-height: 1.4; }
.sap-store-subheader__actions { display: flex; align-items: center; gap: .62rem; flex-shrink: 0; }
.sap-store-subheader__account, .sap-store-subheader__menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .46rem;
    min-height: 42px;
    padding: .55rem .78rem;
    border: 1px solid transparent;
    border-radius: 11px;
    white-space: nowrap;
    font-size: .78rem;
    font-weight: 800;
}
.sap-store-subheader__account { background: #f5b42612; border-color: #e6b55055; color: #f7d684; }
.sap-store-subheader__account:hover { background: #f5b42626; }
.sap-store-subheader__account-menu > summary.sap-store-subheader__account { background: #f5b42612; border-color: #e6b55055; color: #f7d684; }
.sap-store-subheader__account-menu .sap-avatar { width: 24px; height: 24px; flex: 0 0 24px; font-size: .78rem; border-radius: 50%; }
.sap-store-subheader__unread { background: #dbe7ff; color: #153974; padding: 1px 5px; border-radius: 4px; font-size: .7rem; }
.sap-store-subheader__menu { position: relative; }
.sap-store-subheader__menu > summary { cursor: pointer; list-style: none; background: linear-gradient(135deg, #1d56c8, #483ac7); border-color: #819afc8c; color: #fff; }
.sap-store-subheader__menu > summary::-webkit-details-marker { display: none; }
.sap-store-subheader__menu > summary:hover { filter: brightness(1.15); }
.sap-store-subheader__menu[open] > summary .sap-svg-icon:last-child { transform: rotate(180deg); }
.sap-store-subheader__actions .sap-svg-icon { flex-shrink: 0; font-size: 16px; }
.sap-store-subheader__dropdown {
    position: absolute;
    inset: calc(100% + .45rem) 0 auto auto;
    width: 15.5rem;
    padding: .42rem;
    border: 1px solid #3a4a65;
    border-radius: 13px;
    background: #111b2c;
    box-shadow: 0 20px 48px #02061170;
}
.sap-store-subheader__dropdown :is(a,button) { display: flex; align-items: center; gap: .6rem; min-height: 44px; width: 100%; padding: .46rem .62rem; border-radius: 8px; color: #d9e4f5; font-size: .78rem; font-weight: 700; text-align: left; }
.sap-store-subheader__dropdown button { background: transparent; border: 0; cursor: pointer; font-family: inherit; font-size: .78rem; font-weight: 700; }
.sap-store-subheader__dropdown form { margin: 0; }
.sap-store-subheader__dropdown :is(a,button):hover { background: #253754; color: #fff; }
.sap-store-subheader__dropdown .sap-svg-icon { color: #a6c2ff; }
.sap-store-subheader__all { border-bottom: 1px solid #2b3b54; }
.sap-store-subheader__links { display: flex; align-items: center; gap: .3rem; min-width: 0; overflow-x: auto; padding: .36rem 0; border-top: 1px solid #31425a; scrollbar-width: thin; scrollbar-color: #455779 transparent; }
.sap-store-subheader__links > :is(a, span) { display: inline-flex; align-items: center; gap: .43rem; min-height: 37px; padding: .42rem .7rem; flex: 0 0 auto; border-radius: 9px; white-space: nowrap; color: #cbd7ea; font-size: .76rem; font-weight: 750; }
.sap-store-subheader__links .sap-svg-icon { font-size: 15px; }
.sap-store-subheader__links a:hover { background: #243451; color: #fff; }
.sap-store-subheader__links a[aria-current=page] { background: #245bc8; color: #fff; }
.sap-store-subheader__links .sap-store-subheader__current { margin-left: auto; color: #aec8fb; }
.sap-store-subheader :is(a, summary, button):focus-visible { outline: 2px solid #9cc3ff; outline-offset: -2px; }

@media (max-width: 650px) {
    .sap-store-subheader__top { flex-wrap: wrap; }
    .sap-store-subheader__actions { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .sap-store-subheader__menu { position: static; min-width: 0; }
    .sap-store-subheader__menu > summary { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .sap-store-subheader__account-menu > summary > span:not(.sap-avatar,.sap-svg-icon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .sap-store-subheader__dropdown { inset-inline: 0; width: auto; }
    .sap-store-subheader__links .sap-store-subheader__current { margin-left: 0; }
}

@media (min-width: 640px) {
    .sap-store-subheader__inner,
    .sap-panel-main.sap-main--store > .sap-wrap { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
    .sap-store-subheader__inner,
    .sap-panel-main.sap-main--store > .sap-wrap { padding-inline: 2rem; }
}
