/* Category Tabs */
.product-showcase-block{
  position: relative;
}
.product-tabs {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    left: -210px;
    top: 133px;
    transform: rotate(-90deg);
}

.product-tabs .tab-button {
  padding: 12px 24px;
  border: 1px solid #e1e3e8;
  background-color: #ffffff;
  color: #555e72;
  font-family: var(--fb-global-body--font-family);
  font-weight: var(--fb-global-link--font-weight);
  font-size: var(--fb-global-fb_customtypo_nwdf6--font-size);
  line-height: var(--fb-global-body--line-height);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-tabs .tab-button:hover {
  color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.product-tabs .tab-button.active {
  background-color: #0875ff;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-tabs .tab-button.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.product-tabs .tab-button.active:hover::before {
  left: 100%;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 62px;
}

.products-grid .product-card {
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e1e3e8;
}

.products-grid .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #e1e3e8;
}

.products-grid .product-card .product-image {
  position: relative;
  height: 462px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.products-grid .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.products-grid .product-card .product-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

.products-grid .product-card .product-content {
  padding: 24px;
}

.product-card .product-content .product-title {
  font-size: var(--fb-global-h5--font-size);
  line-height: var(--fb-global-h5--font-line-height);
  font-family: var(--fb-global-body--font-family);
  font-weight: var(--fb-global-all--font-weight);
  color: #15171c;
  margin: 0 0 16px 0;
}

.product-card .product-content .product-description {
  font-family: var(--fb-global-body--font-family);
  font-weight: var(--fb-global-body--font-weight);
  font-size: var(--fb-global-body--font-size);
  line-height: var(--fb-global-body--line-height);
  color: #6b7280;
  margin-bottom: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-content .product-update-date {
  font-family: var(--fb-global-body--font-family);
  font-weight: var(--fb-global-button--font-weight);
  font-size: var(--fb-global-body--font-size);
  line-height: var(--fb-global-body--line-height);
  color: #9ca3af;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card .product-content .product-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

body .btn {
  font-family: var(--fb-global-body--font-family);
  font-weight: var(--fb-global-all--font-weight);
  font-size: var(--fb-global-body--font-size);
  line-height: var(--fb-global-body--line-height);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 13px 37px;
}

.product-card .product-content .product-buttons .btn-view {
  background: #0875ff;
  color: #ffffff;
  border-radius: 2px;
}

.product-card .product-content .product-buttons .btn-view:hover {
  background: #0875ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.product-card .product-content .product-buttons .btn-buy {
  background: transparent;
  color: #15171c;
  border: 1px solid #0875ff;
  border-radius: 2px;
}

.product-card .product-content .product-buttons .btn-buy:hover {
  background: transparent;
  transform: translateY(-2px);
}

body .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

body .btn:hover::before {
  left: 100%;
}

/* No Products Message */
.no-products {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

/* Pagination */
.product-pagination {
  display: flex;
  justify-content: center;
  margin-top: 62px;
}

.product-pagination .pagination-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.product-pagination .pagination-wrapper a,
.product-pagination .pagination-wrapper span {
  font-size: var(--fb-global-body--font-size);
  font-family: var(--fb-global-body--font-family);
  line-height: var(--fb-global-body--line-height);
  font-weight: var(--fb-global-link--font-weight);
  padding: 12px 23px;
  border-radius: 2px;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;

}

.product-pagination .pagination-wrapper a:hover {
  transform: translateY(-2px);
}
.product-pagination .pagination-wrapper span:hover {
  transform: translateY(-2px);
}

.product-pagination .pagination-wrapper .current {
  background: #0875ff;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-pagination .pagination-wrapper .dots {
  border: none;
  background: none;
  color: #9ca3af;
}

/* Loading State */
.products-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

.products-grid.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-tabs {
    margin-bottom: 24px;
    justify-content: center;
  }

  .product-tabs .tab-button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .products-grid .product-card {
    border-radius: 12px;
  }

  .products-grid .product-image {
    height: 160px;
  }

  .products-grid .product-content {
    padding: 20px;
  }

  .products-grid .product-title {
    font-size: 16px;
  }

  .products-grid .product-buttons {
    flex-direction: column;
    gap: 8px;
  }

  body .btn {
    padding: 12px 16px;
  }

  .product-pagination .pagination-wrapper {
    justify-content: center;
    gap: 4px;
  }

  .product-pagination .pagination-wrapper a,
  .product-pagination .pagination-wrapper span {
    padding: 8px 12px;
    font-size: var(--fb-global-body--font-size);
    font-family: var(--fb-global-body--font-family);
    line-height: var(--fb-global-body--line-height);
    font-weight: var(--fb-global-link--font-weight);
  }
}

@media (max-width: 480px) {
  .product-tabs {
    flex-direction: column;
    align-items: center;
  }

  .product-tabs .tab-button {
    width: 200px;
    text-align: center;
  }

  .product-tabs .product-image {
    height: 140px;
  }

  .product-tabs .product-content {
    padding: 16px;
  }

  .product-pagination .pagination-wrapper a,
  .product-pagination .pagination-wrapper span {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 32px;
  }
}


/* Animation for card loading */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.5s ease-out;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-card:nth-child(2) {
  animation-delay: 0.2s;
}

.product-card:nth-child(3) {
  animation-delay: 0.3s;
}

.product-card:nth-child(4) {
  animation-delay: 0.4s;
}