/* ----- Карточка товара ----- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 22px;
    overflow: hidden;
    padding: 25px;
    transition: 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border-color: #e3e3e3;
}

/* ----- Бейдж "ТОП" ----- */
.product-badge {
    position: absolute;
    left: 22px;
    top: 22px;
    background: var(--primary-yellow, #FFC107);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 10px;
    z-index: 10;
}

/* ----- Фото товара ----- */
.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 290px;
    margin-bottom: 15px;
}

.product-image img {
    max-height: 260px;
    max-width: 100%;
    object-fit: contain;
    transition: 0.35s;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

/* ----- Название товара ----- */
.product-name {
    display: -webkit-box;
    color: #222;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    min-height: 82px;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-name:hover {
    color: var(--primary-yellow, #FFC107);
}

/* ----- Артикул ----- */
.product-sku {
    color: #999;
    font-size: 16px;
    margin-bottom: 18px;
}

/* ----- Разделитель ----- */
.product-divider {
    height: 1px;
    background: #ececec;
    margin-bottom: 22px;
}

/* ----- Цена ----- */
.product-price {
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1;
     justify-content: flex-end;
}

.product-price .woocommerce-Price-amount {
    font-size: 35px;
    color: #111;
    font-weight: 600;
}

.product-price .woocommerce-Price-currencySymbol {
    font-size: 22px;
    color: #999;
    font-weight: 500;
    margin-left: 6px;
}

.product-price del {
    color: #999;
    font-size: 18px;
    margin-right: 8px;
}

.product-price del .woocommerce-Price-amount {
    font-size: 22px;
    font-weight: 400;
}

.product-price ins {
    text-decoration: none;
}

/* ----- Кнопка "Купить" ----- */
.product-button {
    margin-top: auto;
}

.product-button .button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-yellow, #FFC107);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    border: none;
    transition: 0.25s;
    text-decoration: none;
}

.product-button .button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.product-button .button:hover {
    background: #e3aa00;
    transform: translateY(-2px);
}

.product-button .added_to_cart {
    display: none;
}

/* ----- Наличие товара ----- */
.product-stock {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-stock.in-stock {
    color: #2e7d32;
}

.product-stock.in-stock::before {
    background: #2e7d32;
}

.product-stock.out-of-stock {
    color: #c62828;
}

.product-stock.out-of-stock::before {
    background: #c62828;
}
.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-sku {
    margin-bottom: 0;
}

.product-stock {
    margin-bottom: 0;
}