html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

.ts-hero-home {
  position: relative;
  height: 1100px;
  margin-top: 0;
  z-index: 1;
}

.swiper, .swiper-wrapper, .swiper-slide {
  height: 1100px !important;
}

.ts-bg-image {
  width: 100%;
  height: 1100px;
  object-fit: cover;
  display: block;
}

.product-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  top: -100px;
}

.product-row {
  display: flex;
  gap: 20px;
}

.product-card-link {
  display: block;
  width: 381px;
  height: 490px;
  position: relative;
  text-decoration: none;
  color: black;
  transition: transform 0.3s ease;
}

.product-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0.2px solid white;
  border-radius: 0.2px;
}

.product-info {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.product-name {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
  color: black;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.product-name:hover {
  color: #db261b;
}

.view-details-btn {
  font-size: 16px;
  color: white;
  background-color: #db261b;
  padding: 10px 80px;
  border-radius: 10px;
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
}

.arrow-btn {
  font-size: 30px;
  color: #db261b;
  cursor: pointer;
  user-select: none;
  padding: 5px 15px;
}

.company-profile-text {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.company-profile-text.visible {
  opacity: 1;
}

.ts-company-profile-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 100px));
  max-width: 1400px;
  text-align: center;
  z-index: 10;
  color: black;
}

.ts-profile-heading {
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}

.ts-profile-divider {
  width: 60px;
  height: 3px;
  background-color: #db261b;
  margin: 10px auto 30px auto;
}

.ts-profile-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1em;
  text-align: left;
}

.company-profile-text {
  transition: opacity 0.5s ease;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  font-family: 'Microsoft YaHei', sans-serif;
}

/* Responsive Styles */

/* Large Desktop (1440px and below) */
@media (max-width: 1440px) {
  .ts-company-profile-overlay {
    max-width: 1200px;
    padding: 0 20px;
  }
  
  .product-container {
    justify-content: center;
  }
  
  .product-name {
    font-size: 16px;
  }
  .product-card-link {
    width: 310px;
    height: 410px;
  }
  
  .product-info {
    bottom: 30px;
  }
}

/* Desktop (1200px and below) */
@media (max-width: 1200px) {
  .ts-hero-home,
  .swiper,
  .swiper-wrapper,
  .swiper-slide,
  .ts-bg-image {
    height: 950px !important;
  }
  
  .ts-company-profile-overlay {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .product-container {
    gap: 15px;
    justify-content: center;
  }
  
  .product-row {
    gap: 15px;
  }
  
  .product-card-link {
    width: 210px;
    height: 320px;
  }
  
  .product-info {
    bottom: 35px;
  }
  
  .product-name {
    font-size: 10px;
  }
  
  .view-details-btn {
    font-size: 14px;
    padding: 8px 50px;
  }
  
  .arrow-btn {
    font-size: 28px;
  }
}

/* Tablet (992px and below) */
@media (max-width: 992px) {
  .ts-hero-home,
  .swiper,
  .swiper-wrapper,
  .swiper-slide,
  .ts-bg-image {
    height: 900px !important;
  }
  
  .product-container {
    gap: 15px;
    top: -80px;
  }
  
  .product-row {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-shrink: 0;
  }
  
  .product-row::-webkit-scrollbar {
    display: none;
  }
  
  .product-card-link {
    width: 240px;
    height: 340px;
    flex-shrink: 0;
  }
  
  .arrow-btn {
    font-size: 28px;
    padding: 5px 10px;
  }
  
  .ts-profile-heading {
    font-size: 24px;
  }
  
  .ts-profile-text {
    font-size: 15px;
  }
}

/* Mobile Landscape & Large Mobile (768px and below) */
@media (max-width: 768px) {
  .ts-hero-home,
  .swiper,
  .swiper-wrapper,
  .swiper-slide,
  .ts-bg-image {
    height: 950px !important;
  }
  
  .ts-company-profile-overlay {
    transform: translate(-50%, calc(-50% + 60px));
    padding: 0 10px;
    width: 100%;
  }
  
  .product-container {
    gap: 10px;
    top: -60px;
    justify-content: center;
    width: 100%;
  }
  
  .product-row {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 380px;
    scroll-snap-type: x mandatory;
    display: flex;
  }
  
  .product-row::-webkit-scrollbar {
    display: none;
  }
  
  .product-card-link {
    width: 380px;
    height: 420px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  
  .product-info {
    bottom: 20px;
  }
  
  .product-name {
    font-size: 16px;
    white-space: normal !important;
    max-width: 260px;
    line-height: 1.3;
  }
  
  .view-details-btn {
    font-size: 13px;
    padding: 8px 40px;
  }
  
  .arrow-btn {
    font-size: 32px;
    padding: 0;
   color: #db261b;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .arrow-btn:active {
    transform: scale(0.95);
  }
  
  .ts-profile-heading {
    font-size: 22px;
  }
  
  .ts-profile-text {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
  .ts-hero-home,
  .swiper,
  .swiper-wrapper,
  .swiper-slide,
  .ts-bg-image {
    height: 900px !important;
  }
  
  .ts-company-profile-overlay {
    transform: translate(-50%, calc(-50% + 40px));
  }
  
  .product-container {
    gap: 8px;
    top: -40px;
  }
  
  .product-row {
    width: 240px;
  }
  
  .product-card-link {
    width: 240px;
    height: 320px;
  }
  
  .product-info {
    bottom: 15px;
  }
  
  .product-name {
    font-size: 14px;
    max-width: 220px;
  }
  
  .view-details-btn {
    font-size: 12px;
    padding: 6px 30px;
  }
  
  .arrow-btn {
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
  
  .ts-profile-heading {
    font-size: 20px;
  }
  
  .ts-profile-divider {
    width: 50px;
    height: 2px;
  }
  
  .ts-profile-text {
    font-size: 13px;
  }
}

/* Extra Small Mobile (400px and below) */
@media (max-width: 400px) {
  .ts-hero-home,
  .swiper,
  .swiper-wrapper,
  .swiper-slide,
  .ts-bg-image {
    height: 950px !important;
  }
  
  .product-row {
    width: 200px;
  }
  
  .product-card-link {
    width: 200px;
    height: 280px;
  }
  
  .product-name {
    font-size: 13px;
    max-width: 180px;
  }
  
  .view-details-btn {
    font-size: 11px;
    padding: 5px 25px;
  }
  
  .arrow-btn {
    font-size: 24px;
    width: 36px;
    height: 36px;
  }
  
  .ts-profile-heading {
    font-size: 18px;
  }
  
  .ts-profile-text {
    font-size: 12px;
  }
}
