.hero-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  height: 440px;
  align-items: stretch;
}

.hero-left {
  width: 15%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-center {
  width: 70%;
  overflow: hidden;
}

.hero-right {
  width: 15%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.hero-products {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
  overflow: hidden;
}

.hero-products .product {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 rem;
  border: 1px solid var(--default-border-color);
  border-radius: var(--border-radius);
  background: var(--card-background-color);
  margin-bottom: 0;
  min-height: 0;
  overflow: hidden;
}

.hero-products .product:last-child {
  margin-bottom: 0;
}

.hero-products .product .image-wrapper {
  width: 100%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-products .product img {
  /* max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; */
}

.hero-products .product .info {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  padding: 0.25rem 0.5rem 2px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
  height: 30%;
}

.hero-products .product .name {
  font-size: 0.7em;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  height: 100%;
  line-height: 1.3;
}

.hero-products .product .name span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin-bottom: 0;
}

.hero-products .product .manufacturer-name {
  display: none;
}

.hero-products .product .description {
  display: none;
}

.hero-products .product .preview {
  display: none;
}

.hero-products .product .sticker {
  display: none;
}

.hero-products .product .price-wrapper {
  display: none;
}

.hero-products .product .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-products .product .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero-products .product .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-categories {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
  overflow: hidden;
}

.hero-categories .category {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--default-border-color);
  border-radius: var(--border-radius);
  background: var(--card-background-color);
  margin-bottom: 0;
  text-align: center;
  transition: all 200ms linear;
  overflow: hidden;
  min-height: 0;
}

.hero-categories .category:last-child {
  margin-bottom: 0;
}

.hero-categories .category:hover {
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.hero-categories .category .img-responsive {
  max-width: 75%;
  max-height: 70%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-categories .category .caption {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  /* padding: 0.25rem 0.5rem 2px; */
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  /* margin-top: 0.25rem;
  height: 30%; */
}

.hero-categories .category .name {
  font-size: 0.8em;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  word-break: break-word;
  line-height: 1.3;
  height: 100%;
}

.hero-categories .category .name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  word-break: break-word;
  margin-bottom: 0;
}

.hero-categories .category .short-description {
  display: none;
}

#box-slides {
  height: 100%;
  margin-bottom: 0;
  overflow: hidden;
}

#box-slides .carousel-inner {
  height: 100%;
}

#box-slides .carousel-inner .item {
  height: 100%;
}

#box-slides .carousel-inner .item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .hero-section {
    flex-direction: column;
    height: auto;
  }

  .hero-left,
  .hero-center,
  .hero-right {
    width: 100%;
    height: auto;
  }

  .hero-center {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero-products {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-products .product {
    /* width: calc(50% - 0.5rem);
    margin-right: 0.5rem;*/
    margin-bottom: 0 rem; 
  }

  .hero-products .product:nth-child(2n) {
    margin-right: 0;
  }

  .hero-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-categories .category {
    width: calc(50% - 0.5rem);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-categories .category:nth-child(2n) {
    margin-right: 0;
  }

  #box-slides {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .hero-products .product {
    width: 100%;
    margin-right: 0;
  }

  .hero-categories .category {
    width: 100%;
    margin-right: 0;
  }

  #box-slides {
    height: 250px;
  }
}
