/* ==========================================================================
   JOXX HUNGARY MARKETPLACE — CLEAN MINIMALIST MVP ENGINE v4.0
   Strict 2-Font Standard (Unbounded + Geologica) • 100% Light Editorial
   Zero Monospace • Strict Single-Line Buttons • 120 FPS Smooth Sliders
   ========================================================================== */

:root {
  --joxx-bg: #ffffff;
  --joxx-surface: #f8fafc;
  --joxx-border: #e2e8f0;
  --joxx-text: #0f172a;
  --joxx-muted: #64748b;
  --joxx-accent: #059669;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Geologica', sans-serif !important;
  -webkit-text-size-adjust: 100%;
}

body, p, span, div, a, li, label, input, select, textarea, button, code, kbd, pre, samp, .font-mono, .font-sans {
  font-family: 'Geologica', sans-serif;
}

.font-display,
.joxx-brand,
.joxx-price {
  font-family: 'Unbounded', sans-serif !important;
  letter-spacing: -0.02em;
}

/* STRICT SINGLE-LINE BUTTONS & MENU PILLS INVARIANT */
button,
.joxx-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
  touch-action: manipulation;
}

/* 0. Ensure .hidden always wins over custom flex/grid classes */
.hidden {
  display: none !important;
}

/* 1. Strict Layout, Style & Paint Containment */
.joxx-card-contain {
  contain: layout style paint;
}

/* 2. Exclude Closed Modals from Layout/Paint */
.opacity-0.pointer-events-none {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 3. Mobile GPU & Touch Scroll Optimization */
@media (max-width: 768px) {
  header.fixed,
  nav.fixed,
  .sticky.top-14,
  .backdrop-blur-2xl,
  .backdrop-blur-xl,
  .backdrop-blur-md,
  .backdrop-blur-sm,
  .backdrop-blur-xs {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  header.fixed,
  nav.fixed,
  .sticky.top-14 {
    background-color: rgba(255, 255, 255, 0.98) !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .joxx-card-contain:hover {
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05) !important;
    transform: none !important;
  }
}

/* 4. Fluid Horizontal Image Snap Slider (4:5 Product Aspect) */
.aspect-product {
  aspect-ratio: 4 / 5;
}
.joxx-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.joxx-slider-track::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.joxx-slider-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
}

/* 5. Header & Mobile Dock Layout */
.joxx-header-bar {
  height: 56px;
  max-height: 56px;
  white-space: nowrap;
}

.joxx-mobile-dock {
  display: flex;
}
@media (min-width: 768px) {
  .joxx-mobile-dock {
    display: none !important;
  }
}

/* 6. Composer Split / Live Preview Layout */
.joxx-composer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 820px) {
  .joxx-composer-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
  }
}

/* 7. Scanner Laser & Mic Pulse */
.scanner-line-light {
  animation: joxxScanLight 1.8s ease-in-out infinite alternate;
}
@keyframes joxxScanLight {
  0% { transform: translateY(6px); opacity: 0.8; }
  50% { opacity: 1; }
  100% { transform: translateY(150px); opacity: 0.8; }
}

.pulse-glow-mic {
  animation: joxxPulseMic 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes joxxPulseMic {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.28); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
}

@keyframes joxxFieldGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); border-color: #10b981; }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14); border-color: #10b981; }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.joxx-field-highlight {
  animation: joxxFieldGlow 1.1s ease-out;
}

/* 8. 2026 Modern Marketplace Card Micro-Interactions, Heart Favorites, Delivery & Skeletons */
.joxx-card-media img {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .joxx-card-contain:hover .joxx-card-media img {
    transform: scale(1.035);
  }
  .joxx-card-contain:hover .joxx-card-media {
    box-shadow: 0 12px 28px -12px rgba(13, 12, 34, 0.14);
    border-color: #cbd5e1;
  }
}

.joxx-card-contain:active {
  transform: scale(0.985);
  transition: transform 0.12s ease;
}

.joxx-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.joxx-fav-btn:hover {
  background: #ffffff;
  color: #e11d48;
  transform: scale(1.06);
}

.joxx-fav-btn.is-saved {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

@keyframes joxxHeartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.26); }
  100% { transform: scale(1); }
}

.joxx-fav-btn.just-saved {
  animation: joxxHeartPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.joxx-ship-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #047857;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

.drb-spoiler-btn.is-fav-active {
  background: #fff1f2 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
}

#detail-fav-btn.is-saved {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
}

@keyframes joxxShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.joxx-skel-box,
.joxx-skel-line {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: joxxShimmer 1.35s ease-in-out infinite;
}

.joxx-skel-box {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 16px;
}

.joxx-skel-line {
  height: 12px;
  border-radius: 6px;
}

