/* ubertex/public/assets/css/product_section.css */

/* Section wrapper */
.product-section {
  width: 100%;
  background-color: #fff;
  padding: 4rem 0;
}

/* Inner container – dihapus max-width agar card melebar */
.product-inner {
  width: 100%;
  /* max-width: 1200px;  dihapus */
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;       /* padding samping diperkecil agar card lebih lebar */
}

/* Logo & title */
.section-logo {
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--dark);
}

/* Grid produk – card kini lebih besar karena container full-width */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;  /* gap dikurangi agar card semakin besar */
}

/* Card wrapper – tanpa efek hover/transisi */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: none !important;
}
.product-card:hover {
  transform: none !important;
}

/* Gambar kotak */
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: none !important;
  transform: none !important;
}

/* Overlay teks & link di atas gambar */
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  box-sizing: border-box;
}

/* Nama dan info – teks putih dengan shadow */
.product-text {
  text-align: left;
}
.product-name {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-size: 1.125rem;
  color: #fff !important;          
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.product-by {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Link See Details – underline kiri→kanan + nowrap */
.product-link {
  position: relative;
  font-family: 'Rubik', sans-serif;
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px;
  white-space: nowrap;          
  transition: none !important;
}
.product-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: #fff;
  transition: width 0.3s ease;
}
.product-link:hover::after {
  width: 100%;
}

/* Mobile: satu kolom + logo mobile size + title nowrap */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .section-logo {
    width: 60px !important;
    margin-bottom: 1rem;
  }
  .section-title {
    white-space: nowrap;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }
  .product-link {
    white-space: nowrap;
  }
}

/* ubertex/public/assets/css/product_section.css */

/* Show More wrapper */
.product-more {
  text-align: center;
  margin-top: 2rem;
}

/* Show More button: outline black by default, filled on hover, wider */
.show-more-btn {
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  padding: 0.6em 3em;            /* lebih panjang */
  color: #000;                   /* teks hitam */
  background: transparent;
  border: 2px solid #000;        /* outline hitam */
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.show-more-btn:hover {
  background: #000;              /* isi hitam saat hover */
  color: #fff;                   /* teks putih saat hover */
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
  .product-more {
    margin-top: 1.5rem;
  }
  .show-more-btn {
    font-size: 0.9rem;
    padding: 0.5em 2.5em;          /* sesuaikan panjang untuk layar kecil */
  }
}
