:root {
  --color-primary: #2D3A2D;
  --color-secondary: #4A5D4A;
  --color-accent: #9C27B0;
  --bg-light: #FAF5FF;
  --bg-alt: #F3E8FF;
}

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

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* ========================
   Button Normalization
   ======================== */
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: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* ========================
   Decorative Elements
   ======================== */

/* Dot grid pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Line grid pattern */
.decor-grid-lines {
  background-image:
    linear-gradient(to right, var(--color-accent) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-accent) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--color-accent) 10px,
    var(--color-accent) 11px
  );
}

/* Mesh gradient overlay */
.decor-mesh {
  background:
    radial-gradient(ellipse at top left, var(--color-accent), transparent 50%),
    radial-gradient(ellipse at bottom right, var(--color-secondary), transparent 50%);
}

/* Blurred gradient blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 35%;
  height: 35%;
  background: var(--color-secondary);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: var(--color-secondary);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Concentric 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'%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%239C27B0' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='%239C27B0' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='100' fill='none' stroke='%239C27B0' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

/* ========================
   Form Styles
   ======================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: white;
  color: #111827;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* ========================
   Star Rating
   ======================== */
.star-rating {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.star-rating .star {
  fill: #f59e0b;
}

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

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

.faq-toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
}

/* ========================
   Product Card
   ======================== */
.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================
   Testimonial Quotes
   ======================== */
.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: -1rem;
}

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

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* ========================
   Badge
   ======================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-new {
  background: rgba(156, 39, 176, 0.1);
  color: var(--color-accent);
}

.badge-bestseller {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* ========================
   Section Backgrounds
   ======================== */
.bg-light { background-color: var(--bg-light); }
.bg-alt { background-color: var(--bg-alt); }

/* ========================
   Gradient Text
   ======================== */
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================
   Order Form
   ======================== */
.order-form-wrap {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ========================
   Mobile Responsive Tweaks
   ======================== */
@media (max-width: 640px) {
  .decor-corner-tr::before,
  .decor-corner-bl::after {
    width: 100px;
    height: 100px;
  }
}

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