/* ── VR Catalog Plugin — catalog.css ─────────────────────────────────────── */

.vrc-wrap {
    --vrc-bg:       #ffffff;
    --vrc-surface:  #ffffff;
    --vrc-surface2: #f7f8fa;
    --vrc-border:   #e4e7ec;
    --vrc-accent:   #111111;
    --vrc-accent2:  #444444;
    --vrc-text:     #111111;
    --vrc-muted:    #888888;
    --vrc-new-bg:   #111111;
    --vrc-fav:      #e03a3a;
    --vrc-radius:   12px;
    --vrc-glow:     rgba(0,0,0,0.07);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--vrc-text);
    width: 100%;
}

/* ── FILTERS ─────────────────────────────────────────────────────────────── */
.vrc-filters {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: .8rem;
    width: 100%;
}

.vrc-search-wrap {
    position: relative;
    width: 100%;
}

.vrc-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #888;
    pointer-events: none;
}

.vrc-search {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #111 !important;
    border-radius: 8px !important;
    padding: .65rem .9rem .65rem 2.2rem !important;
    color: #111 !important;
    font-size: .88rem !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s;
}
.vrc-search:focus {
    border-color: #bf3fba !important;
    box-shadow: 0 0 0 2px rgba(191,63,186,0.15) !important;
}
.vrc-search::placeholder { color: #999 !important; }

.vrc-sort {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    padding: .65rem 1rem !important;
    color: #111 !important;
    font-size: .85rem !important;
    outline: none !important;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: auto;
    appearance: auto;
}
.vrc-sort:focus,
.vrc-sort:hover {
    border-color: #bf3fba !important;
    box-shadow: 0 0 0 2px rgba(191,63,186,0.15) !important;
}
.vrc-sort option { background: #ffffff; color: #111; }

/* ── CHIPS ───────────────────────────────────────────────────────────────── */
.vrc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .75rem;
}

.vrc-chip {
    padding: .32rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1.4;
}
.vrc-chip:hover,
.vrc-chip.active {
    border-color: #bf3fba;
    color: #fff;
    background: #bf3fba;
}

/* ── COUNT ───────────────────────────────────────────────────────────────── */
.vrc-count {
    font-size: .8rem !important;
    color: var(--vrc-muted) !important;
    margin: 0 0 .75rem !important;
    padding: 0 !important;
}

/* ── GRID ────────────────────────────────────────────────────────────────── */
.vrc-grid {
    display: grid !important;
    gap: 1.1rem !important;
}
.vrc-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.vrc-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.vrc-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
.vrc-cols-5 { grid-template-columns: repeat(5, 1fr) !important; }

@media (max-width: 1100px) {
    .vrc-cols-5 { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 900px) {
    .vrc-cols-4,
    .vrc-cols-5 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 680px) {
    .vrc-cols-3,
    .vrc-cols-4,
    .vrc-cols-5 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 420px) {
    .vrc-cols-2,
    .vrc-cols-3,
    .vrc-cols-4,
    .vrc-cols-5 { grid-template-columns: 1fr 1fr !important; }
}

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.vrc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.vrc-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 .6rem;
    border-radius: 7px;
    border: 1px solid #e4e7ec;
    background: #fff;
    color: #444;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.vrc-page-btn:hover {
    border-color: #bf3fba;
    color: #bf3fba;
}
.vrc-page-btn.active {
    background: #bf3fba;
    border-color: #bf3fba;
    color: #fff;
    font-weight: 700;
}
.vrc-page-btn:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}
.vrc-page-dots {
    color: #aaa;
    font-size: .85rem;
    padding: 0 .2rem;
    user-select: none;
}

/* ── CARD ────────────────────────────────────────────────────────────────── */
@keyframes vrcFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.vrc-card {
    background: var(--vrc-surface);
    border: 1px solid var(--vrc-border);
    border-radius: var(--vrc-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s, border-color .22s, box-shadow .22s;
    animation: vrcFadeUp .38s ease both;
}
.vrc-card:hover {
    transform: translateY(-3px);
    border-color: #ccc;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

/* Thumbnail */
.vrc-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f1f3;
    overflow: hidden;
}
.vrc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.vrc-card:hover .vrc-thumb img { transform: scale(1.05); }

.vrc-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    background: #f7f8fa;
}

/* Badges */
.vrc-badge-new {
    position: absolute;
    top: 7px; left: 7px;
    background: #111;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.vrc-badge-price {
    position: absolute;
    bottom: 7px; right: 7px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border: 1px solid #e4e7ec;
    color: #111;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

/* Body */
.vrc-body {
    padding: .8rem .9rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    flex: 1;
}

.vrc-title {
    font-size: .78rem !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    color: var(--vrc-text) !important;
    text-transform: uppercase;
}

/* Tags */
.vrc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.vrc-tag {
    background: #f2f3f5;
    border: 1px solid #e4e7ec;
    color: #666;
    font-size: .65rem;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s;
}
.vrc-tag:hover,
.vrc-tag.vrc-tag-active {
    background: #bf3fba;
    border-color: #bf3fba;
    color: #fff;
}

/* Footer */
.vrc-footer {
    margin-top: auto;
    padding-top: .55rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vrc-btn-store {
    flex: 1;
    display: block;
    text-align: center;
    background: #fff;
    color: #111 !important;
    text-decoration: none !important;
    padding: .4rem .5rem;
    border-radius: 7px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    transition: background .2s, color .2s, border-color .2s;
    border: 1px solid #111 !important;
    cursor: pointer;
}
.vrc-btn-store:hover {
    background: #bf3fba !important;
    border-color: #bf3fba !important;
    color: #fff !important;
}
.vrc-btn-disabled {
    background: #f2f3f5 !important;
    color: #aaa !important;
    border-color: #e4e7ec !important;
    cursor: default;
}
.vrc-btn-disabled:hover {
    background: #f2f3f5 !important;
    border-color: #e4e7ec !important;
    color: #aaa !important;
}

.vrc-btn-fav {
    background: none;
    border: 1px solid #e4e7ec !important;
    border-radius: 7px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    font-size: .9rem;
    transition: all .2s;
    padding: 0;
    line-height: 1;
}
.vrc-btn-fav:hover,
.vrc-btn-fav.active {
    border-color: #bf3fba !important;
    color: #bf3fba;
}

/* ── EMPTY STATES ────────────────────────────────────────────────────────── */
.vrc-empty,
.vrc-no-results {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--vrc-muted);
}
.vrc-empty-icon { display: block; font-size: 2.5rem; margin-bottom: .75rem; }
.vrc-empty p,
.vrc-no-results p { font-size: .88rem !important; color: var(--vrc-muted) !important; margin: 0 !important; }
