:root {
  --color-primary: #2F4F2F;
  --color-secondary: #4A6B4A;
  --color-accent: #FFB300;
}

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

body { 
  font-family: 'Work 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(32px);
  transition: all 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, 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(at 40% 20%, currentColor, transparent 50%), radial-gradient(at 80% 0%, currentColor, transparent 50%);
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.decor-gradient-blur::before {
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
}

.decor-gradient-blur::after {
  bottom: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: var(--color-primary);
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, currentColor 50%, transparent 50%);
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, currentColor 50%, transparent 50%);
}

.decor-glow-element {
  box-shadow: 0 0 100px rgba(255, 179, 0, 0.3);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='ring' x='0' y='0' width='60' height='60' patternUnits='userSpaceOnUse'%3e%3ccircle cx='30' cy='30' r='25' fill='none' stroke='currentColor' stroke-width='1'/%3e%3ccircle cx='30' cy='30' r='15' fill='none' stroke='currentColor' stroke-width='1'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23ring)'/%3e%3c/svg%3e");
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Order form styling */
.order-form {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.order-form .form-field {
  position: relative;
}

.order-form .form-field input,
.order-form .form-field select {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.order-form .form-field input:focus,
.order-form .form-field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

.order-form .form-field.error input,
.order-form .form-field.error select {
  border-color: #ef4444;
}

.order-form .form-field .error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.order-form .form-field.error .error-message {
  display: block;
}

/* Product gallery */
.product-gallery {
  position: relative;
}

.product-gallery img {
  transition: transform 0.3s ease;
}

.product-gallery:hover img {
  transform: scale(1.05);
}

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

.rating-stars .star {
  color: #FFB300;
  font-size: 1rem;
}

/* FAQ styling */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item[data-expanded="true"] .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-top: 1rem;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding-top: 0;
}

/* Testimonial styling */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  font-family: serif;
}

/* Loading animation */
.loading {
  position: relative;
  color: transparent;
}

.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 var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-full-width {
    width: 100vw;
    margin-left: -1rem;
    margin-right: -1rem;
  }
  
  .mobile-text-center {
    text-align: center;
  }
}