/* Minlong Related Goods Component */
.minlong-related-goods {
  padding: var(--component-gap) 0;
  background: #fff;
}

/* Section Header */
.minlong-related-goods .related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.minlong-related-goods .related-title {
  font-family: var(--title-font-family);
  font-size: var(--title-size-h2);
  font-weight: 700;
  line-height: 1.52;
  color: var(--color-primary);
  margin: 0;
}

/* Navigation Buttons */
.minlong-related-goods .related-navigation {
  display: flex;
  gap: 20px;
  position: relative;
}
.minlong-related-goods .swiper-button-next {
  right: 0;
}
.minlong-related-goods .swiper-button-prev {
  left: auto;
  right: 20px;
  transform: translateX(-100%);
}
.minlong-related-goods .nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: static;
  transform: none;
  margin: 0;
  padding: 0;
}

.minlong-related-goods .nav-prev {
  background: rgba(16, 56, 98, 0.15);
  color: var(--color-primary);
}

.minlong-related-goods .nav-next {
  background: var(--color-primary);
  color: #fff;
}

.minlong-related-goods .nav-prev:hover {
  background: var(--color-primary);
  color: #fff;
}

.minlong-related-goods .nav-next:hover {
  background: rgba(16, 56, 98, 0.85);
}

.minlong-related-goods .nav-btn.swiper-button-disabled {
  opacity: 1;
  cursor: not-allowed;
}

/* Products Swiper */
.minlong-related-goods .related-products {
  position: relative;
}

.minlong-related-goods .minlong-related-swiper {
  overflow: hidden;
}

/* Product Item - Same style as minlong_goods_list */
.minlong-related-goods .product-item {
  background: #F5F5F5;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 16px 22px 30px;
  height: 100%;
}

.minlong-related-goods .product-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.minlong-related-goods .product-image {
  width: 100%;
  aspect-ratio: 241/232;
  overflow: hidden;
  padding: 0 14px;
}

.minlong-related-goods .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.minlong-related-goods .product-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.minlong-related-goods .product-title {
  font-family: var(--medium-font-family);
  font-size: var(--text-flag-size);
  font-weight: 500;
  line-height: 1.5;
  color: #333333;
  margin: 0 0 10px;
  flex: 1;
  transition: color 0.3s ease;
  display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}

.minlong-related-goods .product-more {
  font-family: var(--medium-font-family);
  font-size: var(--text-title-size);
  font-weight: 500;
  line-height: 1.56;
  color: var(--color-primary);
  display: inline-block;
}

.minlong-related-goods .product-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--color-primary);
  transition: width 0.4s ease;
}

/* Hover Effect - Same as minlong_goods_list */
.minlong-related-goods .product-item:hover {
  background: #FFFFFF;
  box-shadow: 0px 0px 25px 0px rgba(120, 136, 152, 0.2);
}

.minlong-related-goods .product-item:hover .product-image img {
  transform: scale(1.05);
}

.minlong-related-goods .product-item:hover .product-line {
  width: 100%;
}

/* Responsive Styles */
@media screen and (max-width: 1500px) {
  .minlong-related-goods .related-header {
    margin-bottom: var(--component-gap-sm);
  }
}

@media screen and (max-width: 1280px) {
  .minlong-related-goods .product-item {
    padding: 10px 10px 20px;
  }
}

@media screen and (max-width: 992px) {
  .minlong-related-goods .product-item {
    padding: 16px 22px 30px;
  }
}

@media screen and (max-width: 768px) {
  .minlong-related-goods .related-header {
    /* flex-direction: column; */
    align-items: center;
    gap: var(--text-gap);
  }

  .minlong-related-goods .nav-btn {
    width: 35px;
    height: 35px;
  }
}

@media screen and (max-width: 576px) {
  .minlong-related-goods .product-item {
    padding: 20px 15px 25px;
  }

  .minlong-related-goods .nav-btn {
    width: 32px;
    height: 32px;
  }
}