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

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

body { 
  font-family: 'Plus Jakarta Sans', 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: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

.decor-grid-lines {
  background-image: linear-gradient(currentColor 1px, transparent 1px), 
                    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, currentColor 10px, currentColor 11px);
}

.decor-mesh {
  background: radial-gradient(ellipse at top left, currentColor 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, currentColor 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), currentColor 0%, transparent 40%);
  filter: blur(40px);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: currentColor;
  border-radius: 0 0 0 100%;
  opacity: 0.05;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: currentColor;
  border-radius: 0 100% 0 0;
  opacity: 0.05;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0.1;
  z-index: -1;
}

.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='currentColor' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='currentColor' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='30' fill='none' stroke='currentColor' stroke-width='1'/%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 transition-colors;
}

.form-select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-accent focus:border-accent transition-colors appearance-none bg-white;
}

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

/* Rating stars */
.rating-stars {
  display: flex;
  gap: 1px;
}

.rating-stars .star {
  width: 16px;
  height: 16px;
  color: #D4AF37;
}

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

/* Guarantee badge */
.guarantee-badge {
  @apply inline-flex items-center gap-2 px-4 py-2 bg-green-50 text-green-700 rounded-xl border border-green-200;
}

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

/* Payment methods */
.payment-methods {
  @apply flex items-center justify-center gap-3 mt-4;
}

.payment-method {
  @apply flex items-center gap-1 px-3 py-2 bg-gray-100 rounded-lg text-sm font-medium;
}

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

/* Loading states */
.loading {
  @apply opacity-50 pointer-events-none;
}

.spinner {
  @apply animate-spin w-4 h-4 border-2 border-white border-t-transparent rounded-full;
}