/* ===================
   ВИДЖЕТЫ ТОВАРОВ В СТАТЬЯХ
=================== */
.product-widget {
    --pw-accent: #ff7a00;
    --pw-border: #e8e8e8;
    --pw-text: #1a1a1a;
    --pw-muted: #8a8a8a;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-sizing: border-box;
}

.product-widget *,
.product-widget *::before,
.product-widget *::after {
    box-sizing: border-box;
}

.product-widget-aside {
    flex: 0 0 158px;
    width: 158px;
    padding: 14px 12px 12px 14px;
    border-right: 1px solid var(--pw-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-widget-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pw-text);
}

.product-widget-accent {
    color: var(--pw-accent);
    display: block;
    margin-top: 2px;
}

.product-widget-subtitle {
    font-size: 11px;
    line-height: 1.35;
    color: var(--pw-muted);
    margin-bottom: 4px;
}

.product-widget-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}

.pw-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    color: var(--pw-text);
    transition: color 0.2s;
}

.pw-link:hover {
    color: var(--pw-accent);
}

.pw-link-winter {
    color: #1d4ed8;
}

.pw-link-winter:hover {
    color: #1e3a8a;
}

.pw-link-summer {
    color: var(--pw-accent);
}

.pw-link-catalog {
    color: var(--pw-accent);
}

.product-widget-track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 0;
    overflow: hidden;
}

.product-widget-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px 12px;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--pw-border);
    display: flex;
    flex-direction: column;
    transition: background 0.15s;
}

.product-widget-card:last-child {
    border-right: 0;
}

.product-widget-card:hover {
    background: #fafafa;
}

.product-widget-card-img {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
}

.product-widget-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.news-single-content .product-widget {
    max-width: 100%;
}

.news-single-content .product-widget a {
    color: inherit;
    text-decoration: none;
    border-bottom: 0;
}

.news-single-content .product-widget-card-img img {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.product-widget-card-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pw-text);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pw-season {
    font-style: normal;
    font-weight: 400;
    margin-left: 1px;
    font-size: 11px;
}

.pw-season-winter {
    color: #1d4ed8;
}

.pw-season-summer {
    color: var(--pw-accent);
}

.product-widget-card-specs {
    font-size: 11px;
    color: var(--pw-muted);
    margin-bottom: 6px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-widget-card-price {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pw-accent);
}

.product-widget-card-price span {
    color: var(--pw-accent);
}

@media (max-width: 900px) {
    .product-widget {
        flex-direction: column;
    }

    .product-widget-aside {
        flex: none;
        width: auto;
        border-right: 0;
        border-bottom: 1px solid var(--pw-border);
        padding: 14px 14px 10px;
    }

    .product-widget-accent {
        display: inline;
        margin-top: 0;
    }

    .product-widget-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 16px;
        margin-top: 4px;
    }

    .product-widget-track {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .product-widget-card {
        flex: 0 0 148px;
        min-width: 148px;
    }
}

@media (max-width: 600px) {
    .product-widget {
        margin: 20px 0;
        border-radius: 10px;
    }

    .product-widget-title {
        font-size: 15px;
    }

    .product-widget-card {
        flex: 0 0 136px;
        min-width: 136px;
        padding: 10px 8px 12px;
    }

    .product-widget-card-img {
        height: 64px;
    }
}
