: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: 'DM 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);
}

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

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

/* ─── Decorative Backgrounds ───────────────────────────── */
.decor-grid-dots {
  background-image: radial-gradient(circle, #DC262615 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, #DC262608 1px, transparent 1px),
    linear-gradient(to bottom, #DC262608 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    #DC262608 10px,
    #DC262608 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, #DC262615 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, #2C181015 0%, transparent 60%);
}

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

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  padding-top: 40%;
  background: radial-gradient(circle, #DC262620 0%, transparent 70%);
  border-radius: 9999px;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 35%;
  padding-top: 35%;
  background: radial-gradient(circle, #2C181015 0%, transparent 70%);
  border-radius: 9999px;
  pointer-events: none;
}

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

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

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #DC262625 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
}

/* ─── Custom Accent Color Utilities ────────────────────── */
.bg-accent { background-color: #DC2626; }
.text-accent { color: #DC2626; }
.border-accent { border-color: #DC2626; }
.bg-primary { background-color: #2C1810; }
.text-primary { color: #2C1810; }
.bg-secondary { background-color: #4A2C20; }
.text-secondary { color: #4A2C20; }
.bg-bg-light { background-color: #FEF2F2; }
.bg-bg-alt { background-color: #FEE2E2; }
.shadow-accent\/30 { --tw-shadow-color: rgba(220,38,38,0.3); }
.shadow-accent\/40 { --tw-shadow-color: rgba(220,38,38,0.4); }
.ring-accent { --tw-ring-color: #DC2626; }

/* ─── Star Ratings ─────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 1px;
  color: #f59e0b;
}

/* ─── Order Form ───────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}

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

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

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

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

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

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

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

/* ─── Smooth Transitions ───────────────────────────────── */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* ─── Mobile Menu Animation ────────────────────────────── */
#mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#mobile-menu.hidden {
  display: none;
}

/* ─── Scrollbar Styling ────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #DC2626;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}