/* =====================================================================
   DUPLINEXO — HALAMAN KATALOG WORKFLOW
   Navbar & footer global ada di layouts/public.blade.php (tidak disentuh).
   Seluruh aturan di-scope ke .catalog-page agar tidak bocor ke halaman lain.
   ===================================================================== */

.catalog-page {
    --cat-border: #E4E8F0;
    --cat-ink: #191D29;
    --cat-navy: #1E3A8A;
    --cat-body: #525B6B;
    --cat-secondary: #778196;
    --cat-soft: #E9EEFA;
    --cat-shadow-soft: 0 5px 20px rgba(25, 29, 41, .045);
    --cat-shadow-hover: 0 14px 32px -12px rgba(22, 42, 89, .20);
    display: block;
    background: #F7F8FC;
    color: var(--cat-ink);
}

.catalog-page * { box-sizing: border-box; }
.catalog-page button,
.catalog-page input,
.catalog-page select { font: inherit; }
.catalog-page button { cursor: pointer; }
.catalog-page a { color: inherit; text-decoration: none; }

/* Lebar konten mengikuti `.container` Tailwind yang dipakai navbar & beranda,
   supaya tepi kiri/kanan katalog sejajar dengan navbar (bukan 1240px tetap). */
.cat-shell {
    width: 100%;
    margin-inline: auto;
}

@media (min-width: 640px)  { .cat-shell { max-width: 640px; } }
@media (min-width: 768px)  { .cat-shell { max-width: 768px; } }
@media (min-width: 1024px) { .cat-shell { max-width: 1024px; } }
@media (min-width: 1280px) { .cat-shell { max-width: 1280px; } }
@media (min-width: 1536px) { .cat-shell { max-width: 1536px; } }

/* Di layar kecil beri jarak tepi agar kartu tidak menempel ke pinggir. */
@media (max-width: 639px) {
    .cat-shell { padding-inline: 16px; }
}

/* Saat hasil filter sedang diambil lewat AJAX (tanpa reload). */
.catalog-page #catalogBody { transition: opacity .18s ease; }
.catalog-page #catalogBody.is-loading { opacity: .5; }

/* ================= ANIMASI MASUK (fade in + slide up) =================
   Memakai kelas .reveal milik situs, tapi animasinya didefinisikan sendiri
   supaya tidak bentrok dengan transition hover pada .product-card. */
@keyframes cat-reveal {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.js-enabled .catalog-page .reveal.active {
    animation: cat-reveal .68s cubic-bezier(.16, 1, .3, 1) backwards;
}

/* Kartu muncul bergiliran, maksimal 6 supaya ekor halaman tidak lambat. */
.js-enabled .catalog-page .product-grid > .product-card.reveal.active:nth-child(2) { animation-delay: .07s; }
.js-enabled .catalog-page .product-grid > .product-card.reveal.active:nth-child(3) { animation-delay: .14s; }
.js-enabled .catalog-page .product-grid > .product-card.reveal.active:nth-child(4) { animation-delay: .21s; }
.js-enabled .catalog-page .product-grid > .product-card.reveal.active:nth-child(5) { animation-delay: .28s; }
.js-enabled .catalog-page .product-grid > .product-card.reveal.active:nth-child(n + 6) { animation-delay: .33s; }

/* Empty state & trust strip ikut halus. */
.js-enabled .catalog-page .trust-strip .trust-item.reveal.active:nth-child(2) { animation-delay: .08s; }
.js-enabled .catalog-page .trust-strip .trust-item.reveal.active:nth-child(3) { animation-delay: .16s; }
.js-enabled .catalog-page .trust-strip .trust-item.reveal.active:nth-child(4) { animation-delay: .24s; }

.js-enabled .catalog-page .reveal.no-anim { animation: none; }

/* Jeda bertahap untuk blok filter & chip populer saat halaman pertama dibuka. */
.js-enabled .catalog-page .filter-panel.reveal.active { animation-delay: .05s; }
.js-enabled .catalog-page .results-top.reveal.active { animation-delay: .1s; }
.js-enabled .catalog-page .quick-cats.reveal.active { animation-delay: .16s; }
.js-enabled .catalog-page .active-filters.reveal.active { animation-delay: .2s; }
.js-enabled .catalog-page .pagination-bar.reveal.active { animation-delay: .24s; }

/* Hormati preferensi pengguna yang mematikan animasi. */
@media (prefers-reduced-motion: reduce) {
    .js-enabled .catalog-page .reveal.active { animation: none; }
}

/* ---------------- INTRO ---------------- */
.catalog-page .intro { padding-block: 43px 27px; }

.catalog-page .intro-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}


.catalog-page h1 {
    margin: 0 0 10px;
    color: var(--cat-ink);
    font: 800 clamp(30px, 4vw, 44px)/1.13 'Sora', sans-serif;
    letter-spacing: -1.8px;
}

.catalog-page .intro-copy {
    max-width: 590px;
    margin: 0;
    color: var(--cat-body);
    font-size: 16px;
    line-height: 1.65;
}


/* ---------------- SEARCH ---------------- */
.catalog-page .search-row { display: flex; gap: 10px; align-items: center; }

.catalog-page .searchbox {
    flex: 1;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #dfe4ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 29, 41, .025);
    transition: border-color .2s, box-shadow .2s;
}
.catalog-page .searchbox:focus-within {
    border-color: #9baedb;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, .07);
}
.catalog-page .searchbox svg { width: 19px; height: 19px; flex: none; color: var(--cat-secondary); }
.catalog-page .searchbox input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--cat-ink);
    font: 500 14px 'Source Sans 3', sans-serif;
}
.catalog-page .searchbox input::placeholder { color: #9aa3b2; }

.catalog-page .shortcut {
    padding: 4px 7px;
    border: 1px solid var(--cat-border);
    border-radius: 6px;
    white-space: nowrap;
    color: #9aa3b2;
    font: 600 10px 'Instrument Sans', sans-serif;
}

.catalog-page .search-btn {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--cat-navy);
    border-radius: 50%;
    background: var(--cat-navy);
    color: #fff;
    transition: background .22s, transform .22s, box-shadow .22s;
}
.catalog-page .search-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #fff;
    stroke: currentColor;
}
.catalog-page .search-btn:hover {
    background: #173276;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px rgba(30, 58, 138, .55);
}
.catalog-page .search-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, .18);
}

.catalog-page .quick-cats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
}
.catalog-page .quick-label {
    margin-right: 2px;
    color: var(--cat-secondary);
    font: 600 11px 'Instrument Sans', sans-serif;
}
.catalog-page .quick-chip {
    padding: 7px 12px;
    border: 1px solid var(--cat-border);
    border-radius: 999px;
    background: #fff;
    color: #596476;
    font: 600 11px 'Instrument Sans', sans-serif;
    transition: border-color .2s, background .2s, color .2s;
}
.catalog-page .quick-chip:hover,
.catalog-page .quick-chip.active {
    border-color: #c4d0ec;
    background: var(--cat-soft);
    color: var(--cat-navy);
}

/* ---------------- LAYOUT ---------------- */
.catalog-page .catalog-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 25px;
    padding-block: 17px 80px;
    align-items: start;
}

/* ---------------- FILTER PANEL ---------------- */
.catalog-page .filter-panel {
    position: sticky;
    top: 94px;
    padding: 19px 18px;
    border: 1px solid var(--cat-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--cat-shadow-soft);
}
.catalog-page .filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f5;
}
.catalog-page .filter-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 800 14px 'Sora', sans-serif;
}
.catalog-page .filter-title .filter-glyph { width: 17px; height: 17px; color: var(--cat-navy); }
.catalog-page .filter-rail-label { display: none; }
.catalog-page .reset-btn {
    border: 0;
    background: none;
    padding: 4px 0;
    color: var(--cat-navy);
    font: 700 10px 'Instrument Sans', sans-serif;
}
.catalog-page .reset-btn:hover { text-decoration: underline; }

.catalog-page .filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.catalog-page .filter-collapse {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--cat-border);
    border-radius: 7px;
    background: #fff;
    color: #7c8798;
    line-height: 0;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.catalog-page .filter-collapse:hover { border-color: #c4d0e9; background: #f6f8fe; color: var(--cat-navy); }
.catalog-page .filter-collapse:focus-visible { outline: none; border-color: #9baedb; box-shadow: 0 0 0 3px rgba(30, 58, 138, .09); }
.catalog-page .filter-collapse svg { width: 15px; height: 15px; line-height: 0; transition: transform .26s ease; }

/* Panel dikecilkan: menyusut jadi rel 64px di kolom yang sama.
   Tidak ada elemen yang pindah tempat, tombolnya tetap di kepala panel. */
@media (min-width: 1025px) {
    .catalog-page .catalog-layout { transition: grid-template-columns .26s ease; }
    .catalog-page .catalog-layout.panel-collapsed { grid-template-columns: 52px minmax(0, 1fr); }

    .catalog-page .catalog-layout.panel-collapsed .filter-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 14px 6px;
        transition: padding .26s ease;
    }
    .catalog-page .catalog-layout.panel-collapsed .filter-head {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
        border: 0;
    }
    .catalog-page .catalog-layout.panel-collapsed .filter-glyph { width: 19px; height: 19px; }
    .catalog-page .catalog-layout.panel-collapsed .filter-rail-label {
        display: block;
        margin: 1px 0 0;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        color: #6c7688;
        font: 700 9px 'Instrument Sans', sans-serif;
        letter-spacing: .14em;
        text-transform: uppercase;
    }
    .catalog-page .catalog-layout.panel-collapsed .filter-title { gap: 9px; flex-direction: column; align-items: center; }
    .catalog-page .catalog-layout.panel-collapsed .filter-title-text,
    .catalog-page .catalog-layout.panel-collapsed .reset-btn,
    .catalog-page .catalog-layout.panel-collapsed .filter-section { display: none; }
    .catalog-page .catalog-layout.panel-collapsed .filter-actions { flex-direction: column; }
    .catalog-page .catalog-layout.panel-collapsed .filter-collapse svg { transform: rotate(180deg); }
}

.catalog-page .filter-section {
    padding-bottom: 17px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf0f5;
}
.catalog-page .filter-section:last-child { padding-bottom: 0; margin-bottom: 0; border: 0; }
.catalog-page .filter-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    color: #30394b;
    font: 700 11px 'Instrument Sans', sans-serif;
}
.catalog-page .filter-section h3 small {
    color: #a0a8b6;
    font: 500 10px 'Source Sans 3', sans-serif;
}

.catalog-page .filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
    color: #667184;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}
.catalog-page .filter-option input {
    appearance: none;
    flex: none;
    width: 15px;
    height: 15px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid #cbd2de;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.catalog-page .filter-option input:checked {
    border-color: var(--cat-navy);
    background: var(--cat-navy);
}
.catalog-page .filter-option input:checked::after {
    content: '\2713';
    color: #fff;
    font: 700 10px 'Instrument Sans', sans-serif;
}
.catalog-page .filter-option input[type="radio"] { border-radius: 50%; }
.catalog-page .filter-option input[type="radio"]:checked::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}
.catalog-page .filter-option.is-empty { opacity: .62; }

.catalog-page .filter-scroll { max-height: 232px; overflow-y: auto; padding-right: 4px; }
.catalog-page .filter-scroll::-webkit-scrollbar { width: 6px; }
.catalog-page .filter-scroll::-webkit-scrollbar-thumb { background: #dde3ee; border-radius: 6px; }

.catalog-page .option-count {
    margin-left: auto;
    color: #a1a9b6;
    font: 500 10px 'Instrument Sans', sans-serif;
}
.catalog-page .type-mark {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: #9ba9c7;
}
.catalog-page .type-mark.premium { background: var(--cat-navy); }
.catalog-page .type-mark.free { background: #3b9b72; }

.catalog-page .filter-hint {
    margin: 9px 0 0;
    color: #9aa3b2;
    font-size: 10px;
    line-height: 1.5;
}

/* ---------------- RESULTS BAR ---------------- */
.catalog-page .results { min-width: 0; }

.catalog-page .results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 13px;
}
.catalog-page .result-count {
    color: #606b7e;
    font: 700 12px 'Instrument Sans', sans-serif;
}
.catalog-page .result-count strong { color: var(--cat-ink); }

.catalog-page .toolbar { display: flex; align-items: center; gap: 9px; }
.catalog-page .view-btn {
    width: 36px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cat-border);
    border-radius: 9px;
    background: #fff;
    color: #8791a1;
    transition: color .2s, border-color .2s, background .2s;
}
.catalog-page .view-btn.active,
.catalog-page .view-btn:hover {
    border-color: #bfcae5;
    background: #f6f8fe;
    color: var(--cat-navy);
}
.catalog-page .view-btn svg { width: 16px; height: 16px; }

.catalog-page .mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--cat-border);
    border-radius: 9px;
    background: #fff;
    color: #43506a;
    font: 700 10px 'Instrument Sans', sans-serif;
}
.catalog-page .mobile-filter-btn svg { width: 14px; height: 14px; }

/* ---------------- ACTIVE CHIPS ---------------- */
.catalog-page .active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 15px;
    min-height: 4px;
}
.catalog-page .active-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #e0e7f7;
    border-radius: 7px;
    background: #edf1fa;
    color: #425a91;
    font: 600 10px 'Instrument Sans', sans-serif;
}
.catalog-page .active-chip button,
.catalog-page .active-chip b {
    border: 0;
    background: none;
    padding: 0;
    color: #667aa8;
    font-size: 14px;
    font-weight: 700;
    line-height: 10px;
}

.catalog-page .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;
}
.catalog-page .clear-inline {
    border: 0;
    background: none;
    padding: 5px;
    color: var(--cat-navy);
    font: 700 10px 'Instrument Sans', sans-serif;
}

/* ---------------- PRODUCT GRID ---------------- */
.catalog-page .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.catalog-page .product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cat-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(25, 29, 41, .025);
    transition: transform .24s, border-color .24s, box-shadow .24s;
}
.catalog-page .product-card:hover {
    transform: translateY(-4px);
    border-color: #c8d2e8;
    box-shadow: var(--cat-shadow-hover);
}

/* --- thumb --- */
.catalog-page .thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 17px;
    background: #17213c;
}
.catalog-page .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(140deg, rgba(255, 255, 255, .055), transparent 45%, rgba(9, 17, 36, .2));
}
.catalog-page .thumb.tone-slate { background: #202b40; }
.catalog-page .thumb.tone-indigo { background: #24234b; }
.catalog-page .thumb.tone-deep { background: #111c30; }
.catalog-page .thumb.tone-light { background: #e9eef8; }
.catalog-page .thumb.tone-soft { background: #e8edf6; }

.catalog-page .thumb-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.25, .8, .25, 1);
}
.catalog-page .product-card:hover .thumb-img { transform: scale(1.04); }

.catalog-page .thumb-art {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-page .node-map {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-page .node-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.catalog-page .node {
    position: absolute;
    z-index: 2;
    min-width: 64px;
    max-width: 83px;
    padding: 7px 8px;
    border: 1px solid rgba(222, 229, 242, .95);
    border-radius: 7px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 13px rgba(0, 0, 0, .14);
    color: #35415a;
    font: 700 8px 'Instrument Sans', sans-serif;
    line-height: 1.2;
}
.catalog-page .node small {
    display: block;
    margin-bottom: 4px;
    color: #8994a7;
    font: 600 6px 'Instrument Sans', sans-serif;
    letter-spacing: .7px;
    text-transform: uppercase;
}
.catalog-page .node .node-icon {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    margin-right: 4px;
    border-radius: 4px;
    background: #e9efff;
    color: #31569b;
    font-size: 8px;
}
.catalog-page .n1 { left: 3%; top: 24%; }
.catalog-page .n2 { left: 38%; top: 8%; }
.catalog-page .n3 { right: 2%; top: 35%; }
.catalog-page .n4 { left: 37%; bottom: 4%; }
.catalog-page .n2 .node-icon { background: #f0eaff; color: #7658a9; }
.catalog-page .n3 .node-icon { background: #e5f4ed; color: #299364; }
.catalog-page .n4 .node-icon { background: #fff0e4; color: #c47a37; }

.catalog-page .mini-window {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 9px 20px rgba(0, 0, 0, .15);
}
.catalog-page .mini-top {
    height: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.catalog-page .mini-top i { width: 4px; height: 4px; border-radius: 50%; background: #f1a5a5; }
.catalog-page .mini-top i:nth-child(2) { background: #e9ca78; }
.catalog-page .mini-top i:nth-child(3) { background: #78c7a1; }
.catalog-page .mini-label {
    color: rgba(255, 255, 255, .55);
    font: 700 6px 'Instrument Sans', sans-serif;
    letter-spacing: 1px;
}
.catalog-page .mini-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin-top: 10px;
}
.catalog-page .mini-block {
    height: 38px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 4px;
    background: rgba(255, 255, 255, .09);
}
.catalog-page .mini-block b {
    display: block;
    width: 60%;
    height: 3px;
    margin-bottom: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .7);
}
.catalog-page .mini-block span {
    display: block;
    width: 85%;
    height: 2px;
    margin: 3px 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .25);
}

.catalog-page .thumb-number {
    position: absolute;
    right: 12px;
    bottom: 9px;
    z-index: 4;
    color: rgba(255, 255, 255, .55);
    font: 600 8px 'Instrument Sans', sans-serif;
}
.catalog-page .thumb.tone-light .thumb-number,
.catalog-page .thumb.tone-soft .thumb-number { color: #8792a5; }
.catalog-page .thumb.tone-light .mini-window,
.catalog-page .thumb.tone-soft .mini-window { background: rgba(255, 255, 255, .55); border-color: #d9e0ed; }
.catalog-page .thumb.tone-light .mini-label,
.catalog-page .thumb.tone-soft .mini-label { color: #68758e; }
.catalog-page .thumb.tone-light .mini-block,
.catalog-page .thumb.tone-soft .mini-block { background: #fff; border-color: #dbe2ef; }
.catalog-page .thumb.tone-light .mini-block b,
.catalog-page .thumb.tone-soft .mini-block b { background: #8b9bbd; }
.catalog-page .thumb.tone-light .mini-block span,
.catalog-page .thumb.tone-soft .mini-block span { background: #d2d9e6; }

/* --- body --- */
.catalog-page .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 16px 14px;
}
.catalog-page .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}
.catalog-page .version-label {
    display: inline-flex; align-items: center;
    padding: 2px 6px; border-radius: 5px;
    background: #eef2fb; color: #3d4a63;
    font: 700 8px 'Instrument Sans', sans-serif; letter-spacing: .3px;
}

.catalog-page .category-label {
    padding: 5px 7px;
    border-radius: 5px;
    background: #f0f3f8;
    color: #66738b;
    font: 700 9px 'Instrument Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.catalog-page .access-label {
    padding: 5px 7px;
    border-radius: 5px;
    font: 800 8px 'Instrument Sans', sans-serif;
    letter-spacing: .65px;
    text-transform: uppercase;
    white-space: nowrap;
}
.catalog-page .access-label.free { background: #eaf6ef; color: #278057; }
.catalog-page .access-label.premium { background: #e9eefb; color: var(--cat-navy); }

.catalog-page .card-title {
    min-height: 39px;
    margin: 0 0 6px;
    color: #20283a;
    font: 700 14px/1.4 'Sora', sans-serif;
    letter-spacing: -.25px;
}
.catalog-page .card-title a:hover { color: var(--cat-navy); }

.catalog-page .card-desc {
    min-height: 34px;
    margin: 0 0 12px;
    color: #7a8495;
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-page .rating-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eff1f5;
}
.catalog-page .stars { color: #e4a83e; font-size: 11px; letter-spacing: 1px; }
.catalog-page .rating-text { color: #455064; font: 700 10px 'Instrument Sans', sans-serif; }
.catalog-page .rating-count { color: #9aa3b1; font-size: 10px; }
.catalog-page .rating-none { color: #9aa3b1; font: 600 10px 'Instrument Sans', sans-serif; }
.catalog-page .downloads {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8b94a3;
    font: 600 9px 'Instrument Sans', sans-serif;
    white-space: nowrap;
}
.catalog-page .downloads svg { width: 12px; height: 12px; }

.catalog-page .card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eff1f5;
}
.catalog-page .card-action > a:first-child {
    color: var(--cat-navy);
    font: 700 10px 'Instrument Sans', sans-serif;
    letter-spacing: .2px;
    transition: color .2s;
}
.catalog-page .card-action > a:first-child:hover { color: #173276; }
.catalog-page .arrow-btn {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f3fb;
    color: var(--cat-navy);
    transition: background .2s, color .2s, transform .2s;
}
.catalog-page .product-card:hover .arrow-btn {
    background: var(--cat-navy);
    color: #fff;
    transform: translateX(2px);
}
.catalog-page .arrow-btn svg { width: 13px; height: 13px; }

/* --- list view --- */
.catalog-page .product-grid.list-view { grid-template-columns: 1fr; }
.catalog-page .list-view .product-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 180px;
}
.catalog-page .list-view .thumb { height: 100%; min-height: 180px; aspect-ratio: auto; }
.catalog-page .list-view .card-body { padding: 17px 20px; }
.catalog-page .list-view .card-title { min-height: 0; }
.catalog-page .list-view .card-desc { min-height: 0; max-width: 580px; }

/* ---------------- EMPTY / PAGINATION ---------------- */
.catalog-page .empty-state {
    grid-column: 1 / -1;
    padding: 55px 20px;
    border: 1px dashed #d6deeb;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}
.catalog-page .empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #eff3fb;
    color: var(--cat-navy);
}
.catalog-page .empty-icon svg { width: 22px; height: 22px; }
.catalog-page .empty-state h3 { margin: 0 0 7px; font: 700 16px 'Sora', sans-serif; }
.catalog-page .empty-state p { margin: 0 0 17px; color: var(--cat-secondary); font-size: 12px; }
.catalog-page .empty-state a {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid #cbd5eb;
    border-radius: 8px;
    background: #f6f8fd;
    color: var(--cat-navy);
    font: 700 11px 'Instrument Sans', sans-serif;
}

.catalog-page .pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 23px;
    color: #8992a1;
    font: 600 10px 'Instrument Sans', sans-serif;
}
.catalog-page .pagination-bar .pages { display: flex; gap: 5px; }
.catalog-page .pagination-bar .pages a,
.catalog-page .pagination-bar .pages span {
    min-width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid var(--cat-border);
    border-radius: 8px;
    background: #fff;
    color: #6d7789;
    font: 700 10px 'Instrument Sans', sans-serif;
}
.catalog-page .pagination-bar .pages .is-active {
    border-color: var(--cat-navy);
    background: var(--cat-navy);
    color: #fff;
}
.catalog-page .pagination-bar .pages .is-disabled { opacity: .45; }

/* ---------------- TRUST STRIP ---------------- */
.catalog-page .trust-strip {
    padding: 19px 0;
    border-top: 1px solid var(--cat-border);
    border-bottom: 1px solid var(--cat-border);
    background: #fff;
}
.catalog-page .trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}
.catalog-page .trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #697588;
    font: 600 11px 'Instrument Sans', sans-serif;
}
.catalog-page .trust-item svg { width: 17px; height: 17px; color: var(--cat-navy); }

/* ---------------- MOBILE ---------------- */
.catalog-page .mobile-overlay { display: none; }

@media (max-width: 1050px) {
    .catalog-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .catalog-page .intro { padding-block: 30px 19px; }
    .catalog-page .intro-row { display: block; margin-bottom: 19px; }
    .catalog-page h1 { font-size: 32px; letter-spacing: -1.2px; }
    .catalog-page .intro-copy { font-size: 14px; }
    .catalog-page .search-row { gap: 7px; }
    .catalog-page .searchbox { height: 42px; padding: 0 12px; }
    .catalog-page .shortcut { display: none; }
    .catalog-page .search-btn { width: 42px; height: 42px; padding: 0; }
    .catalog-page .quick-cats { gap: 6px; }
    .catalog-page .quick-chip { padding: 7px 10px; font-size: 10px; }

    .catalog-page .catalog-layout { display: block; padding-top: 10px; }
    .catalog-page .filter-panel {
        display: none;
        position: fixed;
        z-index: 70;
        inset: 76px 12px 12px;
        overflow: auto;
        box-shadow: 0 20px 60px rgba(10, 20, 40, .22);
    }
    .catalog-page .filter-panel.open { display: block; }
    .catalog-page .mobile-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 60;
        background: rgba(19, 28, 48, .35);
    }

    .catalog-page .results-top { flex-wrap: wrap; gap: 10px; }
    .catalog-page .result-count { flex: 1; }
    .catalog-page .toolbar { margin-left: auto; }
    .catalog-page .mobile-filter-btn { display: flex; }
    .catalog-page .view-btn { display: none; }

    .catalog-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .catalog-page .thumb { padding: 11px; }
    .catalog-page .card-body { padding: 12px 11px; }
    .catalog-page .card-title { min-height: 35px; font-size: 12px; }
    .catalog-page .card-desc { min-height: 44px; font-size: 10px; }
    .catalog-page .category-label { font-size: 8px; }
    .catalog-page .access-label { padding: 4px 5px; font-size: 7px; }
    .catalog-page .list-view .product-card { grid-template-columns: 115px minmax(0, 1fr); min-height: 150px; }
    .catalog-page .list-view .thumb { min-height: 150px; }

    .catalog-page .pagination-bar { display: block; text-align: center; }
    .catalog-page .pagination-bar .pages { justify-content: center; margin-top: 12px; }
    .catalog-page .trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
    .catalog-page .trust-item { font-size: 9px; }
}

@media (max-width: 390px) {
    .catalog-page .product-grid { grid-template-columns: 1fr; }
    .catalog-page .card-title,
    .catalog-page .card-desc { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-page *,
    .catalog-page *::before,
    .catalog-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
