
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--shop-body-font);
    background: var(--bs-body-bg);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--shop-heading-font);
}

.site-main {
    flex: 1 0 auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--shop-nav-bg);
    border-bottom: 1px solid var(--shop-nav-line);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 68px;
    padding-inline: clamp(16px, 2.2vw, 32px);
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.nav-brand img {
    height: 30px;
    width: auto;
    display: block;
}

.nav-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 440px;
    margin-left: clamp(0px, 3vw, 48px);
}
.nav-search .field {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--shop-nav-field);
    border: 1px solid var(--shop-nav-field-line);
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-search .field:focus-within {
    border-color: var(--shop-accent);
    box-shadow: 0 0 0 3px rgba(79, 151, 214, 0.26);
}
.nav-search .ico {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--shop-nav-muted);
}
.nav-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    color: var(--shop-nav-ink);
    font-family: var(--shop-body-font);
    font-size: 14px;
}
.nav-search input::placeholder {
    color: var(--shop-nav-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
}
.nav-menu > a,
.nav-menu .dropdown-toggle {
    display: inline-block;
    font-family: var(--shop-body-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--shop-nav-muted);
    padding: 9px 13px;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-menu > a:hover,
.nav-menu .dropdown-toggle:hover,
.nav-menu .dropdown-toggle.show {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-menu > a.current,
.nav-menu .dropdown-toggle.current {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}
.nav-menu > a.cta {
    color: #fff;
    background: var(--shop-accent);
}
.nav-menu > a.cta:hover {
    background: var(--shop-accent-strong);
    color: #fff;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--shop-nav-muted);
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.theme-toggle-label {
    display: none;
    font-family: var(--shop-body-font);
    font-size: 14px;
    font-weight: 500;
}
[data-bs-theme="dark"] .theme-toggle .when-light,
[data-bs-theme="light"] .theme-toggle .when-dark {
    display: none !important;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--shop-nav-field-line);
    color: var(--shop-nav-ink);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 860px) {
    .nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding-block: 12px;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin-left: 0;
    }
    .nav-menu {
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin-left: 0;
        display: none;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu > a,
    .nav-menu .dropdown-toggle {
        display: block;
        padding: 12px 13px;
    }
    .theme-toggle {
        width: auto;
        height: auto;
        justify-content: flex-start;
        padding: 12px 13px;
        font-size: 1rem;
    }
    .theme-toggle-label {
        display: inline;
    }
}

.page-head {
    margin-bottom: clamp(20px, 3vw, 32px);
}
.page-head h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 700;
    margin: 0;
}
.kicker {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shop-accent);
    margin: 0 0 4px;
}

.card-panel {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: clamp(20px, 3vw, 30px);
}
.auth-card {
    max-width: 440px;
}
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    background: linear-gradient(to right, var(--shop-panel) 310px, var(--shop-page-bg) 310px);
}
.account-side {
    padding: 1.75rem 1rem 2rem 1.5rem;
    position: sticky;
    top: 68px;
    align-self: start;
    height: calc(100vh - 68px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--shop-line) transparent;
}
.account-content {
    padding: 1.75rem 2rem 3rem;
    max-width: 1400px;
    min-width: 0;
}
.site-main:has(.account-layout) + .site-footer {
    margin-top: 0;
}

.side-title {
    font-family: var(--shop-body-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shop-accent);
    margin: 0 0 0.6rem;
    padding: 0 0.6rem 0.5rem;
    border-bottom: 1px solid var(--shop-line);
}
.side-filters + .side-title {
    margin-top: 1.75rem;
}
.scope-switch {
    display: flex;
    margin: 0 0 0.75rem;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    overflow: hidden;
}
.scope-switch a {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
}
.scope-switch a + a {
    border-left: 1px solid var(--shop-line);
}
.scope-switch a:hover {
    color: var(--bs-emphasis-color);
}
.scope-switch a.active {
    background: var(--shop-accent);
    color: #fff;
    font-weight: 600;
}
.side-filters {
    list-style: none;
    margin: 0;
    padding: 0;
}
.side-filters a,
.side-filters button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.32rem 0.6rem;
    border: 0;
    border-radius: 2px;
    font-weight: 500;
    background: none;
    color: var(--bs-body-color);
    text-align: left;
    text-decoration: none;
    font: inherit;
}
.side-filters a:hover,
.side-filters button:hover {
    background: var(--shop-tile);
}
.side-filters a.active {
    background: var(--shop-surface);
    color: var(--shop-accent);
    box-shadow: inset 3px 0 0 var(--shop-accent);
}
.side-filters .side-sep {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--shop-line);
}
.side-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    background: var(--shop-surface);
    border-radius: 10px;
    padding: 0 0.45rem;
}
.side-filters a.active .side-count {
    background: var(--shop-panel);
}
.side-note {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--shop-line);
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-head h1 {
    margin-bottom: 0.25rem;
}
.summary-tile {
    display: flex;
    flex-direction: column;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 0.6rem 1rem;
    color: var(--bs-body-color);
    text-decoration: none;
}
.summary-tile:hover {
    border-color: var(--shop-accent);
    color: var(--bs-body-color);
}
.summary-tile strong {
    font-family: var(--shop-heading-font);
    font-size: 1.2rem;
    color: var(--bs-emphasis-color);
    font-variant-numeric: tabular-nums;
}

.pill {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pill-ok { color: var(--shop-ok); background: var(--shop-ok-bg); }
.pill-low { color: var(--shop-low); background: var(--shop-low-bg); }
.pill-out { color: var(--shop-out); background: var(--shop-out-bg); }
.pill-incoming { color: var(--shop-inc); background: var(--shop-inc-bg); }
.pill-unknown { color: var(--bs-secondary-color); background: var(--shop-tile); }

.table-wrap {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    overflow: hidden;
}
.orders-list {
    width: 100%;
}
.orders-list th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
    font-weight: 600;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--shop-line);
    background: var(--shop-panel);
    white-space: nowrap;
}
.orders-list td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--shop-line);
    vertical-align: middle;
}
.orders-list tr:last-child td {
    border-bottom: 0;
}
.orders-list tbody tr:hover {
    background: var(--shop-panel);
}
.orders-list .num,
.order-lines .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.col-order a {
    color: var(--bs-emphasis-color);
    font-weight: 600;
    text-decoration: none;
}
.col-order a:hover {
    color: var(--shop-accent);
}
.col-order .ref {
    display: block;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    margin-top: 0.15rem;
}
.is-cancelled .col-order a,
.is-cancelled .num {
    color: var(--bs-secondary-color);
    text-decoration: line-through;
}
.col-track {
    white-space: nowrap;
}
.track {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
    text-decoration: none;
}
.track .bi {
    font-size: 0.75em;
}
.track-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}
.pager {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.pager .pagination {
    --bs-pagination-color: var(--bs-body-color);
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-color: var(--shop-line);
    --bs-pagination-hover-color: var(--shop-accent);
    --bs-pagination-hover-bg: var(--shop-tile);
    --bs-pagination-hover-border-color: var(--shop-line);
    --bs-pagination-focus-color: var(--shop-accent);
    --bs-pagination-focus-bg: var(--shop-tile);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--shop-accent) 25%, transparent);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--shop-accent);
    --bs-pagination-active-border-color: var(--shop-accent);
    --bs-pagination-disabled-color: var(--bs-tertiary-color);
    --bs-pagination-disabled-bg: var(--bs-body-bg);
    --bs-pagination-disabled-border-color: var(--shop-line);
    flex-wrap: wrap;
    justify-content: center;
}
.pager .page-link {
    min-width: 2.4rem;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.empty-box {
    background: var(--shop-surface);
    border: 1px dashed var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 3rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.9rem;
}
.crumbs a {
    text-decoration: none;
}
.crumbs .here {
    color: var(--bs-emphasis-color);
}
.order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.order-head h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin-bottom: 0.4rem;
}
.order-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.notice {
    border-radius: var(--shop-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.75rem;
}
.notice-out { background: var(--shop-out-bg); color: var(--shop-out); font-weight: 600; }
.notice-info { background: var(--shop-inc-bg); color: var(--shop-inc); }

.timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 2rem;
    padding: 1.1rem 1.25rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
}
.timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}
.timeline li::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: var(--shop-line);
}
.timeline li:first-child::before {
    display: none;
}
.timeline li.done::before {
    background: var(--shop-accent);
}
.tl-dot {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--shop-surface);
    border: 3px solid var(--shop-line);
}
.timeline li.done .tl-dot {
    background: var(--shop-accent);
    border-color: var(--shop-accent);
}
.timeline li.done .tl-dot::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.timeline li.partial .tl-dot {
    background: var(--shop-surface);
}
.timeline li.partial .tl-dot::after {
    display: none;
}
.tl-label {
    font-family: var(--shop-heading-font);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.3rem;
    color: var(--bs-emphasis-color);
}
.timeline li:not(.done) .tl-label {
    color: var(--bs-secondary-color);
}
.tl-date {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    min-height: 1.2em;
}

.order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}
.side-panels {
    display: grid;
    gap: 1.75rem;
}
.panel {
    background: var(--shop-panel);
    border-radius: var(--shop-radius);
    padding: 1.75rem 1.9rem;
}
.panel h2 {
    font-size: 1.25rem;
    margin: 0.25rem 0 1.25rem;
}
.panel h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-secondary-color);
    font-family: var(--shop-body-font);
    font-weight: 600;
    margin: 1.25rem 0 0.75rem;
}
.lines-wrap {
    overflow-x: auto;
}
.order-lines {
    width: 100%;
    font-size: 0.95rem;
}
.order-lines th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
    font-weight: 600;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--shop-line);
    white-space: nowrap;
}
.order-lines th.num {
    text-align: right;
}
.order-lines td {
    padding: 0.75rem 0.6rem;
    border-bottom: 1px solid var(--shop-line);
    vertical-align: top;
}
.order-lines .col-name {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}
.order-lines tr.section td {
    font-weight: 700;
    background: var(--shop-tile);
}
.order-lines tr.note td {
    color: var(--bs-secondary-color);
    font-style: italic;
}
.order-lines tfoot td {
    border: 0;
    padding: 0.4rem 0.6rem;
    color: var(--bs-secondary-color);
    text-align: right;
}
.order-lines tfoot td.num {
    color: var(--bs-emphasis-color);
}
.order-lines tfoot tr:first-child td {
    padding-top: 0.9rem;
}
.order-lines tfoot tr.total td {
    font-weight: 700;
    color: var(--bs-emphasis-color);
    font-size: 1.1rem;
    border-top: 1px solid var(--shop-line);
}
.qty-ok { color: var(--shop-ok); font-weight: 600; }
.qty-part { color: var(--shop-low); font-weight: 600; }
.disc {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--shop-accent);
    background: var(--shop-inc-bg);
    border-radius: 4px;
    padding: 0 0.3rem;
    margin-left: 0.3rem;
}

.shipments {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shipments li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--shop-line);
}
.shipments li:first-child {
    padding-top: 0;
}
.shipments li:last-child {
    border-bottom: 0;
}
.ship-head,
.track-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ship-head strong {
    color: var(--bs-emphasis-color);
}
.track-row {
    margin-top: 0.5rem;
}
.track-row code {
    color: var(--bs-body-color);
    background: var(--shop-tile);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
.panel address {
    line-height: 1.75;
}
.files {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}
.files li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--shop-line);
}
.files li:last-child {
    border-bottom: 0;
}
.file-type {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--shop-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}
.file-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--bs-emphasis-color);
}
.file-name small {
    display: block;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}
.pay-ok { color: var(--shop-ok); font-weight: 600; }
.pay-low { color: var(--shop-low); font-weight: 600; }
.pay-out { color: var(--shop-out); font-weight: 600; }
.pay-incoming { color: var(--shop-inc); font-weight: 600; }
.pay-unknown { color: var(--bs-secondary-color); }

.side-stock {
    margin: 0.75rem 0 1.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.9rem;
}
.side-stock .form-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding-left: 0;
}
.side-stock .form-check-input {
    float: none;
    flex: none;
    width: 2.2em;
    height: 1.2em;
    margin: 0;
    cursor: pointer;
    border-color: var(--bs-border-color);
    box-shadow: none;
}
.side-stock .form-check-input:focus-visible {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--shop-accent) 25%, transparent);
}
.side-stock .form-check-input:checked {
    background-color: var(--shop-accent);
    border-color: var(--shop-accent);
}
.side-stock .form-check-label {
    cursor: pointer;
}
.side-all {
    font-family: var(--shop-heading-font);
    font-weight: 600;
}
.side-all:not(.active) {
    color: var(--bs-emphasis-color) !important;
}
.side-sub {
    list-style: none;
    margin: 0.15rem 0 0.35rem 0.85rem;
    padding: 0 0 0 0.5rem;
    border-left: 1px solid var(--shop-line);
}
.side-sub a {
    font-size: 0.92rem;
}
.side-filters a.open:not(.active) {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}
.sort-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.sort-form .form-select {
    width: auto;
}
.subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}
.chip {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 0.4rem 0.9rem;
    color: var(--bs-emphasis-color);
    text-decoration: none;
}
.chip:hover {
    border-color: var(--shop-accent);
    color: var(--bs-emphasis-color);
}
.chip span {
    color: var(--bs-secondary-color);
    margin-left: 0.25rem;
}
.products-list {
    width: 100%;
}
.products-list th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--shop-line);
    background: var(--shop-panel);
    white-space: nowrap;
}
.products-list td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--shop-line);
    vertical-align: middle;
}
.products-list tr:last-child td {
    border-bottom: 0;
}
.products-list tbody tr:hover {
    background: var(--shop-panel);
}
.products-list .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.products-list .col-img {
    width: 76px;
}
.col-img img,
.noimg {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}
.noimg {
    background: var(--shop-tile);
}
.col-name a {
    color: var(--bs-emphasis-color);
    font-weight: 600;
    text-decoration: none;
}
.col-name a:hover {
    color: var(--shop-accent);
}
.code {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin-top: 0.15rem;
}
.price-own {
    color: var(--bs-emphasis-color);
    font-weight: 700;
}

.product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}
.gallery-main {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}
.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-zoom {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.gallery-zoom img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.zoom-hint {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.gallery-zoom:hover .zoom-hint,
.gallery-zoom:focus-visible .zoom-hint {
    opacity: 1;
}
.photo-zoom .modal-content {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 0;
}
.photo-zoom .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    padding: 0.6rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    filter: none;
    opacity: 1;
}
.zoom-stage {
    height: min(85vh, 1100px);
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: zoom-in;
}
.zoom-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    transition: transform 0.2s ease;
}
.zoom-stage.zoomed {
    cursor: zoom-out;
    touch-action: none;
}
.zoom-stage.zoomed img {
    transform: scale(2.5);
}
.zoom-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.25rem;
}
.zoom-nav:hover {
    background: rgba(0, 0, 0, 0.75);
}
.zoom-nav.prev { left: 0.75rem; }
.zoom-nav.next { right: 0.75rem; }
.zoom-caption {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
    pointer-events: none;
}
.noimg-large {
    background: var(--shop-tile);
    color: var(--bs-secondary-color);
}
.thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}
.thumb {
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.thumb.active {
    border-color: var(--shop-accent);
}
.thumb img {
    display: block;
    object-fit: contain;
}
.summary .code {
    margin: 0.4rem 0 0.75rem;
    color: var(--bs-tertiary-color);
}
.summary h1 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0.9rem;
}
.lead-text {
    margin: 2rem 0 2.5rem;
}
.prices {
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    overflow: hidden;
    margin: 0 0 1.25rem;
}
.prices > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--shop-line);
}
.prices > div:last-child {
    border-bottom: 0;
}
.prices dt {
    font-weight: 400;
}
.prices dd {
    margin: 0;
    color: var(--bs-emphasis-color);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.prices .own {
    background: var(--shop-panel);
}
.prices .own dt {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}
.prices .own dd {
    font-family: var(--shop-heading-font);
    font-size: 1.35rem;
    color: var(--shop-accent);
}
.stock-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin: 2rem 0 0.9rem;
    font-size: 0.85rem;
    color: var(--bs-body-color);
}
.stock-line .dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bs-secondary-color);
}
.stock-line.stock-ok .dot { background: var(--shop-ok); }
.stock-line.stock-low .dot { background: var(--shop-low); }
.stock-line.stock-out .dot { background: var(--shop-out); }
.stock-line.stock-incoming .dot { background: var(--shop-inc); }
.tile-stock .stock-line,
.products-list .stock-line {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: 0;
    white-space: nowrap;
}
.stock-line .stock-detail {
    flex-basis: 100%;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
}
.product-panels {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.file-thumb img {
    display: block;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 1100px) {
    .product-card {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 991.98px) {
    .side-sub {
        display: none;
    }
}
@media (max-width: 820px) {
    .products-list,
    .products-list tbody,
    .products-list tr,
    .products-list td {
        display: block;
    }
    .products-list thead {
        display: none;
    }
    .products-list tr {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 0 0.75rem;
        background: var(--shop-panel);
        border: 1px solid var(--shop-line);
        border-radius: var(--shop-radius);
        padding: 0.75rem;
        margin-bottom: 0.6rem;
    }
    .products-list td,
    .products-list tr:last-child td {
        padding: 0.15rem 0;
        border: 0;
    }
    .products-list .col-img {
        grid-row: span 6;
        width: auto;
    }
    .products-list td[data-label] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
    }
    .products-list td[data-label]::before {
        content: attr(data-label);
        color: var(--bs-secondary-color);
        font-weight: 400;
        font-size: 0.85rem;
    }
    .product-card {
        padding: 1rem;
    }
    .page-head .sort-form {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .order-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 991.98px) {
    .account-layout {
        grid-template-columns: minmax(0, 1fr);
        background: var(--shop-page-bg);
    }
    .account-side {
        position: static;
        height: auto;
        overflow: visible;
        background: var(--shop-panel);
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--shop-line);
    }
    .account-side .side-title,
    .side-note {
        display: none;
    }
    .account-side nav {
        display: flex;
        gap: 0.25rem;
        overflow-x: auto;
    }
    .side-filters {
        display: flex;
        gap: 0.25rem;
    }
    .side-filters a,
    .side-filters button,
    .side-filters .side-sep {
        white-space: nowrap;
        margin: 0;
        padding-top: 0.42rem;
        border: 0;
    }
    .side-filters a.active {
        box-shadow: inset 0 -3px 0 var(--shop-accent);
    }
    .account-content {
        padding: 1.25rem 1rem 3rem;
    }
}
@media (max-width: 820px) {
    .table-wrap {
        background: none;
        border: 0;
        overflow: visible;
    }
    .orders-list,
    .orders-list tbody,
    .orders-list tr,
    .orders-list td {
        display: block;
    }
    .orders-list thead {
        display: none;
    }
    .orders-list tr {
        background: var(--shop-panel);
        border: 1px solid var(--shop-line);
        border-radius: var(--shop-radius);
        padding: 0.9rem 1rem;
        margin-bottom: 0.75rem;
    }
    .orders-list td,
    .orders-list tr:last-child td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.3rem 0;
        border: 0;
    }
    .orders-list td.col-order {
        display: block;
        margin-bottom: 0.4rem;
    }
    .orders-list td[data-label]::before {
        content: attr(data-label);
        color: var(--bs-secondary-color);
        font-size: 0.85rem;
    }
    .timeline {
        padding: 1rem 0.5rem;
    }
    .tl-label {
        font-size: 0.75rem;
    }
    .tl-date {
        font-size: 0.7rem;
    }
    .panel {
        padding: 1.25rem;
    }
    .order-lines thead {
        display: none;
    }
    .order-lines,
    .order-lines tbody,
    .order-lines tr,
    .order-lines td,
    .order-lines tfoot {
        display: block;
    }
    .order-lines tbody tr {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--shop-line);
    }
    .order-lines td {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        border: 0;
        padding: 0.1rem 0;
        text-align: right;
    }
    .order-lines td.col-name {
        display: block;
        text-align: left;
        margin-bottom: 0.2rem;
    }
    .order-lines tr.section td,
    .order-lines tr.note td {
        display: block;
        text-align: left;
        padding: 0.3rem 0.5rem;
    }
    .order-lines td[data-label]::before {
        content: attr(data-label);
        color: var(--bs-secondary-color);
        font-size: 0.85rem;
    }
    .order-lines tfoot tr {
        display: flex;
        justify-content: space-between;
    }
    .order-lines tfoot td {
        display: block;
        padding: 0.3rem 0;
    }
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(110px, 35%) 1fr;
    gap: 8px 16px;
}
.detail-list dt,
.partner-form .form-label {
    font-weight: 400;
    color: var(--bs-secondary-color);
}
.detail-list dd,
.partner-form .form-control,
.partner-form .form-select,
.partner-form .form-control-plaintext {
    font-weight: 500;
}
.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.detail-list .detail-list-full {
    grid-column: 1 / -1;
}
.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--shop-accent);
    border-color: var(--shop-accent);
}
.form-check-input:focus {
    border-color: var(--shop-accent);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--shop-accent) 25%, transparent);
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-link-color);
    --bs-btn-border-color: var(--shop-accent);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--shop-accent);
    --bs-btn-hover-border-color: var(--shop-accent);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--shop-accent);
    --bs-btn-active-border-color: var(--shop-accent);
    --bs-btn-disabled-color: var(--bs-link-color);
    --bs-btn-disabled-border-color: var(--shop-accent);
}
.form-optional {
    font-size: 0.85em;
    opacity: 0.75;
}
.partner-form .form-control-plaintext {
    padding-top: 0;
}
.newsletter-topics {
    border: 0;
    margin: 0;
    padding: 0;
}
.newsletter-topics .btn-check:not(:checked) + .btn .bi {
    display: none;
}
.newsletter-topics .btn-check:disabled + .btn {
    opacity: 0.4;
}

.nav-cart {
    position: relative;
}
.cart-count {
    display: inline-block;
    min-width: 1.4em;
    padding: 0 0.4em;
    margin-left: 0.2rem;
    border-radius: 999px;
    background: var(--shop-accent);
    color: var(--bs-white);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4em;
    text-align: center;
}
.qty-input {
    width: 5.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.add-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.add-form .qty-input {
    width: 4.5rem;
}
.add-form-large {
    flex-wrap: wrap;
    margin: 1rem 0 0.25rem;
}
.add-form-large .qty-input {
    width: 6rem;
}
.products-list .col-buy {
    width: 1%;
    white-space: nowrap;
}
.shop-flow .page-head {
    margin-bottom: 1.25rem;
}
.cart-lines .col-img {
    width: 72px;
}
.cart-lines td {
    vertical-align: middle;
}
.cart-lines .col-name .pill {
    margin-top: 0.35rem;
}
.cart-lines .col-remove {
    width: 1%;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.cart-summary {
    position: sticky;
    top: calc(68px + 1rem);
}
.totals {
    margin: 0 0 1rem;
}
.totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}
.totals dt {
    font-weight: 400;
    color: var(--bs-secondary-color);
}
.totals dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    color: var(--bs-emphasis-color);
}
.totals .subtotal {
    border-top: 1px solid var(--shop-line);
    margin-top: 0.4rem;
    padding-top: 0.6rem;
}
.totals .subtotal dt,
.totals .subtotal dd {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}
.totals .total {
    border-top: 1px solid var(--shop-line);
    margin-top: 0.4rem;
    padding-top: 0.75rem;
}
.totals .total dt,
.totals .total dd {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bs-emphasis-color);
}
.summary-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}
.summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
}
.summary-lines li span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.address-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.address-choice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
    cursor: pointer;
}
.address-choice:has(input:checked) {
    border-color: var(--shop-accent);
    box-shadow: inset 0 0 0 1px var(--shop-accent);
}
.address-choice .form-check-input {
    flex: none;
    margin-top: 0.2rem;
}
.vat-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}
.prices .vat-tag {
    display: inline;
    margin-left: 0.35rem;
}
.address-choice.is-disabled {
    cursor: default;
    opacity: 0.55;
}
.address-choice .kicker,
.address-card .kicker {
    display: block;
}

.address-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.address-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
}
.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.address-form {
    max-width: 640px;
}
.address-card.is-default {
    border-color: var(--shop-accent);
    box-shadow: inset 0 0 0 1px var(--shop-accent);
}
.notice-low { background: var(--shop-low-bg); color: var(--shop-low); font-weight: 600; }
.notice-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
@media (max-width: 1100px) {
    .cart-summary {
        position: static;
    }
}
@media (max-width: 820px) {
    .cart-lines td.col-img {
        display: none;
    }
    .cart-lines td.col-remove {
        justify-content: flex-end;
    }
    .products-list .col-buy {
        width: auto;
        grid-column: 2;
    }
}

.footer-inner {
    padding-inline: clamp(16px, 2.2vw, 32px);
}
.site-footer {
    flex-shrink: 0;
    margin-top: 40px;
    background: var(--shop-footer-bg);
    color: var(--shop-footer-ink);
    border-top: 1px solid var(--shop-nav-line);
    font-size: 0.875rem;
}
.site-footer a {
    color: var(--shop-footer-ink);
}
.site-footer a:hover {
    color: var(--shop-accent-strong);
}
.footer-logo {
    height: 28px;
    width: auto;
}
.footer-head {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shop-footer-head);
    margin-bottom: 12px;
}
.footer-bottom {
    border-top: 1px solid var(--shop-nav-line);
    font-size: 0.8rem;
}

.list-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.view-switch {
    display: flex;
    border: 1px solid var(--shop-line);
    border-radius: min(var(--shop-radius), 8px);
    overflow: hidden;
}
.view-switch a {
    padding: 0.3rem 0.6rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
    line-height: 1;
}
.view-switch a + a {
    border-left: 1px solid var(--shop-line);
}
.view-switch a.active {
    background: var(--shop-accent);
    color: #fff;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 1399.98px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}
.product-tile {
    display: flex;
    flex-direction: column;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.product-tile:hover {
    border-color: var(--shop-accent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.tile-img {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    padding: 1rem;
}
.tile-img img,
.tile-img .noimg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid var(--shop-line);
}
.tile-body .code {
    font-size: 0.7rem;
    color: var(--bs-tertiary-color);
}
.tile-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.tile-name a {
    color: var(--bs-emphasis-color);
    text-decoration: none;
}
.tile-name a:hover {
    color: var(--shop-accent);
}
.tile-stock {
    margin-top: auto;
}
.tile-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
}
.tile-price strong {
    font-family: var(--shop-heading-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--shop-accent);
    font-variant-numeric: tabular-nums;
}
.tile-price s {
    font-size: 0.85rem;
}
.tile-price .vat-tag {
    display: inline;
}
.product-tile .add-form {
    display: flex;
    gap: 0.4rem;
}
.product-tile .add-form .qty-input {
    width: 4.2rem;
    flex: none;
}
.product-tile .add-form .btn {
    flex: 1;
}
.product-panels.single {
    grid-template-columns: 1fr;
}

.side-filters a .side-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.side-filters a .side-count {
    flex: none;
}
.side-more summary {
    list-style: none;
    cursor: pointer;
    padding: 0.42rem 0.6rem;
    font-size: 0.85rem;
    color: var(--shop-accent);
}
.side-more summary::-webkit-details-marker {
    display: none;
}
.side-more summary::after {
    content: "\F282";
    font-family: bootstrap-icons;
    font-size: 0.7rem;
    margin-left: 0.35rem;
}
.side-more details[open] > summary::after {
    content: "\F286";
}
.side-more details[open] > summary {
    order: 2;
}
.side-more details[open] {
    display: flex;
    flex-direction: column;
}
.side-more .when-open,
.side-more details[open] .when-closed {
    display: none;
}
.side-more details[open] .when-open {
    display: inline;
}
.side-more > details > ul {
    margin: 0;
    padding: 0;
}
.side-search {
    margin: 0 0 0.5rem;
}
.side-search-empty {
    margin: 0 0 0.5rem;
    padding: 0 0.6rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}
.side-back {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}
.side-back:hover {
    color: var(--shop-accent);
}
.side-back .side-label {
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-title-gap {
    margin-top: 1.75rem;
}

.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    flex: none;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    overflow: hidden;
}
.qty-stepper:focus-within {
    border-color: var(--shop-accent);
}
.qty-stepper .qty-input {
    width: 3rem !important;
    flex: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    text-align: center;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper .qty-input::-webkit-inner-spin-button,
.qty-stepper .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-step {
    width: 2rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}
.qty-step:hover {
    background: var(--shop-panel);
}
.add-form-large .qty-stepper .qty-input {
    width: 4rem !important;
}
.add-form-large .qty-step {
    width: 3rem;
    font-size: 1.25rem;
}
.add-form-large .btn {
    padding-inline: 1.75rem;
}

.side-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}
.side-tree .side-tree {
    margin: 0.1rem 0 0.25rem 0.95rem;
    padding-left: 0.55rem;
    border-left: 1px solid var(--shop-line);
}
.tree-row {
    display: flex;
    align-items: center;
}
.tree-row > a {
    flex: 1 1 auto;
    min-width: 0;
}
.tree-toggle,
.tree-spacer {
    flex: none;
    width: 1.4rem;
    height: 1.7rem;
}
.tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    border-radius: 2px;
    cursor: pointer;
}
.tree-toggle:hover {
    color: var(--shop-accent);
    background: var(--shop-tile);
}
.tree-toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.tree-node.open > .tree-row .tree-toggle i {
    transform: rotate(90deg);
}
.tree-kids {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.22s ease;
}
.tree-kids > .side-tree {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.22s;
}
.tree-node.open > .tree-kids {
    grid-template-rows: 1fr;
}
.tree-node.open > .tree-kids > .side-tree {
    visibility: visible;
    transition-delay: 0s;
}
.side-tree a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.5rem;
    border-radius: 2px;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}
.side-tree a .side-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.side-tree a .side-count {
    flex: none;
}
.side-tree a:hover {
    background: var(--shop-tile);
}
.side-tree a.active {
    background: var(--shop-surface);
    color: var(--shop-accent);
    box-shadow: inset 3px 0 0 var(--shop-accent);
}
.side-tree a.in-path {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}
.side-tree .side-tree a {
    font-size: 0.92rem;
}
@media (prefers-reduced-motion: reduce) {
    .tree-kids,
    .tree-kids > .side-tree,
    .tree-toggle i {
        transition: none;
    }
}

.catalog-nav-toggle {
    display: none;
}
@media (max-width: 991.98px) {
    .catalog-nav-toggle {
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--shop-line);
        border-radius: var(--shop-radius);
        background: var(--shop-surface);
        color: var(--bs-emphasis-color);
        padding: 0.4rem 0.8rem;
        font-weight: 500;
    }
    .account-side nav.catalog-nav.has-tree {
        display: block;
        overflow: visible;
        margin-top: 0.75rem;
    }
    .js .account-side nav.catalog-nav.has-tree:not(.show) {
        display: none;
    }
    .catalog-nav.has-tree .side-title {
        display: block;
    }
    .catalog-nav.has-tree .side-filters {
        display: block;
    }
    .catalog-nav.has-tree .side-filters a.active {
        box-shadow: inset 3px 0 0 var(--shop-accent);
    }
}

.side-filters a.active,
.side-tree a.active {
    background: var(--shop-accent);
    color: #fff;
    box-shadow: none;
}
.side-filters a.active .side-count,
.side-tree a.active .side-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.side-filters a.active:hover,
.side-tree a.active:hover {
    background: var(--shop-accent-strong);
}

[data-vies-status]:empty {
    display: none;
}
