/* =====================================================
   Woodmart Bundle → Product Cards
   ===================================================== */

.wclk-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 4px;
}

/* ── Card ── */
.wclk-card {
    position: relative;
    width: 150px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    user-select: none;
}

.wclk-card:hover {
    border-color: #999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.wclk-card--active {
    border-color: #222;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

/* ── Loading shimmer ── */
.wclk-card--loading {
    min-height: 180px;
    pointer-events: none;
}

.wclk-card__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wclk-shimmer 1.2s infinite;
}

@keyframes wclk-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Image ── */
.wclk-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.wclk-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.wclk-card:hover .wclk-card__img img {
    transform: scale(1.05);
}

/* ── Body ── */
.wclk-card__body {
    padding: 8px 10px 10px;
}

.wclk-card__name {
    font-size: 0.78em;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wclk-card__price {
    font-size: 0.85em;
    font-weight: 700;
    color: #222;
}

.wclk-card__price del {
    font-weight: 400;
    opacity: 0.5;
    font-size: 0.88em;
    text-decoration: line-through;
    margin-right: 3px;
}

.wclk-card__price ins {
    text-decoration: none;
    color: #c0392b;
}

/* ── Check badge ── */
.wclk-card__check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 22px;
    height: 22px;
    background: #222;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s, transform 0.18s;
    pointer-events: none;
}

.wclk-card__check svg {
    width: 13px;
    height: 13px;
}

.wclk-card--active .wclk-card__check {
    opacity: 1;
    transform: scale(1);
}

/* ── Responsive — хоризонтални редове ── */
@media (max-width: 480px) {
    .wclk-cards {
        flex-direction: column;
        gap: 8px;
    }

    .wclk-card {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        border-radius: 8px;
    }

    .wclk-card__img {
        flex: 0 0 30%;
        max-width: 30%;
        aspect-ratio: 1 / 1;
        border-radius: 6px 0 0 6px;
    }

    .wclk-card__body {
        flex: 1;
        padding: 8px 36px 8px 10px;
    }

    .wclk-card__name {
        font-size: 0.82em;
        -webkit-line-clamp: 2;
    }

    .wclk-card__price {
        font-size: 0.88em;
        margin-top: 2px;
    }

    .wclk-card__check {
        top: 50%;
        right: 8px;
        transform: translateY(-50%) scale(0.5);
    }

    .wclk-card--active .wclk-card__check {
        transform: translateY(-50%) scale(1);
    }
}
