/* 1. Шрифты удалены отсюда и перенесены в HTML head для параллельной загрузки */

.checkout-prod-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
}

.checkout-prod-thumb {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.checkout-prod-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .checkout-prod-thumb {
        width: 50px !important;
        height: 50px !important;
    }
    .checkout-prod-title {
        font-size: 13px;
    }
}

.mm-thankyou { margin: 25px 0; }
.mm-thankyou__box {
    max-width: 760px;
    padding: 22px 20px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 14px;
    background: #fff;
}
.mm-thankyou__title {
    font-size: 26px;
    line-height: 1.15;
    margin: 0 0 12px;
}
.mm-thankyou__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
}
.mm-thankyou__info {
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 12px 0;
    margin: 14px 0 18px;
}
.mm-thankyou__info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}
.mm-thankyou__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 6px;
}
.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.18);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #111;
    background: #fff;
}
.mm-btn--primary {
    background: #111;
    color: #fff;
    border-color: #111;
}
.mm-btn--tg {
    border-color: rgba(0,136,204,.35);
}
.mm-thankyou__small {
    font-size: 13px;
    opacity: .8;
    margin: 10px 0 0;
}

.pro-filter-form {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 310px;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    contain-intrinsic-size: auto 500px; /* Оптимизация рендеринга */
}

.pro-filter-form *,
.pro-filter-form *::before,
.pro-filter-form *::after {
    box-sizing: border-box;
}

.pro-sort {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    margin-bottom: 30px;
    appearance: none;
    outline: none;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.pro-sort:hover {
    border-color: #111827;
}

.pro-filter-group {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.pro-filter-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.pro-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
}

.pro-filter-title:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: #9ca3af;
    line-height: 1;
    transition: all 0.2s ease;
}

.pro-filter-group.active .pro-filter-title:after {
    content: "–";
    color: #111827;
}

.pro-filter-title:hover {
    color: #3b82f6;
}

.pro-filter-content {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.pro-filter-group.active .pro-filter-content {
    display: flex;
}

.pro-filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    min-height: 24px;
}

.pro-filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pro-filter-option span {
    padding-left: 34px;
    font-size: 15px;
    color: #374151;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.pro-filter-option span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-filter-option span::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 48%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    opacity: 0;
    transition: opacity 0.1s;
}

.pro-filter-option:hover span::before {
    border-color: #111827;
}

.pro-filter-option input:checked + span {
    color: #111827;
    font-weight: 600;
}

.pro-filter-option input:checked + span::before {
    background-color: #111827;
    border-color: #111827;
}

.pro-filter-option input:checked + span::after {
    opacity: 1;
}

.pro-filter-content::-webkit-scrollbar {
    width: 4px;
}

.pro-filter-content::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

#pro-catalog-wrap,
.pro-category-panel-wrap,
.pro-products-section {
    width: 100%;
}

.pro-products-section {
    width: 100%;
    margin: 0 auto 50px;
    padding: 0;
    box-sizing: border-box;
}

.pro-section-title {
    text-align: center;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pro-top-panel,
.pro-cat-btn,
.pro-subcat-btn {
    font-family: 'Manrope', -apple-system, sans-serif;
    box-sizing: border-box;
}

.pro-top-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e9e9e9;
    border-radius: 24px;
    padding: 24px;
    margin: 0 0 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    width: 100%;
    max-width: 100%;
}

.pro-main-cats,
.pro-subcat-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pro-main-cats {
    margin: 0 0 20px;
}

.pro-subcat-panel {
    margin: 0;
}

.pro-cat-btn,
.pro-subcat-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    color: #111111;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.18);
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: auto;
    height: auto;
    white-space: normal;
    word-break: keep-all;
}

.pro-cat-btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
}

.pro-subcat-btn {
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.pro-cat-btn:hover,
.pro-subcat-btn:hover {
    background: #ffffff;
    color: #111111;
    border-color: rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.pro-cat-btn.active,
.pro-subcat-btn.active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.pro-search-row {
    display: flex;
    justify-content: center;
}

.pro-live-search {
    position: relative;
    width: 100%;
    max-width: 580px;
}

.pro-live-search-input {
    width: 100%;
    height: 48px;
    padding: 8px 18px;
    border-radius: 999px !important;
    font-size: 16px;
    background: #fff;
    border: 1px solid #d7d7db !important;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.03) inset;
    appearance: none;
    -webkit-appearance: none;
}

.pro-live-search-input:focus {
    border-color: #11 !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.03) inset;
}

.pro-live-search-results {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    max-height: 320px;
    background: #fff;
    overflow-y: auto;
    border: 1px solid #e1e1e5;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
    z-index: 99999;
}

.pro-live-search-heading,
.pro-live-search-empty {
    padding: 10px 14px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.pro-live-search-item {
    padding: 11px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: background .18s ease;
}

.pro-live-search-item:hover {
    background: #f7f7f8;
}

.pro-live-search-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
    background: #fff;
}

#pro-catalog-h1,
.pro-archive-h1 {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111111;
    text-align: center;
    margin: 45px 0 24px;
    padding: 0;
    box-sizing: border-box;
}

.pro-category-description {
    margin: 0 0 38px;
    padding: 0 6px;
    color: #333;
    line-height: 1.78;
    text-align: left;
    font-size: 18px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pro-category-description p {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.55;
}

#pro-shop {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.pro-filter-mobile-wrap {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.pro-filter {
    width: 100%;
    background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
    border-radius: 20px;
    border: 1px solid #ececec;
    box-shadow: 0 8px 26px rgba(0,0,0,.04);
    box-sizing: border-box;
}

.pro-main-content {
    flex: 1;
    min-width: 0;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    min-height: 450px; /* Предотвращает прыжок верстки до загрузки товаров */
}

.pro-grid-shortcode {
    grid-template-columns: repeat(var(--pro-grid-columns, 4), minmax(0, 1fr));
}

.pro-same-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#products-container.pro-loading {
    opacity: .55;
    pointer-events: none;
}

.pro-product-card {
    border: 1px solid #ececec;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,.03);
    contain: layout paint;
    min-width: 0;
    backface-visibility: hidden; /* Аппаратное ускорение рендеринга */
    -webkit-backface-visibility: hidden;
}

.pro-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,.08);
}

.pro-product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 6px;
    overflow: hidden;
}

.pro-product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    content-visibility: auto; /* Рендерит картинку только при попадании в экран */
}

.pro-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    font-size: 12px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
}

.pro-stock-badge.in {
    background: #28a745;
}

.pro-stock-badge.out {
    background: #dc3545;
}

.pro-product-title {
    min-height: 52px;
    font-size: 15px;
    margin: 0 0 10px;
    text-align: center;
    line-height: 1.2;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pro-product-price {
    margin-top: auto;
    font-weight: 800;
    text-align: center;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.pro-product-price del {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    margin-right: 5px;
}

.pro-product-price ins {
    text-decoration: none;
    color: #ef4444;
}

.pro-product-btn {
    margin-top: 14px;
    padding: 12px;
    background: #111;
    color: #fff !important;
    text-align: center;
    border-radius: 14px;
    text-decoration: none;
    display: block;
    transition: background .2s ease, transform .2s ease;
    font-weight: 700;
}

.pro-product-btn:hover {
    background: #000;
    transform: translateY(-1px);
    color: #fff !important;
}

.pro-product-btn.loading {
    opacity: 0.7;
    position: relative;
}

.pro-product-btn.added::after {
    content: " ✓";
    margin-left: 5px;
}

.pro-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

.pro-load-more-btn {
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    transition: background .2s ease, transform .2s ease;
}

.pro-load-more-btn:hover {
    transform: translateY(-1px);
    background: #000;
}

.pro-load-more-btn:disabled {
    opacity: .6;
    cursor: default;
}

.pro-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 17px;
    margin: 30px 0;
}

.pro-filter-toggle,
.pro-filter-close,
.pro-filter-overlay {
    display: none;
}

.pro-switcher {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
}

.pro-switcher-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-switcher-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.pro-switcher-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-switcher-option {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.pro-switcher-option:hover {
    border-color: #111;
    transform: translateY(-1px);
}

.pro-switcher-option.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.mm-product-gallery {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    content-visibility: auto; /* Оптимизация галереи товара */
    contain-intrinsic-size: auto 620px;
}

.mm-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mm-thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.mm-thumb {
    width: 86px;
    height: 86px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: #fff;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: .2s ease;
}

.mm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mm-thumb.active {
    border-color: #111;
}

.mm-thumb:hover {
    transform: translateY(-2px);
}

@media (max-width: 1180px) {
    .pro-grid,
    .pro-grid-shortcode {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .pro-same-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    body.pro-filter-opened {
        overflow: hidden;
    }

    #pro-shop {
        flex-direction: column;
        gap: 0;
    }
    a.pro-product-card {
        text-decoration: none !important;
        color: inherit !important;
        display: flex;
        flex-direction: column;
    }

    .pro-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        margin: 0 0 14px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: #111;
        border: none;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        box-shadow: none;
    }

    .pro-filter-icon {
        width: 18px;
        height: 14px;
        display: inline-block;
        position: relative;
        flex-shrink: 0;
    }

    .pro-filter-icon:before,
    .pro-filter-icon:after {
        content: "";
        position: absolute;
        left: 0;
        height: 2px;
        background: #111;
        border-radius: 999px;
    }

    .pro-filter-icon:before {
        top: 3px;
        width: 18px;
    }

    .pro-filter-icon:after {
        top: 9px;
        width: 11px;
    }

    .pro-filter-mobile-wrap {
        position: fixed;
        top: 0;
        right: 0;
        width: 88%;
        max-width: 360px;
        height: 100vh;
        background: #fff;
        z-index: 100000;
        transform: translateX(100%);
        transition: transform .3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,.14);
        overflow-y: auto;
        padding: 22px 18px;
        box-sizing: border-box;
    }

    .pro-filter-mobile-wrap.active {
        transform: translateX(0);
    }

    .pro-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-left: auto;
        margin-bottom: 14px;
        border: none;
        border-radius: 999px;
        background: #111;
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .pro-filter-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 99999;
    }

    .pro-filter-overlay.active {
        display: block;
    }

    .pro-filter {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        border-radius: 0;
        background: #fff;
    }

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

    .pro-top-panel {
        padding: 20px 16px 18px;
        border-radius: 22px;
    }

    .pro-archive-h1 {
        font-size: 34px;
    }

    .pro-section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    #pro-catalog-h1,
    .pro-archive-h1 {
        font-size: 32px;
        margin: 35px 0 20px;
    }

    .pro-top-panel,
    .pro-product-card,
    .pro-filter,
    .pro-load-more-btn {
        box-shadow: none !important;
    }

    .pro-top-panel,
    .pro-product-card,
    .pro-filter {
        background: #fff !important;
    }

    .pro-cat-btn,
    .pro-subcat-btn {
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .pro-product-card:hover,
    .pro-cat-btn:hover,
    .pro-subcat-btn:hover,
    .pro-product-btn:hover,
    .pro-load-more-btn:hover,
    .pro-switcher-option:hover {
        transform: none !important;
    }

    .pro-live-search-results {
        box-shadow: 0 8px 18px rgba(0,0,0,.08);
    }

    .mm-main-image {
        border-radius: 18px;
    }

    .mm-thumb {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    .pro-products-section {
        margin: 0 auto 35px;
        padding: 0 10px;
    }

    .pro-main-cats,
    .pro-subcat-panel {
        gap: 6px;
    }

    .pro-subcat-panel {
        margin: 0 0 18px;
    }

    .pro-cat-btn {
        padding: 7px 10px;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        font-weight: 800;
    }

    .pro-subcat-btn {
        padding: 6px 9px;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        font-weight: 800;
    }

    .pro-grid,
    .pro-grid-shortcode,
    .pro-same-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
        min-height: 350px; /* Фиксация высоты сетки на мобильных */
    }

    .pro-live-search {
        max-width: 100%;
    }

    #pro-catalog-h1,
    .pro-archive-h1 {
        font-size: 28px;
    }

    .pro-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .pro-product-card {
        padding: 10px;
        border-radius: 16px;
    }

    .pro-product-image {
        height: 145px;
        border-radius: 12px;
        margin-bottom: 0 !important;
    }

    .pro-product-title {
        min-height: 48px;
        font-size: 13px;
        line-height: 1.15;
        margin: 10px 0 8px;
        font-weight: 700;
    }

    .pro-product-price {
        font-size: 15px;
    }

    .pro-product-btn {
        padding: 10px 8px;
        font-size: 13px;
        border-radius: 12px;
    }

    .pro-stock-badge {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 4px 7px;
    }

    .pro-switcher-option {
        padding: 7px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pro-top-panel {
        padding: 16px 12px;
        border-radius: 20px;
    }

    .pro-main-cats,
    .pro-subcat-panel {
        gap: 8px;
    }

    .pro-cat-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .pro-subcat-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    #pro-catalog-h1,
    .pro-archive-h1 {
        font-size: 26px;
        margin: 30px 0 18px;
        padding: 0 16px;
    }
}

@media (max-width: 350px) {
    .pro-top-panel {
        padding: 12px 8px;
    }

    .pro-main-cats,
    .pro-subcat-panel {
        gap: 6px;
    }

    .pro-cat-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .pro-subcat-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    #pro-catalog-h1,
    .pro-archive-h1 {
        font-size: 22px;
        margin: 24px 0 14px;
        padding: 0 10px;
    }
}
