: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: '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;
  transition: all 0.2s ease;
}

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

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

/* Utility animations */
.rotate-180 { 
  transform: rotate(180deg); 
}

.transition-all { 
  transition: all 0.3s ease; 
}

/* 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: linear-gradient(135deg, var(--color-accent) 0%, transparent 50%, var(--color-accent) 100%);
}

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

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

.decor-corner-tr {
  position: relative;
}

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

.decor-corner-bl {
  position: relative;
}

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

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, var(--color-accent) 0%, transparent 70%);
  opacity: 0.1;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

.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 stroke='%23FFAB91' stroke-width='1'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%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:ring-2 focus:ring-accent/20 focus:border-accent transition-colors;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Custom checkbox styling */
.custom-checkbox {
  @apply relative;
}

.custom-checkbox input[type="checkbox"] {
  @apply sr-only;
}

.custom-checkbox label {
  @apply flex items-start gap-3 cursor-pointer text-sm text-gray-600;
}

.custom-checkbox label::before {
  content: '';
  @apply flex-shrink-0 w-5 h-5 border-2 border-gray-300 rounded bg-white transition-all;
}

.custom-checkbox input:checked + label::before {
  @apply bg-accent border-accent;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-8.5 8.5-.854-.854 7.646-7.646L13.854 3.646z'/%3e%3c/svg%3e");
}

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

.spinner {
  @apply w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin;
}

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

/* FAQ accordion */
.faq-item {
  @apply border-b border-gray-100 pb-6 last:border-b-0;
}

.faq-question {
  @apply w-full text-left font-medium text-gray-900 flex justify-between items-center py-2 hover:text-accent transition-colors;
}

.faq-answer {
  @apply mt-2 text-gray-600 leading-relaxed;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-icon {
  @apply transition-transform duration-200;
}

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

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

/* Product badge */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 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;
}

/* Price styling */
.price-old {
  @apply text-gray-400 line-through text-sm;
}

.price-current {
  @apply text-2xl font-bold text-gray-900;
}

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

/* Pulse animation for CTAs */
@keyframes pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

.animate-pulse-soft {
  animation: pulse 3s ease-in-out infinite;
}