/* Баннер */
.banner-slider {
  position: relative;
}
.banner-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Карточки каталога */
.card {
  display: flex;
  flex-direction: column;
}
.card-body {
  flex-grow: 1;
}
.card-img-top {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}
.card-body p.card-text {
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-to-cart-form {
  margin-top: auto;
}

/* Фильтры */
.filter-values {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.filter-value-item {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}
.filter-value-item input[type="checkbox"] {
  margin-right: 6px;
}

/* Вкладки */
.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 10px;
}
.tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #f9f9f9;
  margin-right: 5px;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.3s;
}
.tab:hover {
  background-color: #eee;
}
.tab.active {
  background-color: #fff;
  font-weight: bold;
}
.tab-content {
  display: none;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 0 0 8px 8px;
  background-color: #fff;
}
.tab-content.active {
  display: block;
}

/* Промо */
.promotion-banner {
  background: #fffae6;
  border: 1px solid #ffd700;
  padding: 10px;
  margin-bottom: 15px;
}


.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-gallery a {
  display: block;
}
.product-gallery img {
  max-width: 120px;
  height: auto;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}
.product-gallery img:hover {
  border-color: #aaa;
  transform: scale(1.05);
}


/* Две колонки */
.product-detail-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.left-column {
  flex: 1 1 400px;
  max-width: 500px;
}
.right-column {
  flex: 1 1 400px;
  max-width: 500px;
}
.product-prices {
  font-size: 24px;
  margin: 15px 0;
}
.product-prices del {
  color: #888;
  margin-right: 10px;
}
.btn-add-to-cart {
  padding: 12px 25px;
  background-color: #ff6600;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

/* Вкладки */
.product-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 15px;
}
.breadcrumbs a {
  color: #007bff;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Общие стили карточки товара */
.product-detail-container {
  display: flex;
  gap: 20px;
}

/* Левая и правая колонки — по 50% ширины */
.left-column,
.right-column {
  flex: 1;
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
  .product-detail-container {
    flex-direction: column;
  }
  .left-column,
  .right-column {
    width: 100%;
  }
  
  /* Галерея — картинки делают по центру */
  .product-gallery a img {
    max-width: 100%;
    height: auto;
  }
  
  /* Вкладки тоже адаптивные */
  .tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .tab {
    flex: 1 1 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
  }
  .tab.active {
    border-bottom: 3px solid #007bff;
    font-weight: bold;
  }
  .tab-content {
    padding: 10px 0;
  }
}
