
/* Shared Supermix header and category navigation. */
.sm-header { --sm-header-gutter: 24px; }
.sm-header .fress-main-header .fress-main-header-inner,
.sm-header .fress-nav .fress-nav-inner {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: var(--sm-header-gutter) !important;
    box-sizing: border-box;
}
.sm-header .fress-main-header .fress-main-header-inner {
    display: grid;
    grid-template-columns: 180px auto minmax(180px, 1fr) auto !important;
    grid-template-areas: 'logo actions search support';
    align-items: center;
    gap: 16px;
    min-height: 100px;
    padding-block: 12px;
}
.sm-header .fress-main-header .fress-logo {
    grid-area: logo !important;
    justify-self: start !important;
    width: 100% !important;
    max-width: 180px !important;
    position: relative;
    height: 48px !important;
    overflow: hidden;
    margin: 0 !important;
}
.sm-header .fress-main-header .fress-logo img {
    position: absolute !important;
    width: 116% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    top: 50% !important;
    left: -8% !important;
    transform: translateY(-50%);
}
.sm-header .fress-main-header .fress-actions {
    grid-area: actions !important;
    width: auto;
    margin: 0 !important;
    gap: 5px !important;
    justify-content: flex-start !important;
}
.sm-header .fress-main-header .fress-actions > .fress-action {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 4px;
    min-width: 51px !important;
    height: 54px !important;
    max-height: none !important;
    padding: 4px !important;
    color: #1f12a8;
    border: 1px solid #e4e1f3;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    transition: background-color .15s;
}
.sm-header .fress-main-header .fress-actions > .fress-action:hover { background: #f1eeff; }
.sm-action-label { font-size: 10px; line-height: 1.1; white-space: nowrap; }
.sm-header .fress-main-header .fress-search {
    grid-area: search !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
}
.sm-header .fress-main-header .fress-search input { min-width: 0; }
.sm-header .fress-main-header .supermix-support {
    grid-area: support !important;
    margin: 0 !important;
}
.sm-header .fress-nav { display: block !important; background: #1f12a8; }
.sm-header .fress-nav .fress-nav-inner {
    position: relative;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 62px;
    padding-block: 8px;
    overflow: visible;
}
.sm-header .fress-nav .fress-mega-trigger {
    position: static;
    justify-content: flex-start;
    width: auto;
}
.sm-header .fress-nav .fress-mega-trigger > .sm-category-toggle {
    min-width: 133px;
    height: 46px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #f97a3b;
    color: #24116f !important;
    font-size: 14px;
    box-sizing: border-box;
}
.sm-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.sm-nav-links > a, .sm-points summary {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    min-height: 39px;
    padding: 0 8px;
    border: 1px solid #ffffff52;
    border-radius: 7px;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 650;
}
.sm-nav-links > a { padding-inline: 7px; }
.sm-nav-links > a:hover, .sm-points summary:hover { background: #ffffff20; }
.sm-header .sm-category-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.sm-nav-links .sm-category-icon, .sm-points summary .sm-category-icon { width: 17px; height: 17px; }
.sm-header :is(.fress-mega-sidebar, .fress-mega-links, .fress-mega-panel-head) > a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-header .fress-mega-panel-head .sm-category-icon { width: 26px; height: 26px; }
.sm-header .fress-nav .fress-mega-trigger .fress-mega {
    top: 100%;
    left: var(--sm-header-gutter);
    width: min(1020px, calc(100% - var(--sm-header-gutter) * 2));
    max-width: none;
    max-height: min(70vh, 520px);
    box-sizing: border-box;
    overflow: auto;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.sm-header .fress-nav .fress-mega-trigger.mega-open .fress-mega {
    visibility: visible;
    opacity: 1;
    transform: none;
}
.sm-header .fress-mega-panels { min-height: 0; }
.sm-header .fress-mega-sidebar a.is-active {
    color: #1f12a8 !important;
    background: #fff0e6 !important;
}
.sm-points { margin-left: auto; }
.sm-points summary { cursor: pointer; }
.sm-points summary::-webkit-details-marker { display: none; }
.sm-points summary::after { content: '⌄'; }
.sm-points ul {
    position: absolute;
    top: 100%;
    right: var(--sm-header-gutter);
    z-index: 201;
    width: min(310px, calc(100% - var(--sm-header-gutter) * 2));
    max-height: 60vh;
    box-sizing: border-box;
    overflow: auto;
    margin: 0;
    padding: 10px;
    list-style: none;
    border: 1px solid #e5dff5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px #21149938;
}
.sm-points li { margin: 0; }
.sm-points li a { display: block; padding: 8px 10px; color: #1f12a8; border-radius: 5px; }
.sm-points li a:hover { background: #f2f0ff; }
.sm-header :is(button,a,summary):focus-visible { outline: 2px solid #f97a3b; outline-offset: 2px; }

@media (max-width: 880px) {
    .sm-header .fress-main-header .fress-main-header-inner {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: 'logo actions' 'search support';
        gap: 10px;
    }
    .sm-header .fress-nav .fress-nav-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .sm-nav-links { grid-row: 2; grid-column: 1 / -1; }
    .sm-header .fress-nav .fress-mega-trigger > .sm-category-toggle { min-width: 0; padding-inline: 9px; }
    .sm-points { grid-row: 1; grid-column: 2; }
    .sm-header .fress-nav .fress-mega-trigger .fress-mega { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .sm-header .fress-mega-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .sm-header .fress-mega-sidebar strong { grid-column: 1 / -1; margin-bottom: 4px; }
    .sm-header .fress-mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; }
}
@media (max-width: 540px) {
    .sm-header { --sm-header-gutter: 20px; }
    .sm-header .fress-main-header .fress-main-header-inner { grid-template-areas: 'logo support' 'actions actions' 'search search'; }
    .sm-header .fress-main-header .fress-logo { max-width: 145px !important; }
    .sm-header .fress-main-header .fress-actions { justify-content: center !important; }
    .sm-header .fress-main-header .supermix-support { width: auto !important; justify-self: end; }
    .sm-header .fress-nav .fress-mega-trigger .fress-mega { padding: 12px; }
    .sm-header .fress-mega-sidebar { padding: 7px; }
    .sm-header .fress-mega-sidebar > a,
    .sm-header .fress-mega-links > a { font-size: 12px; line-height: 1.25; gap: 5px; }
    .sm-header .fress-mega-sidebar > a { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .sm-header .fress-nav .fress-mega-trigger .fress-mega { transition: none; }
}

body.cms-index-index #maincontent.page-main:has(.sm-home) {
    width: 100%;
    max-width: 1280px;
    padding-inline: clamp(26px, 4vw, 42px);
    box-sizing: border-box;
}
.sm-home { --sm-ink: #1f12a8; --sm-orange: #f97a3b; }
.cms-index-index .sm-home .sm-banner__slides { aspect-ratio: 2048 / 763; }
.sm-banner__slide img { object-fit: contain; }
.sm-banner__slide {
    background: #fafaff;
}
.cms-index-index .sm-home .sm-banner__arrow { width: 32px; height: 32px; }
.sm-shipping {
    display: grid;
    place-items: center;
    min-height: 41px;
    padding: 10px clamp(12px, 2.5vw, 24px);
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    background: #1f12a8;
    color: #fff;
    font-weight: 650;
}
.cms-index-index .sm-home .sm-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cms-index-index .sm-home .sm-highlights > a {
    display: block;
    min-width: 0;
    aspect-ratio: 2 / 3;
    border-radius: clamp(6px, 1vw, 14px);
    overflow: hidden;
    isolation: isolate;
    background: #10294b;
}
.cms-index-index .sm-home .sm-highlights picture,
.cms-index-index .sm-home .sm-highlights img {
    display: block;
    width: 100%;
    height: 100%;
}
.cms-index-index .sm-home .sm-highlights img { object-fit: cover; }
@media (max-width: 900px) {
    .cms-index-index .sm-home .sm-highlights { gap: 16px; }
}
@media (max-width: 540px) {
    body.cms-index-index #maincontent.page-main:has(.sm-home) { padding-inline: clamp(16px, 6vw, 24px); }
    .cms-index-index .sm-home .sm-highlights { gap: 6px; }
}

.cms-index-index .sm-home .sm-brands {
    grid-auto-columns: clamp(114px, 12vw, 178px);
    gap: 10px;
    padding: 8px 0 12px;
    scrollbar-width: none;
    scroll-snap-type: none;
}
.cms-index-index .sm-home .sm-brands a {
    height: clamp(86px, 8vw, 112px);
    box-sizing: border-box;
    padding: 12px;
    border-color: #e6e6e6;
    border-radius: 12px;
}
.cms-index-index .sm-home .sm-brands img { max-height: 100%; height: clamp(55px, 5.5vw, 76px); }
@media (max-width: 600px) {
    .cms-index-index .sm-home .sm-brands { gap: 8px; }
}

.sm-delivery-dialog {
    width: min(440px, calc(100% - 40px));
    max-width: 100%;
    padding: 24px;
    border: 1px solid #e6e1f2;
    border-radius: 14px;
    color: #1f12a8;
    background: #fff;
    box-sizing: border-box;
}
.sm-delivery-dialog::backdrop { background: #25146566; }
.sm-delivery-dialog h2 { margin: 0 0 12px; font-size: 22px; color: inherit; }
.sm-delivery-dialog p { color: #433b5a; }
.sm-delivery-dialog button { background: #1f12a8; color: white; border-color: #1f12a8; }

.sm-header .fress-actions .supermix-icon {
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}
.sm-header .fress-main-header .fress-actions > .fress-action { color: #1f12a8; }
.sm-header .fress-nav .sm-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sm-nav-links .sm-nav-catalog {
    background: #fff;
    border-color: #fff;
    color: #1f12a8 !important;
}
.sm-nav-links .sm-nav-catalog:hover { background: #f0ecff; }
.sm-nav-links .sm-category-icon, .sm-points summary .sm-category-icon { width: 18px; height: 18px; }

.sm-home .sm-about--figures { padding: clamp(16px, 2.5vw, 30px); }
.sm-about--figures .sm-section__head { margin-bottom: 20px; }
.sm-company-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.5vw, 20px);
    margin: 0;
    text-align: center;
}
.sm-company-figures > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 6px;
    padding: clamp(14px, 2vw, 24px) 6px;
    background: #faf9ff;
    border: 1px solid #e6e1f2;
    border-radius: 12px;
}
.sm-company-figures dt { font-size: clamp(11px, 1.2vw, 16px); line-height: 1.25; color: #3e3461; }
.sm-company-figures dd {
    margin: 0;
    font-size: clamp(23px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    color: #1f12a8;
}

.sm-shipping p { margin: 0; }
.sm-shipping strong { font-weight: 800; }
