/* Scoped styles with 'super-' prefix */
.super-search-container {
  position: sticky;
  top: -7px;
  z-index: 100;
  background: #fff;
  padding: 0 0;
}

.super-search-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.2em;
  outline: none;
}

.super-input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.super-input-group-append {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.super-search-button {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.super-categories-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.super-categories-container::-webkit-scrollbar {
  display: none;
}

.super-category-chip {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.super-category-chip.active {
  background: #fe0000;
  color: white;
  border-color: #fe0000;
}

.super-products-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.super-product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.super-product-image-container {
  position: relative;
  padding-top: 100%;
  background: #f8f9fa;
}

.super-product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.super-product-details {
  padding: 12px;
}

.super-product-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
  line-height: 1.4;
}

.super-product-price {
  color: #fe0000;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.super-cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.super-cart-button {
  flex: 1;
  background: #fe0000;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.super-quantity-controls {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.super-quantity-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fe0000;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.super-quantity-count {
  font-weight: 500;
  min-width: 36px;
  text-align: center;
}

.super-loading {
  text-align: center;
  padding: 20px;
}

.super-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #fe0000;
  border-radius: 50%;
  margin: 0 auto;
  animation: super-spin 1s linear infinite;
}

@keyframes super-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.super-results-count {
  padding: 8px 0;
  color: #6c757d;
  font-size: 14px;
}

.super-no-results {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.super-scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #fe0000;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.super-scroll-top.visible {
  display: flex;
}

@media (max-width: 480px) {
  .super-products-container {
    gap: 8px;
  }

  .super-product-details {
    padding: 8px;
  }

  .super-product-name {
    font-size: 13px;
  }
}
