: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;
}

/* =====================
   Button Base 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%;
  display: flex;
}

/* =====================
   Scroll Animations
   ===================== */
html.js-anim html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js-anim html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger delays */
html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

/* =====================
   Decorative Backgrounds
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(220, 38, 38, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(220, 38, 38, 0.04) 20px,
    rgba(220, 38, 38, 0.04) 21px
  );
}

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(44, 24, 16, 0.08) 0%, transparent 50%);
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.4; }
.decor-moderate { opacity: 0.7; }
.decor-bold { opacity: 1; }

/* Gradient blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(44, 24, 16, 0.12), transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(220, 38, 38, 0.1), transparent);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(220, 38, 38, 0.08), transparent);
  pointer-events: none;
}

.decor-glow-element {
  filter: drop-shadow(0 0 40px rgba(220, 38, 38, 0.2));
}

/* =====================
   FAQ Accordion
   ===================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
}

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

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* =====================
   Form Styles
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: white;
}

.form-input:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* =====================
   Toggle Switch
   ===================== */
.toggle-thumb {
  transition: transform 0.2s ease;
}

input:checked + .toggle-track .toggle-thumb {
  transform: translateX(1.25rem);
}

/* =====================
   Star Rating
   ===================== */
.star-filled {
  color: #f59e0b;
  fill: #f59e0b;
}

.star-empty {
  color: #d1d5db;
}

/* =====================
   Product Image Glow
   ===================== */
.product-glow {
  filter: drop-shadow(0 8px 32px rgba(220, 38, 38, 0.18));
}

/* =====================
   Gradient Text
   ===================== */
.gradient-text {
  background: linear-gradient(135deg, #DC2626, #7f1d1d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================
   Card Hover Effects
   ===================== */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
}

/* =====================
   Pulse Animation (CTA)
   ===================== */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.cta-pulse {
  animation: pulse-ring 2.5s ease-out infinite;
}

/* =====================
   Notification Toast
   ===================== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #1f2937;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =====================
   Progress Bar
   ===================== */
.progress-bar {
  height: 6px;
  background: #fee2e2;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #DC2626, #7f1d1d);
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* =====================
   Responsive Utilities
   ===================== */
@media (max-width: 640px) {
  .mobile-full {
    width: 100%;
  }
}

/* =====================
   Sticky Header Shadow
   ===================== */
header.scrolled {
  box-shadow: 0 2px 16px rgba(44, 24, 16, 0.1);
}

/* =====================
   Cookie Toggle
   ===================== */
#cookie-consent {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   Rotate utility
   ===================== */
.rotate-180 {
  transform: rotate(180deg);
}