/*
Theme Name: UPS-AKB by 4 Pixels
Theme URI: https://fourpixelsweb.com/
Author: 4 Pixels
Author URI: https://fourpixelsweb.com/
Description: Classic WooCommerce catalog theme for UPS-AKB.
Version: 2.1.0
Text Domain: upsakb
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
    --blue: #1869d5;
    --blue-dark: #1055b8;
    --ink: #262b32;
    --muted: #737e8a;
    --line: #dce4ed;
    --soft: #f6f9ff;
    --white: #fff
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: #fff
}

img {
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    color: var(--blue)
}

button,
input,
select {
    font: inherit
}

button {
    cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px
}

.ctr {
    width: min(1360px, calc(100% - 48px));
    margin-inline: auto
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 23px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    color: #fff;
    background: var(--blue);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: background .2s, border-color .2s
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt{
    background-color: #1869d5 !important;
}
.button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff
}

.button--outline {
    color: var(--blue);
    background: transparent
}

.button--outline:hover {
    color: #fff
}

.button--small {
    min-height: 37px;
    padding: 7px 13px;
    font-size: 12px
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18
}

h2 {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.25
}

h3 {
    font-size: 17px;
    line-height: 1.35
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #f1f3f6
}

.site-header__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 30px
}

.site-brand {
    flex: none;
    width: 190px
}

.site-brand img {
    display: block;
    max-height: 58px;
    width: auto
}

.brand-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 55px;
    padding: 5px 15px;
    background: #e1e3e6;
    color: #4a4d52;
    font-weight: 700;
    letter-spacing: .08em
}

.site-nav {
    flex: 1
}

.site-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 30px);
    padding: 0;
    margin: 0
}

.site-menu li {
    margin: 0
}

.site-menu a {
    font-size: 14px;
    white-space: nowrap
}

.site-menu .current-menu-item>a {
    color: var(--blue)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px
}

.header-phone {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap
}

.menu-toggle {
    display: none
}

.consultation {
    background: #f2f7ff;
    padding: 54px 0
}

.consultation__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px
}

.consultation h2 {
    margin-bottom: 9px
}

.consultation p {
    margin: 0;
    color: var(--muted)
}

.consultation__actions {
    display: flex;
    gap: 15px
}

.site-footer {
    padding: 35px 0
}

.site-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px
}

.site-footer .site-brand {
    width: 180px
}

.site-footer nav {
    padding-top: 13px
}

.site-footer__meta {
    display: grid;
    justify-items: end;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap
}

.site-footer__meta>a {
    font-weight: 700
}

.site-footer__meta small {
    font-size: 12px;
    color: var(--muted)
}

.breadcrumbs {
    padding: 24px 0;
    color: var(--muted);
    font-size: 13px
}

.breadcrumbs a:hover {
    color: var(--blue)
}

.catalog-intro {
    padding-bottom: 34px;
    background: var(--soft)
}

.catalog-intro h1 {
    margin: 8px 0 15px
}

.catalog-intro__description {
    color: var(--muted);
    max-width: 900px
}

.catalog-intro__description p {
    margin: 0
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 75px
}

.filters {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 18px
}

.filters__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 14px
}

.filters__head h2 {
    font-size: 17px;
    margin: 0
}

.filters__head a {
    font-size: 12px;
    color: var(--blue)
}

.filter-group {
    border: 0;
    margin: 0 0 18px;
    padding: 0
}

.filter-group legend,
.filter-select-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px
}

.filter-group label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 5px 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    cursor: pointer
}

.filter-group input {
    accent-color: var(--blue);
    margin: 3px 0 0;
    flex: none
}

.filters select,
.sort-form select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--muted);
    padding: 8px 12px
}

.filters select {
    width: 100%;
    margin-bottom: 18px
}

.filters__submit {
    width: 100%
}

.filters__count {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0 0
}

.catalog-results {
    min-width: 0
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    margin-bottom: 24px
}

.catalog-toolbar__count {
    font-size: 13px;
    color: var(--muted)
}

.sort-form {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 13px
}

.sort-form select {
    min-width: 175px
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.product-card {
    min-width: 0;
    background: var(--soft);
    display: flex;
    flex-direction: column
}

.product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.05;
    background: var(--soft);
    padding: 14px
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 16px 16px
}

.product-card h3 {
    margin: 2px 0 6px
}

.product-card__summary {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 5px
}

.stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px
}

.stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a9b1bc
}

.stock--yes::before {
    background: #1ca378
}

.product-card__bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px
}

.price {
    font-size: 21px;
    font-weight: 700;
    white-space: nowrap
}

.price del {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400
}

.price ins {
    text-decoration: none
}

.catalog-pagination {
    margin-top: 32px
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 4px
}

.woocommerce-pagination .page-numbers.current {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue)
}

.no-products {
    padding: 30px;
    background: var(--soft)
}

.no-products a {
    color: var(--blue)
}

.single-product-page>.ctr {
    padding-bottom: 80px
}

.product-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    margin: 20px 0 55px
}

.product-gallery__main {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    aspect-ratio: 1.27
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px
}

.gallery-thumb {
    border: 2px solid transparent;
    background: var(--soft);
    padding: 5px;
    aspect-ratio: 1.3
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
    border-color: var(--blue)
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.product-summary {
    padding-top: 6px
}

.product-summary h1 {
    font-size: clamp(26px, 2.5vw, 38px);
    margin: 20px 0 12px
}

.product-lead {
    color: var(--muted);
    font-size: 16px
}

.product-lead p {
    margin: 0
}

.product-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 80px
}

.product-purchase .price {
    font-size: clamp(30px, 3vw, 52px)
}

.product-purchase .button {
    min-width: 220px
}

.product-highlights {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 25px
}

.product-highlights>div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    gap: 15px;
    padding: 7px 0
}

.product-highlights dt {
    color: var(--ink)
}

.product-highlights dd {
    margin: 0
}

.product-tabs {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line)
}

.product-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 14px 10px;
    color: var(--ink);
    background: transparent;
    white-space: nowrap
}

.product-tabs button[aria-selected="true"] {
    border-color: var(--blue)
}

.product-panel {
    padding: 24px 0 0;
    line-height: 1.65
}

.product-panel[hidden] {
    display: none
}

.entry-content ul {
    padding-left: 22px
}

.spec-table {
    margin: 0;
    max-width: 850px
}

.spec-table>div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line)
}

.spec-table dt {
    color: var(--muted)
}

.spec-table dd {
    margin: 0
}

.documents-list {
    padding-left: 22px
}

.documents-list a,
.product-panel>a {
    color: var(--blue)
}

.related-products {
    margin-top: 75px
}

.related-products h2 {
    margin-bottom: 28px
}

.product-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

/* Baseline content pages */
.content-page {
    padding-top: 30px;
    padding-bottom: 65px
}

.content-page img {
    height: auto
}

.content-page a:not(.button) {
    color: var(--blue)
}
.upsakb-popup .upsakb-form-grid > p {
    display: contents !important;
    margin: 0 !important;
}

.upsakb-popup .upsakb-form-grid br {
    display: none !important;
}
@media(max-width:1180px) {
    .site-header__inner {
        gap: 20px
    }

    .site-brand {
        width: 150px
    }

    .header-actions {
        gap: 12px
    }

    .site-menu {
        gap: 12px
    }

    .site-menu a {
        font-size: 12px
    }

    .product-card__bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .product-card__bottom .button {
        width: 100%
    }

    .site-footer__inner {
        flex-wrap: wrap
    }

    .site-footer nav {
        order: 3;
        width: 100%
    }
}

@media(max-width:900px) {
    .ctr {
        width: min(100% - 32px, 1360px)
    }

    .site-header__inner {
        min-height: 72px;
        flex-wrap: wrap
    }

    .site-brand {
        width: 155px
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        border: 0;
        background: transparent
    }

    .menu-toggle span {
        height: 2px;
        background: var(--ink);
        width: 25px
    }

    .site-nav {
        display: none;
        order: 4;
        flex: 0 0 100%;
        padding: 5px 0 18px
    }

    .site-nav.is-open {
        display: block
    }

    .site-nav .site-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .site-nav a {
        display: block;
        padding: 9px 0;
        font-size: 15px
    }

    .header-actions {
        margin-left: 0
    }

    .header-actions .button {
        display: none
    }

    .catalog-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .product-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .product-overview {
        gap: 20px
    }

    .product-purchase {
        margin-bottom: 35px;
        flex-wrap: wrap
    }

    .site-footer__meta {
        white-space: normal
    }
}

@media(max-width:660px) {
    .site-header__inner {
        gap: 10px
    }

    .site-brand {
        width: 125px
    }

    .brand-placeholder {
        min-height: 45px
    }

    .header-phone {
        font-size: 12px
    }

    .catalog-intro {
        padding-bottom: 25px
    }

    .breadcrumbs {
        padding: 17px 0;
        line-height: 1.5
    }

    .catalog-layout {
        display: block;
        padding-top: 24px;
        padding-bottom: 50px
    }

    .filters {
        margin-bottom: 23px
    }

    .filter-group {
        margin-bottom: 12px
    }

    .catalog-toolbar {
        gap: 12px;
        align-items: flex-start
    }

    .catalog-toolbar__count {
        display: none
    }

    .sort-form {
        margin-left: auto
    }

    .product-grid {
        gap: 10px
    }

    .product-card__image {
        padding: 8px
    }

    .product-card__body {
        padding: 0 10px 12px
    }

    .product-card h3 {
        font-size: 14px
    }

    .product-card__summary,
    .stock {
        font-size: 11px
    }

    .product-card .price {
        font-size: 16px
    }

    .product-card__bottom .button {
        font-size: 11px;
        padding: 7px 8px
    }

    .product-overview {
        grid-template-columns: 1fr;
        margin: 10px 0 32px
    }

    .product-summary h1 {
        margin: 15px 0 10px
    }

    .product-purchase {
        margin: 24px 0
    }

    .product-purchase .button {
        min-width: 170px
    }

    .product-highlights {
        padding: 12px 16px
    }

    .product-highlights>div {
        font-size: 13px
    }

    .product-tabs {
        gap: 12px
    }

    .product-tabs button {
        font-size: 13px
    }

    .related-products {
        margin-top: 45px
    }

    .consultation {
        padding: 35px 0
    }

    .consultation__inner,
    .consultation__actions {
        flex-direction: column;
        align-items: stretch
    }

    .consultation__inner {
        gap: 22px
    }

    .consultation__actions {
        gap: 10px
    }

    .site-footer__inner {
        display: block
    }

    .site-footer nav {
        padding: 25px 0
    }

    .site-footer .site-menu {
        flex-wrap: wrap;
        gap: 10px 20px
    }

    .site-footer__meta {
        justify-items: start
    }

    .site-footer__meta small {
        line-height: 1.5
    }
}

@media(max-width:380px) {
    .header-phone {
        font-size: 11px
    }

    .product-grid {
        grid-template-columns: 1fr
    }

    .product-card__bottom {
        flex-direction: row;
        align-items: center
    }

    .product-card__bottom .button {
        width: auto
    }

    .product-highlights>div {
        grid-template-columns: 1fr
    }

    .sort-form select {
        min-width: 145px
    }
}

/* Переключатель равноправных разделов над фильтром и каталогом. */
.catalog-layout > .catalog-switch {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.catalog-switch__link,
.catalog-switch__disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 20px;
    border: 1px solid var(--line, #dce4ed);
    border-radius: 4px;
    background: #fff;
    color: var(--ink, #262b32);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.catalog-switch__link:hover,
.catalog-switch__link.is-active {
    border-color: var(--blue, #1869d5);
    background: var(--blue, #1869d5);
    color: #fff;
}

.catalog-switch__disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 660px) {
    .catalog-layout > .catalog-switch {
        margin-bottom: 22px;
    }

    .catalog-switch__link,
    .catalog-switch__disabled {
        flex: 1 1 auto;
        padding-inline: 12px;
        font-size: 13px;
    }
}

