:root {
  --color-primary: #3D2C2C;
  --color-secondary: #5A4040;
  --color-accent: #FFAB91;
}

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

body { 
  font-family: 'Source Sans 3', 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: 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, 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-image: 
    radial-gradient(at 27% 37%, #FFAB91 0px, transparent 50%),
    radial-gradient(at 97% 21%, #FFE8E0 0px, transparent 50%),
    radial-gradient(at 52% 99%, #FFF5F2 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #FFAB91, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #FFE8E0, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.4;
  pointer-events: none;
}

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

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #FFAB91, transparent 60%);
  opacity: 0.1;
}

.decor-glow-element {
  filter: drop-shadow(0 0 20px rgba(255, 171, 145, 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%3Ccircle cx='30' cy='30' r='10' stroke='%23FFAB91' stroke-width='1' opacity='0.1'/%3E%3Ccircle cx='30' cy='30' r='20' stroke='%23FFAB91' stroke-width='1' opacity='0.05'/%3E%3C/g%3E%3C/svg%3E");
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

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

.form-select {
  @apply w-full px-4 py-3 border border-gray-200 rounded-full focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-all bg-white;
}

/* Order form specific */
.order-form {
  @apply bg-white rounded-3xl shadow-lg p-6;
}

.price-display {
  @apply text-3xl font-bold text-primary;
}

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

.discount-badge {
  @apply text-sm bg-red-100 text-red-600 px-2 py-1 rounded-full font-medium;
}

/* Star rating */
.star-rating {
  @apply flex items-center gap-1;
}

.star-rating .star {
  @apply w-4 h-4 text-yellow-400;
}

/* Loading state */
.loading {
  @apply opacity-50 pointer-events-none;
}

.spinner {
  @apply animate-spin rounded-full h-4 w-4 border-b-2 border-current;
}

/* Success/Error messages */
.message {
  @apply p-4 rounded-lg mb-4 text-sm;
}

.message.success {
  @apply bg-green-50 text-green-800 border border-green-200;
}

.message.error {
  @apply bg-red-50 text-red-800 border border-red-200;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-full {
    @apply w-full;
  }
  
  .mobile-text-center {
    @apply text-center;
  }
}