/* Mobile conversion layer for the static product page */
:root {
  --mobile-accent: #d52b1e;
  --mobile-ink: #1e1e1e;
  --mobile-surface: #ffffff;
  --mobile-muted: #6b7280;
}

.mobile-buybar { display: none; }

/* Static order popups cannot represent verified orders. */
.fake-order-popup { display: none !important; }

@media (max-width: 767px) {
  html { scroll-behavior: smooth; }
  body { padding-bottom: 88px; background: var(--mobile-surface); }
  h1.elementor-heading-title {
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em;
    color: var(--mobile-ink);
  }
  .elementor-widget-text-editor,
  .elementor-widget-text-editor p,
  .elementor-widget-text-editor li {
    font-size: 1rem;
    line-height: 1.58;
  }
  .elementor-widget-button .elementor-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
  }
  .elementor-widget-image img {
    max-width: 100%;
    height: auto;
  }
  .e-con-inner { padding-left: 16px; padding-right: 16px; }
  .mobile-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 28px rgba(22,24,35,.14);
  }
  .mobile-buybar__price { display: grid; gap: 1px; white-space: nowrap; }
  .mobile-buybar__price strong { font-size: 1.18rem; line-height: 1; color: var(--mobile-ink); }
  .mobile-buybar__price span { font-size: .72rem; color: var(--mobile-muted); }
  .mobile-buybar__cta {
    min-height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--mobile-accent);
    color: #fff !important;
    font-size: .93rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(213,43,30,.25);
  }
  .mobile-buybar__cta:active { transform: scale(.98); }
  .mobile-buybar__cta:focus-visible { outline: 3px solid #111827; outline-offset: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-buybar__cta { transition: none; }
}
