/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 1px 30px;
  color: #404040;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
}

.logo img{
  height: 100px;
  width: 100px;
  position: relative;
  display: inline-block;
}

.nav-links {
  display: flex;
  list-style: none !important;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none !important;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: gray;
  font-size: 17px;
  transition: 0.3s;
  position: relative;
}

.nav-links li a.navbaractive {
  color: blue;
}

.nav-links a:hover{
  color: blue;
  transition: 0.3s;
}

/* =========================
   DROPDOWN LANGUAGE
========================= */
.dropdown {
  position: relative;
  flex: 0 0 auto;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid blue;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn img {
  border: 1px solid blue;
  width: 40px;
  height: auto;
}

.lang-btn span {
  color: blue;
  font-weight: bold;
  font-size: 14px;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
  z-index: 9999;
  display: none;
}

.dropdown.open .dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-content li {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.dropdown-content li a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: 0.2s;
}

.dropdown-content li a img {
  width: 40px;
  height: auto;
  border: 1px solid black;
}

.dropdown-content li a:hover {
  background-color: #D0DCFD;
  color: blue;
  border-color: blue;
}

.dropdown:hover .lang-btn {
  background-color: #e4e6eb;
}

/* =========================
   SEARCHBOX
========================= */
.searchbox {
  display: flex;
  align-items: center;
  border: 1px solid black;
  border-radius: 20px;
  overflow: hidden;
  padding: 5px;
}

.searchbox button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 16px;
}

.searchbox input {
  border: none;
  outline: none;
  padding: 10px 12px;
  width: 200px;
  height: 30px;
  font-size: 13px;
}

/* =========================
   HERO
========================= */
.hero--produk{
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.25)),
    url("/images/industria.jpg");
  background-size: cover;
  background-position: center;
}

.hero--produk::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 70% 40%, rgba(0,90,255,.12), transparent 60%);
  pointer-events:none;
}

.hero__inner{
  position: relative;
  width: min(1200px, 100% - 36px);
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
}

.hero__badge{
  display: inline-block;
  background: #001C70;
  color: #e5e7eb;
  padding: 8px 14px;
  border-radius: 5px;
  border: 1px solid #2440BF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.hero__title{
  color: #ffffff;
  font-weight: 900;
  line-height: 1.05;
  font-size: 46px;
  margin: 0 0 12px;
  text-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.hero__highlight{
  color: #facc15;
}

.hero__desc{
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  line-height: 1.7;
  max-width: 52ch;
}

/* gambar produk kanan */
.hero__products{
  position: relative;
  height: 260px;
}

.hero__products .p{
  position: absolute;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.35));
  transform: translateZ(0);
}

.hero__products .p1{ right: 160px; top: 10px;   rotate: -6deg; }
.hero__products .p2{ right: -55px;  top: -45px;  rotate: 6deg;  }
.hero__products .p3{ right: 168px; top: 75px; rotate: 2deg;  }
.hero__products .p4{ right: -40px;  top: 100px; rotate: -4deg; }

@media (max-width: 980px){
  .hero__inner{
    grid-template-columns: 1fr;
    padding: 28px 0;
  }
  .hero__products{ height: 230px; }
  .hero__title{ font-size: 38px; }
}

@media (max-width: 520px){
  .hero__title{ font-size: 30px; }
  .hero__products .p{ width: 140px; }
}

/* =========================
   PAGE LAYOUT
========================= */
.our-product{
  text-align: center;
  margin-top: 20px;
}

.page-layout{
  max-width: 1200px;
  margin: 22px auto 60px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

/* =========================
   CATEGORY SIDEBAR (cat-card)
========================= */
.cat-card{
  background:#fff;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(2,6,23,.12);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 14px;
}

.cat-head{
  padding: 16px 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #4f6bff, #3b5bff);
  font-size: 16px;
}

.cat-scroll{
  max-height: 420px;
  overflow: auto;
  padding: 10px 10px 12px;
}

/* IMPORTANT: biar gak "kotak-kotak" karena text ke-select */
#catMenu, #catMenu * {
  user-select: none;
}

/* Button kategori */
.cat-item{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  font-weight: 800;
  color:#0f172a;
}

.cat-item:hover{ background: #eef2ff; }

.cat-item.active{
  background: #eef2ff;
  color:#1d4ed8;
  box-shadow: inset 3px 0 0 #1d4ed8;
}

/* Subcategory list (dari JS: .subcat-list + .subcat-item) */
.subcat-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
  padding-left: 18px;
  border-left: 3px solid #dbeafe;
}

.subcat-item{
  width: 100%;
  border: none;
  background: transparent;
  cursor:pointer;
  text-align:left;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  color:#334155;
  font-size: 13px;
}

.subcat-item:hover{ background:#f8fafc; }

.subcat-item.active{
  background:#eef2ff;
  color:#1d4ed8;
  box-shadow: inset 3px 0 0 #1d4ed8;
}

/* =========================
   PRODUCTS GRID
========================= */
.products{
  height: 550px;
  overflow-y: scroll;
  padding: 10px;
}

.product-grid-wrap{
  border-left: 2px solid rgba(0,0,0,0.10);
  padding-left: 22px;
  display: flex;
  justify-content: flex-end;
}

.product-grid{
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: end;
  gap: 11px;
}

@media (max-width: 1100px){
  .product-grid{
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .page-layout{ grid-template-columns: 1fr; }

  .product-grid-wrap{
    border-left: none;
    padding-left: 0;
    justify-content: flex-start;
  }

  .product-grid{
    grid-template-columns: 1fr;
  }
}

/* Card produk (dibungkus <a>) */
.product-card{
  display: block;
  background:#fff;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  overflow: hidden;
  width: auto;
  height: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: .18s ease;
}

.product-card:hover{
  transform: translateY(-3px);
  border-color: blue;
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

.product-thumb{
  height: 160px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}

.product-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body{
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
}

.product-title{
  color: #001C70;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.product-meta{
  font-weight: 800;
  color:#111827;
  font-size: 14px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background-color: #020B40;
  color: white;
  padding: 48px 0 20px;
}

.footer-wrap {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  gap: 36px;
  grid-template-columns: 1.4fr 1.2fr 0.7fr 1fr;
  align-items: start;
  display: grid;
}

.footer-title {
  font-size: 22px;
  margin: 0 0 14px;
  font-weight: 800;
  color: white;
}

.footer-text {
  margin: 0;
  color: white;
  font-size: 14px;
}

.footer-text.small {
  font-size: 13px;
  color: white;
  font-weight: 500;
}

.footer-col {
  display: grid;
}

.footer-col .footer-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.footer-list li a{
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.footer-list a:hover {
  color: blue;
  transition: 0.10s ease-in-out;
}

.newsletter-box {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 15px rgba(0,0,0,0.25);
}

.newsletter-form input {
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  margin: 20px 0;
}

.newsletter-form button {
  border: 1px solid #4361EE;
  background: #4361EE;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.newsletter-form button:hover {
  filter: brightness(1.08);
}

.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.facebook, .youtube, .tiktok, .linkedin{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}

.instagram {
  height: 40px;
  width: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  transition: 0.3s ease-in-out;
  background: radial-gradient(#feda75, #fa7e1e, #962fbf, #4f5bd5);
}

.facebook:hover,
.youtube:hover,
.instagram:hover,
.tiktok:hover,
.linkedin:hover {
  transform: translateY(-5px);
  transition: 0.3s ease-in-out;
}

.footer-bottom {
  width: 90%;
  max-width: 1300px;
  margin: 22px auto 0;
  text-align: center;
}

.footer-divider {
  background: white;
  height: 1px;
  width: 1250px;
  display: grid;
  margin-bottom: 20px;
  opacity: 70%;
}

.footer-list li a.active {
  color: blue;
}

/* =========================
   IMPORTANT: HAPUS UNDERLINE LINK (produk + kategori)
   (ini cuma hapus underline, ga ubah warna)
========================= */
#productGrid a,
#productGrid a:hover,
#productGrid a:visited,
#productGrid a:active{
  text-decoration: none !important;
}

#catMenu a,
#catMenu a:hover,
#catMenu a:visited,
#catMenu a:active{
  text-decoration: none !important;
}

.cat-sub {
  margin-left: 10px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.sub-item:hover {
  background: #f5f7ff;
}

.sub-item.active {
  background: #e8efff;
  border-color: #4f6bff;
  color: #1f3fff;
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 3px;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 768px) {

  /* tampilkan hamburger */
  .hamburger {
    display: flex;
  }

  /* sembunyikan menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: white;
    flex-direction: column;
    gap: 18px;
    padding: 20px;

    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 999;
  }

  /* saat hamburger diklik */
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* biar navbar bisa turun */
  .navbar {
    position: relative;
    flex-wrap: wrap;
  }
}

html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* MOBILE */
@media (max-width: 768px){

  /* NAVBAR */
  .navbar{
    padding: 8px 14px;
    flex-wrap: wrap;
    position: relative;
  }

  /* checkbox kotak jangan kelihatan */
  .nav-toggle{
    display: none !important;
  }

  /* hamburger pasti muncul */
  .hamburger{
    display: flex !important;
    margin-left: auto;
    z-index: 2000;
  }

  /* dropdown menu */
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #fff;
    flex-direction: column;
    gap: 18px;
    padding: 18px;

    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1999;
  }

  .nav-toggle:checked ~ .nav-links{
    display: flex;
  }

  /* logo kecilin dikit */
  .logo img{
    width: 80px;
    height: 80px;
  }

  /* searchbox biar muat */
  .searchbox input{
    width: 140px;
  }

  /* HERO jadi lebih pendek di HP */
  .hero--produk{
    min-height: 260px;
  }
  .hero__inner{
    grid-template-columns: 1fr;
    padding: 22px 0;
    gap: 14px;
  }
  .hero__title{
    font-size: 30px;
  }
  .hero__products{
    height: 200px;
  }

  /* produk gambar kanan jangan ngaco di HP */
  .hero__products .p{
    width: 140px;
  }
  .hero__products .p1{ right: 120px; top: 10px; }
  .hero__products .p2{ right: -20px; top: -10px; }
  .hero__products .p3{ right: 120px; top: 80px; }
  .hero__products .p4{ right: -10px; top: 110px; }

  /* LAYOUT: sidebar + product grid jadi 1 kolom */
  .page-layout{
    grid-template-columns: 1fr;
    margin: 18px auto 42px;
    gap: 16px;
  }

  /* sidebar sticky dimatiin biar enak scroll */
  .cat-card{
    position: relative;
    top: auto;
  }
  .cat-scroll{
    max-height: 260px;
  }

  /* scroll area produk jangan dipaksa tinggi 550px di HP */
  .products{
    height: auto;
    overflow-y: visible;
    padding: 0;
  }

  /* grid produk 1 kolom */
  .product-grid-wrap{
    border-left: none;
    padding-left: 0;
    justify-content: flex-start;
  }
  .product-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* FOOTER: 1 kolom + divider jangan fixed 1250px */
  .footer-wrap{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-divider{
    width: 100%;
  }

  /* ===== Newsletter spacing (ini jawaban problem kamu tadi) ===== */
  .newsletter-box{
    display: flex;
    flex-direction: column;
    gap: 12px; /* jarak antar elemen dalam box */
  }

  /* input jangan punya margin 20px (itu bikin nempel & aneh) */
  .newsletter-form input{
    width: 100%;
    margin: 0 !important;
  }

  .newsletter-form button{
    width: auto;
  }
}

/* HP kecil */
@media (max-width: 420px){
  .searchbox input{ width: 120px; }
  .hero__title{ font-size: 26px; }
}

@media (max-width: 768px){
  /* searchbox di dalam nav-links jadi full */
  .nav-links .searchbox{
    width: 100%;
    border-radius: 14px;
    padding: 6px 10px;
  }

  .nav-links .searchbox input{
    width: 100%;
    height: 34px;
  }

  .nav-links .searchbox button{
    padding: 6px 10px;
  }
  .newsletter-box{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .newsletter-form{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .newsletter-form input{
    width:100%;
    margin:0 !important;
  }

  .newsletter-form button{
    width:110px;
  }
}