/* Custom styles for the new design */
body {
  font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Product image thumbnails */
.thumbnail-active {
  border-color: #000 !important;
}

/* Image gallery hover effects */
.product-thumbnail:hover {
  border-color: #6b7280;
}

/* Quantity controls */
.quantity-controls button {
  transition: background-color 0.2s;
}

.quantity-controls button:hover {
  background-color: #f3f4f6;
}

/* Loading animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
  .grid-cols-1.lg\\:grid-cols-2 {
    gap: 2rem;
  }
  
  .aspect-square {
    aspect-ratio: 1 / 1;
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  
  .space-y-4 > * + * {
    margin-top: 1rem;
  }
  
  .space-y-6 > * + * {
    margin-top: 1.5rem;
  }
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Focus states for accessibility */
input:focus, button:focus, select:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Form styling */
input, textarea, select {
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

/* Custom checkbox styling */
input[type="checkbox"] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  background: white;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked {
  background: #000;
  border-color: #000;
}

input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  font-size: 0.875rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}