.product-list .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-list .card-img {
    position: relative;
    background: var(--ffj-grey-02);
    overflow: hidden;
}

.product-list .card-img img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.panel-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--ffj-green-01);
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 6px 8px;
    text-transform: uppercase;
}

.panel-stock--inline {
    position: static;
    display: inline-block;
}

.panel-stock--order {
    background: #e9ecef;
    color: var(--ffj-blue-02);
}

.panel-docs-link {
    color: var(--ffj-red-01);
    text-decoration: underline;
}

.panel-specs td {
    border-top: 1px solid #eef1f4;
    font-size: 14px;
    line-height: 1.45;
    padding: 9px 0;
    vertical-align: top;
}

.panel-specs tr:first-child td {
    border-top: none;
    padding-top: 0;
}

.panel-specs td:first-child {
    width: 40%;
    padding-right: 16px;
    color: #7a7f99;
}

.panel-specs td:last-child {
    color: #24262b;
    font-weight: 500;
}

.panel-brand-logo {
    display: block;
    width: auto;
    height: 20px;
}

.product-list .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 0;
}

.product-list .prod-category {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 8px;
    color: #7a7f99;
    font-size: 12px;
    line-height: 1.4;
}

.product-list .prod-name {
    display: block;
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: #24262b;
    line-height: 1.35;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.product-list .prod-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--ffj-blue-01);
    border-radius: 2px;
}

.product-list .prod-name:hover {
    color: var(--ffj-blue-01);
}

.product-list .font-weight-bold {
    font-weight: 500;
}

.product-list .card-footer {
    background: none;
    border: none;
    padding: 14px 20px 22px;
}

.product-list .card-footer .text-muted {
    font-size: 13px;
    color: #4a5073;
}

.product-list .card-footer .btn-red {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 18px;
}

.product-list .card-footer .btn-red:hover {
    transform: none;
}

.product-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    width: 100%;
    height: 300px;
    margin: 0;
    padding: 0;
    border-radius: 14px;
}

@media (min-width: 992px) {
    .product-list .card:hover {
        box-shadow: 0 12px 28px rgba(28, 83, 113, 0.12);
        border-color: #dce6ee;
    }
}

@media (min-width: 768px) {
    .related-list > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.product_image {
    width: 100%;
    aspect-ratio: 2;
    object-fit: cover;
}

@media (min-width: 768px) {
    .product_image {
        aspect-ratio: 3 / 2;
    }
}


/* Вход в маршрут монтажника из карточки панели
   ------------------------------------------------------------------------ */

/*
 * Врезка между таблицей характеристик и кнопками: тот, кто уже выбрал панель,
 * с этого места уходит не в форму заказа, а в инструкцию по монтажу. Красная
 * полоса слева отделяет её от таблицы, чтобы она не читалась её последней
 * строкой.
 */
.panel-install {
    align-items: center;
    background: var(--ffj-grey-02);
    border-left: 3px solid var(--ffj-red-01);
    border-radius: 8px;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 24px 0 16px;
    padding: 14px 18px;
    transition: background-color .25s ease;
}

.panel-install:hover {
    background: #eef3f9;
    color: inherit;
}

.panel-install__title {
    color: #24262b;
    font-size: 14px;
    font-weight: 700;
}

.panel-install__text {
    color: #7a7f99;
    font-size: 13px;
}

/* Стрелка прижата вправо и уезжает при наведении — тот же жест, что у ссылок
   в карточках маршрутов. */
.panel-install i {
    color: var(--ffj-red-01);
    font-size: 12px;
    margin-left: auto;
    transition: transform .2s ease;
}

.panel-install:hover i {
    transform: translateX(4px);
}

/*
 * Две кнопки в ряд: заказ и переход к монтажу. Обе тянутся на равную долю
 * строки (flex: 1 1 200px) и переносятся на узкой колонке, поэтому на месте
 * прежней одной кнопки во всю ширину ничего не ломается.
 */
.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-actions .btn {
    flex: 1 1 200px;
}
