.ctf-wrap {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.06);
}

.ctf-heading,
.ctf-results-heading {
  margin: 0 0 18px;
}

.ctf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.ctf-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ctf-select,
.ctf-button {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
}

.ctf-select {
  border: 1px solid #d8dee7;
  background: #fff;
  padding: 0 14px;
}

.ctf-actions {
  display: flex;
  gap: 10px;
  grid-column: span 4;
}

.ctf-button {
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  background: #111827;
  color: #fff;
}

.ctf-button-secondary {
  background: #f3f4f6;
  color: #111827;
}

.ctf-results-wrap {
  margin-top: 24px;
}

.ctf-results-meta {
  font-size: 14px;
  color: #5b6472;
  margin-bottom: 14px;
}

.ctf-loading,
.ctf-empty {
  padding: 22px;
  border: 1px dashed #d7dde5;
  border-radius: 14px;
  text-align: center;
  color: #5b6472;
}

.ctf-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ctf-product-card {
  border: 1px solid #e8ebef;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.ctf-product-image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
}

.ctf-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ctf-product-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ctf-product-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.ctf-product-title a,
.ctf-product-button {
  text-decoration: none;
}

.ctf-stock.is-in-stock {
  color: #0a7a35;
}

.ctf-stock.is-out-of-stock {
  color: #b42318;
}

.ctf-product-price {
  font-weight: 700;
}

.ctf-product-button {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  padding: 0 14px;
}

@media (max-width: 980px) {
  .ctf-grid,
  .ctf-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ctf-actions {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .ctf-wrap {
    padding: 16px;
    border-radius: 14px;
  }

  .ctf-grid,
  .ctf-product-grid {
    grid-template-columns: 1fr;
  }

  .ctf-actions {
    grid-column: span 1;
    flex-direction: column;
  }
}
