:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Nunito 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) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

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

.decor-grid-lines {
  background-image: linear-gradient(to right, var(--color-accent) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-accent),
    var(--color-accent) 1px,
    transparent 1px,
    transparent 12px
  );
}

.decor-mesh {
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 50%),
              linear-gradient(45deg, var(--color-secondary) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: var(--color-secondary);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-accent), transparent);
  opacity: 0.1;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-secondary), transparent);
  opacity: 0.1;
}

.decor-glow-element {
  box-shadow: 0 0 60px rgba(124, 58, 237, 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%3Ccircle stroke='%237C3AED' stroke-width='1' opacity='0.1' cx='30' cy='30' r='10'/%3E%3Ccircle stroke='%237C3AED' stroke-width='1' opacity='0.05' cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* Form styling */
.form-field {
  position: relative;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  transform: translateY(-1.25rem) scale(0.85);
  color: var(--color-accent);
}

.form-field label {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transition: all 0.2s ease-out;
  pointer-events: none;
  color: #6b7280;
}

/* Loading state */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Star rating */
.star-rating {
  display: inline-flex;
  gap: 2px;
}

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

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-new {
  background-color: #10b981;
  color: white;
}

.badge-bestseller {
  background-color: #f59e0b;
  color: white;
}

.badge-popular {
  background-color: #8b5cf6;
  color: white;
}

/* Price display */
.price-was-now .old-price {
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 0.5rem;
}

.price-was-now .new-price {
  font-weight: 700;
  color: var(--color-accent);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}