:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
  --color-bg-light: #FEF2F2;
  --color-bg-alt: #FEE2E2;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

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

/* Custom components */
.gradient-bg {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
}

.text-balance {
  text-wrap: balance;
}

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

/* 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::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, var(--color-accent) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--color-bg-alt) 0%, transparent 50%);
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.decor-gradient-blur::before {
  top: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  opacity: 0.1;
}

.decor-gradient-blur::after {
  bottom: -20%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: var(--color-bg-alt);
  opacity: 0.15;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  opacity: 0.1;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  opacity: 0.1;
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  z-index: -1;
}

.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='%23DC2626' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='30' cy='30' r='12'/%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 styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent/20 focus:border-accent transition-colors;
}

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

.form-error {
  @apply text-sm text-red-600 mt-1;
}

/* 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 currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 1s linear infinite;
}

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

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

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

/* Header scroll effect */
.header-scrolled {
  @apply bg-white shadow-sm;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.active {
  max-height: 400px;
}

/* Order form enhancements */
.order-form {
  @apply bg-white rounded-2xl shadow-xl border p-8;
}

.order-form .form-group {
  @apply mb-6;
}

.order-form .price-display {
  @apply text-3xl font-bold text-gray-900;
}

.order-form .old-price {
  @apply text-lg text-gray-500 line-through;
}

.order-form .discount-badge {
  @apply inline-flex items-center px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full;
}

/* Rating stars */
.rating-stars {
  @apply flex items-center gap-1;
}

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

.rating-star.empty {
  @apply text-gray-300;
}

/* Testimonial cards */
.testimonial-card {
  @apply bg-gray-50 p-6 rounded-xl;
}

.testimonial-content {
  @apply text-gray-600 mb-4 italic;
}

.testimonial-author {
  @apply font-medium text-gray-900;
}

/* FAQ styles */
.faq-item {
  @apply bg-gray-50 p-6 rounded-xl;
}

.faq-question {
  @apply font-medium text-gray-900 cursor-pointer flex items-center justify-between;
}

.faq-answer {
  @apply text-gray-600 mt-3;
}

/* Product badges */
.product-badge {
  @apply absolute top-4 left-4 bg-accent text-white px-3 py-1 rounded-full text-sm font-medium;
}

.product-badge.bestseller {
  @apply bg-yellow-500;
}

.product-badge.new {
  @apply bg-blue-500;
}

.product-badge.popular {
  @apply bg-green-500;
}

/* Security indicators */
.security-badge {
  @apply flex items-center gap-2 text-sm text-gray-600 bg-gray-50 px-3 py-2 rounded-lg;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .order-form {
    @apply p-6;
  }
  
  .gradient-bg {
    background: var(--color-bg-light);
  }
}