/* =========================================================
   JONCORP MARKET — Styles de base
   ========================================================= */

:root {
  --c-primary: #2563eb;
  --c-primary-dark: #1d4ed8;
  --c-primary-light: #dbeafe;
  --c-accent: #f59e0b;
  --c-success: #10b981;
  --c-danger: #ef4444;
  --c-warning: #f97316;

  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-alt: #f1f5f9;
  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-border: #e2e8f0;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem;

  --radius: 12px; --radius-sm: 8px; --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 4px 12px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 30px rgba(15,23,42,.12);
  --header-h: 68px;
  --container: 1280px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: 1.25; font-weight: 700; }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--sp-3); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }

.jm-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}
.jm-header .container {
  display: flex; align-items: center; gap: var(--sp-4);
  height: 100%;
}
.jm-logo {
  display: flex; align-items: center; gap: var(--sp-2);
  font-weight: 800; font-size: var(--fs-lg);
  color: var(--c-primary);
  white-space: nowrap;
}
.jm-logo-img {
  height: 38px; width: auto; max-width: 160px;
  object-fit: contain;
}

.jm-search { flex: 1; max-width: 560px; position: relative; }
.jm-search input {
  width: 100%; padding: 10px 42px 10px 16px; border-radius: 999px;
  border: 1px solid var(--c-border); background: var(--c-surface-alt);
  transition: border var(--transition);
}
.jm-search input:focus { outline: none; border-color: var(--c-primary); background: #fff; }
.jm-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--c-text-muted);
}

.jm-nav-actions { display: flex; align-items: center; gap: var(--sp-1); }
.jm-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; color: var(--c-text);
  transition: background var(--transition);
}
.jm-icon-btn:hover { background: var(--c-surface-alt); }
.jm-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--c-primary); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform var(--transition);
}
.jm-badge.on { transform: scale(1); }
.jm-badge.accent { background: var(--c-accent); }

.jm-catnav { background: #fff; border-bottom: 1px solid var(--c-border); overflow-x: auto; scrollbar-width: none; }
.jm-catnav::-webkit-scrollbar { display: none; }
.jm-catnav .container { display: flex; gap: var(--sp-2); padding-top: 10px; padding-bottom: 10px; }
.jm-catnav a {
  padding: 6px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500;
  color: var(--c-text-muted); white-space: nowrap; transition: all var(--transition);
}
.jm-catnav a:hover, .jm-catnav a.active { background: var(--c-primary-light); color: var(--c-primary-dark); }

.jm-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff; padding: var(--sp-16) 0; position: relative; overflow: hidden;
}
.jm-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 30%, rgba(255,255,255,.15), transparent 70%);
  pointer-events: none;
}
.jm-hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-12); align-items: center; position: relative; z-index: 1; }
.jm-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: var(--sp-4); letter-spacing: -1px; }
.jm-hero p { font-size: var(--fs-lg); opacity: .92; max-width: 540px; margin-bottom: var(--sp-6); }
.jm-hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.jm-hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); transform: rotate(-3deg); }
.jm-hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.jm-hero-visual img:nth-child(2) { transform: translateY(30px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: var(--fs-sm);
  transition: all var(--transition); border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-light { background: #fff; color: var(--c-primary-dark); }
.btn-light:hover { background: #eef2ff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: var(--fs-xs); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.section { padding: var(--sp-12) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--sp-6); gap: var(--sp-4); flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: var(--fs-2xl); }
.section-head .sub { color: var(--c-text-muted); font-size: var(--fs-sm); }
.section-head .link { color: var(--c-primary); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-4); }
.cat-card {
  background: var(--c-surface); border-radius: var(--radius);
  padding: var(--sp-4); text-align: center;
  border: 1px solid var(--c-border);
  transition: all var(--transition);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-light); }
.cat-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--sp-3); }
.cat-card span { font-weight: 600; font-size: var(--fs-sm); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); }

.promo-band {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #fff; border-radius: var(--radius-lg); padding: var(--sp-8);
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: var(--sp-6);
}
.countdown { display: flex; gap: var(--sp-3); }
.countdown .cd-box { background: rgba(255,255,255,.1); padding: 12px 16px; border-radius: var(--radius); text-align: center; min-width: 68px; }
.countdown .cd-box b { display: block; font-size: var(--fs-2xl); }
.countdown .cd-box small { font-size: 11px; opacity: .7; text-transform: uppercase; }

.jm-footer { background: #0f172a; color: #cbd5e1; margin-top: var(--sp-12); }
.jm-footer .container { padding: var(--sp-12) var(--sp-4) var(--sp-6); }
.jm-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid #1e293b; }
.jm-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .8px; margin-bottom: var(--sp-4); }
.jm-footer a { display: block; padding: 4px 0; font-size: var(--fs-sm); color: #94a3b8; transition: color var(--transition); }
.jm-footer a:hover { color: #fff; }
.jm-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-6); font-size: var(--fs-xs); color: #64748b; }
.socials { display: flex; gap: var(--sp-2); }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #1e293b; display: grid; place-items: center; color: #cbd5e1; }
.socials a:hover { background: var(--c-primary); color: #fff; }

.text-muted { color: var(--c-text-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.hidden { display: none !important; }
.center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mb-4 { margin-bottom: var(--sp-4); }
.inline-flex { display: inline-flex; align-items: center; gap: 6px; }