.catalog-card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: transparent;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
}

.catalog-card__link {
    display: block;
    color: inherit;
    height: 100%;
}

.catalog-card__image,
.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: transparent;
}

.catalog-card__image-slider,
.product-card__image-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.catalog-card__slide,
.product-card__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .2s ease;
}

.catalog-card__slide.is-active,
.product-card__slide.is-active {
    opacity: 1;
}

.catalog-card__dots,
.product-card__dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.catalog-card__dot,
.product-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
}

.catalog-card__dot.is-active,
.product-card__dot.is-active {
    background: rgba(255,255,255,.95);
}

.catalog-card__placeholder,
.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--color-muted);
    font-size: 14px;
}

.catalog-card__body,
.product-card__body {
    padding: 14px 14px 16px;
}

.catalog-card__category,
.product-card__category {
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-muted);
}

.catalog-card__title,
.product-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--color-muted);
}

.catalog-card__price,
.product-card__price {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.catalog-card__old-price,
.product-card__old-price {
    margin-right: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: line-through;
}

.catalog-card__current-price,
.product-card__current-price {
    color: #111827;
}

.catalog-card__cart-btn {
    position: absolute;
    bottom: 20px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid #1e3a8a;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    transition: opacity .2s ease, transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.catalog-card__cart-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transform: translateX(-1px);
}

.catalog-card:hover .catalog-card__cart-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.catalog-card__cart-btn:hover {
    background: #60a5fa;
    border-color: #1e3a8a;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    color: #fff;
}

@media (max-width: 768px) {
    .catalog-card__cart-btn {
        opacity: 1;
        transform: none;
        width: 40px;
        height: 40px;
        top: 6px;
        right: 6px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .catalog-card__cart-btn {
        opacity: 1;
        transform: none;
    }
}
