/* ==========================================================================
   Product Page Styles
   ========================================================================== */

/* Title adjustments for centering */
.zs-text-center {
  text-align: center;
}

/* Hero Section */
.zs-product-hero {
  position: relative;
  padding: 48px 0;
  background: #fff;
}

.zs-product-hero-bg {
  display: none;
}

.zs-product-hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay */
}

.zs-product-hero-content {
  border: 1px solid #eef1f5;
  border-radius: 8px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: #0f172a;
  background: #fff;
}

.zs-product-hero-copy {
  flex: 1;
  min-width: 0;
}

.zs-product-hero-image {
  flex: 0 0 40%;
}

.zs-product-hero-image img {
  width: 100%;
  border-radius: 4px;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.zs-product-hero-content h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.zs-product-hero-content ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.zs-product-hero-content li {
  font-size: 16px;
  line-height: 1.7;
  color: #475467;
}

.zs-product-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

/* Category Cards specific adjustments */
.zs-card-category {
  border: 1px solid #eef1f5;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
  overflow: hidden;
}

.zs-card-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.zs-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.zs-card-category .zs-card-media {
  background: #fff;
  padding: 18px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.zs-card-category .zs-card-media img {
  width: 100%;
  max-width: 220px;
  max-height: 180px;
  object-fit: contain;
}

.zs-card-category .zs-card-body {
  text-align: center;
  padding: 8px 16px 10px;
}

.zs-card-category .zs-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0 auto;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.zs-card-category .zs-card-meta {
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.5;
  color: #6b7280;
  min-height: 3em;
}

.zs-card-specs {
  margin-top: 10px;
  min-height: 72px;
}

.zs-card-specs p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #6b7280;
}

.zs-card-actions {
  padding: 0 16px 18px;
  text-align: center;
}

.zs-btn-card {
  min-width: 120px;
  padding: 10px 18px;
  background: #2f80ed;
  border-color: #2f80ed;
  color: #fff;
  font-weight: 600;
}

.zs-btn-card:hover {
  background: #1f6fd8;
  border-color: #1f6fd8;
}

/* Banner Product Middle */
.zs-banner-product {
  background-color: #173a66;
  background-image: url('../img/product-banner2.jpg'); /* You can update to correct background image if needed */
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 60px 0;
  color: #fff;
}

.zs-banner-product .zs-btn {
  background-color: #ffffff;
  color: #173a66;
}

.zs-banner-product .zs-btn:hover {
  background-color: #f3f4f6;
}

.zs-banner-product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 53, 103, 0.85); /* Overlay to make text readable */
}

.zs-banner-product-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.zs-banner-product-text {
  flex: 1;
  max-width: 800px;
}

.zs-banner-product-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.zs-banner-product-text p {
  font-size: 16px;
  line-height: 1.6;
}

.zs-banner-product-action {
  flex-shrink: 0;
}

/* Advantages Section */
.zs-product-advantages {
  background-color: #fff;
}

.zs-product-advantages-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.zs-adv-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.zs-adv-item h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.zs-divider-line {
  width: 100%;
  height: 1px;
  background-color: #0c0d0e;
  margin-bottom: 16px;
}

.zs-adv-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

.zs-adv-image {
  flex: 1;
  max-width: 400px;
}

.zs-adv-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Product Details */
.zs-product-details-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.zs-product-details-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.zs-product-details-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.zs-product-video {
  flex: 1;
  min-width: 300px;
}

.zs-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.zs-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.zs-product-info-top {
  flex: 1;
  min-width: 300px;
}

.zs-product-info-bottom {
  flex: 1;
  min-width: 300px;
}

.zs-product-carousel-wrapper {
  flex: 1;
  min-width: 300px;
}

.zs-icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zs-icon-list-bordered li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.zs-icon-list-bordered li:last-child {
  border-bottom: none;
}

.zs-icon-list-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.zs-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.zs-icon-list svg {
  width: 18px;
  height: 18px;
  fill: #4285f4; /* Blue tick color to match screenshot */
  flex-shrink: 0;
  margin-top: 4px;
}

.zs-icon-list span {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* Inner Carousel in Details */
.zs-product-inner-carousel {
  --zs-carousel-visible: 1;
}

/* Advantage Cards */
.zs-adv-card {
  display: flex !important;
  flex-direction: row !important; /* Force row direction even on mobile */
  align-items: flex-start !important; /* Align to top */
  text-align: left !important; /* Force left align text */
  gap: 20px;
  background: transparent;
  padding: 0;
  margin-bottom: 20px; /* Add margin between rows */
  width: 100%;
}

.zs-adv-card-icon {
  width: 64px;
  height: 64px;
  background-color: #4285f4; /* Update icon background to blue */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zs-adv-card-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.zs-adv-card-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px; /* Adjust spacing */
}

.zs-adv-card-text p {
  font-size: 15px; /* Adjust font size to match screenshot */
  line-height: 1.6;
  color: #4b5563;
}

/* Responsive */
@media (max-width: 992px) {
  .zs-product-hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .zs-product-hero-image {
    flex: 0 0 auto;
    width: 100%;
  }

  .zs-product-advantages-content {
    flex-direction: column;
  }
  
  .zs-adv-image {
    max-width: 100%;
    order: -1; /* Move image to top on mobile */
  }

  .zs-banner-product-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .zs-icon-list-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .zs-product-hero-content h2 {
    font-size: 32px;
  }

  .zs-product-hero-content li {
    font-size: 16px;
  }
  
  .zs-adv-card {
    flex-direction: column !important; /* Stack icon and text vertically on mobile */
    align-items: center !important; /* Center align items */
    text-align: center !important; /* Center align text */
  }
}
