/* Tabs Style */
.product-category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px; /* Khoảng cách các tab xa hơn 1 chút */
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tab-button .tab-icon {
    background: transparent; /* Không nền */
 display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
    margin: 0 auto 8px;
    width: 64px;
    height: 64px;
    border: 1px solid #000;
    background-color: var(--fff);
    border-radius: 15px;
    transition: .5s all;
}

.tab-button img {
  width: 30px;
  height: 30px;
}

.tab-button p {
  font-weight: bold;
  color: #00264d; /* Màu text xanh đậm */
  font-size: 14px;
  margin: 0;
  text-align: center;
}

/* Khi Active */
.tab-button.active {
  background: transparent;
  border: none; /* Không có viền khi active */
}

.tab-button.active .tab-icon {
  background: #d09e3f;
}

/* Hover */
.tab-button:hover:not(.active) {
  border-color: #cc9b39;
}

.tab-button:hover:not(.active) .tab-icon {
  background-color: #d09e3f;
}

/* Loading Spinner */
.loading-icon {
  display: none;
  margin: 10px auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #cc9b39;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Spinner trong nút Xem thêm */
.load-more-button {
    position:relative;
  background-color: #d09e3f;
  color: white;
  padding: 2px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Khoảng cách giữa text và icon */
}
.load-more-button .btn-spinner{
  display:none; width:16px; height:16px;
  border:2px solid rgba(255,255,255,.4);
  border-top-color:#fff; border-radius:50%;
  animation: spin .8s linear infinite;
}
.load-more-button.is-loading{ pointer-events:none; opacity:.9 }
.load-more-button.is-loading .btn-spinner{ display:inline-block }
.load-more-button.is-loading svg{ display:none } /* ẩn mũi tên khi loading */

/* Hiệu ứng xuất hiện mượt khi append */
.az-fade-in{ opacity:0; transform:translateY(8px) }
.az-fade-in.az-in{ opacity:1; transform:none; transition:opacity .28s ease, transform .28s ease }

.load-more-button i {
  font-size: 18px; /* Size icon */
}

/* Hover */
.load-more-button:hover {
  background-color: #a67c30;
}

/* Product listing */
.products {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
   .product-category-tabs {
  gap: 5px; /* Khoảng cách các tab xa hơn 1 chút */
}
.tab-button p {
  color: #00264d; /* Màu text xanh đậm */
  font-size: 13px;;
}
}