.oem-page {
    margin: 30px 0 60px;
		margin-top: 24px !important;
}

.oem-page__inner {
    margin: 0 auto;
    background-color: #ffffff;
}

.oem-page__layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.oem-page__sidebar {
    width: 260px;
    flex-shrink: 0;
		margin-top: 52px;
}

.oem-page__content {
    flex: 1;
    min-width: 0;
}

.oem-page__title {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.oem-page__image-block {
    margin-bottom: 32px;
}

.oem-page__image-wrapper {
    border: 1px solid #e3e3e3;
    background-color: #fafafa;
    text-align: center;
    display: flex;
    height: fit-content;
}

.oem-page__image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.oem-page__table-block {
    margin-top: 8px;
}


.oem-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.oem-table__head {
    background-color: #d9d9d9;
}

.oem-table__cell {
    padding: 14px 12px;
    border-bottom: 1px solid #e3e3e3;
    vertical-align: middle;
}

.oem-table__cell--head {
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.oem-table__cell--number {
    width: 40px;
    text-align: center;
}

.oem-table__cell--price {
    white-space: nowrap;
}

.oem-table__cell--stock {
    white-space: nowrap;
}

.oem-table__cell--qty {
    width: 130px;
}

.oem-table__cell--action {
    width: 140px;
    text-align: right;
}

.oem-table__row:nth-child(odd) .oem-table__cell {
    background-color: #ffffff;
}

.oem-table__row:nth-child(even) .oem-table__cell {
    background-color: #f4f4f4;
}

.oem-table__article {
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.oem-table__product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.oem-table__product-image {
    border: 1px solid #e9e9e9;
    border-radius: 2px;
    flex-shrink: 0;
}

.oem-table__product-image img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.oem-table__product-name {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.oem-table__price {
    font-weight: 600;
}

.oem-table__stock--available {
}

.oem-qty {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 68px;
    height: 22px;
    border: 1px solid #dddddd;
    border-radius: 2px;
    padding: 2px;
    background-color: #ffffff;
    gap: 2px;
}

.oem-qty__btn {
    flex: 0 0 8px;
    width: 20px;
    height: 20px;
    border: none;
    background-color: #dcdcdc;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oem-qty__input {
    width: 20px;
    height: 18px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.oem-table__button {
    display: inline-block;
    max-width: 113px;
    padding: 10px 26px;
    border: none;
    border-radius: 4px;
    background-color: #336699;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.oem-table__button:hover {
    background-color: #2a5580;
}

/* Хлебные крошки */
.oem-breadcrumbs {
    margin: 0 0 32px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.oem-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.oem-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.oem-breadcrumbs__item:not(:last-child)::after {
    content: "/";
    color: #999;
}

.oem-breadcrumbs__link {
    color: #333;
    text-decoration: none;
}

.oem-breadcrumbs__link:hover {
    text-decoration: underline;
}

.oem-breadcrumbs__current {
    color: #999;
}

@media (max-width: 1023px) {
    .oem-page__inner {
        padding: 20px 18px 26px;
    }

    .oem-page__layout {
        flex-direction: column;
    }

    .oem-page__sidebar {
        width: 100%;
    }

    .oem-table__cell--action {
        text-align: left;
    }
}

@media (max-width: 700px) {
    .oem-page__sidebar {
        display: none;
    }

    /* --- Карточная вёрстка таблицы на мобильных --- */

    /* Скрываем шапку таблицы */
    .oem-table__head {
        display: none;
    }

    /* Таблица и тело — блочные */
    .oem-table,
    .oem-table__body {
        display: block;
        width: 100%;
    }

    /* Каждая строка — карточка */
    .oem-table__row {
        display: grid;
        grid-template-areas:
            "top    top"
            "price  stock"
            "qty    action";
        grid-template-columns: 1fr 1fr;
        border: 1px solid #efefef;
        overflow: hidden;
    }

    /* Убираем двойную границу между карточками */
    .oem-table__row + .oem-table__row {
        border-top: none;
    }

    /* Чередование фона: нечётные — белые, чётные — светло-серые */
    .oem-table__row:nth-child(odd) {
        background-color: #ffffff;
    }

    .oem-table__row:nth-child(even) {
        background-color: #efefef;
    }

    .oem-table__cell {
        border-bottom: none !important;
    }

    .oem-table__cell--title {
        border-bottom: none !important;
    }

    .oem-table__price {
        font-weight: 700;
    }
    
    .oem-sidebar {
        display: none;
    }

    /* Скрываем отдельные ячейки цифры № и артикула —
			 они будут встроены в верхний блок */
    .oem-table__cell--number {
        display: none;
    }

    /* Верхний блок: фото + артикул/название */
    .oem-table__cell--title {
        grid-area: top;
        padding: 12px;
        border-bottom: 1px solid #e3e3e3;
    }

    /* Ячейка артикула — скрываем отдельную ячейку,
			 т.к. артикул выводится внутри карточки */
    .oem-table__cell:not([class*="--"]) {
        display: none;
    }

    /* Перестраиваем блок продукта: фото крупнее, текст справа */
    .oem-table__product {
        align-items: flex-start;
        gap: 10px;
    }

    .oem-table__product-image {
        position: relative;
        flex-shrink: 0;
        border: 1px solid #e3e3e3;
        border-radius: 2px;
    }

    /* Значок номера поверх фото */
    .oem-table__product-image::before {
        content: attr(data-num);
        position: absolute;
        top: 6px;
        left: 6px;
        min-width: 17px;
        height: 17px;
        line-height: 17px;

        background-color: #555;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        text-align: center;
        border-radius: 0;
    }

    .oem-table__product-image img {
        width: 130px;
        height: 130px;
        object-fit: contain;
    }

    .oem-table__product-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    /* Артикул выводится псевдоэлементом из data-атрибута
			 или нам нужен отдельный элемент — добавим через JS/PHP,
			 пока покажем артикул через скрытый span внутри product-text */
    .oem-table__product-article {
        font-size: 10px;
        color: #333;
        display: block;
        text-align: right;
    }

    .oem-table__product-name {
        font-size: 12px;
        text-align: right;
    }

    /* Ячейка цены */
    .oem-table__cell--price {
        grid-area: price;
        padding: 10px 12px;
        border-bottom: 1px solid #e3e3e3;
        display: flex;
        align-items: center;
    }

    /* Ячейка наличия */
    .oem-table__cell--stock {
        grid-area: stock;
        padding: 10px 12px;
        border-bottom: 1px solid #e3e3e3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Нижний блок: счётчик слева, кнопка справа */
    .oem-table__cell--qty {
        grid-area: qty;
        padding: 10px 12px;
        width: auto;
        display: flex;
        align-items: center;
    }

    .oem-table__cell--action {
        grid-area: action;
        padding: 10px 12px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Счётчик количества */
    .oem-qty {
        width: auto;
        height: auto;
        border: 1px solid #dddddd;
        border-radius: 2px;
        padding: 2px;
        background-color: #ffffff;
        gap: 2px;
    }

    .oem-qty__btn {
        width: 18px;
        height: 18px;
        font-size: 14px;
        border-radius: 2px;
        background-color: #dcdcdc;
        color: #ffffff;
    }

    .oem-qty__input {
        width: 18px;
        height: 18px;
        font-size: 12px;
        font-weight: 700;
        text-align: center;
    }

    /* Кнопка «В корзину» */
    .oem-table__button {
        max-width: none;
        width: 100%;
        padding: 10px 16px;
        text-align: center;
        font-size: 15px;
        border-radius: 8px;
    }
}

.oem-page {
    margin-right: auto;
    margin-left: auto;
}


#breadcrumbs {
	display: none;
}