.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-direction: column;
}
.content-with-filters {
  display: flex;
  gap: 30px;
  width: 100%;
}
.sidebar {
  flex: 0 0 250px;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.product-list {
  flex-grow: 1;
}
.breadcrumbs {
  font-size: 14px;
  color: #666;
}
.breadcrumbs a {
  color: #0066cc;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  color: #333;
  font-weight: bold;
}
.filter {
  display: flex;
  flex-direction: column;
}
.filter__group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}
.filter__group h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.filter__group label {
  display: block;
  margin-bottom: 3px;
}
.price-range {
  display: flex;
  gap: 5px;
  align-items: center;
}
.price-range input[type="number"] {
  width: 80px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.apply {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  text-align: center;
  z-index: 1;
}
.filter__apply {
  background-color: #007bff;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.filter__apply:hover {
  background-color: #0056b3;
}
.filter__reset {
  padding: 8px 20px;
  background: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.filter__reset:hover {
  background: #c0392b;
}
.subcategories {
  margin-bottom: 30px;
}
.subcategories h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #444;
}
.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.subcategory-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  display: block;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
}
.subcategory-name {
  font-weight: bold;
  margin-top: 10px;
}
.product-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.product-card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.product-card__image-box {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}
.product-card__image {
  max-width: 90%;
  max-height: 180px;
  object-fit: contain;
}
.product-card__description {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card__title {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
}
.product-card__short-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  flex-grow: 1;
  line-height: 1.4;
}
#p_otz {
  font-size: 0.8em;
  color: #555;
  margin: 10px 0 0 0;
}
.product-card__price {
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card__price span {
  font-size: 1.1rem;
  color: #e53935;
}
.add-to-cart,
.favorite-button {
  display: inline-flex;
  padding: 5px;
  transition: transform 0.2s;
}
.add-to-cart:hover,
.favorite-button:hover {
  transform: scale(1.1);
}
.add-to-cart img,
.favorite-button img {
  width: 24px;
  height: 24px;
}
.no-products {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: #666;
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }
  .content-with-filters {
    flex-direction: column;
  }
  .sidebar {
    flex: 0 0 auto;
    margin-bottom: 20px;
  }
  .subcategories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
@media (min-width: 1623px) {
  .product-list__grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  }
}
@media (min-width: 1920px) {
  .product-list__grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  }
}