/* LBL Studio — страница каталога */
.lbl-catalog-app {
    --cat-radius: 20px;
    --cat-radius-sm: 14px;
    --cat-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
    --cat-sticky-top: calc(var(--lbl-header-height, 60px) + env(safe-area-inset-top, 0px));
}

body.lbl-catalog-app {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary, #0f172a);
    background: linear-gradient(160deg, #e0e7ff 0%, #f5f3ff 35%, #e0f2fe 70%, #fce7f3 100%);
    min-height: 100vh;
    padding-top: var(--cat-sticky-top);
}

body.lbl-catalog-app.lbl-site-chrome {
    padding-top: var(--cat-sticky-top);
}

html[data-theme="dark"] body.lbl-catalog-app {
    background: linear-gradient(160deg, #1e1b4b 0%, #0f172a 35%, #0c1a3d 70%, #1a0a2e 100%);
}

.lbl-catalog-app h1,
.lbl-catalog-app h2,
.lbl-catalog-app h3 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.cat-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 32px;
}

/* Header — поиск и подборки вверху */
.cat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0);
    background: var(--surface-header, rgba(255,255,255,0.88));
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    transition: box-shadow 0.2s ease;
}

.cat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: -1;
}

html[data-theme="dark"] .cat-header {
    background: rgba(15, 23, 42, 0.88);
}

html[data-theme="dark"] .cat-header::before {
    background: rgba(15, 23, 42, 0.88);
}

.cat-header.is-scrolled {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.cat-header__content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: var(--lbl-header-height, 60px);
    box-sizing: border-box;
}

.cat-header__logo.logo {
    flex-shrink: 0;
}

.cat-header__search-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
}

.cat-header-search {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 4px 0 14px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.8);
    border: 1.5px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.cat-header-search:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-theme="dark"] .cat-header-search {
    background: rgba(30, 41, 59, 0.6);
}

html[data-theme="dark"] .cat-header-search:focus-within {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(37, 99, 235, 0.55);
}

.cat-header-search i {
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
    flex-shrink: 0;
}

.cat-header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px 10px 0;
    font: inherit;
    font-size: 14px;
    color: inherit;
    min-width: 0;
    outline: none;
    -webkit-appearance: none;
    caret-color: var(--primary-color, #2563eb);
}

.cat-header-search input::placeholder {
    color: var(--text-muted, #94a3b8);
}

.cat-header-search input:focus {
    outline: none;
}

.cat-header .header-search-bar,
.cat-header .cat-search {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0 4px 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

html[data-theme="dark"] .cat-header .header-search-bar,
html[data-theme="dark"] .cat-header .cat-search {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.cat-header .header-search-bar:focus-within,
.cat-header .cat-search:focus-within {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cat-header .header-search-bar input,
.cat-header .cat-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px 10px 0;
    font: inherit;
    font-size: 15px;
    color: inherit;
    min-width: 0;
}

.cat-header .header-search-bar input::placeholder {
    color: var(--text-muted, #64748b);
}

.cat-header .header-search-bar input:focus,
.cat-header .cat-search input:focus {
    outline: none;
}

.cat-search__submit {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 4px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s, transform 0.15s;
}

.cat-search__submit:hover {
    filter: brightness(1.06);
}

.cat-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ─── LANGUAGE TOGGLE ───────────────────────────────────────────── */
.cat-lang-toggle {
    display: flex;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    flex-shrink: 0;
}

html[data-theme="dark"] .cat-lang-toggle {
    border-color: rgba(255, 255, 255, 0.12);
}

.cat-lang-toggle button {
    padding: 6px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
}

html[data-theme="dark"] .cat-lang-toggle button {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

.cat-lang-toggle button.is-active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
}

.cat-lang-toggle button:hover:not(.is-active) {
    color: var(--primary-color, #2563eb);
}

.cat-header .idx-nav-center.is-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Панель: заголовок + подборки + счётчик */
.cat-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
    padding: 10px 16px;
    border-radius: var(--cat-radius);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cat-toolbar .cat-page-title {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    flex: 0 1 auto;
}

.cat-toolbar .cat-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 200px;
    justify-content: center;
}

.cat-toolbar__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-left: auto;
}

.cat-toolbar .cat-result-count {
    margin: 0;
    white-space: nowrap;
}

.cat-theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.btn--sm {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
}

/* Hero */
.cat-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 32px 0 28px;
}

@media (max-width: 900px) {
    .cat-hero {
        grid-template-columns: 1fr;
    }
}

.cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color, #2563eb);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 14px;
}

.cat-hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cat-hero__lead {
    font-size: 1.05rem;
    color: var(--text-muted, #64748b);
    max-width: 520px;
    margin-bottom: 22px;
    line-height: 1.65;
}

.cat-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-hero__panel {
    position: relative;
    border-radius: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cat-hero__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 50%, rgba(139, 92, 246, 0.1));
    pointer-events: none;
}

.cat-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cat-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cat-step__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-step strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.cat-step span {
    font-size: 13px;
    color: var(--text-muted);
}

/* How strip */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .cat-strip {
        grid-template-columns: 1fr;
    }
}

.cat-strip__item {
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--cat-radius);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-strip__val {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.cat-strip__label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Gallery section */
.cat-gallery__head {
    text-align: center;
    margin-bottom: 24px;
}

.cat-gallery__head h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 8px;
}

.cat-gallery__head p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Sticky toolbar */
.cat-sticky {
    position: sticky;
    top: var(--cat-sticky-top);
    z-index: 90;
    margin-bottom: 20px;
    padding: 12px 0;
    transition: box-shadow 0.2s;
}

.cat-sticky.is-elevated {
    padding-bottom: 14px;
}

.cat-sticky.is-elevated .cat-toolbar {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.cat-search {
    flex: 1;
    min-width: min(100%, 260px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #e2e8f0;
}

html[data-theme="dark"] .cat-search {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.cat-search i {
    color: var(--text-muted);
    font-size: 15px;
}

.cat-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font: inherit;
    color: inherit;
    min-width: 0;
}

.cat-search input:focus {
    outline: none;
}

.cat-search button {
    border: none;
    background: var(--primary-color, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.cat-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-sort button {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-secondary);
    transition: box-shadow 0.22s ease;
}

html[data-theme="dark"] .cat-sort button {
    background: rgba(30, 41, 59, 0.9);
}

.cat-sort button.is-active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cat-result-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.cat-result-count strong {
    color: var(--text-primary);
}

/* Grid — 4 columns on desktop (sidebar 260px + 24px gap from ~1240px container = ~956px → 4 cols at ~220px each) */
.idx-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    contain-intrinsic-size: auto 400px;
}

/* Cards */
.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 24px rgba(31, 38, 135, 0.07);
    transition: box-shadow 0.22s ease;
}

html[data-theme="dark"] .cat-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cat-card:hover {
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12);
}

.cat-card > * {
    position: relative;
    z-index: 2;
}

.cat-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf5 0%, #f1f5f9 100%);
}

html[data-theme="dark"] .cat-card__media {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.cat-card__price-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color, #2563eb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cat-card__price-tag.is-paid {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}

.cat-card__likes {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cat-card__likes i {
    color: #f87171;
    font-size: 10px;
}

.cat-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.cat-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary, #0f172a);
}

html[data-theme="dark"] .cat-card__title {
    color: #f1f5f9;
}

.cat-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.cat-card__title a:hover {
    color: var(--primary-color, #2563eb);
}

.cat-card__author {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cat-card__author i {
    font-size: 10px;
    opacity: 0.5;
}

.cat-card__license {
    font-size: 10px;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.cat-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .cat-card__actions {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.cat-card__actions .btn-blue,
.cat-card__actions .btn-ghost {
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 10px;
    justify-content: center;
    gap: 5px;
}

.cat-card__actions .btn-blue {
    background: var(--primary-color, #2563eb);
    color: #fff;
}

.cat-card__actions .btn-ghost {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-color, #2563eb);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

html[data-theme="dark"] .cat-card__actions .btn-ghost {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

@media (max-width: 400px) {
    .cat-card__actions {
        grid-template-columns: 1fr;
    }
}

/* Skeleton */
.cat-card--skeleton {
    pointer-events: none;
}

.cat-loading-inline {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.cat-loading-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(37, 99, 235, 0.12);
    border-top-color: var(--primary-color, #2563eb);
    border-radius: 50%;
    animation: cat-spin 0.7s linear infinite;
}

/* Libby Loading Overlay */
.cat-libby-overlay {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 56px;
    animation: cat-libby-fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-libby-card {
    background: var(--bg-card, #fff);
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px 48px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 340px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cat-libby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #2563eb);
    background-size: 300% 100%;
    animation: cat-libby-gradient 3s linear infinite;
    border-radius: 24px 24px 0 0;
}

.cat-libby-mascot {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    position: relative;
    animation: cat-libby-float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.15));
}

.cat-libby-mascot svg {
    width: 100%;
    height: 100%;
}

.cat-libby-sparkle {
    position: absolute;
    opacity: 0;
    animation: cat-libby-sparkle 2s ease-in-out infinite;
}

.cat-libby-sparkle:nth-child(2) { animation-delay: 0.7s; }
.cat-libby-sparkle:nth-child(3) { animation-delay: 1.4s; }

.cat-libby-text-wrap {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.cat-libby-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    animation: cat-libby-textIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    padding: 0 8px;
}

.cat-libby-progress {
    width: 100%;
    height: 6px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
}

.cat-libby-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.cat-libby-progress__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: cat-libby-shimmer 1.5s ease-in-out infinite;
}

@keyframes cat-libby-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cat-libby-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cat-libby-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes cat-libby-textIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cat-libby-textOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

@keyframes cat-libby-sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes cat-libby-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes cat-libby-blink {
    0%, 42%, 46%, 100% { transform: scaleY(1); }
    44% { transform: scaleY(0.1); }
}

@keyframes cat-libby-cube-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

html[data-theme="dark"] .cat-libby-card {
    background: #1e293b;
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .cat-libby-text {
    color: #e2e8f0;
}

html[data-theme="dark"] .cat-libby-progress {
    background: rgba(37, 99, 235, 0.15);
}

@media (max-width: 480px) {
    .cat-libby-card {
        padding: 32px 28px 28px;
        max-width: 280px;
    }
    .cat-libby-mascot {
        width: 96px;
        height: 96px;
    }
    .cat-libby-text {
        font-size: 13.5px;
    }
}

.cat-card--skeleton .cat-card__media {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: cat-shimmer 1.2s ease-in-out infinite;
}

.cat-card--skeleton .cat-skel-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: cat-shimmer 1.2s ease-in-out infinite;
}

.cat-card--skeleton .cat-skel-line.w60 { width: 60%; }
.cat-card--skeleton .cat-skel-line.w90 { width: 90%; }

.cat-load-skeleton {
    animation: cat-shimmer 1.5s ease-in-out infinite;
}

@keyframes cat-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Status */
.idx-catalog-status {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0;
    min-height: 0;
    display: none;
}

.idx-catalog-status--error {
    display: block;
    text-align: left;
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--cat-radius-sm);
    padding: 12px 16px;
    line-height: 1.55;
}

@keyframes cat-spin {
    to { transform: rotate(360deg); }
}

.idx-catalog-status--error a {
    color: var(--primary-color);
    font-weight: 600;
}

.is-hidden {
    display: none !important;
}

/* Empty */
.cat-empty {
    text-align: center;
    padding: 48px 24px;
    border-radius: var(--cat-radius);
    background: var(--liquid-bg);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    grid-column: 1 / -1;
}

.cat-empty i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 16px;
}

.cat-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cat-empty p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Load more */
.cat-load-more {
    display: flex;
    justify-content: center;
    margin: 20px 0 12px;
}

.cat-load-more button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 16px;
    border: none;
    background: var(--primary-color, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: box-shadow 0.22s ease;
}

.cat-load-more button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.cat-load-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    width: 100%;
}

.cat-load-spinner .cat-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--primary-color, #2563eb);
    border-radius: 50%;
    animation: cat-spin 0.7s linear infinite;
}

.cat-load-spinner span {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    font-weight: 500;
}

.cat-end-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 16px;
    display: none;
    background: rgba(37,99,235,0.04);
    border-radius: 14px;
    margin-top: 16px;
}

/* Libby Bottom Loader (pagination) */
.cat-libby-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 32px 16px 40px;
}

.cat-libby-bottom__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card, #fff);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
    padding: 16px 28px 16px 18px;
    animation: cat-libby-fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-libby-bottom__mascot {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    animation: cat-libby-float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.12));
}

.cat-libby-bottom__mascot svg {
    width: 100%;
    height: 100%;
}

.cat-libby-bottom__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    line-height: 1.3;
    white-space: nowrap;
}

html[data-theme="dark"] .cat-libby-bottom__inner {
    background: #1e293b;
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .cat-libby-bottom__text {
    color: #e2e8f0;
}

@media (max-width: 480px) {
    .cat-libby-bottom__inner {
        padding: 12px 20px 12px 14px;
        gap: 12px;
    }
    .cat-libby-bottom__mascot {
        width: 42px;
        height: 42px;
    }
    .cat-libby-bottom__text {
        font-size: 12.5px;
    }
}

/* Buttons shared */
.btn-blue,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-blue {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-blue:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

html[data-theme="dark"] .btn-ghost {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Scroll top */
.cat-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 800;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.cat-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Modal (order) */
.lbl-order-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lbl-order-modal.show {
    display: flex;
}

.lbl-order-modal-panel {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 22px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.98));
    border: 1px solid var(--liquid-border);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.lbl-order-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.lbl-order-modal-head h3 {
    font-size: 20px;
    margin: 0;
}

.lbl-order-modal-close {
    border: none;
    background: rgba(148, 163, 184, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.lbl-order-field {
    margin-bottom: 14px;
}

.lbl-order-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.lbl-order-field input,
.lbl-order-field select,
.lbl-order-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font: inherit;
    box-sizing: border-box;
    background: var(--input-bg, #fff);
    color: inherit;
}

.lbl-order-preview-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.06);
    margin-bottom: 14px;
}

.lbl-order-preview-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.lbl-order-file-zone {
    padding: 16px;
    border: 1.5px dashed rgba(37, 99, 235, 0.35);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

.lbl-order-file-zone.has-file {
    border-style: solid;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.lbl-order-auth-hint {
    font-size: 13px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    margin-bottom: 14px;
}

.lbl-order-error {
    display: none;
    font-size: 14px;
    color: #dc2626;
    margin-bottom: 12px;
}

.lbl-order-submit {
    width: 100%;
    margin-top: 8px;
}

/* ═══ FADE-IN ANIMATIONS ══════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ═══ CARD ENTRANCE ANIMATION ════════════════════════════════════════ */
@keyframes cat-card-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cat-card {
    opacity: 0;
    animation: cat-card-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .cat-card {
        animation: none;
        opacity: 1;
    }
}

/* ═══ SIDEBAR LAYOUT ════════════════════════════════════════════════ */
.cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.cat-sidebar {
    position: sticky;
    top: var(--cat-sticky-top);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(31, 38, 135, 0.07);
    padding: 20px;
    max-height: calc(100vh - var(--cat-sticky-top) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
}

html[data-theme="dark"] .cat-sidebar {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

.cat-sidebar__header {
    margin-bottom: 16px;
}

.cat-sidebar__heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #64748b);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-sidebar__heading i {
    font-size: 11px;
    opacity: 0.6;
}

.cat-sidebar__section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-sidebar__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cat-sort--sidebar {
    flex-direction: column;
    display: flex;
    gap: 6px;
}

.cat-sort--sidebar button {
    justify-content: flex-start;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #475569;
    transition: all 0.15s;
}

html[data-theme="dark"] .cat-sort--sidebar button {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.cat-sort--sidebar button.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

html[data-theme="dark"] .cat-sort--sidebar button.is-active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.cat-sort--sidebar button:hover:not(.is-active) {
    border-color: #2563eb;
    color: #2563eb;
}

.cat-sort--sidebar button i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
}

.cat-sidebar-search {
    display: flex;
    gap: 6px;
}

.cat-sidebar-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    background: #ffffff;
    color: #0f172a;
}

html[data-theme="dark"] .cat-sidebar-search input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.cat-sidebar-search input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cat-sidebar-search input::placeholder {
    color: #94a3b8;
}

.cat-sidebar-search button {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-sidebar-search button:hover {
    background: #1d4ed8;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.cat-sidebar__stats {
    font-size: 13px;
    color: var(--text-muted);
}

.cat-sidebar-toggle {
    display: none;
}

/* ═══ TOOLBAR MOBILE ════════════════════════════════════════════════ */

.cat-toolbar-mobile-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ═══ BOTTOM SEARCH BAR (MOBILE) ════════════════════════════════════ */
.cat-bottom-search {
    display: none;
}

/* ═══ MOBILE SORT FAB ══════════════════════════════════════════════ */
.cat-mobile-sort {
    display: none;
}

/* ═══ FILTER FAB (MOBILE) ══════════════════════════════════════════ */
.cat-sidebar-fab {
    display: none;
}

/* ═══ MOBILE FILTER PANEL ══════════════════════════════════════════ */
.cat-mobile-filter-panel {
    display: none;
}

@media (max-width: 900px) {
    .cat-sidebar-fab {
        display: flex;
        position: fixed;
        bottom: 108px;
        left: 16px;
        z-index: 910;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }
    .cat-sidebar-fab:active {
        transform: scale(0.92);
    }

    .cat-mobile-filter-panel {
        display: none;
        position: fixed;
        bottom: 172px;
        left: 16px;
        z-index: 909;
        width: calc(100vw - 32px);
        max-width: 360px;
        max-height: 60vh;
        overflow-y: auto;
        background: #fff;
        border-radius: 18px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
        padding: 16px;
    }

    .cat-mobile-filter-panel.is-open {
        display: block;
        animation: cat-panel-pop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes cat-panel-pop {
        from { opacity: 0; transform: translateY(12px) scale(0.95); }
        to { opacity: 1; transform: none; }
    }

    .cat-mobile-filter-panel__section {
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .cat-mobile-filter-panel__section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .cat-mobile-filter-panel__section h3 {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-muted, #64748b);
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .cat-mobile-filter-panel__section h3 i {
        font-size: 11px;
        opacity: 0.6;
    }

    .cat-sort--mobile-panel {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .cat-sort--mobile-panel button {
        justify-content: flex-start;
        width: 100%;
        padding: 10px 14px;
        border-radius: 10px;
        border: 1.5px solid #e2e8f0;
        background: #fff;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        color: #475569;
        transition: all 0.15s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .cat-sort--mobile-panel button.is-active {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    }

    .cat-sort--mobile-panel button:hover:not(.is-active) {
        border-color: #2563eb;
        color: #2563eb;
    }

    .cat-sort--mobile-panel button i {
        width: 18px;
        text-align: center;
    }

    .cat-mobile-filter-panel .cat-sidebar-search {
        display: flex;
        gap: 6px;
    }

    .cat-mobile-filter-panel .cat-sidebar-search input {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font: inherit;
        font-size: 13px;
        background: #fff;
        color: #0f172a;
    }

    .cat-mobile-filter-panel .cat-sidebar-search input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    .cat-mobile-filter-panel .cat-sidebar-search button {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        border: none;
        border-radius: 10px;
        background: #2563eb;
        color: #fff;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ═══ RESPONSIVE: TABLET & MOBILE ════════════════════════════════════ */
@media (max-width: 900px) {
    .cat-layout {
        grid-template-columns: 1fr;
    }

    .cat-sidebar {
        display: none;
    }

    .idx-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .cat-header__search-wrap {
        display: none !important;
    }

    .cat-header__content {
        flex-wrap: nowrap;
        padding-bottom: 0;
        gap: 8px;
    }

    .cat-header__logo {
        order: 1;
    }

    .cat-header__actions {
        order: 2;
        margin-left: auto;
    }

    body.lbl-catalog-app.lbl-site-chrome {
        padding-top: calc(var(--lbl-header-height, 60px) + env(safe-area-inset-top, 0px));
    }

    .cat-wrap {
        padding: 0 12px 24px;
    }

    .idx-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cat-card__body {
        padding: 10px 10px 12px;
    }

    .cat-card__title {
        font-size: 13px;
    }

    .cat-card__author {
        font-size: 11px;
    }

    .cat-card__actions .btn-blue,
    .cat-card__actions .btn-ghost {
        padding: 8px 6px;
        font-size: 11px;
        border-radius: 8px;
    }

    body {
        padding-bottom: 72px;
    }

    body.lbl-catalog-app.lbl-site-chrome {
        padding-bottom: 0;
    }

    .cat-bottom-search {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        background: transparent;
    }

    html[data-theme="dark"] .cat-bottom-search {
        background: transparent;
    }

    .cat-bottom-search__form {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 6px 0 14px;
        height: 44px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.88);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    }

    html[data-theme="dark"] .cat-bottom-search__form {
        background: rgba(30, 41, 59, 0.88);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .cat-bottom-search__form i {
        color: #94a3b8;
        font-size: 15px;
        flex-shrink: 0;
    }

    .cat-bottom-search__form input {
        flex: 1;
        border: none;
        background: transparent;
        font: inherit;
        font-size: 15px;
        color: #0f172a;
        min-width: 0;
        padding: 0;
        outline: none;
        -webkit-appearance: none;
        caret-color: var(--primary-color, #2563eb);
    }

    .cat-bottom-search__form input:focus {
        outline: none;
    }

    .cat-bottom-search__form input::placeholder {
        color: #94a3b8;
    }

    .cat-bottom-search__form button {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: #2563eb;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cat-mobile-sort {
        display: block;
        position: fixed;
        bottom: 78px;
        right: 16px;
        z-index: 900;
    }

    .cat-mobile-sort__toggle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: none;
        background: var(--primary-color, #2563eb);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }

    .cat-mobile-sort__toggle:active {
        transform: scale(0.92);
    }

    .cat-mobile-sort__dropdown {
        display: none;
        position: absolute;
        bottom: 56px;
        right: 0;
        min-width: 180px;
        background: var(--bg-card, #fff);
        border-radius: 14px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .cat-mobile-sort__dropdown.open {
        display: block;
        animation: cat-fadeIn 0.15s ease;
    }

    .cat-mobile-sort__dropdown button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 13px 16px;
        border: none;
        background: transparent;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary, #0f172a);
        cursor: pointer;
        text-align: left;
        font-family: inherit;
        transition: background 0.15s;
    }

    .cat-mobile-sort__dropdown button:active {
        background: rgba(37, 99, 235, 0.06);
    }

    .cat-mobile-sort__dropdown button.is-active {
        color: var(--primary-color, #2563eb);
        font-weight: 700;
        background: rgba(37, 99, 235, 0.06);
    }

    .cat-mobile-sort__dropdown button i {
        width: 18px;
        text-align: center;
        font-size: 13px;
    }

    .cat-card__actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cat-scroll-top {
        bottom: 100px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}
