/* Item card used on the home page and the shop page (partials/product_card.blade.php). */
.vk-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.vk-card:hover {
    border-color: #dcdcdc;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.vk-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}
.vk-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vk-card__badge {
    position: absolute;
    left: 8px;
    top: 8px;
    max-width: calc(100% - 56px);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .95);
    color: #333;
    font-size: 1.1rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vk-card__fav {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #888;
    font-size: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.vk-card__fav:hover { color: #e53935; }
.vk-card__fav.is-on { color: #e53935; }
.vk-card__body { padding: 10px 12px 12px; }
.vk-card__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vk-card__title a { color: #333; }
.vk-card__title a:hover { color: #f66429; }
.vk-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    min-height: 36px;
}
.vk-card__price {
    font-size: 1.7rem;
    font-weight: 600;
    color: #222;
}
.vk-card__cart {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f66429;
    color: #fff;
    font-size: 1.6rem;
}
.vk-card__cart:hover { background: #d9531f; color: #fff; }
.vk-card__cart.is-in { background: #e6f4ea; color: #2e7d32; }
.vk-card__meta {
    margin-top: 4px;
    font-size: 1.2rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vk-card__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-radius: 50%;
    border: 1px solid #ddd;
    vertical-align: -1px;
}
.vk-card.is-sold .vk-card__media img { filter: grayscale(1); opacity: .55; }
.vk-card.is-sold .vk-card__price { color: #999; }
.vk-card__sold {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 3px 12px;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 1.2rem;
}

/* Shop toolbar: active filter chips */
.vk-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.vk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 1.3rem;
}
.vk-chip:hover { border-color: #f66429; color: #333; }
.vk-chip i { font-size: 1.4rem; color: #888; }
.vk-chips__clear { font-size: 1.3rem; }
.vk-filter-count {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f66429;
    color: #fff;
    font-size: 1.1rem;
    line-height: 18px;
    text-align: center;
}

/* Home page: "Popular Right Now" carousel */
.vk-popular-section { padding-top: 3rem; padding-bottom: 1rem; }
.vk-popular-section .title {
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 2.2rem;
    letter-spacing: .02em;
    color: #333;
}
.vk-popular .vk-slide { height: 100%; }
.vk-popular .owl-nav .owl-prev,
.vk-popular .owl-nav .owl-next {
    position: absolute;
    top: 38%;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
    color: #333;
}
.vk-popular .owl-nav .owl-prev { left: -10px; }
.vk-popular .owl-nav .owl-next { right: -10px; }
.vk-popular .owl-nav .disabled { display: none; }
@media (max-width: 767px) {
    .vk-popular-section { padding-top: 2rem; }
    .vk-popular .owl-nav { display: none; }
}
