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

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

body { 
  font-family: 'Urbanist', system-ui, sans-serif; 
}

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%;
}

[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); 
}

.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, currentColor, currentColor 1px, transparent 1px, transparent 10px);
}

.decor-mesh::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
  opacity: 0.1;
  z-index: -1;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent), transparent);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary), transparent);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

.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%);
  z-index: -1;
}

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

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--color-accent), transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: -1;
  filter: blur(20px);
}

.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='%23FFB300' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Ccircle cx='30' cy='30' r='14'/%3E%3Ccircle cx='30' cy='30' r='22'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.decor-subtle { 
  opacity: 0.05; 
}

.decor-moderate { 
  opacity: 0.1; 
}

.decor-bold { 
  opacity: 0.2; 
}

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

.form-input {
  @apply w-full px-4 py-3 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-accent focus:border-transparent transition-all;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  @apply transform -translate-y-6 scale-75 text-accent;
}

.form-label {
  @apply absolute left-4 top-3 text-gray-500 transition-all duration-200 pointer-events-none bg-white px-1;
}

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

.rating-stars .star {
  color: #FFB300;
}

.rating-stars .star.empty {
  color: #e5e5e5;
}

/* Price styling */
.price-main {
  @apply text-3xl font-bold text-gray-900;
}

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

.price-save {
  @apply text-sm font-medium text-green-600;
}

/* Badge styling */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 bg-accent text-white text-sm font-medium rounded-full;
}

/* Testimonial styling */
.testimonial-quote {
  @apply relative pl-6 border-l-4 border-accent;
}

.testimonial-quote::before {
  content: '"';
  @apply absolute -left-2 -top-2 text-4xl text-accent font-bold;
}

/* Loading states */
.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 #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full {
    width: 100%;
  }
  
  .mobile-stack > * {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Smooth animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-gray-50 {
    @apply bg-white border border-gray-300;
  }
  
  .text-gray-600 {
    @apply text-gray-800;
  }
  
  .text-gray-400 {
    @apply text-gray-600;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}