:root {
  --color-primary: #0A0A0A;
  --color-secondary: #1A1A1A;
  --color-accent: #D4AF37;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(212, 175, 55, 0.05) 10px,
    rgba(212, 175, 55, 0.05) 20px
  );
}

.decor-mesh {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  filter: blur(60px);
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, rgba(212, 175, 55, 0.1), transparent);
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), transparent);
}

.decor-glow-element {
  box-shadow: 0 0 100px rgba(212, 175, 55, 0.2);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Form styling */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-accent focus:border-accent outline-none transition-colors;
}

.form-checkbox {
  @apply w-4 h-4 text-accent focus:ring-accent border-gray-300 rounded;
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Order form styling */
.order-form {
  @apply bg-white rounded-3xl p-8 shadow-xl border border-gray-100;
}

.order-form h3 {
  @apply text-2xl font-semibold text-gray-900 text-center mb-6;
}

.order-form .form-group {
  @apply mb-4;
}

.order-form label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

.order-form .error {
  @apply text-red-600 text-sm mt-1;
}

/* Success message */
.success-message {
  @apply bg-green-50 border border-green-200 text-green-800 px-4 py-3 rounded-lg;
}

/* Rating stars */
.rating-stars {
  @apply flex items-center gap-1;
}

.rating-star {
  @apply text-yellow-400;
}

/* Product badge */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 bg-accent/10 text-accent rounded-full text-sm font-medium;
}

/* Price styling */
.price-current {
  @apply text-3xl font-bold text-accent;
}

.price-old {
  @apply text-lg text-gray-500 line-through;
}

.price-discount {
  @apply text-sm font-medium text-green-600 bg-green-50 px-2 py-1 rounded;
}

/* Trust elements */
.guarantee-badge {
  @apply inline-flex items-center gap-2 px-4 py-2 bg-green-50 text-green-700 rounded-lg text-sm font-medium;
}

.security-badge {
  @apply inline-flex items-center gap-2 px-3 py-2 bg-gray-50 text-gray-700 rounded text-sm;
}

.delivery-info {
  @apply flex items-center gap-2 text-gray-600 text-sm;
}

.origin-badge {
  @apply inline-flex items-center gap-2 px-3 py-2 bg-blue-50 text-blue-700 rounded text-sm font-medium;
}