:root {
  --page-bg: #f5f7fa;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-contrast: #111827;
  --surface-muted: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #111827;
  --accent-strong: #0f172a;
  --accent-soft: rgba(17, 24, 39, 0.08);
  --success-soft: rgba(22, 163, 74, 0.1);
  --shadow-soft: 0 28px 64px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 14px 38px rgba(15, 23, 42, 0.05);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 1320px;
  --page-inline: clamp(16px, 2vw, 24px);
  --layout-gap: clamp(18px, 2vw, 24px);
  --card-padding: clamp(18px, 2vw, 22px);
  --rail-gap: clamp(16px, 1.8vw, 20px);
  --hero-title-size: clamp(26px, 3.4vw, 42px);
  --compact-title-size: clamp(24px, 2.6vw, 32px);
  --topbar-offset: 72px;
  --content-sticky-offset: 92px;
  --section-scroll-offset: 160px;
  --font-display: "Wix Madefor Display", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Wix Madefor Display", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.03), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 52%, #f3f5f8 100%);
  color: var(--surface-contrast);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease,
    background-color 160ms ease;
}

@media (hover: hover) {
  button:hover,
  a:hover {
    transform: translateY(-1px);
  }
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.scroll-locked-overlay {
  overscroll-behavior: contain;
}

img {
  display: block;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Integration splash modal ──────────────────────────────── */



@keyframes splash-modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes splash-modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

@keyframes promo-detail-fill {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Shared loader keyframe — consumed by bootstrap_state_screen (Dart styles),
   integration splash, global spinner helpers, etc. Kept global since the
   keyframe's scope must outlive any single component mount. */
@keyframes bootstrap-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Shimmer keyframe for skeleton placeholders. Consumed by
   skeleton.styles.dart (menu_skeleton + bootstrap skeleton). Kept global
   since the keyframe name is referenced from component-level animation
   declarations. */
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes app-nav-dialog-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes app-nav-dialog-panel-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


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


@keyframes cart-recs-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes profile-drawer-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .page-shell__intro,
  .integration-hero,
  .cart-panel,
  .checkout-section,
  .profile-section,
  .footer-page__panel {
    padding: 18px;
  }

}


