/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.category-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.category:last-child {
  border-bottom: none;
}

.category-name {
  font-size: 18px;
  font-weight: bold;
}

.show-products-btn {
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.show-products-btn:hover {
  background-color: #0056b3;
}

.products {
  display: none; /* Menyembunyikan produk di awal */
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #f1f1f1;
  border-radius: 8px;
}

.product-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
  grid-template-columns: repeat(2, 1fr); /* Mobile: 2 kolom */
}

.product-item {
  text-align: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.product-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.product-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

.product-name a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
}

.product-name a:hover {
  color: #0056b3;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr); /* Tablet: 3 kolom */
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr); /* Desktop: 4 kolom */
  }
}

/* Tambahan Style Navigasi Pagination */
.product-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.pag-btn {
  padding: 6px 14px;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.pag-btn:hover:not(:disabled) {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pag-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #eaeded;
}

.page-info {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}