/* Banner */

.archive-banner {
  width: 100%;

  height: 500px;

  display: flex;

  align-items: center;

  margin-top: 50px;

  padding: 0 30px;
}

.archive-banner-title {
  color: #fff;

  font-size: 36px;

  font-weight: bold;

  text-transform: uppercase;

  margin: 0;
}
/* ===== Tab menu danh mục sản phẩm ===== */
.menuSub {
  display: flex;
  justify-content: center;
}

.product-sub-tabs {
  display: flex;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  gap: 15px;
  background-color: #fff;
  box-shadow: 0 0 3rem 0 rgba(0, 0, 0, 0.1);
  border-radius: 25px;
}

.product-sub-tabs .tab-item {
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: #333;
}

.product-sub-tabs .tab-item:hover {
  color: #1774c4;
}

/* Active tab */
.product-sub-tabs .tab-item.active {
  background: #1774c4;
  color: #fff;
  font-weight: bold;
}

/* Tab Dự án */
.product-sub-tabs .duan-link {
  color: #333;
}

.product-sub-tabs .duan-link:hover {
  color: #1774c4;
}

/* Khi đang ở archive-duan.php → làm Dự án active */
body.post-type-archive-duan .product-sub-tabs .duan-link {
  background: #1774c4;
  color: #fff;
  font-weight: bold;
  border-radius: 25px;
}

/* Grid sản phẩm */

.product-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;

  padding: 30px;
  padding-top: 0;
}

.product-item {
  text-align: center;

  padding: 10px;

  border-radius: 10px;

  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 100% !important;
  overflow: hidden !important;
  object-fit: scale-down !important;
  border-radius: 8px;
}

.product-title {
  margin-top: 12px;

  font-size: 16px;

  font-weight: 600;

  color: #222;

  line-height: 1.4;
}

.product-title a {
  color: inherit;

  text-decoration: none;
}

.product-title a:hover {
  color: #007bff;
}

/* Single Product */

.product-featured-image {
  width: 100%;

  max-height: 400px;

  object-fit: cover;

  border-radius: 8px;

  margin-bottom: 20px;
}

.product-gallery {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 20px;
}

.product-gallery img {
  width: 150px;

  height: 150px;

  object-fit: cover;

  border-radius: 5px;

  cursor: pointer;

  transition: transform 0.2s;
}

.product-gallery img:hover {
  transform: scale(1.05);
}

.pagination-wrap {
  margin: 30px 0;
  text-align: center;
  padding-top: 30px;
}

.pagination-wrap .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-wrap .page-numbers:hover {
  background: #333;
  color: #000;
  border-color: #333;
}

.pagination-wrap .page-numbers.current {
  background: #333;
  color: #fff;
  border-color: #333;
  font-weight: bold;
}

/* Responsive */

@media screen and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .archive-banner {
    width: auto;
  }
}

@media screen and (max-width: 768px) {
  .full-row-bannerpr.full-content {
    min-height: 220px !important;
  }

  .archive-banner {
    height: 220px !important;
  }
  .archive-banner-title {
    font-size: 22px;
    text-align: center;
  }
  
  .product-grid {
    padding: 0;
  }
}

@media screen and (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
