/* Дополнения к CSS демо-шаблона eshop_bootstrap_v4 (BitShift) */
/* Картинки товаров — только из page_*.css BitShift, без переопределений */

.bx-content .alert {
  margin-top: 1rem;
}

.basket-line-block form {
  display: inline;
}

.basket-line-block button.btn-link {
  color: #2675d7;
  text-decoration: none;
  font-size: inherit;
  vertical-align: baseline;
}

.bx-slider-preset-3 {
  position: relative;
}

.bx-advertisingbanner-content {
  position: absolute;
  left: 24px;
  top: 24px;
  max-width: 42%;
  padding: 18px 20px;
  z-index: 3;
}

.bx-advertisingbanner-text-title {
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.bx-advertisingbanner-text-block {
  margin-bottom: 14px;
}

.bx-advertisingbanner-btn {
  border: 0;
  border-radius: 2px;
  padding: 8px 16px;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .bx-advertisingbanner-content {
    position: static;
    max-width: none;
    margin-top: 10px;
  }
}

/* Каталог — как smart filter / section list BitShift */
.bx-filter {
  border: 1px solid #e5e5e5;
  padding: 14px;
  background: #fff;
}
.bx-filter-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.bx-filter-parameters-box {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.bx-filter-parameters-box-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.bx-filter-reset {
  display: inline-block;
  margin-left: 10px;
}
.bx-catalog-section-list-item {
  border: 1px solid #e5e5e5;
  padding: 10px;
  background: #fff;
  height: 100%;
}
.bx-catalog-section-list-item-img {
  display: block;
  min-height: 120px;
  margin-bottom: 8px;
}
.bx-catalog-section-list-item-img img {
  max-height: 160px;
  margin: 0 auto;
  object-fit: contain;
}
.bx-catalog-section-list-item-title {
  font-weight: 600;
}
.bx-breadcrumb a { color: #2675d7; }
.bx-nav-2-lvl-container {
  display: none;
  position: absolute;
  z-index: 30;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 220px;
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.bx-nav-parent:hover > .bx-nav-2-lvl-container { display: block; }
.bx-nav-1-lvl { position: relative; }
.bx-nav-2-lvl-link {
  display: block;
  padding: 6px 16px;
  color: #333;
}
.bx-nav-2-lvl-link:hover { background: #f5f5f5; text-decoration: none; }
.bx-nav-list-3-lvl { margin-top: 2px; }
.bx-nav-3-lvl-link {
  display: block;
  padding: 4px 8px;
  color: #555;
  font-size: .92rem;
}
.bx-nav-3-lvl-link:hover { color: #78b42c; text-decoration: none; }

/* Детальная карточка товара (не список каталога — стили списка только из page_*.css BitShift) */
.product-item-detail-slider-image { display: none; }
.product-item-detail-slider-image.active { display: block; }
.product-item-detail-slider-image img { max-width: 100%; height: auto; }
.product-item-detail-slider-controls-image {
  display: inline-block;
  width: 70px;
  height: 70px;
  margin: 4px 4px 0 0;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  vertical-align: top;
}
.product-item-detail-slider-controls-image.active { border-color: #78b42c; }
.product-item-detail-slider-controls-image img { width: 100%; height: 100%; object-fit: cover; }
.product-item-detail-buy-button { min-width: 160px; }
.product-item-detail-tab-content { padding: 16px 0; }
/* Новости — карточки bootstrap_v4 как в демо BitShift */
.news-list .card {
  border: 1px solid #e4e4e4;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.news-list .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-list .card-title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.news-list .card-title a {
  color: #78b42c;
  text-decoration: underline;
}
.news-list .card-title a:hover { color: #5f9220; }
.news-list .card-text {
  color: #555;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.news-list .btn-primary {
  background: #78b42c;
  border-color: #78b42c;
}
.news-detail-text img { max-width: 100%; height: auto; }

/* Пустая корзина — как sale.basket.basket bootstrap_v4 */
.bx-sbb-empty-cart-container { padding-bottom: 20px; }
.bx-sbb-empty-cart-image {
  margin: 50px auto 42px;
  width: 131px;
  height: 116px;
  background: url('/bitshift/components/bitshift/sale.basket.basket/templates/bootstrap_v4/images/empty_cart.svg') no-repeat center;
  background-size: contain;
}
.bx-sbb-empty-cart-text {
  margin-bottom: 42px;
  color: #bababa;
  text-align: center;
  font-size: 36px;
}
.bx-sbb-empty-cart-desc {
  margin-bottom: 42px;
  color: #000;
  text-align: center;
  font-size: 16px;
}
.bx-sbb-empty-cart-desc a { color: #39a8df; }

/* Корень каталога — плитки разделов как в демо */
.catalog-section-list-item-img {
  display: block;
  width: 100%;
  padding-top: 100%;
  background: #f5f5f5 center/cover no-repeat;
  border-radius: 2px;
}
.catalog-section-list-item-title {
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}
.catalog-section-list-item-link { color: #333; text-decoration: none; }
.catalog-section-list-item-link:hover { color: #78b42c; }

/* Персональный раздел */
.sale-personal-section-index-block.bx-green {
  background-color: #78b42c;
}
.sbx-green .list-group-item.active {
  background-color: #78b42c;
  border-color: #78b42c;
}

/* Авторизация */
.bx-authform-input-container input {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #ccd5db;
  border-radius: 2px;
}
.bx-authform-label-container {
  margin-bottom: 6px;
  font-weight: 600;
}
.bx-authform-formgroup-container { margin-bottom: 16px; }
.bx-authform-link-container { margin-bottom: 12px; }

