/* Desktop catalogue navigation (templates/partials/_catalog_navigation.html). */
.catalog-nav {
    display: none;
}
@media (min-width: 768px) {
    .catalog-nav {
        position: relative;
        container-type: inline-size;
        display: flex;
        align-items: center;
        gap: 14px;
        border-top: 1px solid #dce5e7;
        padding-top: 12px;
        color: #183b4c;
        font-size: 0.875rem;
    }
}
.catalog-nav summary { list-style: none; cursor: pointer; }
.catalog-nav summary::-webkit-details-marker { display: none; }
.catalog-nav__catalog { flex: none; }

/* The button borrows what the header already has: the navy of the logo
   wordmark, the corner radius of the cart and account buttons, and on hover
   or while open the emerald the search button turns. */
.catalog-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px 0 14px;
    border-radius: 12px;
    background: #12394b;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .15s ease;
}
.catalog-nav__trigger:hover,
.catalog-nav__catalog[open] > .catalog-nav__trigger { background: #047857; }
.catalog-nav__grid-icon { flex: none; width: 16px; height: 16px; }
.catalog-nav__chevron {
    flex: none;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
}
.catalog-nav__catalog[open] > summary > .catalog-nav__chevron {
    transform: translateY(1px) rotate(225deg);
}

/* Shortcut links stand next to the button instead of being spread across the
   row. The row is one line high and wraps: a link that does not fit drops out
   of sight whole rather than being cut in half, whatever the language. */
.catalog-nav__shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 2px;
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}
.catalog-nav__shortcut a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #2f495a;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.catalog-nav__shortcut a:hover,
.catalog-nav__shortcut a[aria-current="page"] { background: #ecfdf5; color: #047857; }

/* Panel: sections on the left, the departments of one section on the right.
   In the markup every section button is followed by its own pane, so Tab
   goes from a section into its departments; the grid places all buttons in
   the first column and stacks every pane over the second. The trailing 1fr
   row takes the height the buttons leave and holds the model link. */
.catalog-nav__panel {
    --rail: 16.5rem;
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    z-index: 50;
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    grid-template-rows: repeat(10, min-content) minmax(0, 1fr);
    /* One height for every section, so the panel does not jump while the
       pointer runs down the sections; a section that needs a little more
       grows instead of showing a scrollbar, and only a short window scrolls. */
    min-height: min(34.5rem, max(24rem, 100vh - 15rem));
    max-height: max(24rem, 100vh - 15rem);
    overflow: hidden;
    border: 1px solid #d6e2e0;
    border-radius: 14px;
    background: linear-gradient(90deg, #f5f8f7 calc(var(--rail) - 1px), #e2e9e7 calc(var(--rail) - 1px) var(--rail), #fff var(--rail));
    box-shadow: 0 18px 40px -18px rgba(15, 45, 56, .35);
}
.catalog-nav__catalog:not([open]) > .catalog-nav__panel { display: none; }
.catalog-nav__railitem {
    grid-column: 1;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    position: relative;
    margin: 0 10px;
    padding: 10px 12px 10px 22px;
    border-radius: 10px;
    color: #2f495a;
    text-align: left;
}
.catalog-nav__railitem:first-child { margin-top: 10px; }
.catalog-nav__railitem svg { grid-row: 1 / span 2; width: 22px; height: 22px; color: #6b8491; }
.catalog-nav__railitem b { font-size: .90625rem; line-height: 1.25; font-weight: 600; color: #183b4c; }
.catalog-nav__railitem small { grid-column: 2; font-size: .78125rem; line-height: 1.3; color: #5d7480; }
.catalog-nav__railitem small:empty { display: none; }
.catalog-nav__railitem.is-active {
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 45, 56, .08);
}
/* The active mark is the short straight bar the specification groups on the
   product page carry (h-6 w-1 rounded-full). Never a coloured edge drawn on
   the rounded box itself (inset shadow, border-left): it bends round the
   corners into a bracket, which the owner rejected on sight (2026-11-25). */
.catalog-nav__railitem.is-active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    width: 4px;
    height: 24px;
    margin-top: -12px;
    border-radius: 9999px;
    background: #059669;
}
.catalog-nav__railitem.is-active b { color: #065f46; }
.catalog-nav__railitem.is-active svg { color: #059669; }
.catalog-nav__pane {
    display: none;
    grid-column: 2;
    grid-row: 1 / -1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 26px 22px;
}
.catalog-nav__pane.is-active { display: block; }
.catalog-nav__pane h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dce5e7;
    font-size: 1.0625rem;
    line-height: 1.3;
    font-weight: 700;
}
.catalog-nav__blocks { columns: 4; column-gap: 26px; }
.catalog-nav__block { break-inside: avoid; margin: 0 0 18px; padding: 0; list-style: none; }
.catalog-nav__block a {
    display: block;
    padding: 3.5px 0;
    color: #2f495a;
    font-size: .84375rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.catalog-nav__block li:first-child a { padding-bottom: 6px; color: #183b4c; font-size: .90625rem; font-weight: 700; }
.catalog-nav__block a:hover { color: #047857; text-decoration: underline; text-underline-offset: 3px; }
.catalog-nav__more a { color: #047857; font-weight: 600; }
.catalog-nav__model {
    grid-column: 1;
    grid-row: -2 / -1;
    align-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px;
    padding: 12px 14px;
    border: 1px solid #bfe3d0;
    border-radius: 10px;
    background: #fff;
    color: #065f46;
}
.catalog-nav__model:hover { border-color: #059669; background: #ecfdf5; }
.catalog-nav__model svg { flex: none; width: 22px; height: 22px; }
.catalog-nav__model b { display: block; font-size: .875rem; line-height: 1.25; font-weight: 600; }
.catalog-nav__model small { display: block; color: #5d7480; font-size: .78125rem; line-height: 1.3; }
.catalog-nav :is(a, summary, button):focus-visible { outline: 2px solid #067454; outline-offset: 2px; }
.catalog-nav__shortcut a:focus-visible,
.catalog-nav__railitem:focus-visible { outline-offset: -2px; }
@container (max-width: 62rem) {
    .catalog-nav__shortcut:not(.catalog-nav__shortcut--compact) { display: none; }
    .catalog-nav__blocks { columns: 3; }
}
@container (max-width: 50rem) {
    .catalog-nav__shortcut--computers { display: none; }
    .catalog-nav__panel { --rail: 13.5rem; }
    .catalog-nav__railitem small { display: none; }
    .catalog-nav__blocks { columns: 2; }
}
@container (max-width: 44rem) {
    .catalog-nav__shortcut--charging { display: none; }
}
.shop-footer {
    border-top: 1px solid #d6e3df;
    background: #f5f8f7;
    color: #284454;
    font-size: .875rem;
}
.shop-footer__inner { max-width: 80rem; margin: auto; padding: 32px clamp(16px, 3vw, 36px) 18px; }
.shop-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.shop-footer__main:has(.shop-footer__repairs) {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
}
.shop-footer address { display: grid; gap: 4px; margin-top: 14px; font-style: normal; }
.shop-footer a { width: fit-content; color: inherit; }
.shop-footer a:hover { color: #076447; text-decoration: underline; text-underline-offset: 3px; }
.shop-footer a:focus-visible { outline: 2px solid #067454; outline-offset: 2px; }
.shop-footer__links h2 { margin: 0 0 9px; color: #143a49; font-size: 1rem; font-weight: 700; }
.shop-footer__links li { margin: 0; line-height: 1.4; }
.shop-footer__links li a { display: inline-flex; align-items: center; min-height: 28px; }
.shop-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #d6e3df;
    color: #4c626a;
    font-size: .75rem;
}
.shop-footer__company, .shop-footer__policies, .shop-footer__partners, .shop-footer__payment {
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px;
}
.shop-footer__company span:first-child { font-weight: 650; }
.shop-footer__payment { margin-inline-start: auto; gap: 12px; }
.shop-footer__payment picture { display: inline-flex; align-items: center; }
.shop-footer__payment img { max-height: 23px; width: auto; }
.shop-footer__partners { margin-top: 18px; }
.shop-footer__partners img { max-height: 25px; width: auto; }
@media (max-width: 700px) {
    .shop-footer__inner { padding-top: 22px; }
    .shop-footer .shop-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .shop-footer__contact { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
    .shop-footer__contact address { margin: 0; font-size: .8125rem; }
    .shop-footer__links li a { min-height: 34px; }
    .shop-footer__repairs { grid-column: 1/-1; }
    .shop-footer__repairs ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .shop-footer__repairs h2 { margin-bottom: 3px; }
    .shop-footer__legal { gap: 8px 16px; margin-top: 16px; }
    .shop-footer__company { width: 100%; }
}
