:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
  --color-bg-light: #FFFFFF;
  --color-bg-alt: #F8F8F8;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================
   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
   Gated behind html.js-anim so bots/screenshots see content
===================== */
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-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate-delay="500"] { transition-delay: 0.5s; }

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

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

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

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

/* Line grid pattern */
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(26,26,26,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,26,26,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(26,26,26,0.04) 10px,
    rgba(26,26,26,0.04) 20px
  );
}

/* Mesh gradient */
.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(26,26,26,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(64,64,64,0.06) 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;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(26, 26, 26, 0.08);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(64, 64, 64, 0.06);
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(26,26,26,0.1) 0%, transparent 60%);
  pointer-events: none;
}

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

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(26,26,26,0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Concentric rings */
.decor-rings-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0.05;
}

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

/* =====================
   STAR RATINGS
===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

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

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

/* =====================
   ORDER FORM
===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

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

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

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

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

/* =====================
   PRICE DISPLAY
===================== */
.price-current {
  font-size: 2rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1;
}

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

.price-save {
  font-size: 0.875rem;
  color: #16a34a;
  font-weight: 600;
}

/* =====================
   BADGE
===================== */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #1A1A1A;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* =====================
   PRODUCT IMAGE EFFECTS
===================== */
.product-img-wrap {
  position: relative;
}

.product-img-wrap::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(26,26,26,0.12) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.product-img-wrap img {
  position: relative;
  z-index: 1;
}

/* =====================
   MOBILE MENU TRANSITION
===================== */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* =====================
   TRUST STRIP
===================== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
}

/* =====================
   TESTIMONIAL CARDS
===================== */
.testimonial-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =====================
   SECTION HELPERS
===================== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}

.gradient-text {
  background: linear-gradient(135deg, #1A1A1A 0%, #404040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================
   LOADING SPINNER
===================== */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* =====================
   RESPONSIVE HELPERS
===================== */
@media (max-width: 640px) {
  .price-current { font-size: 1.75rem; }
  .hero-title { font-size: 2.25rem; }
}

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