/* Тайл карточки товара — единая реализация для каталога маркетплейса,
   витрины товаров компании (кабинет) и превью на странице компании.
   Разметка: Views/Shared/_ProductCard.cshtml, модель: Models/Products/ProductCardViewModel.cs */

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}

.product-card--inactive {
    opacity: .62;
}

.product-card-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-thumb-placeholder {
    font-size: 32px;
    color: #adb5bd;
}

.product-card-primary-star {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 18px;
    color: #fd7e14;
    text-shadow: 0 1px 3px rgba(255, 255, 255, .85);
}

.product-card-body {
    position: relative;
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0b2b4f;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.5em;
}

.product-card-meta {
    font-size: 12px;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #0b2b4f;
    margin-top: 6px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    min-height: 20px;
}

.product-card-swatches {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset;
    border: 1px solid #fff;
}

.product-card-swatch-more {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
}

.product-card-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
}

.product-card-badge-inactive {
    background: rgba(108, 117, 125, .1);
    color: #6c757d;
}

.product-card-badge-variants {
    background: rgba(35, 103, 205, .1);
    color: #2367cd;
}

.product-card-edit-link {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2367cd;
    text-decoration: none;
}

.product-card-edit-link:hover {
    text-decoration: underline;
}
