:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
  --color-bg-light: #F0FAFF;
  --color-bg-alt: #E0F5FF;
}

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

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

/* =============================
   SCROLL ANIMATIONS
   ============================= */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* =============================
   DECORATIVE ELEMENTS
   ============================= */

/* Grid Dots */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0,217,255,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Grid Lines */
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(0,217,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,217,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal Stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0,217,255,0.05) 20px,
    rgba(0,217,255,0.05) 21px
  );
}

/* Mesh gradient overlay */
.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,217,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(30,58,95,0.15) 0%, transparent 50%);
}

/* Gradient Blur Blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(0,217,255,0.12);
  top: -100px;
  left: -100px;
}
.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(30,58,95,0.15);
  bottom: -80px;
  right: -80px;
}

/* Corner Accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(0,217,255,0.15), transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(0,217,255,0.10), transparent 70%);
  pointer-events: none;
}

/* Glow Element */
.decor-glow-element {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  background: rgba(0,217,255,0.18);
  width: 350px;
  height: 350px;
}

/* Rings SVG pattern */
.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='rgba(0,217,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='rgba(0,217,255,0.06)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='95' fill='none' stroke='rgba(0,217,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Intensity Modifiers */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.8; }
.decor-bold { opacity: 1; }

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

/* Star rating */
.star-filled { color: #F59E0B; }
.star-empty  { color: #D1D5DB; }

/* Accent text */
.text-accent { color: var(--color-accent); }
.bg-accent   { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }

/* Section accent line */
.section-accent-line {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* Badge */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Price display */
.price-current {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-old {
  font-size: 1rem;
  font-weight: 500;
  color: #9CA3AF;
  text-decoration: line-through;
}

.price-discount {
  display: inline-flex;
  align-items: center;
  background: #FEF2F2;
  color: #DC2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

/* Order form */
.order-form-field {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #111827;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Work Sans', system-ui, sans-serif;
}

.order-form-field:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,217,255,0.15);
}

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

/* Alert messages */
.alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Testimonial slider */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 1.25rem;
}

.faq-question {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #4B5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Ingredient cards */
.ingredient-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(30,58,95,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30,58,95,0.14);
}

/* How it works step */
.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Guarantee badge */
.guarantee-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  border: 4px solid var(--color-accent);
  background: white;
  box-shadow: 0 0 0 8px rgba(0,217,255,0.1);
  text-align: center;
  padding: 1rem;
}

/* Nav active state */
header a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Smooth image load */
img {
  transition: opacity 0.3s ease;
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: var(--color-secondary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Print */
@media print {
  header, footer, #cookie-consent { display: none !important; }
  main { padding-top: 0 !important; }
}