:root {
    color-scheme: light;
    --zs-theme-canvas: var(--bg);
    --zs-theme-panel: var(--surface);
    --zs-theme-media: #fff;
    --zs-theme-footer: #15202d;
    --zs-theme-cta: #0867d7;
}
:root[data-zs-theme="dark"] {
    color-scheme: dark;
    --bg: #101721;
    --surface: #192330;
    --ink: #edf3fa;
    --muted: #a7b6c8;
    --text-2: #c8d4e4;
    --line: #39495e;
    --line-2: #5b7089;
    --line-soft: #2a384b;
    --accent: #76b9ff;
    --accent-hover: #9acaff;
    --accent-ink: #a8d1ff;
    --accent-soft: #233b57;
    --ok: #8ce2aa;
    --wa: #8ce2aa;
    --hot: #ff9396;
    --zs-theme-footer: #0c131d;
    --zs-theme-media: #edf0f4;
    --zs-theme-cta: #126bd5;
    --zs-shadow-card: 0 8px 26px rgb(0 0 0 / 30%);
    --zs-shadow-popover: 0 12px 28px rgb(0 0 0 / 42%);
}
[data-zs-theme="dark"] :is(.zs-topbar,.zs-header,.zs-menu,.zs-cookie,.zs-cookie-settings,.zs-toast,.zs-toast::before,.zs-suggestions) {
    background: var(--surface);
}
[data-zs-theme="dark"] :is(.zs-cookie-settings,.zs-filter-dialog,.zs-product-lightbox) { color: var(--ink); }
[data-zs-theme="dark"] :is(.zs-filter-dialog,.zs-product-lightbox) { background: var(--surface); }
[data-zs-theme="dark"] .zs-wa-pill { background: #204230; }
[data-zs-theme="dark"] .zs-ui .zs-button:not(.zs-button--secondary) { background: var(--zs-theme-cta); color: white; }
[data-zs-theme="dark"] .zs-ui .zs-button:not(.zs-button--secondary):hover { background: #1868c2; }
[data-zs-theme="dark"] .zs-count:not(.zs-count--cart) { background: #1265ca; }
[data-zs-theme="dark"] .zs-count--cart { background: #bc4146; }
[data-zs-theme="dark"] :is(.zs-product-card__image, .zs-product-card__media, .zs-product-gallery__main,
    .zs-product-gallery__thumbs button, .zs-product-lightbox img, .zs-suggestions img) {
    background: var(--zs-theme-media);
}
[data-zs-theme="dark"] .zs-product-gallery__main span { color: #43536a; }
[data-zs-theme="dark"] .zs-footer .zs-logo { background: transparent; padding: 0; }
.zs-ui .zs-footer { background: var(--zs-theme-footer); }
:is(.zs-catalog-brand-choice, .zs-brand-options .zs-filter-option) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2ch;
    align-items: center;
    gap: 6px;
}
.zs-catalog-brand-choice > :is(img,span), .zs-brand-option__logo {
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}
.zs-catalog-brand-choice > img, .zs-brand-option__logo img, .zs-home-brands img {
    width: min(100%, 112px);
    height: 36px;
    object-fit: contain;
    object-position: center;
}
.zs-catalog-brand-choice > small { text-align: right; font-variant-numeric: tabular-nums; }
[data-zs-theme="dark"] :is(.zs-catalog-brand-choice > img,.zs-brand-option__logo img,.zs-home-brands img,
    .zz-brand-logo-mark img,.zs-product-card__brand img) {
    background: var(--zs-theme-media);
    border-radius: 6px;
    padding: 3px 4px;
    box-sizing: border-box;
}
.zs-menu-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.zs-menu-quick a {
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--zs-theme-panel);
    font-size: 12px;
    font-weight: 600;
}
.zs-menu-quick .zs-symbol { width: 18px; height: 18px; flex-basis: 18px; font-size: 18px; }
.zs-menu-quick .zs-count { top: 3px; right: 3px; }
.zs-menu-quick a:hover { background: var(--accent-soft); }
.zs-header__phone-menu, .zs-header__mail { display: none; }
.zs-header__phone-menu summary { list-style: none; }
.zs-header__phone-menu summary::-webkit-details-marker { display: none; }
.zs-header__phone-menu[open] > summary { background: var(--accent-soft); }
.zs-header__phone-items {
    position: absolute;
    top: 100%;
    right: 12px;
    max-width: calc(100vw - 24px);
    min-width: 210px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--zs-shadow-popover);
    z-index: 65;
}
.zs-header__phone-items a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.zs-header__phone-items small { display: block; color: var(--muted); padding-block: 4px; }
@media (max-width: 1023px) {
    .zs-header .zs-phone-strip, .zs-header .zs-mobile-contact, .zs-topbar .zs-theme-toggle { display: none; }
    .zs-header__main { position: relative; }
    .zs-header__phone-menu, .zs-header__mail { display: inline-flex; }
    .zs-header__actions { margin-left: auto; gap: 0; }
    .zs-header .zs-mobile-wa { display: inline-flex; color: var(--ok) !important; }
    .zs-header__actions .zs-header-action--cart { min-width: 44px; }
}
@media (max-width: 639px) {
    .zs-header .zs-header__main { min-height: 56px; padding-inline: 8px; gap: 2px; }
    .zs-header .zs-logo-lockup { gap: 5px; }
    .zs-header .zs-logo-mark { font-size: 30px; }
    .zs-header .zs-logo-word { font-size: clamp(13px, 4vw, 18px); }
    .zs-header .zs-mobile-search { padding-bottom: 6px; }
    .zs-menu > .zs-row { margin-bottom: 8px; }
    .zs-menu > nav { margin-bottom: 10px; }
    .zs-menu .zs-stack { padding-block: 8px; }
    .zs-product .zs-product__layout > .zs-product-gallery { order: 0; }
    .zs-product .zs-product__layout > .zs-product-purchase { order: 1; }
    .zs-product .zs-product-gallery__main { height: clamp(210px, 66vw, 300px); }
    .zs-ui .zs-footer { margin-top: 28px; }
    .zs-ui .zs-footer__grid { gap: 8px 14px; padding-block: 14px; }
    .zs-ui .zs-footer__brand p { margin-block: 5px; }
    .zs-ui .zs-footer-group { padding-bottom: 0; }
    .zs-ui .zs-footer-group summary { display: flex; align-items: center; min-height: 44px; padding: 0; cursor: pointer; }
    .zs-ui .zs-footer__contacts { gap: 4px 10px; }
    .zs-ui .zs-footer > .zs-footer__legal {
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: center;
        gap: 0 10px;
        padding-block: 4px 8px;
        font-size: 11px;
    }
    .zs-ui .zs-footer__legal > span { grid-row: 3; grid-column: 1; min-height: 18px; }
    .zs-ui .zs-footer__legal > small { grid-row: 3; grid-column: 2; font-size: 10px; }
    .zs-ui .zs-footer__legal > a, .zs-ui .zs-footer__legal > button { min-height: 36px; line-height: 1.25; }
}
@media (max-width: 350px) {
    .zs-header .zs-logo-word { display: none; }
    .zs-ui .zs-footer__legal > small { font-size: 9px; }
}
[data-zs-theme="dark"] .zs-product-gallery__main,
[data-zs-theme="dark"] .zs-product-gallery__thumbs button { background: white; }
[data-zs-theme="dark"] .zs-product-gallery__zoom::after { background: #192330; color: #edf3fa; }
[data-zs-theme="dark"] .zs-product-purchase [data-zs-quote-form] button {
    background: var(--zs-theme-cta);
    border-color: var(--zs-theme-cta);
    color: white;
}
.zs-header__phone-menu > summary { list-style: none; }
.zs-header__phone-menu > summary::-webkit-details-marker { display: none; }
.zs-phone-panel-channels { display: none; }
@media (max-width: 359px) {
    .zs-header .zs-header__mail, .zs-header .zs-mobile-wa { display: none; }
    .zs-header .zs-logo-word { display: inline; }
    .zs-phone-panel-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
.zs-theme-toggle { border: 1px solid var(--line); background: var(--surface); }
.zs-theme-toggle svg { width: 20px; height: 20px; }
.zs-theme-toggle .zs-theme-sun, [data-zs-theme="dark"] .zs-theme-toggle .zs-theme-moon { display: none; }
[data-zs-theme="dark"] .zs-theme-toggle .zs-theme-sun { display: block; }
.zs-topbar .zs-theme-toggle { width: 36px; height: 34px; flex-basis: 36px; padding: 6px; }
.zs-menu-quick { grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; align-items: stretch; gap: 6px; }
.zs-menu-quick a, .zs-menu-quick .zs-theme-toggle { min-height: 48px; }
.zs-menu-quick a { font-size: 11px; gap: 4px; white-space: nowrap; padding-inline: 3px; }
.zs-menu-quick .zs-symbol { width: 16px; height: 16px; flex-basis: 16px; font-size: 16px; }
.zs-menu-quick .zs-theme-toggle { height: 100%; }
@media (max-width: 350px) { .zs-menu { padding-inline: 14px; } }

.zs-home-categories > a {
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(46px, auto);
}
.zs-home-category-media {
    position: relative;
    display: block;
    height: clamp(172px, 18vw, 224px);
    isolation: isolate;
    overflow: hidden;
    background: #edf2f7;
    border-bottom: 1px solid var(--line-soft);
}
.zs-home-categories .zs-home-category-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px 12px;
    box-sizing: border-box;
    mix-blend-mode: multiply;
}
[data-zs-theme="dark"] .zs-home-category-media { background: #dce5ee; }
.zs-home-categories > a h3 {
    margin: 0;
    padding: 10px 12px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.25;
}
.zs-home-categories > a:focus-visible { outline-offset: 3px; }
.zs-home-categories > a h3::after,
.zs-banner-arrows button::before {
    content: "";
    background: currentColor;
    width: 20px;
    height: 20px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.zs-home-categories > a h3::after { flex: 0 0 16px; width: 16px; height: 16px; color: var(--accent-ink); }
.zs-banner-arrows button {
    display: grid;
    place-items: center;
    font-size: 0;
    color: #15202d;
}
.zs-banner-arrows button > * { display: none; }
.zs-banner-arrows button:first-child::before { transform: scaleX(-1); }
.zs-banner-arrows button:focus:not(:focus-visible) { outline: none; }
[data-zs-theme="dark"] .zs-home-service { background: #192330; }
@media (max-width: 639px) {
    .zs-home-category-media { height: clamp(148px, 42vw, 184px); }
    .zs-home-categories > a h3 { padding-inline: 9px; font-size: 12px; }
}

/* The catalog drawer is shared by the desktop and mobile header. */
html:has(#zs-catalog-menu[open]) { overflow: hidden; }
#zs-catalog-menu { overscroll-behavior: contain; }
.zs-menu .zs-menu-all { color: var(--accent); font-weight: 700; }
.zs-menu-tree { margin: 0; padding: 0; list-style: none; }
.zs-menu-branch > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
    list-style: none;
    cursor: pointer;
}
.zs-menu-branch > summary::-webkit-details-marker { display: none; }
.zs-menu-branch[open] > summary { color: var(--accent); }
.zs-menu-branch__chevron {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-inline-end: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.zs-menu-branch[open] .zs-menu-branch__chevron { transform: translateY(2px) rotate(225deg); }
.zs-menu-branch > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.zs-menu-branch__links { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.zs-menu-branch__links .zs-menu-branch__all { color: var(--accent); font-weight: 600; }
.zs-menu > nav .zs-menu-branch__links a { min-height: 44px; }
