:root {
  --color-primary: #1A1A2E;
  --color-secondary: #2D2D44;
  --color-accent: #FF6B35;
  --bg-light: #FFF7ED;
  --bg-alt: #FFEDD5;
}

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

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

/* Button Consistency */
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;
  transition: all 0.2s ease;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 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 {
  background: radial-gradient(circle at 25% 25%, var(--color-accent), transparent 50%),
              radial-gradient(circle at 75% 75%, var(--color-secondary), transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 100%;
  height: 150%;
  background: radial-gradient(ellipse, var(--color-accent), transparent 70%);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, var(--color-accent), transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-secondary), transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.decor-glow-element {
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

.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='%23FF6B35' 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");
}

/* Opacity Modifiers */
.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Component Styles */
.rotate-180 {
  transform: rotate(180deg);
}

/* Form Styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-accent focus:border-transparent transition-all;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.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 currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

.rating-star {
  color: #fbbf24;
  font-size: 1.125rem;
}

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

.badge-bestseller {
  @apply bg-yellow-100 text-yellow-800;
}

.badge-new {
  @apply bg-green-100 text-green-800;
}

.badge-popular {
  @apply bg-blue-100 text-blue-800;
}

/* Mobile Menu Animation */
#mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.2s ease;
}

#mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}