/* ============================= */
/* ROOT VARIABLES */
/* ============================= */
:root {
  --primary: #1b2f52;
  --secondary: #0099cc;
  --bg-light: #f4f6f8;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --radius-lg: 18px;
  --radius-md: 14px;
  --transition: all 0.3s ease;
}

/* ================= WTP FULL HERO ================= */
.wtp-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background: url("/img-content/produkbaner.png") center right / cover no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.wtp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 32, 51, 0.95) 0%,
    rgba(7, 32, 51, 0.75) 45%,
    rgba(7, 32, 51, 0.25) 70%,
    rgba(7, 32, 51, 0) 100%
  );
}

.wtp-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

.wtp-content {
  max-width: 620px;
  color: white;
}

.wtp-content h1 {
  font-size: 27px;
  font-weight: 550;
  line-height: 1.1;
  margin-top: 90px;
  /* margin-bottom: 20px; */
}

.wtp-content p {
  font-size: 18px;
  color: #cceeff;
  line-height: 1.6;
}

/* ========================= */
/* TABLET (≤ 991px)          */
/* ========================= */
@media (max-width: 991px) {
  .wtp-hero {
    min-height: 55vh;
    background-position: center;
  }

  .wtp-container {
    padding: 0 7%;
  }

  .wtp-content {
    max-width: 100%;
  }

  .wtp-content h1 {
    font-size: 32px;
    margin-top: 60px;
  }

  .wtp-content p {
    font-size: 17px;
  }
}

/* ========================= */
/* MOBILE (≤ 767px)          */
/* ========================= */
@media (max-width: 767px) {
  .wtp-hero {
    min-height: 80vh;
    background-position: center;
  }

  .wtp-overlay {
    background: linear-gradient(
      to bottom,
      rgba(7, 32, 51, 0.9),
      rgba(7, 32, 51, 0.8),
      rgba(7, 32, 51, 0.4),
      rgba(7, 32, 51, 0.2)
    );
  }

  .wtp-container {
    padding: 0 20px;
  }

  .wtp-content {
    text-align: center;
    margin-top: 120px;
  }

  .wtp-content h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 0;
  }

  .wtp-content p {
    font-size: 16px;
  }
}

/* ========================= */
/* MOBILE KECIL (≤ 480px)    */
/* ========================= */
@media (max-width: 480px) {
  .wtp-hero {
    min-height: 55vh;
    margin-bottom: 5px;
  }

  .wtp-content h1 {
    font-size: 24px;
  }

  .wtp-content p {
    font-size: 15px;
  }
}
/* end banner section */

/* ============================= */
/* SECTION */
/* ============================= */
.products-section {
  /* background: var(--bg-light); */
  background: url("/bg/bg5.4.png") center / cover no-repeat;
  padding: 30px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.sectionproduk-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.sectionproduk-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ============================= */
/* NAV FILTER */
/* ============================= */
.products-nav {
  display: flex;
  justify-content: left;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
}

.navproduk-btn,
.navproduk-btn {
  padding: 5px 25px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--accent);
  background: transparent;
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 10px;
}

.nav-btn.active,
.nav-btn:hover,
.navproduk-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================= */
/* GRID */
/* ============================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* ============================= */
/* FINAL FIX – FULL IMAGE CARD   */
/* TANPA UBAH HTML               */
/* ============================= */

.product-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 5px;
  /* box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15); */
}

/* IMAGE FULL CARD */
.product-image {
  position: relative;
  width: 100%;
  height: 420px; /* ⬅️ CARD TINGGI = IMAGE */
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* GRADIENT OVERLAY */
.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.35),
    transparent
  );
  z-index: 1;
}

/* ============================= */
/* PRODUCT BADGE – BUTTON STYLE  */
/* ============================= */

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  border-radius: 999px; /* pill */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;

  color: #fff;
  background: var(--accent); /* WARNA SAMA */
  border: none;

  /* box-shadow: 0 6px 18px rgba(0, 153, 204, 0.45); */
  z-index: 5;
}

/* OPTIONAL: beda kategori (kalau mau) */
.product-card[data-category="chemical"] .product-badge {
  background: #30b0c5;
}

.product-card[data-category="equipment"] .product-badge {
  background: #30b0c5; /* masih satu tone biru */
}

/* ============================= */
/* TARIK CONTENT KE DALAM IMAGE  */
/* ============================= */

.product-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 26px;
  z-index: 2;

  background: none;
  color: #fff;
}

/* TEXT */
.product-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SPECS */
.product-specs {
  margin-bottom: 10px;
}

.spec {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* LINK */
.product-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.product-link:hover {
  text-decoration: underline;
  color: var(--accent);
  text-decoration: none;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
  .product-image {
    height: 360px;
  }
}

@media (max-width: 576px) {
  .product-image {
    height: 320px;
  }
}

/* ============================= */
/* CTA */
/* ============================= */
.products-cta {
  text-align: center;
  margin-top: 70px;
}

.ctaproduk-text {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.cta-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sectionproduk-title {
    font-size: 30px;
  }
}

@media (max-width: 576px) {
  .products-section {
    padding: 60px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .sectionproduk-title {
    font-size: 26px;
  }

  .sectionproduk-subtitle {
    font-size: 15px;
  }
}

/* ================================================= */
/*           PRODUCT DETAIL PAGE STYLES             */
/* ================================================= */

/* ===== HERO BANNER UNTUK PRODUCT DETAIL ===== */
.product-detail-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 650px;
  width: 100%;
  display: flex;
  align-items: center;

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* OVERLAY */
.product-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27, 47, 82, 0.95) 0%,
    rgba(27, 47, 82, 0.8) 45%,
    rgba(27, 47, 82, 0.4) 70%,
    rgba(27, 47, 82, 0.1) 100%
  );
  z-index: 1;
}

/* CONTENT */
.product-detail-hero .container {
  position: relative;
  z-index: 2;
}

.hero-product-content {
  max-width: 620px;
  color: #fff;
}

.hero-product-title {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-product-tagline {
  font-size: 1.05rem;
  color: #cce7ff;
  line-height: 1.6;
}

.hero-product-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 80px;
  text-transform: uppercase;
}

.hero-product-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stat i {
  font-size: 1.5rem;
  color: var(--accent);
}

.hero-stat span {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 20px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
}

.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: "›";
  margin: 0 10px;
  color: var(--text-light);
}

/* ===== PRODUCT DETAIL LAYOUT ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 80px;
}

/* ===== LEFT COLUMN - PRODUCT IMAGE GALLERY ===== */
.product-image-gallery {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.main-product-image {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: var(--light-gray); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.main-product-image img {
  width: 120%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.main-product-image:hover img {
  transform: scale(1.05);
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.thumbnail-item {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.thumbnail-item.active {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(48, 176, 197, 0.3);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnail-item:hover {
  transform: translateY(-3px);
}

/* ===== RIGHT COLUMN - PRODUCT CONTENT ===== */
.product-detail-content {
  padding-right: 20px;
}

.product-detail-title {
  display: none; /* Sembunyikan karena sudah ada di hero */
}

.product-category-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.product-category-badge1 {
  display: inline-block;
  /* background: var(--accent); */
  color: rgb(0, 0, 0);
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ===== PRODUCT DESCRIPTION ===== */
.product-detail-description {
  /* border-top: 1px solid var(--border-color); */
  padding-top: 30px;
  margin-bottom: 40px;
  line-height: 1.8;
  color: var(--dark);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-detail-description h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin: 30px 0 15px;
  position: relative;
  padding-bottom: 10px;
}

.product-detail-description h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.product-detail-description p {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* Opsional: memberikan sedikit ruang di samping */
  box-sizing: border-box;
}

.product-detail-description ul {
  margin: 15px 0 15px 20px;
}

.product-detail-description li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 10px;
  font-size: 1.05rem;
}

.product-detail-description li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: -10px;
}

.product-detail-description li strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== PRODUCT SPECIFICATIONS ===== */
.product-specifications {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--light-gray);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-specifications h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.product-specifications h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th {
  text-align: left;
  padding: 15px 10px 15px 0;
  width: 35%;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  vertical-align: top;
}

.spec-table td {
  padding: 15px 0;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== PRODUCT APPLICATIONS ===== */
.product-applications {
  margin-bottom: 40px;
}

.product-applications h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.product-applications h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

.product-applications ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  list-style: none;
  padding: 0;
}

/*.product-applications li {*/
/*  padding: 12px 15px;*/
/*  background: var(--light-gray);*/
/*  border-radius: 10px;*/
/*  color: var(--text-dark);*/
/*  font-size: 1rem;*/
/*  position: relative;*/
/*  padding-left: 35px;*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.product-applications li::before {*/
/*  content: "✓";*/
/*  position: absolute;*/
/*  left: 15px;*/
/*  top: 50%;*/
/*  transform: translateY(-50%);*/
/*  color: var(--accent);*/
/*  font-weight: bold;*/
/*}*/

.product-applications li {
  display: flex;
  align-items: flex-start; /* selalu baris pertama */
  gap: 10px;
  padding-left: 15px;
}

.product-applications li::before {
  content: "✓";
  position: static; /* lepas absolute */
  color: var(--accent);
  font-weight: bold;
  margin-top: 2px;
}

/* .product-applications li:hover::before {
  color: white;
} */

/* ===== PRODUCT ACTIONS ===== */
.product-actions {
  display: flex;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 35px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  flex: 1;
  text-align: center;
}

.inquiry-btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(48, 176, 197, 0.3);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 35px;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  flex: 1;
  text-align: center;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ===== RELATED PRODUCTS SECTION ===== */
.related-products {
  padding: 60px 0;
  background: var(--light-gray);
  margin-top: 60px;
}

.related-products h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.related-products h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.related-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.related-product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-product-content {
  padding: 20px;
}

.related-product-content h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.related-product-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.related-product-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .product-detail-hero {
    height: auto;
    min-height: 350px;
    padding: 60px 0;
  }

  .product-detail-hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-product-image {
    width: 250px;
    height: 250px;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .hero-product-title {
    font-size: 2rem;
  }

  .hero-product-tagline {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-product-stats {
    justify-content: center;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-image-gallery {
    position: static;
  }

  .main-product-image {
    height: 350px;
  }

  .product-applications ul {
    grid-template-columns: 1fr;
  }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
  .product-detail-hero {
    padding: 40px 0;
    min-height: 300px;
  }

  .hero-product-image {
    width: 200px;
    height: 200px;
  }

  .hero-product-title {
    font-size: 2rem;
  }

  .hero-product-tagline {
    font-size: 1rem;
  }

  .hero-product-stats {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-stat {
    justify-content: center;
  }

  .breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 0.85rem;
  }

  .main-product-image {
    height: 300px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-specifications {
    padding: 20px;
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 0;
    font-size: 0.95rem;
  }

  .product-actions {
    flex-direction: column;
    gap: 15px;
  }

  .inquiry-btn,
  .back-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .related-products h2 {
    font-size: 1.8rem;
  }
}

/* Small Mobile (≤ 575px) */
@media (max-width: 575px) {
  .product-detail-hero {
    padding: 30px 0;
    min-height: 250px;
  }

  .hero-product-image {
    width: 150px;
    height: 150px;
    padding: 15px;
  }

  .hero-product-title {
    font-size: 1.6rem;
  }

  .hero-product-tagline {
    font-size: 0.9rem;
  }

  .hero-product-category {
    padding: 6px 15px;
    font-size: 0.8rem;
  }

  .main-product-image {
    height: 250px;
    padding: 20px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumbnail-item {
    height: 80px;
  }

  .product-detail-description h2 {
    font-size: 1.5rem;
  }

  .product-detail-description p,
  .product-detail-description li {
    font-size: 0.95rem;
  }

  .product-specifications h3,
  .product-applications h3 {
    font-size: 1.3rem;
  }

  .spec-table th {
    width: 40%;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-detail-hero,
.product-detail-content {
  animation: fadeInUp 0.8s ease-out;
}
