/* ==========================================
   RESET & DASAR
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden; /* Biar HP gak bisa digeser kanan-kiri */
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  width: 100%;
}

/* ==========================================
   SITE HEADER (EFEK METALIK)
   ========================================== */
.site-header {
  width: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 2px
    ),
    linear-gradient(180deg, #e6e6e6 0%, #cccccc 50%, #b3b3b3 100%);
  border-bottom: 2px solid #a6a6a6;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  flex-wrap: wrap;
}

.logo img {
  max-height: 100px;
  width: auto;
  display: block;
}

.header-contact {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  font-size: 20px;
  color: #2980b9;
}

.contact-text p {
  margin: 0;
  line-height: 1.25;
}

.phone-number,
.address-main {
  font-weight: bold;
  font-size: 14px;
  color: #2c3e50;
}

.email,
.address-sub {
  font-size: 12px;
  color: #555555;
}

.contact-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.8;
}

/* NAVIGASI KOTAK PUTIH */
.main-nav {
  max-width: 900px;
  margin: 0 auto 15px auto;
  background-color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.main-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background-color: #ddd;
}

.main-nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #2980b9;
}

/* ==========================================
   SEARCH & FILTER SECTION
   ========================================== */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: #2980b9;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid #2980b9;
  background-color: #fff;
  color: #2980b9;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #2980b9;
  color: #fff;
}

/* ==========================================
   PRODUCT GRID & CARDS
   ========================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px 0 40px;
}

.product-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #e1e8ed;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #f5f7fa;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(44, 62, 80, 0.85);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-info p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-detail {
  width: 100%;
  padding: 10px;
  background-color: #34495e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-detail:hover {
  background-color: #2c3e50;
}

/* ==========================================
   MODAL POPUP DETAIL PRODUK
   ========================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 15px;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #777;
  cursor: pointer;
  z-index: 10;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-body img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  background-color: #f9f9f9;
}

@media (min-width: 600px) {
  .modal-body {
    flex-direction: row;
  }
  .modal-body img {
    width: 50%;
    max-height: none;
    object-fit: cover;
  }
  .modal-info {
    width: 50%;
  }
}

.modal-info {
  padding: 20px;
}

.modal-info h2 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

.modal-category {
  font-size: 0.8rem;
  color: #3498db;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.wa-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background-color: #25d366;
  color: white;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================
   SEKSI KONTAK & GOOGLE MAPS
   ========================================== */
.contact-section {
  padding: 50px 0;
  background-color: #eef2f5;
  width: 100%;
}

.contact-header {
  text-align: center;
  margin-bottom: 30px;
}

.contact-header h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-wrapper {
  display: flex;
  width: 100%;
  background: #2c3e50;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-container {
  flex: 1;
  min-height: 400px;
  width: 50%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

.form-container {
  flex: 1;
  width: 50%;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #95a5a6;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 15px 12px 42px;
  background: #1a252f;
  border: 1px solid #34495e;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.btn-send-wa {
  width: 100%;
  padding: 14px;
  background-color: #b8860b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-info,
.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer-info h3,
.footer-contact h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-contact a {
  color: #ecf0f1;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: #3498db;
  font-size: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  background-color: #1a252f;
  text-align: center;
  padding: 15px;
  font-size: 13px;
  color: #bdc3c7;
}

/* ==========================================
   PERBAIKAN TOTAL UNTUK TAMPILAN HP (< 768px)
   ========================================== */
@media screen and (max-width: 768px) {
  /* Header & Logo */
  .header-top {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px 10px;
  }

  .header-contact {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .contact-item {
    justify-content: center;
  }

  /* Navigasi di HP */
  .main-nav {
    margin: 10px;
    padding: 10px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav li:not(:last-child)::after {
    display: none; /* Hapus garis pemisah di HP */
  }

  .main-nav a {
    font-size: 12px;
  }

  /* Filter Produk */
  .filter-buttons {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Katalog Produk 1 Kolom Rapi */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Seksi Kontak & Google Maps bertumpuk Atas-Bawah 50:50 */
  .contact-wrapper {
    flex-direction: column;
  }

  .map-container {
    width: 100%;
    min-height: 280px;
  }

  .map-container iframe {
    min-height: 280px;
  }

  .form-container {
    width: 100%;
    padding: 25px 20px;
  }

  /* Modal Popup Pas di Layar HP */
  .modal-content {
    width: 95%;
    margin: 0 auto;
  }
}
