/* CartNova Custom Styles -- supplements Tailwind CDN */

/* Product card hover effect */
.product-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Checkout progress bar */
.checkout-step {
  position: relative;
}
.checkout-step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  transform: translateY(-50%);
}
.checkout-step:last-child::after {
  display: none;
}
.checkout-step.completed::after {
  background: #4f46e5;
}

/* API endpoint annotation panel */
.api-panel {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
}
.api-panel summary {
  cursor: pointer;
  user-select: none;
}

/* Loading spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  z-index: 100;
  animation: slideIn 0.3s ease;
}
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
@keyframes slideIn {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Product image */
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image {
  transform: scale(1.05);
}
.product-image-container {
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
}

/* Placeholder product image (fallback) */
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
  color: white;
}

/* Product detail image gallery */
.product-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f3f4f6;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.product-thumbnail {
  width: 4rem;
  height: 4rem;
  border-radius: 0.375rem;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: #4f46e5;
}

/* Category header image */
.category-header-image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Rating stars */
.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}
