:root {
  --color-primary: #3D2C2C;
  --color-secondary: #5A4040;
  --color-accent: #FFAB91;
  --bg-light: #FFF5F2;
  --bg-alt: #FFE8E0;
}

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

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

/* Button styling 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 patterns */
.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 {
  background: radial-gradient(at 40% 20%, hsla(28,100%,74%,0.1) 0px, transparent 50%), 
              radial-gradient(at 80% 0%, hsla(189,100%,56%,0.1) 0px, transparent 50%);
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, var(--color-accent), transparent, var(--color-primary));
  filter: blur(40px);
  opacity: 0.1;
  z-index: -1;
}

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

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

.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, var(--color-accent), transparent);
  opacity: 0.1;
  filter: blur(20px);
  z-index: -1;
}

/* Order form styling */
.order-form {
  background: linear-gradient(135deg, var(--bg-light), white);
  border: 2px solid var(--color-accent);
}

.form-input {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 171, 145, 0.1);
}

.form-error {
  border-color: #ef4444;
}

/* Product badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--color-accent), #ff8a65);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Star ratings */
.star-rating {
  display: flex;
  gap: 0.125rem;
}

.star-rating .star {
  color: #fbbf24;
}

/* Price styling */
.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-old {
  font-size: 1.25rem;
  color: #6b7280;
  text-decoration: line-through;
}

.price-save {
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .price-current {
    font-size: 1.5rem;
  }
  
  .price-old {
    font-size: 1rem;
  }
  
  [data-animate] {
    transform: translateY(1rem);
  }
  
  [data-animate].is-visible {
    transform: translateY(0);
  }
}