/* Procomp page frame: the catalogue menu of the header, then the footer.

   Catalogue menu (templates_procomp/partials/_catalog_menu.html).
   One piece of markup, two layouts. From 768 px: a row under the header and a
   panel that hangs from the catalogue button. The rail keeps the dark of the
   header and the section under the pointer opens as a white sheet beside it,
   so the header reads as growing a sidebar. Below 768 px the same panel is
   the drawer the burger opens and the sections unfold in place.

   The two layouts are written as two separate media blocks on purpose: no
   rule of one has to be undone in the other. */
.pc-nav summary { list-style: none; cursor: pointer; }
.pc-nav summary::-webkit-details-marker { display: none; }
.pc-nav__shortcuts, .pc-nav__block { margin: 0; padding: 0; list-style: none; }
.pc-nav button { font: inherit; }
.pc-nav__icon { flex: none; width: 21px; height: 21px; }
.pc-nav__pane { display: none; }
.pc-nav__pane.is-active { display: block; }
.pc-nav :is(a, summary, button):focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
.pc-nav__pane :is(a, button):focus-visible { outline-color: #15803d; }

@media (min-width: 768px) {
    .pc-nav { border-top: 1px solid #334155; font-size: .875rem; }
    .pc-nav__bar {
        --rail: 17rem;
        position: relative;
        display: flex;
        align-items: center;
        max-width: 1536px;
        height: 48px;
        margin: 0 auto;
        padding: 0 16px;
    }
    .pc-nav__catalog { flex: none; }
    .pc-nav__scrim, .pc-nav__head, .pc-nav__extras, .pc-nav__fold { display: none; }

    /* The button is as wide as the rail under it. Dark text on the brand
       green: white on #22c55e is 2.2:1 and fails as body-size text. */
    .pc-nav__trigger {
        display: flex;
        align-items: center;
        gap: 10px;
        width: var(--rail);
        height: 48px;
        padding: 0 18px 0 20px;
        background: #22c55e;
        color: #052e16;
        font-size: .9375rem;
        font-weight: 700;
        white-space: nowrap;
        transition: background-color .15s ease;
    }
    .pc-nav__trigger:hover,
    .pc-nav__catalog[open] > .pc-nav__trigger { background: #4ade80; }
    .pc-nav__grid { flex: none; width: 16px; height: 16px; }
    .pc-nav__chevron {
        flex: none;
        width: 7px;
        height: 7px;
        margin-left: auto;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: translateY(-2px) rotate(45deg);
    }
    .pc-nav__catalog[open] > summary > .pc-nav__chevron { transform: translateY(2px) rotate(225deg); }

    /* Links to computing stand beside the button. The row is one line high
       and wraps: a link that does not fit drops out whole, last one first. */
    .pc-nav__shortcuts {
        display: flex;
        flex-wrap: wrap;
        flex: 1;
        min-width: 0;
        height: 48px;
        padding-left: 6px;
        overflow: hidden;
    }
    .pc-nav__shortcuts a {
        display: flex;
        align-items: center;
        height: 48px;
        padding: 0 14px;
        color: #cbd5e1;
        font-weight: 500;
        white-space: nowrap;
        transition: color .15s ease;
    }
    .pc-nav__shortcuts a:hover { color: #fff; }
    .pc-nav__shortcuts a[aria-current="page"],
    .pc-nav__shortcuts a.is-within { color: #fff; box-shadow: inset 0 -2px 0 #22c55e; }
    .pc-nav__shortcuts a:focus-visible { outline-offset: -3px; }
    .pc-nav__builder {
        flex: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 34px;
        margin-left: 12px;
        padding: 0 12px 0 9px;
        border: 1px solid #475569;
        border-radius: 8px;
        color: #86efac;
        font-size: .84375rem;
        font-weight: 600;
        white-space: nowrap;
        transition: border-color .15s ease, color .15s ease;
    }
    .pc-nav__builder:hover { border-color: #22c55e; color: #fff; }
    .pc-nav__builder .pc-nav__icon { width: 18px; height: 18px; }

    /* Panel. In the markup every section button is followed by its own pane;
       the grid places the buttons in the first column and stacks every pane
       over the second. The trailing 1fr row takes the height the buttons
       leave. One height for every section, so the panel does not jump while
       the pointer runs down the rail; a section that needs a little more
       grows, and only a short window scrolls. */
    .pc-nav__panel {
        position: absolute;
        top: 100%;
        left: 16px;
        z-index: 50;
        display: grid;
        grid-template-columns: var(--rail) minmax(0, 1fr);
        grid-template-rows: repeat(16, min-content) minmax(0, 1fr);
        width: min(76rem, 100% - 32px);
        min-height: min(33.5rem, max(22rem, 100vh - 10.5rem));
        max-height: max(22rem, 100vh - 10.5rem);
        overflow: hidden auto;
        overscroll-behavior: contain;
        border-radius: 0 0 14px 14px;
        background: linear-gradient(90deg, #0f172a var(--rail), #fff var(--rail));
        box-shadow: 0 28px 50px -22px rgba(2, 6, 23, .6);
    }
    .pc-nav__tab {
        grid-column: 1;
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        margin-left: 10px;
        padding: 6px 12px 6px 22px;
        border-radius: 10px 0 0 10px;
        color: #cbd5e1;
        font-size: .90625rem;
        font-weight: 500;
        line-height: 1.25;
        text-align: left;
    }
    .pc-nav__tab:first-of-type { margin-top: 10px; }
    .pc-nav__tab:last-of-type { margin-bottom: 10px; }
    .pc-nav__tab .pc-nav__icon { color: #94a3b8; }
    .pc-nav__tab:hover { color: #fff; }
    /* The section shown is a white tab that runs into the sheet. Its mark is
       the short straight bar of the house style, never a coloured edge drawn
       on the rounded box itself (owner, 2026-11-25). */
    .pc-nav__tab.is-active { background: #fff; color: #0f172a; font-weight: 600; }
    .pc-nav__tab.is-active .pc-nav__icon { color: #16a34a; }
    .pc-nav__tab.is-active::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 8px;
        width: 4px;
        height: 24px;
        margin-top: -12px;
        border-radius: 9999px;
        background: #22c55e;
    }
    /* One line parts the computing sections from the general range. */
    .pc-nav__tab--rest { margin-top: 17px; }
    .pc-nav__tab--rest::after {
        content: "";
        position: absolute;
        top: -9px;
        right: 22px;
        left: 12px;
        height: 1px;
        background: #334155;
    }
    .pc-nav__tab:focus-visible { outline-offset: -2px; }

    .pc-nav__pane {
        grid-column: 2;
        grid-row: 1 / -1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 18px 28px;
        color: #0f172a;
    }
    .pc-nav__pane-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 14px;
        padding-bottom: 11px;
        border-bottom: 1px solid #e2e8f0;
    }
    .pc-nav__pane-head h2 { margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; }
    .pc-nav__pane-head a { flex: none; color: #15803d; font-size: .84375rem; font-weight: 600; }
    .pc-nav__blocks { columns: 4; column-gap: 28px; }
    .pc-nav__block { break-inside: avoid; margin-bottom: 18px; }
    .pc-nav__block :is(a, span) {
        display: block;
        padding: 3px 0;
        color: #475569;
        font-size: .84375rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    .pc-nav__block-title :is(a, span) { padding-bottom: 6px; color: #0f172a; font-size: .875rem; font-weight: 700; }
    .pc-nav__more a { color: #15803d; font-weight: 600; }
    .pc-nav__pane a:hover { color: #15803d; text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 768px) and (max-width: 1279.98px) {
    .pc-nav__bar { --rail: 15rem; }
    .pc-nav__blocks { columns: 3; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    .pc-nav__bar { --rail: 13.25rem; }
    .pc-nav__builder { display: none; }
    .pc-nav__shortcuts a { padding: 0 10px; }
    .pc-nav__tab { gap: 10px; padding-left: 20px; font-size: .875rem; }
    .pc-nav__pane { padding: 18px 20px 20px; }
    .pc-nav__blocks { columns: 2; }
}

@media (max-width: 767.98px) {
    .pc-nav__trigger, .pc-nav__shortcuts, .pc-nav__builder, .pc-nav__pane-head h2 { display: none; }
    .pc-nav__scrim { position: fixed; inset: 0; z-index: 40; background: rgba(2, 6, 23, .6); }
    .pc-nav__panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        width: min(23rem, 100%);
        padding: env(safe-area-inset-top) env(safe-area-inset-right) max(16px, env(safe-area-inset-bottom)) 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #0f172a;
        color: #e2e8f0;
        font-size: .9375rem;
        animation: pc-nav-in .2s ease-out;
    }
    .pc-nav__head {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
        padding: 8px 8px 8px 16px;
        border-bottom: 1px solid #1e293b;
        background: #0f172a;
    }
    .pc-nav__head p { margin: 0 auto 0 0; color: #fff; font-size: 1.0625rem; font-weight: 700; }
    .pc-nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        color: #94a3b8;
    }
    .pc-nav__close svg { width: 24px; height: 24px; }
    .pc-nav__tab {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        min-height: 52px;
        padding: 6px 16px;
        /* The row that was tapped stays in view under the sticky head. */
        scroll-margin-top: 68px;
        color: #e2e8f0;
        font-weight: 500;
        line-height: 1.25;
        text-align: left;
    }
    .pc-nav__tab .pc-nav__icon { color: #94a3b8; }
    .pc-nav__tab.is-active { color: #fff; font-weight: 600; }
    .pc-nav__tab.is-active .pc-nav__icon { color: #4ade80; }
    .pc-nav__tab--rest { margin-top: 8px; border-top: 1px solid #1e293b; padding-top: 14px; }
    .pc-nav__fold {
        flex: none;
        width: 8px;
        height: 8px;
        margin: 0 4px 3px auto;
        border: solid #64748b;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
    .pc-nav__tab.is-active .pc-nav__fold { margin-bottom: -4px; border-color: #4ade80; transform: rotate(225deg); }
    /* The links start under the section name, past its icon. */
    .pc-nav__pane { padding: 0 16px 12px 51px; }
    .pc-nav__pane a {
        display: flex;
        align-items: center;
        min-height: 42px;
        color: #cbd5e1;
        font-size: .875rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    .pc-nav__pane-head a, .pc-nav__more a { color: #4ade80; font-weight: 600; }
    .pc-nav__block-title span {
        display: block;
        padding: 14px 0 2px;
        color: #94a3b8;
        font-size: .78125rem;
        font-weight: 600;
    }
    .pc-nav__block-title a { margin-top: 8px; color: #fff; font-weight: 600; }
    .pc-nav__extras {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
        margin-top: 10px;
        padding: 10px 16px 0;
        border-top: 1px solid #1e293b;
    }
    .pc-nav__extra { display: flex; align-items: center; min-height: 44px; color: #94a3b8; font-size: .875rem; }
    .pc-nav__extra--builder { grid-column: 1 / -1; gap: 10px; color: #4ade80; font-weight: 600; }
    .pc-nav__extra--builder .pc-nav__icon { width: 20px; height: 20px; }
}
@keyframes pc-nav-in {
    from { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .pc-nav__panel { animation: none; }
    .pc-nav__trigger, .pc-nav__shortcuts a, .pc-nav__builder { transition: none; }
}

/* Procomp footer (templates_procomp/partials/footer.html).

   The anatomy of the Mobitelas footer (.shop-footer): contacts, three short
   link columns, one line for the company details, the policies and the
   cards. The colours are Procomp's: the dark of the catalogue rail, so the
   page ends the way it begins. */
.pc-footer {
    margin-top: 64px;
    background: #0f172a;
    color: #94a3b8;
    font-size: .875rem;
}
.pc-footer__inner { max-width: 1536px; margin: 0 auto; padding: 36px 16px 20px; }
.pc-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
}
.pc-footer a { width: fit-content; color: inherit; transition: color .15s ease; }
.pc-footer a:hover { color: #4ade80; }
.pc-footer a:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
.pc-footer__contact img { display: block; width: auto; height: 28px; }
.pc-footer address { display: grid; gap: 5px; margin-top: 16px; font-style: normal; }
.pc-footer address a { color: #e2e8f0; }
.pc-footer__links h2 { margin: 0 0 9px; color: #f1f5f9; font-size: .9375rem; line-height: 1.3; font-weight: 600; }
.pc-footer__links ul { margin: 0; padding: 0; list-style: none; }
.pc-footer__links li { margin: 0; line-height: 1.4; }
.pc-footer__links li a { display: inline-flex; align-items: center; min-height: 28px; }
.pc-footer a.pc-footer__builder { color: #4ade80; font-weight: 600; }
.pc-footer a.pc-footer__builder:hover { color: #86efac; }
.pc-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
    padding-top: 16px;
    /* The chat launcher is fixed 16 px from the corner of the window and
       60 px wide: at the end of the page it stood on the card marks. Keep
       that corner of the line free until the window is wide enough for the
       launcher to stand beside the page. */
    padding-inline-end: clamp(0px, 72px - (100vw - 1536px) / 2, 72px);
    border-top: 1px solid #1e293b;
    font-size: .78125rem;
}
.pc-footer__company, .pc-footer__policies, .pc-footer__payment {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 16px;
}
.pc-footer__company span:first-child { color: #cbd5e1; font-weight: 600; }
/* The card marks are drawn for a light ground: Visa's blue all but vanishes
   on this one, so both stand on one small light plate. */
.pc-footer__payment {
    margin-inline-start: auto;
    gap: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f8fafc;
}
.pc-footer__payment picture { display: inline-flex; align-items: center; }
.pc-footer__payment img { width: auto; max-height: 20px; }
@media (max-width: 700px) {
    .pc-footer { margin-top: 40px; }
    .pc-footer__inner { padding-top: 26px; }
    .pc-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .pc-footer__contact { grid-column: 1 / -1; }
    .pc-footer address { margin-top: 12px; }
    .pc-footer__links li a { min-height: 36px; }
    .pc-footer__repairs { grid-column: 1 / -1; }
    .pc-footer__repairs ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
    .pc-footer__repairs h2 { margin-bottom: 3px; }
    .pc-footer__legal { gap: 10px 16px; margin-top: 18px; }
    .pc-footer__company { width: 100%; }
    .pc-footer__payment { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-footer a { transition: none; }
}
