:root {
  --color-primary: #2C3E50;
  --color-secondary: #3D5266;
  --color-accent: #48C9B0;
}

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;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate].opacity-0.scale-95 {
  transform: scale(0.95);
}

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

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

/* Decorative Elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

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

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

.decor-mesh {
  background: 
    radial-gradient(circle at 25% 25%, rgba(72,201,176,0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(44,62,80,0.1) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(72,201,176,0.3) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 100px 100px 0;
  border-color: transparent rgba(72,201,176,0.1) transparent transparent;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 100px 0 0 100px;
  border-color: transparent transparent transparent rgba(72,201,176,0.1);
}

.decor-glow-element {
  box-shadow: 0 0 100px rgba(72,201,176,0.3);
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

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

.rating-stars .star {
  width: 16px;
  height: 16px;
  background: #fbbf24;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rating-stars .star.empty {
  background: #e5e7eb;
}

/* Form Enhancements */
.form-group {
  position: relative;
}

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

.form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  pointer-events: none;
  background: white;
  padding: 0 0.25rem;
}

/* Product Image Enhancements */
.product-image {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.05) rotate(2deg);
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(72,201,176,0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(72,201,176,0.6);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Loading State */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}