:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
}

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

body {
  font-family: 'Space Grotesk', 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, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

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

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--color-accent), transparent, var(--color-accent));
  filter: blur(40px);
  opacity: 0.1;
}

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

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.08;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
  opacity: 0.1;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(0% 100%, 0% 0%, 100% 100%);
  opacity: 0.1;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.05;
  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='%23111111' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Intensity modifiers */
.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-full focus:ring-2 focus:ring-accent focus:border-transparent outline-none transition-all;
}

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

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

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

.star {
  width: 1rem;
  height: 1rem;
  fill: #fbbf24;
  color: #fbbf24;
}

.star.empty {
  fill: #e5e7eb;
  color: #e5e7eb;
}

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

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

.discount-badge {
  @apply inline-block bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full;
}

/* Security badges */
.security-badge {
  @apply inline-flex items-center gap-2 text-sm text-gray-600;
}

/* Mobile menu animations */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.show {
  max-height: 300px;
}

/* Smooth transitions */
.transition-all {
  transition-duration: 300ms;
}

/* FAQ styles */
.faq-item {
  @apply border-b border-gray-100 pb-6;
}

.faq-question {
  @apply flex items-center justify-between w-full text-left text-lg font-semibold text-gray-900 hover:text-accent transition-colors cursor-pointer;
}

.faq-answer {
  @apply mt-4 text-gray-600 hidden;
}

.faq-answer.show {
  @apply block;
}

.faq-icon {
  @apply w-5 h-5 text-gray-400 transition-transform duration-200;
}

/* Testimonial quotes */
.testimonial-quote::before {
  content: '"';
  @apply text-6xl text-accent/20 absolute -top-4 -left-2 font-serif;
}

.testimonial-quote {
  @apply relative italic text-lg text-gray-700;
}

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

.form-group {
  @apply space-y-2;
}

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

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

.form-success {
  @apply text-sm text-green-600;
}

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

.spinner {
  @apply animate-spin w-5 h-5;
}