.wcit-wrapper {
  width: 100%;
}

.wcit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wcit-tab {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0d7de;
  background: #fff;
  color: #1f2937;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wcit-tab.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.wcit-grid {
  display: grid;
  grid-template-columns: repeat(var(--wcit-columns-desktop, 4), minmax(0, 1fr));
  gap: 1.25rem;
}

.wcit-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wcit-card__thumb {
  display: block;
  overflow: hidden;
}

.wcit-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.wcit-card__category {
  order: 1;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

.wcit-card__price {
  order: 2;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #8b8b8b;
  font-weight: 400;
  letter-spacing: 0;
}

.wcit-card__title {
  order: 3;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 500;
}

.wcit-card__title a {
  color: inherit;
  text-decoration: none;
}

.wcit-card__entradilla {
  order: 4;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #b3b3b3;
}

.wcit-card__entradilla p {
  margin: 0;
}

.wcit-card__cart {
  order: 5;
}

.wcit-card__cart a,
.wcit-card__cart button,
.wcit-card__cart .button,
.wcit-card__cart .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wcit-loader {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0;
}

.wcit-loader[hidden],
.wcit-load-more[hidden] {
  display: none !important;
}

.wcit-loader__spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(17, 24, 39, 0.15);
  border-top-color: #111827;
  animation: wcit-spin 0.8s linear infinite;
}

.wcit-load-more {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}

.wcit-load-more[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.wcit-empty {
  grid-column: 1 / -1;
}

@keyframes wcit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .wcit-grid {
    grid-template-columns: repeat(var(--wcit-columns-tablet, 2), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .wcit-grid {
    grid-template-columns: repeat(var(--wcit-columns-mobile, 1), minmax(0, 1fr));
  }
}
