@media (max-width: 992px) {
    .ridan-mobile-catalog .wd-page-title { margin-bottom: 0; padding: 16px 0; background: #064b89; }
    .ridan-mobile-catalog .wd-page-title .container { width: 100%; padding-inline: 16px; }
    .ridan-mobile-catalog .wd-title-wrapp { width: 100%; padding: 0; text-align: center; }
    .ridan-mobile-catalog .wd-page-title .entry-title { width: 100%; margin: 0; color: #fff; font-size: clamp(28px, 8vw, 36px); font-weight: 400; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
    .ridan-mobile-catalog .wd-back-btn { display: none; }
    .ridan-mobile-catalog > .wd-content-layout { display: block; width: 100%; max-width: 100%; padding: 20px 15px 28px; }
    .ridan-mobile-catalog .wd-content-area { width: 100%; min-width: 0; }
    .ridan-mobile-catalog .woocommerce-notices-wrapper:empty { display: none; }
    .ridan-mobile-catalog :is(.term-description, .wd-term-desc) { color: #777; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
    .ridan-mobile-catalog .term-description { margin-bottom: 22px; }
    .ridan-mobile-catalog :is(.term-description, .wd-term-desc) :is(img, iframe, table) { max-width: 100%; }
    .ridan-mobile-catalog .wd-term-desc { margin-top: 28px; }
    .ridan-mobile-catalog .wd-term-desc :is(h2, h3) { font-size: 21px; line-height: 1.3; }
    .ridan-catalog-mobile-head { margin-bottom: 16px; }
    .ridan-catalog-mobile-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
    .ridan-catalog-mobile-head .wd-breadcrumbs { display: flex; flex: 1 1 140px; flex-wrap: wrap; gap: 4px 7px; margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
    .ridan-catalog-mobile-head .wd-breadcrumbs .wd-delimiter { margin: 0; }
    .ridan-catalog-result-count { flex: 0 0 auto; margin: 0; color: #777; font-size: 12px; white-space: nowrap; }
    .ridan-catalog-mobile-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #e5e5e5; }
    .ridan-catalog-filter-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #333; box-shadow: none; font-size: 14px; font-weight: 600; text-transform: none; }
    .ridan-catalog-filter-toggle > i { font-size: 18px; }
    .ridan-catalog-filter-toggle:hover { color: #28348a; background: transparent; }
    .ridan-mobile-catalog .ridan-catalog-ordering { position: relative; display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; }
    .ridan-catalog-ordering > i { font-size: 18px; pointer-events: none; }
    .ridan-mobile-catalog .ridan-catalog-ordering select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
    .ridan-catalog-ordering:focus-within { outline: 2px solid #28348a; outline-offset: -2px; }
    .ridan-mobile-catalog .category-selected-filters { margin: 0 0 20px; }
    /* Keep both grids at two columns, including on tablets and after AJAX updates. */
    .ridan-mobile-catalog :is(.category-products, .category-subcategories) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; width: 100%; margin-inline: 0; }
    .ridan-mobile-catalog :is(.category-products, .category-subcategories) > .wd-col { width: 100%; min-width: 0; margin: 0; padding: 0; }
    .ridan-mobile-catalog .category-subcategories { margin-bottom: 24px; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-inner { display: block; position: relative; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-thumb { flex: none; width: 100%; max-width: none; aspect-ratio: 1; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-thumb::before { opacity: .4; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-image { width: 100%; height: 100%; transform: none; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-image > a { display: block; width: 100%; height: 100%; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 10px; background: transparent; text-align: center; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-header { transform: none; }
    .ridan-mobile-catalog .category-subcategories .wd-entities-title { max-width: 100%; margin: 0; padding: 4px 9px; border-radius: 24px; background: #fff; color: #333; font-size: clamp(11px, 3.2vw, 14px); font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
    .ridan-mobile-catalog .category-subcategories .wd-cat-count { margin-top: 8px; color: #fff; font-size: 12px; line-height: 1.3; opacity: 1; transform: none; }
    .ridan-mobile-catalog .category-products { align-items: stretch; }
    .ridan-mobile-catalog .category-products > .wd-product { display: flex; }
    .ridan-mobile-catalog .category-products .product-wrapper { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 0; width: 100%; height: 100%; padding: 0; background: #fff; box-shadow: 0 0 5px rgb(0 0 0 / .12); }
    .ridan-mobile-catalog .category-products .product-element-top { flex: none; width: 100%; max-width: none; overflow: visible; }
    .ridan-mobile-catalog .category-products .wd-product-img-link { aspect-ratio: 1; }
    .ridan-mobile-catalog .category-products .product-element-bottom { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 10px 8px 12px; text-align: center; }
    .ridan-mobile-catalog .category-products .wd-entities-title { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
    .ridan-mobile-catalog .category-products .price { margin: auto 0 0; color: #28348a; font-size: 14px; font-weight: 600; line-height: 1.4; }
    .ridan-mobile-catalog .category-products .product-card-buy { display: none; }
    .ridan-mobile-catalog .category-products .wd-product .wd-buttons.product-card-actions { position: absolute; inset: auto auto 7px 50%; display: flex; flex-direction: row; gap: 0; width: max-content; max-width: calc(100% - 8px); padding: 0 5px; overflow: hidden; border-radius: 30px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .12); opacity: 1; visibility: visible; transform: translateX(-50%); }
    .ridan-mobile-catalog .category-products .wd-product .product-card-actions .wd-action-btn { --wd-action-w: 36px; --wd-action-h: 40px; flex: 0 1 36px; width: 36px; min-width: 0; }
    .ridan-mobile-catalog .category-products .product-card-actions .wd-action-btn > a { display: flex; align-items: center; justify-content: center; width: 36px; height: 40px; padding: 0; }
    .ridan-mobile-catalog .category-products .product-card-actions .wd-action-btn > a > i { font-size: 18px; }
    .ridan-mobile-catalog .category-products .product-card-actions .ridan-mobile-product-add > a::before { content: none; }
    .ridan-mobile-catalog .category-products .product-card-actions .wd-action-text { display: none; }
    .ridan-mobile-catalog .products-footer .pagination1 { margin: 28px 0; }
    .ridan-mobile-catalog .products-footer .pagination1 ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
    .ridan-mobile-catalog .products-footer .pagination1 li { margin: 0; }
    .ridan-mobile-catalog .products-footer .pagination1 .pagination_wrap { display: flex; align-items: center; justify-content: center; width: 30px; height: 36px; border: 0; border-radius: 0; color: #333; font-size: 14px; }
    .ridan-mobile-catalog .products-footer .pagination1 .active .pagination_wrap { color: #fff; background: #28348a; }
    .ridan-mobile-catalog .wd-content-area.is-loading #category-products-fragment { opacity: .5; }
    .ridan-mobile-catalog .product-card-actions .ridan-mobile-product-add { display: block; }
}
.ridan-catalog-filters { position: fixed; inset: 0 auto 0 0; width: 300px; max-width: calc(100% - 32px); height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; color: #333; background: #fff; box-shadow: 5px 0 25px rgb(0 0 0 / .15); transform: translateX(-100%); transition: transform .32s cubic-bezier(.22, .61, .36, 1); }
.ridan-catalog-filters[open] { display: flex; flex-direction: column; }
.ridan-catalog-filters.is-visible { transform: translateX(0); }
.ridan-catalog-filters::backdrop { background: rgb(0 0 0 / .65); opacity: 0; transition: opacity .32s ease; }
.ridan-catalog-filters.is-visible::backdrop { opacity: 1; }
body.ridan-catalog-filters-open { overflow: hidden; }
.ridan-catalog-filters-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 12px; border-bottom: 1px solid #eee; }
.ridan-catalog-filters-heading h2 { margin: 0; font-size: 16px; font-weight: 500; }
.ridan-catalog-filters-heading > button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; color: #555; background: transparent; box-shadow: none; font-size: 18px; }
.ridan-catalog-filters-content { flex: 1; min-height: 0; padding: 12px; overflow-y: auto; overscroll-behavior: contain; }
.ridan-catalog-filters-content .category-filter-sidebar { margin: 0; padding: 0; border: 0; }
.ridan-catalog-filters-content :is(.wpc-filters-main-wrap, .wpc-filters-widget-content, .wpc-filters-scroll-container, .wpc-filters-widget-wrapper) { position: static; display: block; width: 100%; height: auto; max-height: none; padding: 0; overflow: visible; background: transparent; transform: none; }
#ridan-catalog-filters .wpc-filters-section { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
#ridan-catalog-filters .wpc-filters-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#ridan-catalog-filters .wpc-filter-title { margin: 0 0 6px; font-size: 14px; line-height: 1.35; }
#ridan-catalog-filters .wpc-filters-ul-list { max-height: 160px; margin: 0; padding: 0; overflow-y: auto; }
#ridan-catalog-filters li.wpc-term-item { margin: 0; padding: 0; }
#ridan-catalog-filters .wpc-term-item-content-wrapper { display: flex; align-items: center; min-height: 32px; }
#ridan-catalog-filters .wpc-term-item label { flex: 1; margin: 0; padding: 6px 0; font-size: 13px; line-height: 1.4; }
#ridan-catalog-filters .wpc-term-count { font-size: 12px; }
#ridan-catalog-filters input[type="checkbox"] { width: 16px; height: 16px; margin: 0 8px 0 0; accent-color: #28348a; }
#ridan-catalog-filters .wpc-filters-range-wrapper { display: flex; gap: 10px; }
#ridan-catalog-filters .wpc-filters-range-column { flex: 1; min-width: 0; max-width: none; margin: 0; }
#ridan-catalog-filters input[type="number"] { width: 100%; height: 36px; min-height: 36px; font-size: 16px; }
#ridan-catalog-filters .category-price-slider { margin: 10px 12px 0; }
.ridan-catalog-filters-footer { flex: 0 0 auto; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid #eee; background: #fff; }
.ridan-catalog-filters-footer > button { width: 100%; min-height: 40px; padding: 8px 12px; color: #fff; background: #28348a; font-size: 13px; text-transform: none; }
.ridan-catalog-filters button:focus-visible, .ridan-catalog-mobile-controls :is(button, select):focus-visible { outline: 2px solid #28348a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .ridan-catalog-filters, .ridan-catalog-filters::backdrop { transition: none; }
}
