.product-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-muted);
}

.product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card__body {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.sku {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 10px 0 16px;
    font-size: 0.95rem;
    min-height: 42px;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: 8px;
}

.price-main {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.old-price {
    display: block;
    overflow: hidden;
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card strong {
    display: block;
    overflow: hidden;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-actions-catalog {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.buy-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.buy-btn .icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    flex: 0 0 auto;
}

.buy-btn.in-basket {
    display: none;
}

.buy-btn:disabled:not(.in-basket) {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

.out-of-stock-note {
    display: block;
    flex: 0 0 auto;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: right;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    flex: 0 0 auto;
}

.qty-control .qty-btn {
    border: none;
    background: #fff;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}

.qty-control .qty-btn:hover {
    background: #f8fafc;
}

.qty-control .qty-input {
    min-width: 34px;
    width: 34px;
    height: 34px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    padding: 0;
    background: #fff;
}

.qty-control .qty-input:focus {
    outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.product-badge-catalog {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.product-badge-catalog:not(.badge-sale):not(.badge-hit) {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
}

.product-badge-catalog.badge-hit {
    background: var(--accent-color);
    color: #fff;
    font-size: 1rem;
    padding: 8px 12px;
}

.product-badge-catalog.badge-sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8f6b 100%);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 14px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .price-row {
        gap: 6px;
    }

    .product-card strong {
        font-size: 1rem;
    }

    .old-price {
        font-size: 0.68rem;
    }

    .out-of-stock-note {
        font-size: 0.68rem;
    }

    .buy-btn {
        width: 34px;
        height: 34px;
    }

    .buy-btn .icon {
        width: 1rem;
        height: 1rem;
    }

    .qty-control .qty-btn,
    .qty-control .qty-input {
        width: 28px;
        height: 28px;
    }
}

