/**
 * Product Display Styles
 *
 * Стили наличия, цены и характеристик товаров.
 * Используется в карточках товаров WordPress + Elementor.
 */

/* Наличие товара */
.cart-item-availability {
    display: inline-block;
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.cart-item-availability--available {
    color: #4caf50; /* Зеленый цвет для товара в наличии */
    font-weight: 500;
}

.cart-item-availability--unavailable {
    color: #823131; /* Красный цвет для товара не в наличии */
    font-weight: 400;
}

/* Стоимость товара */
.cart-item-price {
    display: inline-block;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.cart-item-price .price-prefix,
.cart-item-price .price-suffix {
    color: #666;
    font-weight: 400;
}

.cart-item-price .price-value {
    font-weight: 500;
}

.cart-item-price .price-value--has-price {
    color: #333;
    font-weight: 600;
}

.cart-item-price .price-value--empty {
    color: #999;
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
}

/* Характеристики товара */
.cart-item-specs {
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Группы сохраняем в разметке, но их заголовки на фронте не показываем */
.specs-group {
    min-width: 0;
}

.specs-group-title {
    display: none;
}

.specs-group-content {
    margin-bottom: 0;
}

/* Одна строка характеристики: параметр | значение */
.specs-item {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    min-width: 0;

    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

/* Старые пунктирные разделители больше не используются */
.specs-dots {
    display: none;
}

.specs-type {
    min-width: 0;
    color: #666;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: break-word;
}

.specs-value {
    min-width: 0;
    color: #333;
    font-weight: 500;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Планшет */
@media (max-width: 768px) {
    .cart-item-specs {
        margin: 20px 0;
        font-size: 13px;
    }

    .specs-item {
        grid-template-columns: 140px minmax(0, 1fr);
        column-gap: 12px;
    }

    .specs-type,
    .specs-value {
        font-size: 13px;
    }
}

/* Мобильный */
@media (max-width: 480px) {
    .specs-item {
        grid-template-columns: 45% minmax(0, 1fr);
        column-gap: 12px;
    }
}

/* Related products */

.pny-related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pny-related-product {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pny-related-product__image {
    display: block;
}

.pny-related-product__image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
}

.pny-related-product__title {
    margin: 16px 16px 12px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.pny-related-product__title a {
    color: inherit;
    text-decoration: none;
}

.pny-related-product__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    margin: 0 16px 16px;
}

.pny-related-product__link {
    display: block;
    margin: 0 16px 16px;
    padding: 12px 16px;
    border: 1px solid #813131;
    border-radius: 6px;
    color: #813131;
    background: #faf0f0;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
}

.pny-related-product__link:hover {
    color: #fff;
    background: #813131;
}

@media (max-width: 1024px) {
    .pny-related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pny-related-products__grid {
        grid-template-columns: 1fr;
    }

    .pny-related-product__meta {
        grid-template-columns: 1fr;
    }
}

/* Product title */

.elementor-kit-79 .pny-product-title {
    margin: 0;
    font-family: Bmw, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: normal;
}

@media (max-width: 767px) {
    .elementor-kit-79 .pny-product-title {
        font-size: 30px;
        line-height: 1.15;
    }
}
