/*НОВЫЙ ФАЙЛ UI.CSS*/

/* =========================================================
   HEADER OEM — CLEAN FINAL
   ========================================================= */

/* ===== ROOT ===== */

.header-fix {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.header-fix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* FIX: popup выше фиксированной шапки */
.mfp-bg {
  z-index: 10000 !important;
}

.mfp-wrap {
  z-index: 10010 !important;
}

.mfp-container {
  z-index: 10020 !important;
}

.mfp-content {
  z-index: 10030 !important;
}

body {
  padding-top: 110px;
}

/* ===== TOP BAR ===== */

.header-top {
  background: #f7f8fa;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.header-top .container.container-oem {
  padding-top: 0;
  padding-bottom: 0;
}

.header-top__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.header-top__right {
  display: flex;
  align-items: center;
}

.header-top__right a {
  color: #6b7280;
  text-decoration: none;
  margin-left: 10px;
  line-height: 1;
}

.header-top__right a:hover {
  color: #2644DD;
}

.header-top__right span {
  margin-left: 10px;
  line-height: 1;
}

/* ===== MAIN ===== */

.header-fix > .container.container-oem {
  padding-top: 8px;
  padding-bottom: 8px;
}

.oem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  min-height: 44px;
}

/* ===== LIMIT ===== */

/* Основной блок */
.oem-credit-head {
  margin: 0 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Десктоп / мобилка */
.credit-desktop {
  display: inline;
}

.credit-mobile {
  display: none;
}

/* Цвета */
.oem-credit-head--green {
  background: #e6f7ee;
  color: #1a7f37;
}

.oem-credit-head--yellow {
  background: #fff8e1;
  color: #b26a00;
}

.oem-credit-head--red {
  background: #fdecea;
  color: #d93025;
}

/* 📱 Мобилка */
@media (max-width: 767px) {
  .oem-credit-head {
    margin: 0 5px;
    padding: 3px 6px;
  }

  .credit-desktop {
    display: none;
  }

  .credit-mobile {
    display: inline;
  }
}

/* ===== LOGO ===== */

.oem-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo_text,
.logo_text a {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #111827;
  text-decoration: none;
}

.logo-color {
  color: #2644DD;
}

/* ===== PRICE BUTTON ===== */

.oem-price {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.oem-price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ===== DESKTOP SEARCH ===== */

.input-group>.form-control:focus {
    z-index: auto;
}

.oem-search {
  flex: 1 1 auto;
  min-width: 260px;
  display: block;
}

.oem-search form,
.oem-search .input-group,
.oem-search #search,
.oem-search .search,
.oem-search .search-form {
  width: 100%;
}

.oem-search input[type="text"],
.oem-search input[type="search"],
.oem-search .form-control {
  height: 38px !important;
  min-height: 38px;
  padding: 0 12px !important;
  font-size: 14px;
  border-radius: 8px !important;
}

.oem-search button,
.oem-search .btn,
.oem-search .input-group-btn button,
.oem-search .btn.btn-primary,
.oem-search .btn.btn-default {
  height: 38px !important;
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 8px !important;
}

/* ===== ACTIONS ===== */

.oem-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* ===== MOBILE USER ===== */

.oem-user--mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.oem-user--mobile img {
  display: block;
  width: 28px;
  height: 28px;
}

/* ===== CART TEXT VERSION ===== */

.oem-cart {
  display: flex;
  align-items: center;
}

.oem-header-cart-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f3f4f6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.oem-header-cart-link:hover {
  background: #e9edf3;
}

.oem-header-cart-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #111827;
  white-space: nowrap;
}

.oem-header-cart-title {
  font-weight: 600;
}

.oem-header-cart-sep {
  color: #9ca3af;
}

.oem-header-cart-count {
  font-weight: 500;
}

.oem-header-cart-total {
  font-weight: 600;
  color: #2644DD;
}

/* ===== MOBILE SEARCH ===== */

.header-mobile_search {
  display: none;
  padding: 0 0 8px;
}

.header-mobile_search .container.container-oem {
  padding-top: 0;
  padding-bottom: 0;
}

.header-mobile_search__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-mobile_search__row > a,
.header-mobile_search__row > .btn,
.header-mobile_search__row .btn-oem-primary {
  flex: 0 0 auto;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
}

.header-mobile_search form,
.header-mobile_search .input-group,
.header-mobile_search #search,
.header-mobile_search .search,
.header-mobile_search .search-form {
  flex: 1 1 auto;
  width: 100%;
}

.header-mobile_search input[type="text"],
.header-mobile_search input[type="search"],
.header-mobile_search .form-control {
  height: 38px !important;
  min-height: 38px;
  padding: 0 12px !important;
  font-size: 14px;
  border-radius: 8px !important;
}

.header-mobile_search button,
.header-mobile_search .btn,
.header-mobile_search .input-group-btn button,
.header-mobile_search .btn.btn-primary,
.header-mobile_search .btn.btn-default {
  height: 38px !important;
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 8px !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    
  .header-top {
    display: none;
  }
  
  .header-top__row {
    min-height: 30px;
  }

  .header-fix > .container.container-oem {
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .oem-header {
    gap: 10px;
    min-height: 40px;
    flex-wrap: nowrap;
  }

  .oem-logo {
    flex: 0 0 auto;
  }

  .logo_text,
  .logo_text a {
    font-size: 24px;
  }

  .oem-price {
    display: none;
  }

  .oem-search {
    display: none;
  }

  .oem-header-actions {
    margin-left: auto;
    gap: 12px;
  }

  .oem-user--mobile {
    display: inline-flex;
  }

  .header-mobile_search {
    display: block;
  }

  .header-mobile_search__row {
    justify-content: center;
  }

  .header-mobile_search__row > * {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (min-width: 769px) {
  .oem-user--mobile {
    display: none !important;
  }

  .header-mobile_search {
    display: none !important;
  }
}

/* =========================
   SEARCH
========================= */

.search-page-oem .search-toolbar-group {
    margin: 15px;
}

.market-search-head {
    background: #f8fafc;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.market-search-head__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 6px;
}

.market-search-head__desc {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.market-brand-group {
    margin-bottom: 30px;
}

.market-brand-title {
    margin-bottom: 15px;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid #2644DD;
    border-radius: 10px;
}

.price-pack-inline {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 12px;
    white-space: nowrap;
}

.market-brand-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.market-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.brand-price {
    font-size: 18px;
    font-weight: 800;
    color: #2644DD;
}

.brand-dot {
    color: #9ca3af;
}

.brand-count {
    font-size: 14px;
    color: #6b7280;
}

.price-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.price-table th {
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
}

.price-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: middle;
}

.price-table td:nth-child(1),
.price-table th:nth-child(1) {
    white-space: nowrap;
}

.price-table__text {
    color: #26363d;
    white-space: nowrap;
}

.price-table__article-field,
.price-table__article-field .price-table__text {
    white-space: nowrap;
}

.price-table__name-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.price-table__name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.price-table__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    color: #26363d;
    line-height: 1.35;
}

.price-table__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.price-table__name-cell {
    min-width: 280px;
}

.price-table__article-field {
    display: block;
}

/* ===== ЦЕНА ===== */

.price-table__price {
  font-size: 15px;
  font-weight: 700;
  color: #1d4ed8;
  white-space: nowrap;
}

/* выравнивание колонки */
.price-table td:nth-child(7) {
  vertical-align: middle;
}

.price-table__photo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.price-table__photo-inline {
    display: none;
}

.price-table td[data-label="Фото"] .product-gallery-block,
.price-table td[data-label="Фото"] .price-table__photo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.market-best-row {
    background: #f3faee;
}

.market-best-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #28a745;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.market-price-best {
    color: #2644DD;
    font-weight: 500;
}

@media (max-width: 767px) {

    .search-page-oem .container.container-oem {
        padding-left: 8px;
        padding-right: 8px;
    }

    .search-page-oem .card-oem {
        padding: 10px;
        border-radius: 10px;
    }

    .search-page-oem .breadcrumb {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .search-page-oem .search-toolbar-group {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .market-search-head {
        padding: 12px 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .market-search-head__title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .market-search-head__desc {
        font-size: 13px;
    }

    .market-brand-group {
        margin-bottom: 14px;
    }

    .market-brand-title {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .market-brand-name {
        font-size: 17px;
    }

    .brand-price {
        font-size: 16px;
    }

    .brand-count {
        font-size: 12px;
    }

    /* ===== TABLE → CARD ===== */

    .price-table-wrap {
        overflow: visible;
    }

    .price-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    .price-table thead {
        display: none;
    }

    .price-table tbody {
        display: block;
    }

    .price-table .price-row-mobile {
        display: block;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 8px;
    }

    .price-table .price-row-mobile td {
        display: block;
        width: 100%;
        border: none;
        padding: 0;
    }

    /* № */
    .price-table .price-row-mobile td:nth-child(1) {
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 4px;
    }

    /* Название */
    .price-table .price-row-mobile td:nth-child(2) {
        margin-bottom: 6px;
    }

    .price-table__name {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Бренд скрываем */
    .price-table .price-row-mobile td:nth-child(3) {
        display: none;
    }

    /* Фото переносим внутрь */
    .price-table .price-row-mobile td:nth-child(4) {
        display: none !important;
    }

    .price-table__photo-inline {
        display: inline-flex;
        margin-left: 6px;
    }

    /* Склад + наличие */
    .price-table .price-row-mobile td:nth-child(5),
    .price-table .price-row-mobile td:nth-child(6) {
        display: inline;
        font-size: 12px;
        color: #4b5563;
    }

    .price-table .price-row-mobile td:nth-child(5)::after {
        content: " • ";
        color: #9ca3af;
    }

    /* Цена */
    .price-table .price-row-mobile td:nth-child(7) {
        margin-top: 8px;
        margin-bottom: 6px;
    }

    .price-table .price-row-mobile td:nth-child(7) .market-price-best {
        font-size: 26px;
        font-weight: 800;
    }

    .price-table .price-row-mobile td:nth-child(8) {
        margin-top: 4px;
    }

    /* бейдж */
    .market-best-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}




/* =========================
          CART
========================= */


#checkout-cart .price-actions-wrap {
	min-width: auto;
}

#checkout-cart .cart-bottom-side {
	display: flex;
	justify-content: flex-end;
}

#checkout-cart .cart-bottom-side__inner {
	width: 100%;
	max-width: 420px;
}

#checkout-cart .cart-bottom-side .price-actions-wrap {
	justify-content: flex-start;
}

#checkout-cart .cart-bottom-side .price-actions-box {
	width: 100%;
	justify-content: flex-end;
}

#checkout-cart .cart-bottom-side .price-btn-buy {
	display: inline-flex;
}

/* итоговый блок */
#checkout-cart .cart-totals-list {
	width: 100%;
}

#checkout-cart .cart-totals-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid #edf0f5;
}

#checkout-cart .cart-totals-row:last-child {
	border-bottom: none;
}

#checkout-cart .cart-totals-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #263238;
}

#checkout-cart .cart-totals-value {
	flex: 0 0 auto;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #2644DD;
	text-align: right;
}

#checkout-cart .cart-cell--warehouse {
	grid-area: warehouse;
}

#checkout-cart .cart-total-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	font-weight: 400;
}

#checkout-cart .cart-unit-price-note {
	font-size: 12px;
	line-height: 1.2;
	color: #8b95a7;
	opacity: 0.8;
}

#checkout-cart .cart-actions-box {
	width: 100%;
}

#checkout-cart .cart-remove-btn--mobile {
	display: none;
}

#checkout-cart .cart-remove-btn--desktop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#checkout-cart .price-qty__input,
#checkout-cart .price-qty__btn,
#checkout-cart .cart-remove-btn {
	height: 38px;
}

#checkout-cart .cart-remove-btn {
	background: #5a5a5a;
}

#checkout-cart .cart-remove-btn:hover {
	background: #444;
}

#checkout-cart .cart-row-warning {
	background: #fff7f7;
}

#checkout-cart .cart-row-warning td {
	background: #fff7f7;
}

#checkout-cart .cart-qty-warning {
	border: 1px solid #ef4444 !important;
	background: #fff1f1 !important;
	color: #b91c1c;
	font-weight: 600;
}

#checkout-cart .cart-stock-warning {
	color: #dc2626;
	font-weight: 700;
}

#checkout-cart .cart-total-warning .market-price-best {
	color: #dc2626;
}

/* DESKTOP */
@media (min-width: 768px) {
	#checkout-cart .cart-remove-btn--mobile {
		display: none !important;
	}
}

/* MOBILE */
@media (max-width: 767px) {
	#checkout-cart .cart-bottom-side {
		display: block;
	}

	#checkout-cart .cart-bottom-side__inner {
		width: 100%;
		max-width: none;
	}

	#checkout-cart .cart-bottom-side .price-btn-buy {
		display: flex;
		width: 100%;
		justify-content: center;
	}

	#checkout-cart .cart-totals-row {
		padding: 16px 18px;
	}

	#checkout-cart .cart-totals-title {
		font-size: 20px;
	}

	#checkout-cart .cart-totals-value {
		font-size: 28px;
	}

	#checkout-cart .price-table thead {
		display: none;
	}

	#checkout-cart .price-table,
	#checkout-cart .price-table tbody,
	#checkout-cart .price-table tr {
		display: block;
		width: 100%;
	}

	#checkout-cart .price-table tr.cart-row-mobile {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"article warehouse"
			"name name"
			"brand photo"
			"stock total"
			"qty qty"
			"remove remove";
		gap: 6px 10px;
		margin-bottom: 12px;
		padding: 10px;
		border: 1px solid #e5e7eb;
		border-radius: 14px;
		background: #fff;
	}

	#checkout-cart .price-table td {
		display: block;
		width: 100%;
		padding: 0;
		border: 0;
		background: transparent;
		text-align: left !important;
	}

	#checkout-cart .cart-cell--num {
		display: none !important;
	}

	#checkout-cart .cart-cell--article {
		grid-area: article;
	}

	#checkout-cart .cart-cell--name {
		grid-area: name;
	}

	#checkout-cart .cart-cell--brand {
		grid-area: brand;
	}

	#checkout-cart .cart-cell--photo {
		grid-area: photo;
		text-align: right !important;
	}

	#checkout-cart .cart-cell--warehouse {
		grid-area: warehouse;
		text-align: right !important;
	}

	#checkout-cart .cart-cell--stock {
		grid-area: stock;
	}

	#checkout-cart .cart-cell--total {
		grid-area: total;
		text-align: right !important;
	}

	#checkout-cart .cart-cell--qty {
		grid-area: qty;
	}

	#checkout-cart .cart-cell--remove {
		grid-area: remove;
	}

	#checkout-cart .cart-cell--brand::before,
	#checkout-cart .cart-cell--photo::before,
	#checkout-cart .cart-cell--stock::before,
	#checkout-cart .cart-cell--total::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 3px;
		font-size: 10px;
		line-height: 1.1;
		color: #64748b;
	}

	#checkout-cart .cart-cell--article .article-main {
		font-size: 14px;
		line-height: 1.2;
	}

	#checkout-cart .cart-cell--article .article-oem {
		margin-top: 2px;
		font-size: 11px;
		line-height: 1.15;
	}

	#checkout-cart .cart-cell--name .price-table__name {
		font-size: 13px;
		line-height: 1.25;
	}

	#checkout-cart .cart-cell--brand .price-table__text,
	#checkout-cart .cart-cell--stock .price-table__text {
		font-size: 12px;
		line-height: 1.2;
	}

	#checkout-cart .cart-cell--warehouse .warehouse-name {
		font-size: 13px;
		line-height: 1.2;
		font-weight: 700;
	}

	#checkout-cart .cart-cell--warehouse .delivery-badge {
		margin-top: 4px;
		display: inline-block;
	}

	#checkout-cart .cart-cell--total .market-price-best {
		font-size: 20px;
		line-height: 1.05;
		white-space: nowrap;
	}

	#checkout-cart .cart-unit-price-note {
		margin-top: 4px;
		font-size: 11px;
		line-height: 1.15;
	}

	#checkout-cart .cart-cell--qty .cart-actions-box,
      #checkout-cart .cart-qty-cell .cart-actions-box {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
      }
    
      #checkout-cart .cart-price-qty {
          flex: 0 0 auto;
          min-width: 120px;
        }
    
      #checkout-cart .cart-remove-btn--mobile {
        flex: 1;
        border-radius: 8px;
        min-width: 0;
        height: 38px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
      }

	#checkout-cart .cart-cell--qty .cart-price-qty,
	#checkout-cart .cart-qty-cell .cart-price-qty {
		justify-content: space-between;
	}

	#checkout-cart .cart-remove-btn--desktop,
	#checkout-cart .cart-remove-cell {
		display: none !important;
	}

	#checkout-cart .cart-remove-btn--mobile {
		display: block !important;
		width: 100%;
		height: 38px;
		align-items: center;
		justify-content: center;
		text-align: center;
		white-space: nowrap;
	}

	#checkout-cart .cart-photo-empty {
		display: inline-block;
		width: 24px;
		height: 20px;
	}

	#checkout-cart .cart-row-warning {
		border: 1px solid #fecaca;
		border-radius: 10px;
	}
}

/* =========================
   ОФОРМЛЕНИЕ ЗАКАЗОВ
========================= */

.onepage-checkout-page {
	margin-bottom: 32px;
	color: #1f2937;
}

/* TOP */
.checkout-top-card {
	padding: 18px 20px;
	border-radius: 16px;
}

.checkout-top-breadcrumb {
	margin: 0 0 14px;
	padding: 0 0 10px;
	background: transparent;
	border-bottom: 1px solid #e5e7eb;
}

.checkout-top-breadcrumb > li {
	display: inline-block;
	position: relative;
	margin-right: 18px;
}

.checkout-top-breadcrumb > li + li:before {
	content: "/";
	color: #9ca3af;
	position: absolute;
	left: -12px;
	top: 0;
}

.checkout-oem-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

/* LAYOUT */
.checkout-oem-layout-vertical {
	display: block;
}

.checkout-oem-block {
	width: 100%;
	margin-bottom: 20px;
}

.checkout-oem-block:last-child {
	margin-bottom: 0;
}

/* CARD */
.checkout-oem-card {
	padding: 18px;
	border-radius: 16px;
}

.checkout-oem-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.checkout-oem-card-title {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.checkout-oem-card-note {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: #6b7280;
}

/* PRODUCTS BLOCK */
.checkout-products-card {
	background: #fff;
}

.checkout-warehouse {
	margin-bottom: 16px;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
}

.checkout-warehouse:last-child {
	margin-bottom: 0;
}

.checkout-warehouse-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 12px;
}

.checkout-warehouse-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.checkout-warehouse-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.checkout-delivery-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 10px;
	margin-top: 1px;
}

.checkout-delivery-dot.status-green {
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.checkout-delivery-dot.status-yellow {
	background: #f59e0b;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.checkout-delivery-dot.status-red {
	background: #ef4444;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.checkout-warehouse-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
	word-break: break-word;
}

.checkout-warehouse-right {
	font-size: 14px;
	line-height: 1.35;
	color: #4b5563;
	white-space: nowrap;
}

.checkout-delivery-badge {
	display: inline-block;
	width: fit-content;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.checkout-delivery-badge.status-green {
	background: #dcfce7;
	color: #166534;
}

.checkout-delivery-badge.status-yellow {
	background: #fef3c7;
	color: #92400e;
}

.checkout-delivery-badge.status-red {
	background: #fee2e2;
	color: #991b1b;
}

.checkout-products-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* warehouse total */
.checkout-warehouse-footer {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
}

.checkout-warehouse-footer-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	line-height: 1.4;
	color: #111827;
}

/* FORM BLOCK */
.checkout-form-full {
	background: #fff;
}

.checkout-form-grid {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.checkout-form-col {
	flex: 1 1 0;
	min-width: 0;
}

.checkout-form-summary {
	flex: 0 0 320px;
	max-width: 320px;
}

/* FORM */
.form-group {
	margin-bottom: 14px;
}

.form-group:last-child {
	margin-bottom: 0;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: #374151;
}

.form-control {
	width: 100%;
	min-height: 42px;
	height: 42px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	box-sizing: border-box;
	font-size: 13px;
	color: #111827;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
	border-color: #9ca3af;
	box-shadow: none;
	background: #fff;
}

.form-control.is-filled {
	background: #fcfcfd;
	border-color: #cfd6df;
}

.checkout-textarea {
	min-height: 88px;
	height: 88px;
	padding-top: 10px;
	padding-bottom: 10px;
	line-height: 1.45;
	resize: vertical;
}

/* SUMMARY */
.checkout-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 14px;
	line-height: 1.45;
	color: #374151;
}

.checkout-summary-row:last-of-type {
	border-bottom: 0;
}

.checkout-summary-total {
	padding-top: 14px;
	margin-top: 2px;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.checkout-payment-note {
	margin-top: 16px;
	margin-bottom: 16px;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #f9fafb;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #374151;
	text-align: center;
}

/* BUTTONS */
.checkout-submit-btn,
.checkout-back-btn {
	display: block;
	width: 100%;
	text-align: center;
	border-radius: 12px;
}

.checkout-submit-btn {
	height: 46px;
	font-size: 16px;
	font-weight: 700;
}

.checkout-back-btn {
	margin-top: 10px;
	height: 42px;
	line-height: 42px;
	padding: 0 14px;
	text-decoration: none;
}

.checkout-result-box {
	margin-top: 14px;
}

.checkout-result-box .alert {
	margin-bottom: 0;
	border-radius: 12px;
}

/* TABLE POLISH */
.checkout-products-card .price-table {
	width: 100%;
}

.checkout-products-card .price-table td.text-right,
.checkout-products-card .price-table th.text-right {
	text-align: right;
}

.checkout-products-card .price-table td.text-center,
.checkout-products-card .price-table th.text-center {
	text-align: center;
}

.checkout-products-card .price-table__name {
	font-weight: 600;
}

.checkout-products-card .article-oem {
	margin-top: 3px;
}

.checkout-products-card .price-table__photo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.checkout-products-card .price-table th:nth-child(1),
.checkout-products-card .price-table td:nth-child(1) {
	width: 52px;
}

.checkout-products-card .price-table th:nth-child(2),
.checkout-products-card .price-table td:nth-child(2) {
	min-width: 150px;
}

.checkout-products-card .price-table th:nth-child(3),
.checkout-products-card .price-table td:nth-child(3) {
	min-width: 260px;
}

.checkout-products-card .price-table th:nth-child(5),
.checkout-products-card .price-table td:nth-child(5) {
	width: 74px;
	text-align: center;
}

.checkout-products-card .price-table th:nth-child(6),
.checkout-products-card .price-table td:nth-child(6),
.checkout-products-card .price-table th:nth-child(7),
.checkout-products-card .price-table td:nth-child(7) {
	width: 110px;
}

.checkout-products-card .price-table th:nth-child(8),
.checkout-products-card .price-table td:nth-child(8),
.checkout-products-card .price-table th:nth-child(9),
.checkout-products-card .price-table td:nth-child(9) {
	width: 120px;
}

/* responsive */
@media (max-width: 1199px) {
	.checkout-form-summary {
		flex: 0 0 290px;
		max-width: 290px;
	}
}

@media (max-width: 991px) {
	.checkout-warehouse-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.checkout-warehouse-right {
		white-space: normal;
	}

	.checkout-form-grid {
		flex-direction: column;
	}

	.checkout-form-summary {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.checkout-products-card .price-table th:nth-child(6),
	.checkout-products-card .price-table td:nth-child(6),
	.checkout-products-card .price-table th:nth-child(7),
	.checkout-products-card .price-table td:nth-child(7),
	.checkout-products-card .price-table th:nth-child(8),
	.checkout-products-card .price-table td:nth-child(8),
	.checkout-products-card .price-table th:nth-child(9),
	.checkout-products-card .price-table td:nth-child(9) {
		width: auto;
	}
}

@media (max-width: 767px) {
	.onepage-checkout-page {
		margin-bottom: 24px;
	}

	.checkout-oem-title {
		font-size: 26px;
	}

	.checkout-oem-card {
		padding: 16px;
		border-radius: 14px;
	}

	.checkout-oem-card-title {
		font-size: 20px;
	}

	.checkout-warehouse {
		padding: 14px;
		border-radius: 12px;
	}

	.checkout-submit-btn {
		height: 44px;
		font-size: 15px;
	}

	.checkout-back-btn {
		height: 40px;
		line-height: 40px;
	}

	.checkout-products-card .price-table thead {
		display: none;
	}

	.checkout-products-card .price-table,
	.checkout-products-card .price-table tbody,
	.checkout-products-card .price-table tr {
		display: block;
		width: 100%;
	}

	.checkout-products-card .price-table tr.price-row-mobile {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"article article"
			"name name"
			"brand photo"
			"stock qty"
			"price total";
		gap: 6px 12px;
		margin-bottom: 10px;
		padding: 10px 12px;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #fff;
	}

	.checkout-products-card .price-table td {
		display: block;
		width: 100%;
		padding: 0;
		border: 0;
		background: transparent;
		text-align: left !important;
	}

	.checkout-cell--num {
		display: none !important;
	}

	.checkout-cell--article {
		grid-area: article;
	}

	.checkout-cell--name {
		grid-area: name;
		min-height: 20px;
	}

	.checkout-cell--brand {
		grid-area: brand;
		min-height: 20px;
	}

	.checkout-cell--photo {
		grid-area: photo;
		text-align: right !important;
	}

	.checkout-cell--stock {
		grid-area: stock;
	}

	.checkout-cell--qty {
		grid-area: qty;
		text-align: right !important;
	}

	.checkout-cell--price {
		grid-area: price;
	}

	.checkout-cell--total {
		grid-area: total;
		text-align: right !important;
	}

	.checkout-products-card .price-table td.checkout-cell--name,
	.checkout-products-card .price-table td.checkout-cell--brand {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.checkout-products-card .checkout-cell--name .price-table__name-wrap,
	.checkout-products-card .checkout-cell--name .price-table__name-row,
	.checkout-products-card .checkout-cell--name .price-table__name {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.checkout-cell--brand::before,
	.checkout-cell--photo::before,
	.checkout-cell--stock::before,
	.checkout-cell--qty::before,
	.checkout-cell--price::before,
	.checkout-cell--total::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 10px;
		line-height: 1.1;
		color: #64748b;
	}

	.checkout-cell--article .article-main {
		font-size: 13px;
		line-height: 1.2;
	}

	.checkout-cell--article .article-oem {
		margin-top: 2px;
		font-size: 11px;
		line-height: 1.15;
	}

	.checkout-cell--name .price-table__name {
		margin-top: 2px;
		font-size: 13px;
		line-height: 1.25;
		font-weight: 600;
		color: #111827;
	}

	.checkout-cell--brand .price-table__text,
	.checkout-cell--stock .price-table__text,
	.checkout-cell--qty .price-table__text {
		font-size: 12px;
		line-height: 1.2;
	}

	.checkout-products-card .checkout-cell--brand .price-table__text {
		display: block !important;
		color: #374151;
	}

	.checkout-cell--photo .product-gallery-block {
		line-height: 1;
	}

	.checkout-cell--photo .price-table__photo-link svg {
		width: 22px;
		height: 18px;
	}

	.checkout-cell--price .market-price-best,
	.checkout-cell--total strong {
		font-size: 18px;
		line-height: 1.05;
		white-space: nowrap;
	}

	.checkout-warehouse-footer {
		margin-top: 14px;
		padding-top: 14px;
	}

	.checkout-warehouse-footer-row {
		min-height: 52px;
		padding: 12px 14px;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #fff;
		font-size: 16px;
		line-height: 1.35;
	}

	.checkout-warehouse-footer-row strong {
		font-size: 18px;
		font-weight: 700;
		color: #111827;
		white-space: nowrap;
	}

	.checkout-photo-empty {
		display: inline-block;
		width: 24px;
		height: 20px;
	}
}

/* ===== SUCCESS PAGE ===== */

.oem-success {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 15px;
}

.oem-success__box {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 25px;
    background: #fff;
    text-align: center;
}

.oem-success__icon {
    font-size: 32px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.oem-success__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.oem-success__text {
    color: #666;
    margin-bottom: 20px;
}

.oem-success__orders {
    margin-bottom: 20px;
    font-size: 15px;
}

.oem-success__orders a {
    margin: 0 5px;
    color: #2a5bd7;
    font-weight: 500;
}

.oem-success__actions {
    display: flex;
    justify-content: center;
    align-items: center; /* ВАЖНО */
    gap: 20px;
    margin-top: 15px;
}

.oem-success__link {
    display: flex;
    align-items: center; /* выравнивает по кнопке */
    height: 38px; /* примерно как кнопка */
    color: #2a5bd7;
    font-size: 14px;
}

.oem-success__actions a {
    font-size: 14px;
}

.oem-success__orders strong {
    font-size: 18px;
    color: #111;
}

.oem-success__actions .btn {
    font-weight: 500;
    padding: 10px 24px;
}

.oem-success__actions a:not(.btn):hover {
    text-decoration: underline;
}

.oem-success__link {
    color: #2a5bd7;
    font-weight: 500;
}

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

/* =========================
   ACCOUNT / ORDERS
========================= */

.account-card-link-oem {
    display: block;
    padding: 16px;
    height: 100%;
    transition: all .2s ease;
}

.account-card-link-oem:hover {
    transform: translateY(-2px);
}

.account-card-title-oem {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.account-card-desc-oem {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.account-order-list-oem {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-order-card-oem {
    padding: 14px 16px;
}

.account-order-card-top-oem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.account-order-main-oem {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-order-number-oem {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.account-order-date-oem {
    font-size: 12px;
    color: #6b7280;
}

.account-order-total-wrap-oem {
    text-align: right;
}

.account-order-total-oem {
    margin-bottom: 4px;
    font-weight: 600;
    color: #111827;
}

.account-order-meta-grid-oem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.account-order-meta-item-oem {
    font-size: 13px;
}

.account-order-meta-label-oem {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    color: #9ca3af;
}

.account-order-meta-value-oem {
    font-weight: 500;
    color: #374151;
}

.account-info-card-oem {
    padding: 14px;
}

.account-title-md-oem {
    margin-bottom: 10px;
    font-weight: 600;
    color: #111827;
}

.account-info-line-oem {
    margin-bottom: 4px;
    font-size: 13px;
    color: #374151;
}

.account-address-oem {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}

.account-product-name-oem {
    font-weight: 500;
    color: #111827;
}

.account-product-option-oem {
    font-size: 12px;
    color: #6b7280;
}

.account-order-table-oem th {
    font-size: 12px;
    font-weight: 600;
}

.account-order-table-oem td {
    font-size: 13px;
}

.account-order-table-oem tfoot td {
    background: #fafafa;
}

.account-history-table-oem td {
    font-size: 13px;
}

.account-comment-oem {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}



/* =========================
   BREADCRUMBS
========================= */

.breadcrumb-oem,
.checkout-top-breadcrumb,
.search-page-oem .breadcrumb,
#checkout-cart .breadcrumb {
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 13px;
    line-height: 1.4;
    list-style: none;
}

.breadcrumb-oem > li,
.checkout-top-breadcrumb > li,
.search-page-oem .breadcrumb > li,
#checkout-cart .breadcrumb > li {
    display: inline-block;
    position: relative;
    margin-right: 16px;
}

.breadcrumb-oem > li + li:before,
.checkout-top-breadcrumb > li + li:before,
.search-page-oem .breadcrumb > li + li:before,
#checkout-cart .breadcrumb > li + li:before {
    content: "/";
    position: absolute;
    top: 0;
    left: -11px;
    color: #9ca3af;
}

.breadcrumb-oem a,
.checkout-top-breadcrumb a,
.search-page-oem .breadcrumb a,
#checkout-cart .breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-oem a:hover,
.checkout-top-breadcrumb a:hover,
.search-page-oem .breadcrumb a:hover,
#checkout-cart .breadcrumb a:hover {
    color: #2644DD;
    text-decoration: none;
}

.breadcrumb-oem > li:last-child,
.checkout-top-breadcrumb > li:last-child,
.search-page-oem .breadcrumb > li:last-child,
#checkout-cart .breadcrumb > li:last-child {
    color: #111827;
}

/* =========================
   ACCOUNT FORMS
========================= */

.account-form-container-oem {
    max-width: 760px;
}

.account-form-card-oem {
    padding: 20px;
}

.account-form-oem .form-group {
    margin-bottom: 18px;
}

.account-form-oem .form-group:last-child {
    margin-bottom: 0;
}

.account-form-oem label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
}

.account-form-oem .form-control {
    height: 44px;
    min-height: 44px;
    border-radius: 10px;
}

.account-form-actions-oem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.account-form-actions-oem .btn-oem-primary,
.account-form-actions-oem .btn-oem-secondary {
    min-width: 140px;
    text-align: center;
}

/* =========================
   ACCOUNT ADDRESSES
========================= */

.account-container-sm-oem {
    max-width: 900px;
}

.account-address-card-oem {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 18px;
}

.account-address-badge-row-oem {
    margin-bottom: -2px;
}

.account-address-text-oem {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    word-break: break-word;
}

.account-address-actions-oem {
    gap: 10px;
    margin-top: auto;
}

.account-radio-group-oem {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.account-inline-radio-oem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
}

.account-inline-radio-oem input {
    margin: 0;
}

/* =========================
   ACCOUNT WISHLIST
========================= */

.account-wishlist-grid-oem {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-wishlist-card-oem {
    padding: 18px;
}

.account-wishlist-top-oem {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.account-wishlist-image-oem {
    flex: 0 0 84px;
    width: 84px;
}

.account-wishlist-image-oem img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.account-wishlist-main-oem {
    flex: 1 1 auto;
    min-width: 0;
}

.account-wishlist-name-oem {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.account-wishlist-name-oem a {
    color: #111827;
    text-decoration: none;
}

.account-wishlist-name-oem a:hover {
    color: #2644DD;
    text-decoration: none;
}

.account-wishlist-meta-oem {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.account-wishlist-meta-item-oem {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-wishlist-meta-label-oem {
    font-size: 11px;
    color: #9ca3af;
}

.account-wishlist-meta-value-oem {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.account-wishlist-side-oem {
    flex: 0 0 auto;
    min-width: 110px;
    text-align: right;
}

.account-wishlist-price-oem,
.account-wishlist-price-special-oem {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #2644DD;
}

.account-wishlist-price-old-oem {
    margin-top: 4px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.account-wishlist-actions-oem {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
    .breadcrumb-oem,
    .checkout-top-breadcrumb,
    .search-page-oem .breadcrumb,
    #checkout-cart .breadcrumb {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .breadcrumb-oem > li,
    .checkout-top-breadcrumb > li,
    .search-page-oem .breadcrumb > li,
    #checkout-cart .breadcrumb > li {
        margin-right: 14px;
    }

    .breadcrumb-oem > li + li:before,
    .checkout-top-breadcrumb > li + li:before,
    .search-page-oem .breadcrumb > li + li:before,
    #checkout-cart .breadcrumb > li + li:before {
        left: -10px;
    }

    .account-order-meta-grid-oem {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-order-card-top-oem {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .account-order-total-wrap-oem {
        text-align: left;
    }

    .account-order-table-oem th:nth-child(4),
    .account-order-table-oem td:nth-child(4),
    .account-order-table-oem th:nth-child(5),
    .account-order-table-oem td:nth-child(5) {
        display: none;
    }

    .account-form-card-oem {
        padding: 16px;
    }

    .account-form-actions-oem {
        flex-direction: column;
        align-items: stretch;
    }

    .account-form-actions-oem .btn-oem-primary,
    .account-form-actions-oem .btn-oem-secondary {
        width: 100%;
    }

    .account-address-card-oem {
        padding: 16px;
    }

    .account-address-actions-oem {
        flex-direction: column;
        align-items: stretch;
    }

    .account-address-actions-oem .btn-oem-secondary,
    .account-address-actions-oem .btn-oem-primary {
        width: 100%;
        text-align: center;
    }

    .account-radio-group-oem {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .account-wishlist-card-oem {
        padding: 16px;
    }

    .account-wishlist-top-oem {
        flex-direction: column;
        gap: 12px;
    }

    .account-wishlist-image-oem {
        flex-basis: 72px;
        width: 72px;
    }

    .account-wishlist-side-oem {
        min-width: 0;
        text-align: left;
    }

    .account-wishlist-actions-oem {
        flex-direction: column;
        align-items: stretch;
    }

    .account-wishlist-actions-oem .btn-oem-primary,
    .account-wishlist-actions-oem .btn-oem-secondary {
        width: 100%;
        text-align: center;
    }
}


/* =========================
   LOGIN
===========================*/

  html, body {
    /*margin: 0;
    padding: 0;*/
    min-height: 100%;
  }

  body.auth-page-body {
    padding-top: 0 !important;
    background: #f3f6fb;
  }

  .oem-auth-page {
    min-height: 100vh;
    background: #f3f6fb;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .oem-auth-shell {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
  }

  .oem-auth-wrap {
    display: flex;
    align-items: stretch;
    height: auto;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.10);
  }

  .oem-auth-left {
    width: 41%;
    min-width: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 30px 12px;
  }

  .oem-auth-right {
    width: 59%;
    min-width: 0;
    position: relative;
    color: #ffffff;
    background: url('/catalog/view/theme/oemprice/image/auth-login-bg.jpg') center center / cover no-repeat;
  }

  .oem-auth-right:before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(4, 18, 52, 0.30) 0%, rgba(2, 12, 36, 0.44) 100%),
      linear-gradient(90deg, rgba(2, 12, 36, 0.52) 0%, rgba(2, 12, 36, 0.22) 42%, rgba(2, 12, 36, 0.06) 100%);
    pointer-events: none;
  }

  .oem-auth-right-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .oem-auth-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    margin-bottom: 2px;
    line-height: 1;
  }

  .oem-auth-logo:hover,
  .oem-auth-logo:focus {
    text-decoration: none;
  }

  .oem-auth-logo-oem {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1.1px;
    color: #1f5eff;
  }

  .oem-auth-logo-price {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1.1px;
    color: #0f172a;
  }

  .oem-auth-subtitle {
    font-size: 13px;
    line-height: 1.35;
    color: #667085;
    margin-bottom: 12px;
  }

  .oem-auth-title {
    margin: 0 0 4px;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: #0f172a;
  }

  .oem-auth-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.42;
    color: #475467;
  }

  .oem-auth-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    border: 1px solid transparent;
  }

  .oem-auth-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
  }

  .oem-auth-alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
  }

  .oem-auth-form .form-group {
    margin-bottom: 8px;
  }

  .oem-auth-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
  }

  .oem-auth-input {
    width: 100%;
    height: 40px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1.2;
    color: #0f172a;
    box-shadow: none;
    transition: all 0.2s ease;
  }

  .oem-auth-input:focus {
    border-color: #1f5eff;
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.10);
    outline: none;
  }

  .oem-auth-textarea {
    height: 90px;
    padding: 10px 14px;
    resize: vertical;
  }

  .oem-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 10px;
  }

  .oem-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.3;
    color: #344054;
    font-weight: 500;
  }

  .oem-auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
  }

  .oem-auth-link {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f5eff;
    text-decoration: none;
  }

  .oem-auth-link:hover,
  .oem-auth-link:focus {
    color: #1849c6;
    text-decoration: none;
  }

  .oem-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #2b6dff 0%, #1f5eff 100%);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 94, 255, 0.18);
    transition: all 0.2s ease;
  }

  .oem-auth-btn:hover,
  .oem-auth-btn:focus {
    background: linear-gradient(180deg, #245ff0 0%, #184fdc 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .oem-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .oem-auth-divider:before,
  .oem-auth-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6ebf3;
  }

  .oem-supplier-card {
    border: 1px solid #d8e5ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
    padding: 10px;
  }

  .oem-supplier-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .oem-supplier-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #1f5eff;
    color: #1f5eff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
  }

  .oem-supplier-icon svg {
    width: 30px;
    height: 30px;
  }

  .oem-supplier-content {
    flex: 1 1 auto;
  }

  .oem-supplier-title {
    margin: 0 0 3px;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    color: #101828;
  }

  .oem-supplier-subtitle {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
    color: #1f5eff;
  }

  .oem-supplier-text {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.35;
    color: #475467;
  }

  .oem-supplier-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    min-height: 36px;
    border: 2px solid #1f5eff;
    border-radius: 10px;
    background: #ffffff;
    color: #1f5eff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
  }

  .oem-supplier-btn:hover,
  .oem-supplier-btn:focus {
    background: #1f5eff;
    color: #ffffff;
    text-decoration: none;
  }

  .oem-auth-register {
    margin-top: 6px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: #111827;
  }

  .oem-auth-register a {
    color: #1f5eff;
    text-decoration: none;
    font-weight: 800;
  }

  .oem-auth-register a:hover,
  .oem-auth-register a:focus {
    color: #1849c6;
    text-decoration: none;
  }

  .oem-auth-right-top {
    padding: 14px 24px 8px;
  }

  .oem-auth-right-logo {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: 6px;
  }

  .oem-auth-right-logo .oem {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #1f5eff;
  }

  .oem-auth-right-logo .price {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
  }

  .oem-auth-right-title {
    max-width: 620px;
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: #ffffff;
  }

  .oem-auth-features {
    max-width: 620px;
  }

  .oem-auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .oem-auth-feature:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .oem-auth-feature-icon {
    flex: 0 0 28px;
    color: #2d78ff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .oem-auth-feature-icon svg {
    width: 50px;
    height: 50px;
  }

  .oem-auth-feature-title {
    font-size: 20px;
    margin-bottom: 1px;
    margin: 0 0 2px;
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
  }

  .oem-auth-feature-text {
    font-size: 14px;
    line-height: 1.25;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
  }

  .oem-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
  }

  .oem-modal.is-open {
    display: block;
  }

  .oem-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 45, 0.62);
    backdrop-filter: blur(4px);
  }

  .oem-modal__dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 24px);
    max-width: 760px;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    overflow-y: auto;
    padding: 26px 24px 22px;
  }

  .oem-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef4ff;
    color: #1f5eff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .oem-modal__close:hover,
  .oem-modal__close:focus {
    background: #1f5eff;
    color: #ffffff;
    outline: none;
  }

  .oem-modal__header {
    margin-bottom: 16px;
    padding-right: 36px;
  }

  .oem-modal__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    color: #101828;
  }

  .oem-modal__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475467;
  }

  .oem-modal__form .form-group {
    margin-bottom: 14px;
  }

  .oem-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .oem-modal__grid-full {
    grid-column: 1 / -1;
  }

  .oem-modal__actions {
    margin-top: 8px;
  }

  body.oem-modal-open {
    overflow: hidden;
  }

  @media (min-width: 1200px) {
    body.auth-page-body {
      overflow: hidden;
    }
  }

  @media (max-width: 1199px) {
    body.auth-page-body {
      overflow: auto;
    }

    .oem-auth-page {
      min-height: auto;
      padding: 14px 10px;
    }

    .oem-auth-wrap {
      flex-direction: column;
      height: auto;
      min-height: auto;
    }

    .oem-auth-left,
    .oem-auth-right {
      width: 100%;
    }

    .oem-auth-left {
      padding: 24px 20px 18px;
    }

    .oem-auth-right-top {
      padding: 22px 20px 14px;
    }
  }

  @media (max-width: 767px) {
    body.auth-page-body {
      overflow: auto;
    }

    .oem-auth-page {
      padding: 8px 6px 10px;
    }

    .oem-auth-wrap {
      height: auto;
      border-radius: 16px;
    }

    .oem-auth-left {
      padding: 16px 12px 14px;
    }

    .oem-auth-logo-oem,
    .oem-auth-logo-price {
      font-size: 34px;
    }

    .oem-auth-subtitle {
      margin-bottom: 10px;
      font-size: 12px;
    }

    .oem-auth-title {
      font-size: 24px;
    }

    .oem-auth-text {
      font-size: 13px;
      margin-bottom: 10px;
    }

    .oem-auth-form label {
      font-size: 12px;
      display: flex;
    }

    .oem-auth-input {
      height: 40px;
      font-size: 13px;
    }

    .oem-auth-btn {
      height: 40px;
      font-size: 14px;
    }

    .oem-auth-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .oem-supplier-card {
      padding: 10px;
    }

    .oem-supplier-card-inner {
      flex-direction: column;
      gap: 8px;
    }

    .oem-supplier-icon {
      width: 54px;
      height: 54px;
      flex-basis: 54px;
    }

    .oem-supplier-title {
      font-size: 16px;
    }

    .oem-supplier-subtitle {
      font-size: 13px;
    }

    .oem-supplier-text {
      font-size: 12px;
    }

    .oem-supplier-btn {
      min-height: 36px;
      font-size: 12px;
      max-width: 100%;
    }

    .oem-auth-register {
      font-size: 12px;
      margin-top: 6px;
    }

    .oem-auth-right-top {
      padding: 16px 12px 12px;
    }

    .oem-auth-right-logo .oem,
    .oem-auth-right-logo .price {
      font-size: 40px;
    }

    .oem-auth-right-title {
      font-size: 22px;
      margin-bottom: 10px;
    }

    .oem-auth-feature {
      gap: 8px;
      padding: 8px 0;
    }

    .oem-auth-feature-icon {
      width: 24px;
      height: 24px;
      flex-basis: 24px;
    }

    .oem-auth-feature-title {
      font-size: 12px;
    }

    .oem-auth-feature-text {
      font-size: 10px;
      line-height: 1.3;
    }

    .oem-modal__dialog {
      width: calc(100% - 16px);
      max-height: calc(100vh - 16px);
      margin: 8px auto;
      padding: 18px 14px 16px;
      border-radius: 16px;
    }

    .oem-modal__title {
      font-size: 22px;
    }

    .oem-modal__subtitle {
      font-size: 13px;
    }

    .oem-modal__grid {
      grid-template-columns: 1fr;
      gap: 0;
    }

    .oem-modal__close {
      top: 8px;
      right: 8px;
      width: 34px;
      height: 34px;
      font-size: 22px;
    }
  }

  @media (max-height: 900px) and (min-width: 1200px) {
    .oem-auth-page {
      padding: 8px 12px;
    }

    .oem-auth-left {
      padding: 14px 26px 10px;
    }

    .oem-auth-right-top {
      padding: 14px 22px 8px;
    }

    .oem-auth-logo-oem,
    .oem-auth-logo-price {
      font-size: 40px;
    }

    .oem-auth-subtitle {
      margin-bottom: 10px;
      font-size: 12px;
    }

    .oem-auth-title {
      font-size: 34px;
      margin-bottom: 4px;
    }

    .oem-auth-text {
      margin-bottom: 8px;
      font-size: 13px;
    }

    .oem-auth-form .form-group {
      margin-bottom: 7px;
    }

    .oem-auth-form label {
      margin-bottom: 4px;
      font-size: 12px;
      display: flex;
    }

    .oem-auth-input {
      height: 38px;
      font-size: 13px;
    }

    .oem-auth-row {
      margin: 2px 0 8px;
    }

    .oem-auth-check,
    .oem-auth-link {
      font-size: 12px;
    }

    .oem-auth-btn {
      height: 38px;
      font-size: 14px;
    }

    .oem-auth-divider {
      margin: 16px 0;
      font-size: 12px;
    }

    .oem-supplier-card {
      padding: 8px;
    }

    .oem-supplier-card-inner {
      gap: 8px;
    }

    .oem-supplier-icon {
      width: 50px;
      height: 50px;
      flex-basis: 50px;
    }

    .oem-supplier-icon svg {
      width: 26px;
      height: 26px;
    }

    .oem-supplier-title {
      font-size: 24px;
    }

    .oem-supplier-subtitle {
      font-size: 13px;
      margin-bottom: 3px;
    }

    .oem-supplier-text {
      font-size: 11px;
      line-height: 1.3;
      margin-bottom: 5px;
    }

    .oem-supplier-btn {
      min-height: 34px;
      font-size: 14px;
    }

    .oem-auth-register {
      margin-top: 5px;
      font-size: 12px;
    }

    .oem-auth-right-logo {
      margin-bottom: 5px;
    }

    .oem-auth-right-logo .oem,
    .oem-auth-right-logo .price {
      font-size: 40px;
    }

    .oem-auth-right-title {
      font-size: 34px;
      margin-bottom: 34px;
    }

    .oem-auth-feature {
      gap: 8px;
      padding: 10px 0;
    }

    .oem-auth-feature-icon {
      width: 50px;
      height: 50px;
      flex-basis: 50px;
    }

    .oem-auth-feature-title {
      font-size: 20px;
      margin-bottom: 1px;
    }

    .oem-auth-feature-text {
      font-size: 14px;
      line-height: 1.25;
    }
}

/* =========================
   FOOTER
========================= */

/* ===== KASPI FOOTER ===== */

.footer-oem {
    padding: 16px 0 10px;
}

.footer-oem-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-oem-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-oem-links a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}

.footer-oem-links a:hover {
    color: #2644DD;
}

.footer-oem-copy {
    font-size: 14px;
    color: #9ca3af;
    white-space: nowrap;
}

.footer-oem-note {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 767px) {

    .footer-oem-line {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .footer-oem-links {
        justify-content: center;
        gap: 10px;
    }

    .footer-oem-links a {
        font-size: 13px;
    }

    .footer-oem-copy {
        font-size: 13px;
    }
}

.oem-empty-state {
  background: #ffffff;
  border-radius: 16px;
  padding: 42px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #edf0f5;
  margin: 24px 0;
}

.oem-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef3ff;
  color: #2445e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.oem-empty-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.oem-empty-text {
  font-size: 15px;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.oem-empty-tips {
  display: inline-block;
  text-align: left;
  color: #64748b;
  font-size: 14px;
  margin: 0 auto 22px;
  padding-left: 18px;
}

.oem-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.oem-empty-btn-primary,
.oem-empty-btn-secondary {
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oem-empty-btn-primary {
  background: #2445e8;
  color: #fff !important;
}

.oem-empty-btn-secondary {
  background: #f1f5f9;
  color: #0f172a !important;
}

@media (max-width: 576px) {
  .oem-empty-state {
    padding: 32px 16px;
  }

  .oem-empty-actions {
    flex-direction: column;
  }

  .oem-empty-actions a {
    width: 100%;
  }
}

/* LIVE SEARCH — OEMPRICE */

.live-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.88);
    z-index: 9000;
}

.live-search-overlay.is-active {
    display: block;
}

.oem-search {
    position: relative;
    z-index: 9100;
    transition: all 0.2s ease;
}

.oem-search.oem-search--active {
    position: relative !important;
    z-index: 9101 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    transform: none !important;
    margin: 0 !important;
}

.oem-search.oem-search--active #search {
    width: 100% !important;
}

.oem-search.oem-search--active input[name="search"] {
    font-size: 16px;
    border-radius: 10px;
    padding: 0 50px 0 16px;
    box-sizing: border-box;
}

.oem-search.oem-search--active button {
    right: 10px;
}

.live-search-box {
    display: none;
    position: absolute !important;
    top: calc(100% - 0px) !important;
    left: 50% !important;
    width: 88vw !important;
    max-width: 1200px !important;
    min-width: 1000px !important;
    transform: translateX(-50%) !important;
    max-height: 430px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius:10px;
    box-sizing: border-box;
    z-index: 9102;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.live-search-box .price-table-wrap {
    overflow-x: hidden;
}

.live-search-box .price-table {
    width: 100%;
    table-layout: fixed;
}

.live-search-box .price-table td {
    padding: 10px 8px;
    vertical-align: middle;
}

.live-search-box .price-table td:nth-child(1) {
    width: 120px;
}

.live-search-box .price-table td:nth-child(2) {
    width: 300px;
}

.live-search-box .price-table td:nth-child(3) {
    width: 80px;
}

.live-search-box .price-table td:nth-child(4) {
    width: 120px;
}

.live-search-box .price-table td:nth-child(5) {
    width: 80px;
    text-align: center;
}

.live-search-box .price-table td:nth-child(6) {
    width: 135px;
}

.live-search-box .price-table td:nth-child(7) {
    width: 160px;
}

.live-search-box .price-table__name {
     max-width: 290px;
    white-space: normal;
    overflow: hidden;
    line-height: 1.25;
}

.live-search-box .price-actions-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.live-search-box .price-qty {
    flex: 0 0 86px;
}

.live-search-box .price-btn-buy {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
}

.live-search-box {
    left: 50% !important;
    transform: translateX(-55%) !important;
}

.oem-search {
    will-change: transform;
}

.oem-search.oem-search--active input[name="search"],
.oem-search input[name="search"] {
    border-radius: 10px 10px 0 0;
}

/* ===== FILTER LINKS ===== */

.oem-filter-link {
    display: inline-block;
    margin: 4px 8px 4px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px dotted #aaa;
    font-size: 14px;
}

.oem-filter-link:hover {
    color: #0a58ca;
}

.oem-filter-link.active {
    background: #2644DD;
    color: #fff;
    padding: 3px 9px;
    border-radius: 8px;
    border-bottom: none;
}

.oem-filter-link.disabled {
    color: #b7b7b7;
    pointer-events: none;
}

/* ===== MORE / DROPDOWN ===== */

.oem-filter-more-toggle {
    color: #111;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px dotted #777;
}

.oem-filter-more-toggle:hover {
    text-decoration: underline;
}

.oem-filter-dropdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

.oem-filter-dropdown-inner {
    column-count: 3;
    column-gap: 36px;
}

.oem-filter-dropdown-inner a {
    display: block;
    margin-bottom: 6px;
}

/* ===== LETTER ===== */

.oem-filter-letter {
    display: inline-block;
    background: #2644DD;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 6px;
    margin: 6px 8px 4px 0;
}

/* ===== ENGINE AUTOCOMPLETE ===== */

.oem-engine-wrap {
    position: relative;
}

.oem-engine-suggest {
    position: absolute;
    top: 55px;
    left: 24px;
    width: 600px;

    background: #fff;
    border: 1px solid #d7dce3;
    border-top: none;
    z-index: 200;

    max-height: 240px;
    overflow-y: auto;

    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.oem-engine-suggest div {
    padding: 8px 12px;
    cursor: pointer;
}

.oem-engine-suggest div:hover {
    background: #f3f6fb;
}

/* ===== LOADER ===== */

.oem-filter-box {
    position: relative;
}

.oem-filter-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
    backdrop-filter: blur(1.5px);
}

.oem-filter-loader {
    width: 28px;
    height: 28px;
    border: 3px solid #d7dce3;
    border-top: 3px solid #2644DD;
    border-radius: 50%;
    animation: oemFilterSpin 0.8s linear infinite;
}

@keyframes oemFilterSpin {
    100% { transform: rotate(360deg); }
}

/* ===== DESKTOP VIEW ===== */

.oem-filter-box {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 0 !important;
    overflow: visible;
    background: linear-gradient(
        to right,
        #e2e2e2 0,
        #e2e2e2 180px,
        #fff 180px,
        #fff 100%
    );
}

.oem-filter-row {
    display: contents;
}

.oem-filter-label {
    background: transparent;
    color: #888;
    font-weight: 500;
    padding: 18px 20px;
    text-transform: uppercase
}

.oem-filter-values {
    background: #fff;
    padding: 15px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.oem-filter-row:last-child .oem-filter-values,
.oem-filter-row:last-child .oem-filter-label {
    border-bottom: none;
}

.oem-engine-wrap input {
    max-width: 600px;
    width: 600px;
    height: 40px;
}

.oem-engine-wrap .btn {
    min-width: 260px;
    height: 36px;
    margin-top: 10px;
    margin-right: 16px;
}
.oem-filter-inner-search-wrap {
    margin: 0 0 12px 0;
    padding: 0;
    max-width: 320px;
}

.oem-filter-inner-search {
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.oem-filter-inner-search::placeholder {
    color: #8a94a6;
}

.oem-filter-inner-search:focus {
    border-color: #1f4ed8;
    box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.12);
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .oem-filter-box {
        display: block;
    }

    .oem-filter-row {
        display: block;
        border-bottom: 1px solid #eef0f3;
    }

    .oem-filter-label {
        background: #e2e2e2;
        text-align: center;
        padding: 8px;
    }

    .oem-filter-values {
        padding: 10px 14px;
        border-bottom: none;
    }

    .oem-filter-dropdown-inner {
        column-count: 1;
    }

    .oem-engine-wrap input {
        width: 100%;
        max-width: 100%;
    }

    .oem-engine-wrap .btn {
        width: 100%;
        margin-top: 8px;
    }

    .oem-engine-suggest {
        left: 14px;
        width: calc(100% - 28px);
        top: 55px;
    }
    
    .oem-filter-inner-search-wrap {
        max-width: 100%;
    }

    .oem-filter-inner-search {
        height: 38px;
        font-size: 15px;
    }
}

/* =========================================
   OEMprice MOBILE TOOLS
========================================= */

@media (max-width:767px){

  .oem-mobile-tools-page{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 12px;
  }

  .oem-tool-btn{
    height:42px;
    padding:0 12px;
    border:1px solid #eceef3;
    border-radius:10px;
    background:#fff;
    color:#6b7280;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:15px;
    font-weight:700;
    box-shadow:0 2px 8px rgba(15,23,42,.04);
  }

  .oem-tool-btn svg{
    width:21px;
    height:21px;
    flex:0 0 21px;
  }

  .oem-view-toggle{
    margin-left:auto;
    height:42px;
    display:flex;
    border:1px solid #eceef3;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 2px 8px rgba(15,23,42,.04);
  }

  .oem-view-toggle button{
    width:42px;
    height:42px;
    border:0;
    background:#fff;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
  }

  .oem-view-toggle button + button{
    border-left:1px solid #eceef3;
  }

  .oem-view-toggle button.active{
    color:#2f4be8;
    background:#f3f6ff;
  }

  .oem-view-toggle svg{
    width:21px;
    height:21px;
  }

  /* FILTER */

  .oem-filter-box{
    display:none;
  }

  .oem-filter-box.is-open{
    display:block;
    animation:oemFilterFade .18s ease;
  }

  @keyframes oemFilterFade{
    from{
      opacity:0;
      transform:translateY(-6px);
    }
    to{
      opacity:1;
      transform:none;
    }
  }

  /* SORT */

  .oem-mobile-sort-popup{
    display:none;
    margin:-2px 0 12px;
    padding:8px;
    border:1px solid #eceef3;
    border-radius:14px;
    background:#fff;
    box-shadow:0 12px 34px rgba(15,23,42,.07);
  }

  .oem-mobile-sort-popup.is-open{
    display:block;
    animation:oemSortFade .16s ease;
  }

  .oem-mobile-sort-link{
    min-height:46px;
    padding:10px 14px;
    border-radius:10px;
    display:flex;
    align-items:center;
    color:#111827;
    text-decoration:none!important;
    font-size:15px;
    font-weight:600;
    line-height:1.2;
  }

  .oem-mobile-sort-link + .oem-mobile-sort-link{
    margin-top:2px;
  }

  .oem-mobile-sort-link.active{
    background:#f3f6ff;
    color:#2f4be8;
  }

  .oem-mobile-sort-link:hover{
    background:#f8fafc;
  }

}

@media (min-width:768px){

  .oem-mobile-tools-page,
  .oem-mobile-sort-popup{
    display:none!important;
  }

}

/* =========================================
   OEM GRID VIEW
========================================= */

@media (max-width:767px){

  .price-table.oem-grid-view tbody{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .price-table.oem-grid-view .price-row-mobile{
    margin:0!important;
    min-height:100%;
  }

}

/* =========================================
   OEM GRID CARD FIX
========================================= */

@media (max-width:767px){

  .price-table.oem-grid-view tbody{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .price-table.oem-grid-view .price-row-mobile{
    display:flex!important;
    flex-direction:column;
    padding:12px;
    border-radius:14px;
    min-height:100%;
  }

  .price-table.oem-grid-view td{
    display:block!important;
    width:100%!important;
  }

  /* скрываем фото и лишнее */

  .price-table.oem-grid-view td:nth-child(4){
    display:none!important;
  }

  /* название */

  .price-table.oem-grid-view .price-table__name{
    font-size:14px;
    line-height:1.3;
    -webkit-line-clamp:2;
    min-height:36px;
  }

  /* бренд */

  .price-table.oem-grid-view td:nth-child(3){
    margin-top:4px;
    font-size:12px;
  }

  /* склад */

  .price-table.oem-grid-view td:nth-child(5){
    margin-top:6px;
  }

  /* наличие */

  .price-table.oem-grid-view td:nth-child(6){
    margin-top:4px;
    font-size:12px;
  }

  /* цена */

  .price-table.oem-grid-view td:nth-child(7){
    margin-top:auto;
    padding-top:10px;
  }

  .price-table.oem-grid-view .market-price-best{
    font-size:20px!important;
    line-height:1.1;
    word-break:break-word;
  }

  /* actions */

  .price-table.oem-grid-view .price-actions-box{
    flex-direction:column;
    gap:8px;
    margin-top:8px;
  }

  .price-table.oem-grid-view .price-qty{
    width:100%;
    flex:none;
  }

  .price-table.oem-grid-view .price-btn-buy,
  .price-table.oem-grid-view .price-btn-in-cart{
    width:100%;
  }

}

@media (max-width:767px) {

  .btn-oem-primary{
    height:46px;
    border-radius:12px;
    padding:0 16px;
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:500;
    box-shadow:0 8px 18px rgba(47,75,232,.18);
  }

  .oem-burger{
    width:20px;
    height:20px;
    flex:0 0 20px;
  }

  .credit-mobile{
    height:30px;
    padding:0 10px;
    border-radius:9px;
    background:#eaf8ee;
    color:#16823a;
    font-size:13px;
    font-weight:500;
    display:flex;
    align-items:center;
  }

  .oem-cart-mobile-clean{
    position:relative;
    width:46px;
    min-width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:visible;
  }

  .oem-cart-mobile-clean .oem-header-cart-wrap{
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    margin:0!important;
    padding:0!important;
  }

  .oem-cart-mobile-clean .oem-header-cart-link{
    position:relative;
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
    font-size:0!important;
  }

  .oem-cart-mobile-clean .oem-header-cart-info{
    display:none!important;
  }

  .oem-cart-mobile-clean .oem-header-cart-link:before{
    content:"";
    width:32px;
    height:32px;
    display:block;
    background:url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4H5.1L7 14.1C7.15 14.85 7.8 15.4 8.57 15.4H18.1C18.83 15.4 19.46 14.91 19.64 14.2L20.7 9.7H6.2' stroke='%23374151' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.1' cy='19.2' r='1.2' stroke='%23374151' stroke-width='1.6'/%3E%3Ccircle cx='17.4' cy='19.2' r='1.2' stroke='%23374151' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  }

  .oem-cart-mobile-clean .oem-header-cart-link:after{
      content: attr(data-count);
      position:absolute;
      top:2px;
      right:0;
      width:18px;
      height:18px;
      border-radius:50%;
      background:#2f4be8;
      color:#fff;
      font-size:11px;
      font-weight:700;
      display:flex;
      align-items:center;
      justify-content:center;
      line-height:1;
      pointer-events:none;
    }
    
    .oem-cart-mobile-clean .oem-header-cart-link[data-count="0"]:after,
    .oem-cart-mobile-clean .oem-header-cart-link[data-count=""]:after{
      display:none!important;
    }

  .oem-mobile-tools-page{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 12px;
  }

  .oem-tool-btn{
    height:42px;
    padding:0 12px;
    border:1px solid #eceef3;
    border-radius:10px;
    background:#fff;
    color:#6b7280;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:15px;
    font-weight:700;
    box-shadow:0 2px 8px rgba(15,23,42,.04);
  }

  .oem-tool-btn svg{
    width:21px;
    height:21px;
    flex:0 0 21px;
  }

  .oem-view-toggle{
    margin-left:auto;
    height:42px;
    display:flex;
    border:1px solid #eceef3;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 2px 8px rgba(15,23,42,.04);
  }

  .oem-view-toggle button{
    width:42px;
    height:42px;
    border:0;
    background:#fff;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
  }

  .oem-view-toggle button + button{
    border-left:1px solid #eceef3;
  }

  .oem-view-toggle button.active{
    color:#2f4be8;
    background:#f3f6ff;
  }

  .oem-view-toggle svg{
    width:21px;
    height:21px;
  }
  
  .oem-filter-box{
    display:none;
  }

  .oem-filter-box.is-open{
    display:block;
    animation:oemFilterFade .18s ease;
  }

  @keyframes oemFilterFade{
    from{
      opacity:0;
      transform:translateY(-6px);
    }
    to{
      opacity:1;
      transform:none;
    }
  }
  
   .oem-mobile-sort-popup{
    display:none;
    margin:-2px 0 12px;
    padding:8px;
    border:1px solid #eceef3;
    border-radius:14px;
    background:#fff;
    box-shadow:0 12px 34px rgba(15,23,42,.07);
  }

  .oem-mobile-sort-popup.is-open{
    display:block;
    animation:oemSortFade .16s ease;
  }

  .oem-mobile-sort-link{
    min-height:46px;
    padding:10px 14px;
    border-radius:10px;
    display:flex;
    align-items:center;
    color:#111827;
    text-decoration:none!important;
    font-size:15px;
    font-weight:600;
    line-height:1.2;
  }

  .oem-mobile-sort-link + .oem-mobile-sort-link{
    margin-top:2px;
  }

  .oem-mobile-sort-link.active{
    background:#f3f6ff;
    color:#2f4be8;
  }

  .oem-mobile-sort-link:hover{
    background:#f8fafc;
  }

}

@media (min-width:768px){
  .oem-mobile-tools-page,
  .oem-mobile-sort-popup {
    display:none!important;
  }
}

.oem-page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.oem-page-loader.is-active {
    display: flex;
}

.oem-page-loader:before {
    content: '';
    width: 42px;
    height: 42px;
    border: 4px solid rgba(31, 85, 255, 0.18);
    border-top-color: #1f55ff;
    border-radius: 50%;
    animation: oemLoaderSpin 0.75s linear infinite;
}

.oem-page-loader:after {
    content: 'Загрузка...';
    position: absolute;
    margin-top: 78px;
    font-size: 14px;
    font-weight: 600;
    color: #1f55ff;
}

@keyframes oemLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}


