/* ================================================================
   Velora Category Banners
   ================================================================ */

:root {
    --vcb-cols: 4;
    --vcb-gap: 16px;
    --vcb-overlay-top: rgba(11,12,14,0.05);
    --vcb-overlay-bottom: rgba(11,12,14,0.88);
    --vcb-overlay-start: 30%;
}

/* ── Grid ───────────────────────────────────────────────────── */
.vcatbanners__list {
    display: grid;
    grid-template-columns: repeat(var(--vcb-cols), 1fr);
    margin-left: calc(-1 * var(--vcb-gap, 16px));
    margin-right: calc(-1 * var(--vcb-gap, 16px));
}

/* Gap via padding on items — works in both grid and Swiper carousel */
.vcb-item {
    padding: var(--vcb-gap, 16px);
    box-sizing: border-box;
}

/* Carousel mode: Swiper takes over layout */
.vcatbanners.kitify-carousel .vcatbanners__list {
    display: flex;
}

.vcatbanners.kitify-carousel .vcb-item {
    height: auto;
}

.vcatbanners.kitify-carousel .vcb-card {
    height: 100%;
}

/* ── Card ───────────────────────────────────────────────────── */
.vcb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 16px;
    border: none;
    background-color: #0B0C0E;
    min-height: 380px;
    text-decoration: none;
    color: #F4F5F2;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vcb-card:hover {
    transform: translateY(-4px);
}

/* ── Image slot ─────────────────────────────────────────────── */
.vcb-slot {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vcb-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.vcb-card:hover .vcb-slot img {
    transform: scale(1.04);
}

/* ── Gradient overlay ───────────────────────────────────────── */
.vcb-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        var(--vcb-overlay-top) var(--vcb-overlay-start),
        var(--vcb-overlay-bottom) 100%
    );
    pointer-events: none;
}

/* ── Arrow button ───────────────────────────────────────────── */
.vcb-go {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    color: #F4F5F2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vcb-go svg {
    width: 16px;
    height: 16px;
}

.vcb-card:hover .vcb-go {
    background: #CCFF02;
    color: #0B0C0E;
    border-color: #CCFF02;
}

/* ── Body ───────────────────────────────────────────────────── */
.vcb-body {
    position: relative;
    z-index: 2;
    padding: 22px;
}

/* ── Index label ────────────────────────────────────────────── */
.vcb-idx {
    font-size: 12px;
    color: #CCFF02;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* ── Title ──────────────────────────────────────────────────── */
.vcb-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-stretch: 110%;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1;
    color: #F4F5F2;
    margin: 0 0 8px;
}

/* ── Meta ───────────────────────────────────────────────────── */
.vcb-meta {
    font-size: 14px;
    color: #A7ADB5;
    margin: 0;
}

/* ── Tablet: 2 columns ──────────────────────────────────────── */
@media (max-width: 1039px) {
    .vcatbanners {
        --vcb-cols: 2;
    }

    .vcb-card {
        min-height: 300px;
    }

    .vcb-title {
        font-size: 20px;
    }
}

/* ── Mobile: 1 column ───────────────────────────────────────── */
@media (max-width: 767px) {
    .vcatbanners {
        --vcb-cols: 1;
        --vcb-gap: 12px;
    }

    .vcb-card {
        min-height: 260px;
    }

    .vcb-title {
        font-size: 18px;
    }

    .vcb-body {
        padding: 18px;
    }

    .vcb-go {
        width: 34px;
        height: 34px;
        top: 14px;
        right: 14px;
    }

    .vcb-go svg {
        width: 14px;
        height: 14px;
    }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .vcb-slot img,
    .vcb-card,
    .vcb-go {
        transition: none;
    }
}
