/* Minimal filter form design */
.ctaf-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.ctaf-top {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.ctaf-top h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.ctaf-sub {
  font-size: 14px;
  color: #666;
}

.ctaf-form {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.ctaf-form select {
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 32px;
}

.ctaf-form select:focus {
  outline: none;
  border-color: #e10600;
}

.ctaf-form select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9f9f9;
}

.ctaf-btn {
  background: #e10600;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ctaf-btn:hover {
  background: #000;
}

.ctaf-results {
  padding: 20px;
  background: #fff;
}

/* Responsive filter form */
@media (max-width: 768px) {
  .ctaf-form {
    flex-direction: column;
    padding: 20px;
  }
  
  .ctaf-form select {
    width: 100%;
    min-width: auto;
  }
  
  .ctaf-btn {
    width: 100%;
  }
}

/* Minimal product grid design */
.ctaf-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.ctaf-product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.ctaf-product-card:hover {
  border-color: #e10600;
}

.ctaf-product-image {
  position: relative;
  height: 180px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.ctaf-product-link {
  display: block;
  height: 100%;
}

.ctaf-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  box-sizing: border-box;
}

.ctaf-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 32px;
  color: #ccc;
}

.ctaf-stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.ctaf-stock-badge.in-stock {
  background: #28a745;
  color: #fff;
}

.ctaf-stock-badge.out-of-stock {
  background: #dc3545;
  color: #fff;
}

.ctaf-product-info {
  padding: 12px;
}

.ctaf-product-title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.3;
}

.ctaf-product-title a {
  color: #333;
  text-decoration: none;
}

.ctaf-product-title a:hover {
  color: #e10600;
}

.ctaf-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}

.ctaf-sku {
  color: #666;
}

.ctaf-price {
  font-weight: 600;
  color: #e10600;
  font-size: 14px;
}

.ctaf-product-actions {
  display: flex;
}

.ctaf-add-to-cart {
  width: 100%;
  padding: 8px 12px;
  background: #e10600;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ctaf-add-to-cart:hover {
  background: #000;
}

.ctaf-add-to-cart.loading {
  background: #6c757d;
  cursor: not-allowed;
}

.ctaf-add-to-cart.added {
  background: #28a745;
}

/* Loading and empty states */
.ctaf-empty{text-align:center;color:#333;background:#fafafa;border:1px dashed #e5e5e5;border-radius:10px;padding:16px}
.ctaf-loading{width:42px;height:42px;border-radius:50%;border:3px solid #eee;border-top-color:#e10600;margin:24px auto;animation:ctafspin 0.8s linear infinite}
@keyframes ctafspin{to{transform:rotate(360deg)}}

/* Responsive */
@media (max-width: 768px) {
  .ctaf-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .ctaf-product-actions {
    flex-direction: column;
  }
}


