﻿/* =========================================================
   VENDORS  –  list (/vendors) + store (/vendor/{id})
   prefix: vl- (page)  vf- (filters)  vc- (vendor card)  vs- (store)  pc- (product card)
   Bootstrap-free, compact, responsive. Tokens: --fn-* (layout.css)
   ========================================================= */
.vl {
    --p: var(--fn-primary, #4f46e5);
    --p2: #7c3aed;
    --acc: var(--fn-accent, #f97316);
    --ink: var(--fn-ink, #0f172a);
    --mut: var(--fn-muted, #64748b);
    --line: var(--fn-line, #e2e8f0);
    --bg: var(--fn-bg, #f8fafc);
    background: var(--bg);
    color: var(--ink);
    min-height: 60vh;
    overflow-x: hidden;
}

    .vl *, .vl *::before, .vl *::after {
        box-sizing: border-box;
    }

    .vl [hidden] {
        display: none !important;
    }

    .vl a {
        text-decoration: none;
        color: inherit;
    }

    .vl h1, .vl h2, .vl h3, .vl p, .vl ul {
        margin: 0;
        padding: 0;
    }

    .vl ul {
        list-style: none;
    }

    .vl img {
        max-width: 100%;
        display: block;
    }

    .vl button, .vl input, .vl select {
        font-family: inherit;
    }

.vl-wrap {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(8px, 2vw, 20px);
}

/* ---------- hero (list) ---------- */
.vl-top {
    position: relative;
    isolation: isolate;
    color: #fff;
    padding-block: clamp(16px, 3.4vw, 30px);
    background: linear-gradient(120deg, #312e81, var(--p) 45%, var(--p2) 75%, var(--acc));
    overflow: hidden;
}

    .vl-top::after {
        content: "";
        position: absolute;
        right: -60px;
        top: -80px;
        width: 280px;
        height: 280px;
        z-index: -1;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
    }

.vl-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: rgba(255, 255, 255, .8);
}

    .vl-crumb a:hover {
        color: #fff;
    }

    .vl-crumb i {
        font-size: .62rem;
    }

    .vl-crumb span {
        color: #fff;
        font-weight: 700;
    }

.vl-hrow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.vl-title {
    font-size: clamp(1.4rem, 3.6vw, 2.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #fff;
}

    .vl-title span {
        color: #fde68a;
    }

.vl-sub {
    margin-top: 4px;
    font-size: clamp(.82rem, 1.4vw, .95rem);
    color: rgba(255, 255, 255, .85);
}

.vl-hright {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vl-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: .82rem;
    font-weight: 700;
}

    .vl-total b {
        font-size: 1.05rem;
    }

.vl-sell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 99px;
    background: #fff;
    color: var(--p) !important;
    font-size: .82rem;
    font-weight: 800;
    transition: transform .15s, box-shadow .2s;
}

    .vl-sell:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    }

/* ---------- layout ---------- */
.vl-body {
    padding-block: clamp(10px, 2vw, 18px) clamp(18px, 3vw, 32px);
}

.vl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.vl-main {
    min-width: 0;
}

.vl-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

/* toolbar */
.vl-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.vl-count {
    flex: 1;
    min-width: 0;
    font-size: .84rem;
    color: var(--mut);
}

    .vl-count b {
        color: var(--ink);
    }

.vl-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .82rem;
    color: var(--mut);
}

    .vl-sort select {
        height: 38px;
        padding: 0 10px;
        border: 1.5px solid var(--line);
        border-radius: 10px;
        background: #fff;
        font-size: .86rem;
        font-weight: 600;
        color: var(--ink);
        cursor: pointer;
    }

        .vl-sort select:focus {
            outline: 0;
            border-color: var(--p);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
        }

.vl-fbtn {
    display: none;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

    .vl-fbtn b {
        min-width: 18px;
        height: 18px;
        display: inline-grid;
        place-items: center;
        border-radius: 99px;
        background: var(--p);
        color: #fff;
        font-size: .68rem;
    }

/* chips */
.vl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

    .vl-chips a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 99px;
        background: #eef2ff;
        color: var(--p);
        font-size: .78rem;
        font-weight: 700;
        transition: background .15s;
    }

        .vl-chips a i {
            font-size: .65rem;
        }

        .vl-chips a:hover {
            background: #e0e7ff;
        }

    .vl-chips .vl-clear {
        background: transparent;
        color: var(--mut);
        text-decoration: underline;
    }

/* ---------- filter panel ---------- */
.vf {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

    .vf form {
        display: flex;
        flex-direction: column;
        max-height: inherit;
    }

.vf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

    .vf-head h2 {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        font-weight: 800;
    }

        .vf-head h2 i {
            color: var(--p);
            font-size: .85rem;
        }

.vf-x {
    display: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--mut);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.vf-scroll {
    padding: 4px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vf-box {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

    .vf-box:last-child {
        border-bottom: 0;
    }

.vf-title {
    display: block;
    margin: 0 0 8px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink);
}

.vf-in {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

    .vf-in:focus-within {
        background: #fff;
        border-color: var(--p);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
    }

    .vf-in i {
        color: var(--mut);
        font-size: .85rem;
    }

    .vf-in input {
        flex: 1;
        min-width: 0;
        padding: 10px 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 16px;
        color: var(--ink);
    }

.vf-list {
    display: grid;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
    margin-inline: -4px;
    padding-inline: 4px;
}

.vf-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: .88rem;
    cursor: pointer;
    transition: background .15s;
}

    .vf-opt:hover {
        background: var(--bg);
    }

    .vf-opt input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .vf-opt em {
        flex: 1;
        min-width: 0;
        font-style: normal;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vf-opt small {
        color: var(--mut);
        font-size: .72rem;
        font-weight: 700;
    }

.vf-dot {
    width: 17px;
    height: 17px;
    flex: none;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    transition: .15s;
}

    .vf-dot.is-box {
        border-radius: 5px;
    }

.vf-opt input:checked + .vf-dot {
    border-color: var(--p);
    background: var(--p);
    box-shadow: inset 0 0 0 3px #fff;
}

    .vf-opt input:checked + .vf-dot.is-box {
        box-shadow: none;
    }

        .vf-opt input:checked + .vf-dot.is-box::after {
            content: "";
            width: 4px;
            height: 8px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg) translate(-1px, -1px);
        }

.vf-opt input:checked ~ em {
    color: var(--p);
}

.vf-opt input:focus-visible + .vf-dot {
    outline: 2px solid var(--p);
    outline-offset: 2px;
}

.vf-stars {
    color: #f59e0b;
    font-size: .78rem;
    letter-spacing: 1px;
}

.vf-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .vf-price input {
        flex: 1;
        min-width: 0;
        height: 40px;
        padding: 0 10px;
        border: 1.5px solid var(--line);
        border-radius: 10px;
        background: var(--bg);
        font-size: 16px;
        color: var(--ink);
    }

        .vf-price input:focus {
            outline: 0;
            background: #fff;
            border-color: var(--p);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
        }

    .vf-price span {
        color: var(--mut);
        font-size: .8rem;
    }

.vf-hint {
    display: block;
    margin-top: 6px;
    color: var(--mut);
    font-size: .74rem;
}

.vf-foot {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
}

.vf-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff !important;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
}

    .vf-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
    }

    .vf-btn.is-line {
        flex: none;
        padding: 0 16px;
        background: #fff;
        color: var(--ink) !important;
        border: 1.5px solid var(--line);
    }

        .vf-btn.is-line:hover {
            box-shadow: none;
            border-color: var(--p);
            color: var(--p) !important;
        }

.vf-bg {
    display: none;
}

/* ---------- buttons / empty ---------- */
.vl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff !important;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
}

    .vl-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
    }

.vl-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: clamp(30px, 7vw, 64px) 12px;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    color: var(--mut);
}

    .vl-empty i {
        font-size: 2.4rem;
        opacity: .55;
    }

    .vl-empty h3 {
        font-size: 1.05rem;
        color: var(--ink);
    }

    .vl-empty p {
        max-width: 380px;
        font-size: .88rem;
    }

    .vl-empty .vl-btn {
        margin-top: 8px;
    }

.vl-panel.vl-empty {
    margin-top: 0;
}

/* ---------- vendor cards ---------- */
.vl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: clamp(8px, 1.4vw, 14px);
    margin-top: 10px;
}

.vc {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s, box-shadow .2s, border-color .2s;
}

    .vc:hover {
        transform: translateY(-3px);
        border-color: #c7d2fe;
        box-shadow: 0 14px 30px rgba(79, 70, 229, .14);
    }

.vc-banner {
    display: block;
    height: 92px;
    background: linear-gradient(120deg, #c7d2fe, #ddd6fe 55%, #fed7aa);
    overflow: hidden;
}

    .vc-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s;
    }

.vc:hover .vc-banner img {
    transform: scale(1.05);
}

.vc-logo, .vs-logo {
    position: relative;
    display: grid;
    place-items: center;
    background: #fff;
    border: 3px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
}

.vc-logo {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 14px;
    border-radius: 16px;
}

    .vc-logo img, .vs-logo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #fff;
    }

    .vc-logo b, .vs-logo b {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--p);
    }

.vc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 8px 14px 14px;
}

.vc-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.02rem;
    font-weight: 800;
}

    .vc-name a {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .vc-name a:hover {
            color: var(--p);
        }

.vc-ver {
    color: #0ea5e9;
    font-size: .9rem;
    flex: none;
}

.vc-rate {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-size: .78rem;
}

    .vc-rate span {
        margin-left: 6px;
        color: var(--mut);
        font-size: .78rem;
        font-weight: 600;
    }

.vc-info {
    display: grid;
    gap: 5px;
    font-size: .82rem;
    color: var(--mut);
}

    .vc-info li {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .vc-info i {
        width: 14px;
        flex: none;
        text-align: center;
        color: var(--p);
        font-size: .8rem;
    }

    .vc-info a, .vc-info span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .vc-info a:hover {
            color: var(--p);
        }

.vc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.vc-stats {
    display: flex;
    gap: 12px;
    font-size: .74rem;
    color: var(--mut);
}

    .vc-stats span {
        display: grid;
        line-height: 1.25;
    }

    .vc-stats b {
        font-size: .95rem;
        color: var(--ink);
    }

.vc-visit {
    padding: 8px 14px;
}

    .vc-visit i {
        font-size: .7rem;
        transition: transform .2s;
    }

    .vc-visit:hover i {
        transform: translateX(3px);
    }

/* ---------- pagination ---------- */
.vl-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 18px;
}

    .vl-pager a, .vl-pager span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        display: inline-grid;
        place-items: center;
        border: 1.5px solid var(--line);
        border-radius: 10px;
        background: #fff;
        color: var(--ink);
        font-size: .86rem;
        font-weight: 700;
    }

        .vl-pager a:hover {
            border-color: var(--p);
            color: var(--p);
            background: #eef2ff;
        }

    .vl-pager .is-on {
        background: linear-gradient(135deg, var(--p), var(--p2));
        border-color: transparent;
        color: #fff;
    }

    .vl-pager .is-off {
        opacity: .4;
    }

    .vl-pager .is-gap {
        border: 0;
        background: transparent;
        min-width: 20px;
        padding: 0;
    }

/* =========================================================
   STORE PAGE
   ========================================================= */
.vs-hero {
    position: relative;
    isolation: isolate;
    padding-bottom: 4px;
}

.vs-cover {
    position: absolute;
    inset: 0 0 auto 0;
    height: clamp(150px, 24vw, 230px);
    z-index: -1;
    background: linear-gradient(120deg, #312e81, var(--p) 45%, var(--p2) 75%, var(--acc));
    overflow: hidden;
}

    .vs-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .vs-cover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, .55), rgba(15, 23, 42, .1) 60%, rgba(15, 23, 42, .25));
    }

.vs-crumb {
    padding-block: 12px;
}

.vs-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 16px;
    align-items: center;
    margin-top: clamp(46px, 11vw, 100px);
    padding: clamp(12px, 2.4vw, 20px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
}

.vs-logo {
    width: clamp(72px, 12vw, 104px);
    height: clamp(72px, 12vw, 104px);
    margin-top: clamp(-44px, -6vw, -30px);
    border-radius: 22px;
}

    .vs-logo b {
        font-size: 2rem;
    }

.vs-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: clamp(1.15rem, 2.8vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.vs-info .vc-rate {
    margin-top: 4px;
    font-size: .86rem;
}

.vs-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    font-size: .84rem;
    color: var(--mut);
}

    .vs-contact li {
        min-width: 0;
    }

    .vs-contact a, .vs-contact span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        max-width: 100%;
    }

        .vs-contact a:hover {
            color: var(--p);
        }

    .vs-contact i {
        color: var(--p);
        font-size: .8rem;
    }

.vs-side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.vs-stats {
    display: flex;
    gap: 8px;
}

    .vs-stats span {
        display: grid;
        justify-items: center;
        min-width: 78px;
        padding: 6px 12px;
        border-radius: 12px;
        background: var(--bg);
        border: 1px solid var(--line);
        font-size: .72rem;
        font-weight: 700;
        color: var(--mut);
        line-height: 1.3;
    }

    .vs-stats b {
        font-size: 1.1rem;
        color: var(--ink);
    }

.vs-social {
    display: flex;
    gap: 6px;
}

    .vs-social a {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #eef2ff;
        color: var(--p);
        font-size: .85rem;
        transition: background .2s, color .2s, transform .2s;
    }

        .vs-social a:hover {
            background: var(--p);
            color: #fff;
            transform: translateY(-2px);
        }

.vs-about {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: .88rem;
    line-height: 1.6;
    color: var(--mut);
    white-space: pre-line;
}

/* product grid + card */
.vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: clamp(8px, 1.4vw, 14px);
    margin-top: 10px;
}

.pc {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s, box-shadow .2s, border-color .2s;
}

    .pc:hover {
        transform: translateY(-3px);
        border-color: #c7d2fe;
        box-shadow: 0 12px 26px rgba(79, 70, 229, .14);
    }

.pc-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
}

    .pc-img > a {
        display: block;
        height: 100%;
    }

    .pc-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
        transition: transform .3s;
    }

.pc:hover .pc-img img {
    transform: scale(1.05);
}

.pc-tag {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 99px;
    background: var(--p);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}

    .pc-tag.is-off {
        background: #16a34a;
    }

    .pc-tag.is-oos {
        background: #64748b;
    }

.pc-act {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s, transform .2s;
}

.pc:hover .pc-act, .pc:focus-within .pc-act {
    opacity: 1;
    transform: none;
}

.pc-act a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: .82rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .15);
    transition: background .2s, color .2s;
}

    .pc-act a:hover, .pc-act a.is-active {
        background: var(--p);
        color: #fff;
    }

    .pc-act a.is-active {
        color: #ef4444;
        background: #fff;
    }

.pc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    padding: 10px 12px 12px;
}

.pc-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

    .pc-title a:hover {
        color: var(--p);
    }

.pc-stars {
    color: #f59e0b;
    font-size: .72rem;
}

.pc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.pc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
}

    .pc-price span {
        font-size: 1rem;
        font-weight: 800;
        color: var(--p);
    }

    .pc-price del {
        font-size: .76rem;
        color: var(--mut);
    }

.pc-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--p) !important;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, color .2s;
}

    .pc-cart:hover {
        background: var(--p);
        color: #fff !important;
    }

    .pc-cart.is-off {
        background: var(--bg);
        color: var(--mut) !important;
    }

/* toast */
.vl-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    z-index: 1400;
    transform: translate(-50%, 20px);
    max-width: calc(100vw - 24px);
    padding: 10px 16px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

    .vl-toast.show {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .vl-toast.is-err {
        background: #b91c1c;
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 992px) {
    .vl-layout {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .vf {
        position: sticky;
        top: 84px;
        max-height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
    }

        .vf form {
            min-height: 0;
            flex: 1;
        }

    .vf-scroll {
        min-height: 0;
        flex: 1;
    }
}

@media (max-width: 991px) {
    .vl-fbtn {
        display: inline-flex;
    }

    .vl-count {
        order: 3;
        flex-basis: 100%;
    }

    .vl-sort {
        margin-left: auto;
    }

    .vf-x {
        display: grid;
        place-items: center;
    }
    /* filters: neeche se chadhne wali sheet */
    .vf {
        position: fixed;
        z-index: 1260;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 88dvh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
        transform: translateY(105%);
        visibility: hidden;
        transition: transform .28s ease, visibility 0s linear .28s;
        box-shadow: 0 -10px 40px rgba(15, 23, 42, .25);
    }

        .vf form {
            max-height: 88dvh;
        }

        .vf.open {
            transform: none;
            visibility: visible;
            transition-delay: 0s;
        }

    .vf-foot {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .vf-bg {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1250;
        background: rgba(15, 23, 42, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility 0s linear .25s;
    }

        .vf-bg.open {
            opacity: 1;
            visibility: visible;
            transition-delay: 0s;
        }

    body.vf-lock {
        overflow: hidden;
    }
}

@media (max-width: 760px) {
    .vs-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .vs-side {
        grid-column: 1 / -1;
        grid-auto-flow: column;
        justify-content: space-between;
        justify-items: start;
        align-items: center;
    }

    .pc-act {
        opacity: 1;
        transform: none;
    }
    /* touch par hover nahi hota */
}

@media (max-width: 479px) {
    .vl-sort span {
        display: none;
    }

    .vl-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pc-cart span {
        display: none;
    }

    .pc-cart {
        padding: 0 10px;
    }

        .pc-cart.is-off span {
            display: inline;
        }

    .vs-stats span {
        min-width: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc, .pc, .vf, .vf-bg {
        transition: none;
    }
}
