: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;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* Decorative Elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(72, 201, 176, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, 
    rgba(72, 201, 176, 0.05) 0px, 
    rgba(72, 201, 176, 0.05) 1px, 
    transparent 1px, 
    transparent 15px);
}

.decor-mesh {
  background: linear-gradient(45deg, rgba(72, 201, 176, 0.1) 0%, transparent 50%, rgba(44, 62, 80, 0.05) 100%);
}

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

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(44, 62, 80, 0.1), transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, rgba(72, 201, 176, 0.1), transparent);
  border-radius: 0 0 0 100%;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(72, 201, 176, 0.1), transparent);
  border-radius: 0 100% 0 0;
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(72, 201, 176, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2348C9B0' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3Ccircle cx='20' cy='20' r='12' fill='none' stroke='%2348C9B0' stroke-opacity='0.05' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='18' fill='none' stroke='%2348C9B0' stroke-opacity='0.03' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.3; }
.decor-moderate { opacity: 0.6; }
.decor-bold { opacity: 1; }

/* Custom utilities */
.text-balance {
  text-wrap: balance;
}

/* Product badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(72, 201, 176, 0.1);
  color: var(--color-accent);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Rating stars */
.rating-stars {
  display: flex;
  gap: 0.125rem;
}

.star-filled {
  color: #FCD34D;
}

.star-empty {
  color: #D1D5DB;
}

/* Order form enhancements */
.order-form {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,253,250,0.95));
  backdrop-filter: blur(10px);
}

.form-field-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-message {
  color: #EF4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Loading states */
.loading-spinner {
  width: 20px;
  height: 20px;
  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); }
}

/* Testimonial slider */
.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.3s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333333%;
  }
}

/* FAQ accordion */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-content {
  max-height: 500px;
}