:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
}

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

body {
  font-family: 'Urbanist', 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: scale(0.95);
  transition: all 0.5s ease-out;
}

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

.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::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::before {
  top: 20%;
  left: 10%;
}

.decor-gradient-blur::after {
  bottom: 20%;
  right: 10%;
  background: var(--color-primary);
}

.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 0, 0 100%, 100% 100%);
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.1;
  pointer-events: none;
  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 stroke='%23DC2626' 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");
  background-repeat: repeat;
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-zoom-in {
  animation: zoomIn 0.5s ease-out;
}

/* 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-accent transition-colors;
}

.form-checkbox {
  @apply w-4 h-4 text-accent border-gray-300 rounded focus:ring-accent;
}

/* Star rating */
.star-rating {
  display: inline-flex;
  gap: 2px;
}

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

.star-rating .star.empty {
  color: #d1d5db;
}

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

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

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

/* Testimonial styles */
.testimonial-card {
  @apply bg-white rounded-2xl p-6 shadow-md border border-gray-100;
}

.quote-mark {
  @apply text-4xl text-accent opacity-50 leading-none;
}

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

.faq-toggle {
  @apply w-full flex items-center justify-between py-4 text-left font-semibold hover:text-accent transition-colors;
}

.faq-content {
  @apply pb-4 text-gray-600 hidden;
}

.faq-content.show {
  @apply block;
}

/* Payment methods */
.payment-method {
  @apply flex items-center gap-2 px-3 py-2 bg-gray-50 rounded-lg text-sm;
}

/* Security badges */
.security-badge {
  @apply flex items-center gap-2 text-sm text-gray-600;
}

/* Country flag */
.country-flag {
  @apply inline-block text-lg;
}

/* Pricing */
.price-main {
  @apply text-3xl font-bold text-gray-900;
}

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

.price-discount {
  @apply text-sm font-semibold text-white bg-red-500 rounded-full px-2 py-1;
}

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

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

/* Stats grid */
.stats-grid {
  @apply grid grid-cols-2 md:grid-cols-4 gap-4;
}

.stat-card {
  @apply text-center p-4 bg-white rounded-xl shadow-md border border-gray-100;
}

.stat-number {
  @apply text-2xl font-bold text-accent;
}

.stat-label {
  @apply text-sm text-gray-600 mt-1;
}

/* Benefits layout */
.benefits-alternating .benefit-item:nth-child(even) .benefit-content {
  @apply md:order-1;
}

.benefits-alternating .benefit-item:nth-child(even) .benefit-image {
  @apply md:order-2;
}

/* Ingredient cards */
.ingredient-card {
  @apply bg-white rounded-xl p-4 shadow-md border border-gray-100 text-center;
}

.ingredient-image {
  @apply w-16 h-16 mx-auto mb-3 rounded-full bg-gray-50 flex items-center justify-center;
}

/* Feature list */
.feature-list {
  @apply space-y-3;
}

.feature-item {
  @apply flex items-start gap-3;
}

.feature-icon {
  @apply w-5 h-5 text-accent mt-0.5 flex-shrink-0;
}

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

.form-group {
  @apply mb-4;
}

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

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

.form-success {
  @apply text-sm text-green-600 mt-1;
}