/* ==========================================================================
   Volt City — catalog views
   Default: list. Alternatives: compact list and grid.
   ========================================================================== */

/* View switcher */
.vc-catalog .vc-catalog-viewbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 16px;
}

.vc-catalog-viewbar__label {
    color: var(--vc-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vc-view-switch {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: var(--vc-white);
    border: 1px solid var(--vc-line);
    border-radius: 12px;
}

.vc-view-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--vc-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s var(--vc-ease), background-color 0.2s var(--vc-ease);
}

.vc-view-switch__btn:hover {
    color: var(--vc-dark);
    background: var(--vc-light);
}

.vc-view-switch__btn.is-active {
    color: var(--vc-accent);
    background: var(--vc-accent-soft);
}

.vc-view-switch__btn:focus-visible {
    outline: 3px solid var(--vc-accent);
    outline-offset: 2px;
}

.vc-view-switch__btn svg {
    width: 20px;
    height: 20px;
}


/* Верхняя навигация — штатные кнопки Blocksy (page-numbers), свой только счётчик. */
.vc-catalog-viewbar .ct-pagination {
    margin: 0;
}

.vc-catalog-pager {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.vc-catalog-pager__count {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    color: var(--vc-muted, rgba(43, 47, 54, 0.55));
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Стрелка «назад» — базовая SVG Blocksy, «вперёд» — она же зеркально. */
.vc-catalog-pager .next svg {
    transform: scaleX(-1);
}

.vc-catalog-pager .page-numbers.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 767px) {
    .vc-catalog-viewbar .ct-pagination {
        display: none;
    }
}

/* The loop is a flex column in list mode, regardless of the old grid rules. */
.vc-catalog ul.products {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-catalog ul.products::before,
.vc-catalog ul.products::after {
    display: none;
}

.vc-catalog ul.products li.product.vc-product-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    text-align: left;
    background: var(--vc-white);
    border: 1px solid var(--vc-line);
    border-radius: 16px;
    transition:
        border-color 0.25s var(--vc-ease),
        box-shadow 0.25s var(--vc-ease);
}

@media (hover: hover) {
    .vc-catalog ul.products li.product.vc-product-card:hover {
        border-color: var(--vc-line-strong);
        box-shadow: 0 12px 30px rgba(43, 47, 54, 0.08);
        transform: none;
    }
}

/* Shared card parts */
.vc-catalog ul.products li.product .vc-product-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 10px;
    overflow: hidden;
    background: var(--vc-light);
    border-radius: 12px;
    text-decoration: none;
}

.vc-catalog ul.products li.product .vc-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    aspect-ratio: 1 / 1 !important;
    background: transparent;
}

.vc-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--vc-white);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    background: var(--vc-dark);
    border-radius: 999px;
}

.vc-catalog ul.products li.product .vc-product-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "meta meta"
        "title title"
        "excerpt excerpt"
        "rating rating"
        "price actions"
        "stock actions";
    gap: 4px 20px;
    align-content: start;
    min-width: 0;
}

.vc-catalog ul.products li.product .vc-product-card__meta {
    grid-area: meta;
    margin: 0 0 2px;
    color: var(--vc-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vc-catalog ul.products li.product .vc-product-card__title {
    display: -webkit-box;
    grid-area: title;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--vc-dark);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vc-catalog ul.products li.product .vc-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.vc-catalog ul.products li.product .vc-product-card__title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--vc-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.vc-catalog ul.products li.product .vc-product-card__title a:focus-visible {
    outline: 3px solid var(--vc-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.vc-catalog ul.products li.product .vc-product-card__excerpt {
    display: -webkit-box;
    grid-area: excerpt;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--vc-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vc-catalog ul.products li.product .vc-product-card__rating {
    grid-area: rating;
    margin-top: 4px;
    color: var(--vc-dark);
    font-size: 0.8125rem;
}

.vc-catalog ul.products li.product .vc-product-card__rating .star-rating {
    margin: 0;
}

.vc-catalog ul.products li.product .vc-product-card__price {
    display: flex;
    grid-area: price;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 4px 0 0;
    padding: 0;
    color: var(--vc-dark);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.vc-catalog ul.products li.product .vc-product-card__price .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.vc-catalog ul.products li.product .vc-product-card__price del {
    color: var(--vc-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.vc-catalog ul.products li.product .vc-product-card__price ins {
    color: inherit;
    font-size: 1.375rem;
    font-weight: 700;
    text-decoration: none;
}

.vc-catalog ul.products li.product .vc-product-card__stock {
    grid-area: stock;
    margin: 0;
    color: var(--vc-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.vc-catalog ul.products li.product .vc-product-card__stock p {
    margin: 0;
}

.vc-catalog ul.products li.product .vc-product-card__stock .stock.in-stock {
    color: var(--vc-muted);
}

.vc-catalog ul.products li.product .vc-product-card__actions {
    display: flex;
    grid-area: actions;
    flex-direction: column;
    align-self: end;
    justify-content: flex-end;
    min-width: 250px;
}

.vc-catalog ul.products li.product .vc-product-card__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.vc-qty {
    display: inline-flex;
    align-items: center;
    height: 44px;
    overflow: hidden;
    background: var(--vc-white);
    border: 1px solid var(--vc-line);
    border-radius: 10px;
}

.vc-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--vc-dark);
    font: inherit;
    font-size: 18px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s var(--vc-ease);
}

.vc-qty__btn:hover {
    background: var(--vc-light);
}

.vc-qty__btn:focus-visible {
    outline: 3px solid var(--vc-accent);
    outline-offset: -3px;
}

.vc-qty__input {
    width: 46px;
    height: 44px;
    padding: 0;
    color: var(--vc-dark);
    font: inherit;
    font-size: 1rem;
    text-align: center;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--vc-line);
    border-left: 1px solid var(--vc-line);
    border-radius: 0;
    -moz-appearance: textfield;
}

.vc-qty__input::-webkit-outer-spin-button,
.vc-qty__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.vc-qty__input:focus {
    outline: 2px solid var(--vc-accent);
    outline-offset: -4px;
}

.vc-catalog ul.products li.product .vc-product-card__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--vc-white);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: var(--vc-accent);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s var(--vc-ease), color 0.2s var(--vc-ease);
}

.vc-catalog ul.products li.product .vc-product-card__add:hover {
    color: var(--vc-white);
    background: var(--vc-dark);
}

.vc-catalog ul.products li.product .vc-product-card__add:focus-visible {
    outline: 3px solid var(--vc-accent);
    outline-offset: 3px;
}

.vc-catalog ul.products li.product .vc-product-card__add[disabled] {
    color: var(--vc-muted);
    background: var(--vc-light);
    cursor: not-allowed;
}

.vc-product-card__status.screen-reader-text {
    position: absolute !important;
}

/* Отсутствующий товар: disabled-кнопка не растягивается и не раздувает карточку. */
.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__add[disabled],
.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__add[disabled] {
    flex: 0 0 auto;
    flex-basis: auto;
    min-height: 36px;
}

/* ==========================================================================
   Compact list — одна строка: фото в край карточки, высота 56px
   ========================================================================== */

.vc-catalog ul.products.vc-view-compact {
    gap: 6px;
}

.vc-catalog ul.products.vc-view-compact li.product.vc-product-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 100%;
    align-items: stretch;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
}

/* Фото без отступов: от левого края карточки, на всю её высоту. */
.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__media {
    position: relative;
    align-self: stretch;
    width: 56px;
    height: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: auto;
    border-radius: 0;
    background: var(--vc-light);
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
    object-fit: cover;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__body {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 10px;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__meta,
.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__excerpt,
.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__rating,
.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__stock {
    display: none !important;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__title {
    display: block !important;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--vc-dark);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__purchase {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__price {
    align-self: center;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__price ins {
    font-size: 0.9375rem;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__actions {
    align-self: center;
    width: auto;
    margin: 0;
    padding: 0;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: auto;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__purchase .vc-product-card__add {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.8125rem;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-qty {
    order: 1;
    height: 32px;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-qty__btn {
    width: 28px;
    height: 32px;
}

.vc-catalog ul.products.vc-view-compact li.product .vc-qty__input {
    width: 30px;
    height: 32px;
    font-size: 0.8125rem;
}


/* В компактной строке цена и кнопки — по центру карточки: базовые правила
   для __purchase задают flex-end/stretch с той же специфичностью, поэтому 6 классов. */
.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__purchase .vc-product-card__price,
.vc-catalog ul.products.vc-view-compact li.product .vc-product-card__purchase .vc-product-card__actions {
    align-self: center;
}
/* Мобильный компакт: 48px, количество скрыто — одна строка. */
@media (max-width: 699px) {
    .vc-catalog ul.products.vc-view-compact li.product.vc-product-card {
        grid-template-columns: 48px minmax(0, 1fr);
        height: 48px;
    }

    .vc-catalog ul.products.vc-view-compact li.product .vc-product-card__media,
    .vc-catalog ul.products.vc-view-compact li.product .vc-product-card__media img {
        width: 48px;
        height: 48px;
    }

    .vc-catalog ul.products.vc-view-compact li.product .vc-product-card__body {
        gap: 8px;
        padding: 0 8px;
    }

    .vc-catalog ul.products.vc-view-compact li.product .vc-qty {
        display: none;
    }
}
/* ==========================================================================
   Grid
   ========================================================================== */

.vc-catalog ul.products.vc-view-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vc-catalog ul.products.vc-view-grid li.product.vc-product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__media {
    padding: 12px;
    border-radius: 16px 16px 0 0;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px 16px;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__excerpt {
    display: none;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__title {
    font-size: 1rem;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 1.25rem;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__price ins {
    font-size: 1.25rem;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__stock {
    margin-top: 0;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__actions {
    margin-top: 6px;
    min-width: 0;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__form {
    flex-wrap: wrap;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__add {
    flex: 1 1 112px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 600px) {
    .vc-catalog ul.products.vc-view-grid {
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .vc-catalog ul.products.vc-view-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .vc-catalog ul.products.vc-view-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 699px) {
    .vc-catalog .vc-catalog-viewbar {
        justify-content: space-between;
    }

    .vc-catalog-viewbar__label {
        font-size: 0.6875rem;
    }

    .vc-catalog ul.products li.product.vc-product-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .vc-catalog ul.products li.product .vc-product-card__body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "meta"
            "title"
            "excerpt"
            "rating"
            "price"
            "stock"
            "actions";
        gap: 4px;
    }

    .vc-catalog ul.products li.product .vc-product-card__title {
        font-size: 1rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__excerpt {
        font-size: 0.8125rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__actions {
        min-width: 0;
        margin-top: 8px;
    }

    .vc-catalog ul.products li.product .vc-product-card__form {
        width: 100%;
    }

    .vc-catalog ul.products li.product .vc-product-card__add {
        flex: 1 1 120px;
    }



    .vc-catalog ul.products.vc-view-grid li.product .vc-product-card__body {
        padding: 12px;
    }

    .vc-catalog ul.products.vc-view-grid li.product .vc-product-card__form {
        gap: 6px;
    }

    .vc-catalog ul.products.vc-view-grid li.product .vc-product-card__add {
        flex-basis: 100%;
        padding: 10px 12px;
        font-size: 0.9375rem;
    }

    .vc-catalog ul.products.vc-view-grid li.product .vc-product-card__price {
        font-size: 1.125rem;
    }

    .vc-catalog ul.products.vc-view-grid li.product .vc-product-card__price ins {
        font-size: 1.125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-catalog ul.products li.product.vc-product-card,
    .vc-view-switch__btn,
    .vc-qty__btn,
    .vc-catalog ul.products li.product .vc-product-card__add {
        transition-duration: 0.01ms;
    }
}

/* ==========================================================================
   8. Compact catalog refinements
   ========================================================================== */

/* Result count + view switch + sorting in one row */
.woo-listing-top {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 14px;
}

.woo-listing-top .woocommerce-result-count {
    margin: 0 auto 0 0 !important;
    padding: 0;
}

.woo-listing-top .vc-catalog-viewbar {
    margin: 0;
}

.woo-listing-top .woocommerce-ordering {
    margin: 0;
}

/* Default list: photo-height row, price top-right, button above quantity */
.vc-catalog ul.products li.product.vc-product-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 8px 10px;
    border-radius: 12px;
}

.vc-catalog ul.products li.product .vc-product-card__media {
    width: 100%;
    height: auto;
    padding: 6px;
    align-self: center;
    border-radius: 10px;
}

.vc-catalog ul.products li.product .vc-product-card__body {
    grid-template-columns: minmax(0, 1fr) 236px;
    grid-template-areas:
        "meta price"
        "title price"
        "excerpt price"
        "rating actions"
        "stock actions";
    gap: 2px 18px;
}

.vc-catalog ul.products li.product .vc-product-card__meta {
    margin: 0;
    font-size: 0.6563rem;
}

.vc-catalog ul.products li.product .vc-product-card__title {
    font-size: 1rem;
    line-height: 1.3;
}

.vc-catalog ul.products li.product .vc-product-card__excerpt {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    -webkit-line-clamp: 1;
}

.vc-catalog ul.products li.product .vc-product-card__rating {
    margin: 0;
}

.vc-catalog ul.products li.product .vc-product-card__price {
    align-self: start;
    justify-content: flex-end;
    gap: 2px 8px;
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    text-align: right;
}

.vc-catalog ul.products li.product .vc-product-card__price .price {
    justify-content: flex-end;
    gap: 2px 8px;
}

.vc-catalog ul.products li.product .vc-product-card__price del {
    font-size: 0.75rem;
}

.vc-catalog ul.products li.product .vc-product-card__price ins {
    font-size: 1.25rem;
}

.vc-catalog ul.products li.product .vc-product-card__stock {
    margin: 0;
    font-size: 0.75rem;
}

.vc-catalog ul.products li.product .vc-product-card__actions {
    align-self: end;
    justify-self: end;
    width: 100%;
    min-width: 0;
    align-items: flex-end;
}

.vc-catalog ul.products li.product .vc-product-card__form {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    gap: 4px;
}

.vc-catalog ul.products li.product .vc-product-card__add {
    order: 1;
    width: 100%;
    min-height: 36px;
    padding: 7px 14px;
    font-size: 0.875rem;
    border-radius: 8px;
}

.vc-catalog ul.products li.product .vc-qty {
    order: 2;
    height: 34px;
    align-self: flex-end;
}

.vc-catalog ul.products li.product .vc-qty__btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.vc-catalog ul.products li.product .vc-qty__input {
    width: 38px;
    height: 34px;
    font-size: 0.875rem;
}

/* Grid: price left, quantity + button below */
.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__price {
    justify-content: flex-start;
    margin-top: auto;
    text-align: left;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__price .price {
    justify-content: flex-start;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__actions {
    align-items: stretch;
    width: 100%;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__add {
    order: 0;
    flex: 1 1 112px;
    width: auto;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.875rem;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-qty {
    order: 0;
    height: 34px;
}

/* Mobile keeps touch targets at 44px and stacks the right block */
@media (max-width: 699px) {
    .vc-catalog ul.products li.product.vc-product-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .vc-catalog ul.products li.product .vc-product-card__media {
        align-self: start;
    }

    .vc-catalog ul.products li.product .vc-product-card__body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "meta"
            "title"
            "price"
            "excerpt"
            "stock"
            "actions";
        gap: 2px;
    }

    .vc-catalog ul.products li.product .vc-product-card__price {
        justify-self: end;
        margin-top: 3px;
        font-size: 1.125rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__price ins {
        font-size: 1.125rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__title {
        font-size: 0.9375rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__excerpt {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    .vc-catalog ul.products li.product .vc-product-card__actions {
        align-items: stretch;
        width: 100%;
        margin-top: 6px;
    }

    .vc-catalog ul.products li.product .vc-product-card__form {
        align-items: stretch;
    }

    .vc-catalog ul.products li.product .vc-product-card__add {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 0.9375rem;
    }

    .vc-catalog ul.products li.product .vc-qty {
        height: 44px;
        margin-top: 2px;
    }

    .vc-catalog ul.products li.product .vc-qty__btn {
        width: 44px;
        height: 44px;
    }

    .vc-catalog ul.products li.product .vc-qty__input {
        width: 42px;
        height: 44px;
    }


    .vc-catalog ul.products.vc-view-grid li.product .vc-product-card__add {
        flex: 1 1 100%;
        width: 100%;
        min-height: 44px;
    }

    .vc-catalog ul.products.vc-view-grid li.product .vc-qty {
        height: 44px;
    }

    .vc-catalog ul.products.vc-view-grid li.product .vc-qty__btn {
        width: 44px;
        height: 44px;
    }

    .vc-catalog ul.products.vc-view-grid li.product .vc-qty__input {
        width: 42px;
        height: 44px;
    }
}

/* Purchase column: price top, cart button above quantity */
.vc-catalog ul.products li.product .vc-product-card__body {
    grid-template-columns: minmax(0, 1fr) 236px;
    grid-template-areas:
        "meta purchase"
        "title purchase"
        "excerpt purchase"
        "rating purchase"
        "stock purchase";
}

.vc-catalog ul.products li.product .vc-product-card__purchase {
    display: flex;
    grid-area: purchase;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    gap: 4px;
    min-width: 0;
}

.vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__price,
.vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__actions {
    grid-area: auto;
}

.vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__price {
    align-self: flex-end;
}

.vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__actions {
    align-self: stretch;
}

.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__purchase {
    display: contents;
}

@media (max-width: 699px) {
    .vc-catalog ul.products li.product .vc-product-card__body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "meta"
            "title"
            "excerpt"
            "stock"
            "purchase";
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase {
        align-items: stretch;
        width: 100%;
        margin-top: 5px;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__price {
        align-self: flex-end;
        margin-bottom: 3px;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__actions {
        align-self: stretch;
    }
}

/* Final density pass for the default list */
.vc-catalog ul.products li.product.vc-product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 6px 8px;
}

.vc-catalog ul.products li.product .vc-product-card__media {
    padding: 5px;
}

.vc-catalog ul.products li.product .vc-product-card__body {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1px 14px;
}

.vc-catalog ul.products li.product .vc-product-card__price {
    font-size: 1.125rem;
    gap: 1px 7px;
}

.vc-catalog ul.products li.product .vc-product-card__price del {
    font-size: 0.6875rem;
}

.vc-catalog ul.products li.product .vc-product-card__price ins {
    font-size: 1.125rem;
}

.vc-catalog ul.products li.product .vc-product-card__add {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 0.8125rem;
}

.vc-catalog ul.products li.product .vc-qty {
    height: 30px;
}

.vc-catalog ul.products li.product .vc-qty__btn {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.vc-catalog ul.products li.product .vc-qty__input {
    width: 34px;
    height: 30px;
    font-size: 0.8125rem;
}

@media (max-width: 699px) {
    .vc-catalog ul.products li.product .vc-product-card__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .vc-catalog ul.products li.product .vc-product-card__add {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 0.9375rem;
    }

    .vc-catalog ul.products li.product .vc-qty {
        height: 44px;
    }

    .vc-catalog ul.products li.product .vc-qty__btn {
        width: 44px;
        height: 44px;
    }

    .vc-catalog ul.products li.product .vc-qty__input {
        width: 42px;
        height: 44px;
    }
}

/* Price emphasis and a compact quantity + cart row */
.vc-catalog ul.products li.product .vc-product-card__price,
.vc-catalog ul.products li.product .vc-product-card__price .price,
.vc-catalog ul.products li.product .vc-product-card__price ins {
    color: var(--vc-accent);
}

.vc-catalog ul.products li.product .vc-product-card__price del {
    color: var(--vc-muted);
}

.vc-catalog ul.products li.product .vc-qty__input {
    padding: 0 2px !important;
    color: var(--vc-dark);
    -webkit-text-fill-color: var(--vc-dark);
}

@media (min-width: 700px) {
    .vc-catalog ul.products:not(.vc-view-compact):not(.vc-view-grid) li.product .vc-product-card__purchase .vc-product-card__form {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 5px;
    }

    .vc-catalog ul.products:not(.vc-view-compact):not(.vc-view-grid) li.product .vc-product-card__purchase .vc-product-card__add {
        order: 0;
        width: auto;
        min-width: 100px;
        min-height: 36px;
        padding: 6px 10px;
        font-size: 0.8125rem;
    }

    .vc-catalog ul.products:not(.vc-view-compact):not(.vc-view-grid) li.product .vc-product-card__purchase .vc-qty {
        order: 0;
        height: 36px;
    }

    .vc-catalog ul.products:not(.vc-view-compact):not(.vc-view-grid) li.product .vc-product-card__purchase .vc-qty__btn {
        width: 32px;
        height: 36px;
        font-size: 15px;
    }

    .vc-catalog ul.products:not(.vc-view-compact):not(.vc-view-grid) li.product .vc-product-card__purchase .vc-qty__input {
        width: 34px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .vc-catalog ul.products:not(.vc-view-compact):not(.vc-view-grid) li.product .vc-product-card__purchase .vc-product-card__price {
        font-size: 1.375rem;
    }
}

/* Mobile-first catalog card: compact image, readable text, no oversized CTA */
@media (max-width: 699px) {
    .vc-catalog ul.products li.product.vc-product-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .vc-catalog ul.products li.product .vc-product-card__media {
        width: 76px;
        height: 76px;
        align-self: start;
        padding: 4px;
    }

    .vc-catalog ul.products li.product .vc-product-card__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 1px;
    }

    .vc-catalog ul.products li.product .vc-product-card__meta {
        font-size: 0.625rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__title {
        font-size: 0.9375rem;
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }

    .vc-catalog ul.products li.product .vc-product-card__excerpt {
        margin-top: 1px;
        font-size: 0.75rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .vc-catalog ul.products li.product .vc-product-card__stock {
        font-size: 0.6875rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase {
        gap: 3px;
        margin-top: 3px;
        width: 100%;
        align-items: stretch;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__price {
        justify-content: flex-end;
        margin: 0;
        font-size: 1.125rem;
        text-align: right;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__price ins {
        font-size: 1.125rem;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__form {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        width: 100%;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__add {
        order: 0;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 8px 6px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-qty {
        order: 0;
        flex: 0 0 auto;
        height: 44px;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-qty__btn {
        width: 40px;
        height: 44px;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-qty__input {
        width: 38px;
        height: 44px;
        padding: 0 2px !important;
    }
}

@media (max-width: 370px) {
    .vc-catalog ul.products li.product.vc-product-card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 8px;
    }

    .vc-catalog ul.products li.product .vc-product-card__media {
        width: 68px;
        height: 68px;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-product-card__add {
        font-size: 0.75rem;
        padding: 7px 4px;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-qty__btn {
        width: 38px;
    }

    .vc-catalog ul.products li.product .vc-product-card__purchase .vc-qty__input {
        width: 34px;
    }
}

/* Category hero: readable white title/description over the photo. */
.tax-product_cat .hero-section[data-type="type-2"] {
	position: relative;
	isolation: isolate;
}

.tax-product_cat .hero-section[data-type="type-2"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		180deg,
		rgba(20, 24, 30, 0.35) 0%,
		rgba(20, 24, 30, 0.62) 100%
	);
	pointer-events: none;
}

.tax-product_cat .hero-section .page-title,
.tax-product_cat .hero-section .page-description,
.tax-product_cat .hero-section .term-description,
.tax-product_cat .hero-section p {
	position: relative;
	z-index: 1;
	color: #fff !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}


/* Mobile grid card: purchase controls never overflow the card. */
@media (max-width: 767px) {
	.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__purchase,
	.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__form {
		display: flex !important;
		flex-wrap: wrap !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 8px;
	}

	.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__purchase .vc-qty,
	.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__form .vc-qty {
		flex: 0 0 auto;
	}

	.vc-catalog ul.products.vc-view-grid li.product .vc-product-card__add {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0;
		padding: 10px 8px;
		font-size: 0.875rem;
		white-space: normal;
	}
}

/* --- Подкатегории на странице раздела ------------------------------------- */
/* Минимальная карточка: фото на белом, название, счётчик. Резкие 1px рамки,
   глубина — слоистая тень. Без стекла, наложений, градиентов и цветных обводок. */
.vc-subcats {
	margin: 0 0 32px;
}

.vc-subcats__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vc-subcats__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	color: var(--vc-dark, var(--vc-dark));
	text-decoration: none;
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 12px;
	box-shadow:
		0 1px 2px rgba(43, 47, 54, 0.05),
		0 6px 16px -12px rgba(43, 47, 54, 0.18);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vc-subcats__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #fff;
}

.vc-subcats__media img {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 10px;
	object-fit: contain;
}

.vc-subcats__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 0 14px 14px;
}

.vc-subcats__name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--vc-dark, var(--vc-dark));
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
	min-height: 2.6em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vc-subcats__meta {
	color: rgba(43, 47, 54, 0.55);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.vc-subcats__link:focus-visible {
	outline: 2px solid var(--vc-accent, var(--vc-accent));
	outline-offset: 2px;
}

@media (hover: hover) {
	.vc-subcats__link:hover,
	.vc-subcats__link:focus-visible {
		transform: translateY(-2px);
		border-color: rgba(43, 47, 54, 0.18);
		box-shadow:
			0 2px 4px rgba(43, 47, 54, 0.06),
			0 14px 28px -16px rgba(43, 47, 54, 0.45);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-subcats__link {
		transition: none;
	}
}

@media (max-width: 767px) {
	.vc-subcats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.vc-subcats__media img {
		padding: 8px;
	}

	.vc-subcats__body {
		padding: 0 11px 11px;
	}

	.vc-subcats__name {
		font-size: 13px;
		min-height: 2.6em;
		-webkit-line-clamp: 3;
	}

	.vc-subcats__meta {
		font-size: 11px;
	}
}

/* --- Шапка раздела внизу страницы ----------------------------------------- */
.tax-product_cat .hero-section {
	display: none !important;
}

.vc-cathero {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	max-width: 1320px;
	margin: 40px auto 0;
	padding: 24px;
	background: var(--vc-light);
	border: 1px solid #e7eaee;
	border-radius: 18px;
}

.vc-cathero__media img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 14px;
}

.vc-cathero__title {
	margin: 0 0 10px;
	color: var(--vc-dark, var(--vc-dark));
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
}

.vc-cathero__desc {
	margin: 0 0 16px;
	max-width: 760px;
	color: rgba(43, 47, 54, 0.7);
	font-size: 15px;
	line-height: 1.5;
}

.vc-cathero__cta {
	display: inline-flex;
}

@media (max-width: 767px) {
	.vc-cathero {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 24px;
		padding: 16px;
	}

	.vc-cathero__media img {
		height: 150px;
	}

	.vc-cathero__title {
		font-size: 21px;
	}
}

/* H1 раздела вместо подписи «Категории раздела». */
.vc-subcats__title {
	margin: 0 0 18px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--vc-dark, var(--vc-dark));
}

@media (max-width: 767px) {
	.vc-subcats__title {
		font-size: 22px;
	}
}

/* Верхний hero раздела скрыт — срезаем зарезервированный под него отступ контейнера,
   чтобы H1 раздела не висел в пустоте. Другие страницы не затронуты. */
.tax-product_cat #vc-content > .ct-container {
	padding-top: 26px;
}

@media (max-width: 767px) {
	.tax-product_cat #vc-content > .ct-container {
		padding-top: 16px;
	}
}
/* ==========================================================================
   Тулбар каталога: [вид][пагинация][сортировка] — единая строка и рамки
   ========================================================================== */
.vc-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: 0 0 16px;
}

.vc-catalog-toolbar .vc-view-switch {
    flex: 0 0 auto;
    margin: 0;
    border-color: rgba(43, 47, 54, 0.14);
}

.vc-catalog-toolbar .vc-catalog-pager {
    flex: 0 0 auto;
    margin: 0;
}

.vc-catalog-toolbar .woocommerce-ordering {
    margin: 0 0 0 auto !important;
}

/* Один стиль рамки у всех контролов строки. */
.vc-catalog-toolbar .vc-catalog-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    color: var(--vc-dark, var(--vc-dark));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(43, 47, 54, 0.14);
    border-radius: 10px;
    transition: border-color 0.2s var(--vc-ease), color 0.2s var(--vc-ease);
}

.vc-catalog-toolbar .vc-catalog-pager .page-numbers:hover {
    color: var(--vc-accent, var(--vc-accent));
    border-color: var(--vc-accent, var(--vc-accent));
}

.vc-catalog-toolbar .vc-catalog-pager .page-numbers.is-disabled {
    color: rgba(43, 47, 54, 0.45);
    border-color: rgba(43, 47, 54, 0.1);
    opacity: 1;
}

.vc-catalog-toolbar .vc-catalog-pager__count {
    margin: 0 4px;
    font-size: 13px;
}

.vc-catalog-toolbar .woocommerce-ordering select,
.vc-catalog-toolbar .woocommerce-ordering .orderby {
    min-height: 44px;
    padding: 0 34px 0 14px;
    color: var(--vc-dark, var(--vc-dark));
    font-size: 13px;
    font-weight: 600;
    background-color: #fff;
    border: 1px solid rgba(43, 47, 54, 0.14);
    border-radius: 10px;
}

.vc-catalog-toolbar .woocommerce-ordering select:focus {
    border-color: var(--vc-accent, var(--vc-accent));
    outline: none;
}

@media (max-width: 699px) {
    .vc-catalog-toolbar {
        gap: 8px;
    }

    .vc-catalog-toolbar .woocommerce-ordering {
        margin-left: 0 !important;
        width: 100%;
    }

    .vc-catalog-toolbar .woocommerce-ordering select,
    .vc-catalog-toolbar .woocommerce-ordering .orderby {
        width: 100%;
    }
}
/* Счётчик внизу: компактный отступ до пагинации. */
.vc-catalog .woocommerce-result-count {
    margin: 0 0 12px !important;
    color: var(--vc-muted, rgba(43, 47, 54, 0.66));
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    /* На телефоне верхний пейджер не нужен — пагинация внизу. */
    .vc-catalog-toolbar .vc-catalog-pager {
        display: none;
    }

    .vc-catalog-toolbar .woocommerce-ordering {
        margin-left: auto !important;
        width: auto;
    }
}
/* Телефон: переключатель и сортировка в одну строку, служебную иконку сортировки прячем. */
@media (max-width: 767px) {
    .vc-catalog-toolbar {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .vc-catalog-toolbar .ct-sort-icon {
        display: none;
    }

    .vc-catalog-toolbar .woocommerce-ordering {
        margin-left: auto !important;
        width: auto !important;
    }

    .vc-catalog-toolbar .woocommerce-ordering select,
    .vc-catalog-toolbar .woocommerce-ordering .orderby {
        width: auto !important;
        max-width: 100%;
        min-height: 40px;
        padding: 0 30px 0 12px;
        font-size: 12px;
    }
}
/* --- Одинаковая высота и рамка у всех контролов тулбара (2026-11-02) ----- */
.vc-catalog-toolbar .vc-view-switch {
    box-sizing: border-box;
    height: 44px;
    padding: 3px;
    border: 1px solid rgba(43, 47, 54, 0.14);
    border-radius: 10px;
}

.vc-catalog-toolbar .vc-view-switch__btn {
    width: 36px;
    height: 36px;
}

.vc-catalog-toolbar .vc-catalog-pager .page-numbers {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    border-color: rgba(43, 47, 54, 0.14);
}

/* «Назад» неактивен — гасим только текст, рамка та же. */
.vc-catalog-toolbar .vc-catalog-pager .page-numbers.is-disabled {
    color: rgba(43, 47, 54, 0.4);
    border-color: rgba(43, 47, 54, 0.14);
}

.vc-catalog-toolbar .woocommerce-ordering select,
.vc-catalog-toolbar .woocommerce-ordering .orderby {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    border-color: rgba(43, 47, 54, 0.14);
}

/* Наведение на сортировку — бледный фон, как у кнопок вида каталога. */
.vc-catalog-toolbar .woocommerce-ordering select:hover,
.vc-catalog-toolbar .woocommerce-ordering .orderby:hover {
    color: var(--vc-dark, var(--vc-dark));
    background-color: var(--vc-light, var(--vc-light));
    border-color: rgba(43, 47, 54, 0.14);
}

@media (max-width: 767px) {
    .vc-catalog-toolbar .vc-view-switch {
        height: 40px;
        padding: 2px;
    }

    .vc-catalog-toolbar .vc-view-switch__btn {
        width: 34px;
        height: 34px;
    }

    .vc-catalog-toolbar .vc-view-switch__btn svg {
        width: 18px;
        height: 18px;
    }

    .vc-catalog-toolbar .woocommerce-ordering select,
    .vc-catalog-toolbar .woocommerce-ordering .orderby {
        height: 40px;
        min-height: 40px;
    }
}
/* Крошки на архивах каталога: выравниваем по контейнеру. */
.vc-breadcrumbs-bar--catalog {
	padding-block: 12px 0;
}

.vc-breadcrumbs-bar--catalog .vc-container {
	padding-block: 0;
}

.vc-breadcrumbs-bar--catalog .vc-breadcrumbs__list {
	flex-wrap: wrap;
	row-gap: 4px;
}
/* Хаб каталога /shop/: разделы вместо пустого hero. */
.woocommerce-shop .hero-section,
.post-type-archive-product .hero-section {
	display: none;
}

.woocommerce-shop #vc-content > .ct-container,
.post-type-archive-product #vc-content > .ct-container {
	padding-top: 22px;
}

.vc-shop-hub {
	margin: 0 0 30px;
}

.vc-shop-hub__title {
	margin: 0 0 8px;
	color: var(--vc-dark);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.vc-shop-hub__lead {
	max-width: 760px;
	margin: 0;
	color: var(--vc-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.vc-shop-hub__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.vc-shop-hub__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 14px;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--vc-line);
	border-radius: 16px;
	transition: border-color 0.2s var(--vc-ease), box-shadow 0.2s var(--vc-ease);
}

.vc-shop-hub__link:hover {
	border-color: var(--vc-accent);
	box-shadow: 0 12px 28px -22px rgba(43, 47, 54, 0.35);
}

.vc-shop-hub__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 8px;
	background: var(--vc-light);
	border-radius: 12px;
	overflow: hidden;
}

.vc-shop-hub__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vc-shop-hub__media--empty {
	color: var(--vc-accent);
}

.vc-shop-hub__name {
	color: var(--vc-dark);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
}

.vc-shop-hub__count {
	color: var(--vc-muted);
	font-size: 0.75rem;
}

@media (max-width: 1023px) {
	.vc-shop-hub__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.vc-shop-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (max-width: 479px) {
	.vc-shop-hub__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* /shop/: карточки разделов в дизайне главной. */
.vc-shop-hub__grid .vc-cat-card {
	flex: none;
	width: 100%;
}

.vc-shop-hub__grid .vc-cat-card__btn {
	text-decoration: none;
}
/* Шесть верхних разделов: 3 в ряд, без «дыры» 4+2. */
.vc-shop-hub__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 767px) {
	.vc-shop-hub__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 479px) {
	.vc-shop-hub__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* /shop/: компактная витрина 4 в ряд, последние карточки по центру. */
.vc-shop-hub__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 16px;
}

.vc-shop-hub__grid .vc-cat-card {
	flex: 0 1 calc((100% - 48px) / 4);
	max-width: calc((100% - 48px) / 4);
}

.vc-shop-hub__grid .vc-cat-card__title {
	padding: 12px 12px 8px;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.vc-shop-hub__grid .vc-cat-card__media {
	aspect-ratio: 4 / 3;
	margin: 0 10px;
}

.vc-shop-hub__grid .vc-cat-card__body {
	gap: 6px;
	padding: 10px 12px 14px;
}

.vc-shop-hub__grid .vc-cat-card__text {
	font-size: 0.75rem;
	line-height: 1.4;
}

.vc-shop-hub__grid .vc-cat-card__btn {
	padding: 7px 10px;
	font-size: 0.75rem;
}

@media (max-width: 1100px) {
	.vc-shop-hub__grid .vc-cat-card {
		flex-basis: calc((100% - 32px) / 3);
		max-width: calc((100% - 32px) / 3);
	}
}

@media (max-width: 767px) {
	.vc-shop-hub__grid .vc-cat-card {
		flex-basis: calc((100% - 16px) / 2);
		max-width: calc((100% - 16px) / 2);
	}
}

@media (max-width: 359px) {
	.vc-shop-hub__grid .vc-cat-card {
		flex-basis: 100%;
		max-width: 100%;
	}
}

.vc-shop-hub__grid .vc-cat-card__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
@media (max-width: 767px) {
	.vc-shop-hub__grid .vc-cat-card__btn {
		display: inline-flex !important;
		justify-content: center;
		width: 100%;
		padding: 6px 8px;
		font-size: 0.6875rem;
	}
}
/* Компактная шапка бренда /brand/... */
.tax-product_brand .hero-section {
	display: none !important;
}

.tax-product_brand #vc-content > .ct-container {
	padding-top: 14px;
}

.vc-brandhero {
	margin: 10px 0 18px;
}

.vc-brandhero__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid rgba(43, 47, 54, 0.1);
	border-radius: 14px;
}

.vc-brandhero__logo {
	display: flex;
	flex: 0 0 180px;
	align-items: center;
	justify-content: center;
	width: 180px;
	min-height: 72px;
	padding: 10px 14px;
	background: var(--vc-light, #f8f9fa);
	border: 1px solid rgba(43, 47, 54, 0.08);
	border-radius: 10px;
}

.vc-brandhero__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 64px;
	object-fit: contain;
}

.vc-brandhero__logo--text {
	color: var(--vc-dark);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-align: center;
}

.vc-brandhero__body {
	min-width: 0;
}

.vc-brandhero__body .vc-eyebrow {
	margin: 0 0 4px;
}

.vc-brandhero__title {
	margin: 0 0 5px;
	color: var(--vc-dark);
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.vc-brandhero__desc {
	margin: 0;
	max-width: 760px;
	color: rgba(43, 47, 54, 0.7);
	font-size: 0.875rem;
	line-height: 1.45;
}

.vc-brandhero__meta {
	margin: 7px 0 0;
	color: var(--vc-muted, #6b7280);
	font-size: 0.75rem;
	line-height: 1.4;
}

@media (max-width: 767px) {
	.vc-brandhero {
		margin: 8px 0 14px;
	}

	.vc-brandhero__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		padding: 13px 14px;
	}

	.vc-brandhero__logo {
		flex: 0 0 auto;
		width: 160px;
		min-height: 60px;
		padding: 8px 12px;
	}

	.vc-brandhero__logo img {
		max-height: 52px;
	}

	.vc-brandhero__title {
		font-size: 1.35rem;
	}

	.vc-brandhero__desc {
		font-size: 0.8125rem;
	}
}
