/* =====================================================================
   AgriForeX — Share / Deep-link pages
   Ultra-modern · Responsive desktop + mobile · No external assets
   ===================================================================== */

/* ── Fonts (local) ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'PJS';
  src: url('/assets/fonts/PlusJakartaSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary:   #63a800;
  --c-dark:      #002b02;
  --c-accent:    #003501;
  --c-bg:        #f2f5f0;
  --c-surface:   #ffffff;
  --c-muted:     #5c6860;
  --c-muted2:    #8fa090;
  --c-border:    rgba(0,43,2,0.10);
  --c-shadow:    0 24px 64px -20px rgba(0,53,1,0.18);
  --c-radius:    20px;
  --c-radius-sm: 12px;
  --c-max:       900px;
  --c-gutter:    20px;
  --c-flash:     #e0521c;
  --c-star:      #f5a623;
  --c-grad:      linear-gradient(135deg,#8fd600 0%,#63a800 45%,#3a6e00 100%);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'PJS', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--c-bg);
  color: #0d140f;
  line-height: 1.55;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Page scaffold ─────────────────────────────────────────────────── */
.agx-page-wrap {
  max-width: var(--c-max);
  margin: 0 auto;
  padding-bottom: 72px; /* room for fixed bar */
}

/* ── Header ────────────────────────────────────────────────────────── */
.agx-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--c-gutter);
  background: rgba(252,253,252,0.88);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(0,43,2,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 4px 16px -8px rgba(0,43,2,0.08);
}
.agx-header-logo-wrap {
  width: 38px; height: 38px; border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(0,43,2,0.09);
  box-shadow: 0 2px 8px -2px rgba(0,43,2,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.agx-header-logo   { width: 26px; height: 26px; object-fit: contain; display: block; }
.agx-header-brand  { font-size: 1.0rem; font-weight: 900; letter-spacing: -0.03em; color: var(--c-dark); }
.agx-header-dot    { width: 4px; height: 4px; border-radius: 50%; background: var(--c-primary); margin: 0 2px; }
.agx-header-tag    { font-size: 0.72rem; font-weight: 700; color: var(--c-muted); }
.agx-header-spacer { flex: 1; }
.agx-header-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.77rem; font-weight: 800; color: var(--c-dark);
  padding: 7px 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,43,2,0.10);
  border-radius: 20px;
  box-shadow: 0 1px 4px -1px rgba(0,43,2,0.08);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.agx-header-btn:hover {
  background: #fff; border-color: rgba(99,168,0,0.35);
  box-shadow: 0 4px 14px -4px rgba(99,168,0,0.2);
  transform: translateY(-1px);
}
.agx-header-btn:active { transform: scale(.97); }

/* ── Skeleton loader ───────────────────────────────────────────────── */
.agx-skel {
  background: linear-gradient(90deg,#e4ebe4 25%,#d0dbd0 50%,#e4ebe4 75%);
  background-size: 200% 100%;
  animation: skel 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes skel { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── ═══════════════════════════════════════════════════════════════ ── */
/* ──  LISTING                                                        ── */
/* ── ═══════════════════════════════════════════════════════════════ ── */

.agx-listing-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--c-surface);
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: var(--c-shadow);
}

@media (min-width: 700px) {
  .agx-listing-wrap {
    grid-template-columns: minmax(320px, 48%) 1fr;
    min-height: 480px;
    margin: 16px var(--c-gutter);
    border-radius: var(--c-radius);
  }
}

/* ── Gallery ───────────────────────────────────────────────────────── */
.agx-gallery {
  position: relative;
  background: #0a1209;
  flex-shrink: 0;
}

@media (min-width: 700px) {
  .agx-gallery {
    position: sticky;
    top: 61px; /* header height */
    height: calc(100vh - 80px);
    max-height: 640px;
    display: flex;
    flex-direction: column;
  }
}

.agx-hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  flex: 1;
}
@media (min-width: 700px) {
  .agx-hero-img { aspect-ratio: unset; height: 100%; }
}
.agx-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}
.agx-photo-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}

.agx-thumbs {
  display: flex; gap: 3px; padding: 4px;
  background: #0a1209; overflow-x: auto;
  scrollbar-width: none; flex-shrink: 0;
}
.agx-thumbs::-webkit-scrollbar { display: none; }
.agx-thumb {
  flex-shrink: 0; width: 56px; height: 56px;
  border-radius: 6px; border: 2px solid transparent;
  background-size: cover; background-position: center;
  transition: border-color .15s, opacity .15s;
  opacity: .6;
}
.agx-thumb.active, .agx-thumb:hover { border-color: var(--c-primary); opacity: 1; }

.agx-no-photo {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg,#1a2e1a,#0a1209);
  display: flex; align-items: center; justify-content: center;
}

/* ── Listing detail panel ──────────────────────────────────────────── */
.agx-detail {
  padding: 22px var(--c-gutter) 28px;
  overflow-y: auto;
}
@media (min-width: 700px) {
  .agx-detail { padding: 28px 28px 32px; }
}

/* Badges */
.agx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.agx-badge {
  font-size: 0.67rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.agx-badge-type { background: rgba(99,168,0,.12); color: #3d7000; }
.agx-badge-cond { background: rgba(0,43,2,.07);   color: var(--c-muted); }
.agx-badge-neg  { background: rgba(99,168,0,.2);  color: #396200; }
.agx-badge-sold { background: rgba(180,83,9,.12); color: #9a4500; }
.agx-badge-demand { background: rgba(37,99,235,.1); color: #1d4ed8; }

/* Title */
.agx-title {
  font-size: clamp(1.3rem, 4.5vw, 1.75rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.2;
  color: var(--c-dark); margin-bottom: 10px;
}

/* Price */
.agx-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.agx-price {
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 900; letter-spacing: -.02em;
  color: var(--c-accent);
}
.agx-price-sold { color: var(--c-muted); text-decoration: line-through; font-size: 1.05rem; }

/* Location / date row */
.agx-location {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.86rem; font-weight: 600; color: var(--c-muted);
  margin-bottom: 14px;
}
.agx-location svg { flex-shrink: 0; color: var(--c-primary); }
.agx-date { margin-left: auto; font-size: .76rem; color: var(--c-muted2); font-weight: 600; }

/* Stats */
.agx-stats {
  display: flex; gap: 14px; margin-bottom: 18px;
  font-size: .79rem; font-weight: 600; color: var(--c-muted2);
}
.agx-stats span { display: flex; align-items: center; gap: 5px; }

/* Seller card */
.agx-seller-card {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,43,2,0.08);
  box-shadow: 0 2px 10px -4px rgba(0,43,2,0.08);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.agx-seller-card:hover {
  border-color: rgba(99,168,0,.28);
  box-shadow: 0 6px 20px -6px rgba(99,168,0,.18);
  transform: translateY(-1px);
}
.agx-seller-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid rgba(0,43,2,0.08);
}
.agx-seller-avatar-ph {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; font-size: 1.25rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(99,168,0,.4);
}
.agx-seller-info     { flex: 1; min-width: 0; }
.agx-seller-label    { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 1px; }
.agx-seller-name     { display: block; font-size: .95rem; font-weight: 800; color: var(--c-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.agx-seller-shop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 800; color: var(--c-primary);
  padding: 7px 13px;
  background: rgba(99,168,0,.08);
  border: 1px solid rgba(99,168,0,.22);
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.agx-seller-shop-btn:hover {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* Section */
.agx-section { margin-bottom: 20px; }
.agx-section-title {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-muted2); margin-bottom: 8px;
}
.agx-desc {
  font-size: .9375rem; line-height: 1.68; color: #1e2e1f; white-space: pre-wrap;
}

/* ── CTA / Download block (listing page) ──────────────────────────── */
.agx-cta-box {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(99,168,0,0.06) 0%, rgba(0,53,1,0.03) 100%);
  border: 1px solid rgba(99,168,0,0.14);
  border-radius: 18px;
}
.agx-cta-label {
  font-size: .875rem; font-weight: 600; color: #1a3a08;
  margin-bottom: 16px; line-height: 1.55;
  display: flex; gap: 9px; align-items: flex-start;
}
.agx-cta-label::before {
  content: '';
  flex-shrink: 0;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--c-primary); margin-top: 8px;
}

/* Store buttons layout */
.agx-store-group { display: flex; flex-direction: column; gap: 10px; }

/* Primary "open in app" — pleine largeur, CTA principal */
.agx-btn-open {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 20px; border-radius: 14px;
  font-size: .9rem; font-weight: 900; color: #fff; letter-spacing: -.015em;
  background: linear-gradient(135deg, #7cc800 0%, var(--c-primary) 40%, #3d7200 100%);
  box-shadow:
    0 8px 24px -8px rgba(99,168,0,.55),
    0 1px 0 rgba(255,255,255,.2) inset;
  transition: transform .14s, box-shadow .14s;
}
.agx-btn-open:hover  { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(99,168,0,.6); }
.agx-btn-open:active { transform: scale(.97); }
.agx-btn-open__text  { flex: 1; text-align: center; }
.agx-btn-open__arrow { opacity: .8; flex-shrink: 0; }

/* Two-column row for store badges */
.agx-store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Store badge — commun Google Play + App Store */
.agx-btn-store {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  background: #0a0a0a;
  color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 4px 16px -6px rgba(0,0,0,.4);
  transition: transform .12s, background .12s, box-shadow .12s;
  min-height: 52px;
}
.agx-btn-store:hover  { background: #161616; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.agx-btn-store:active { transform: scale(.97); }

.agx-store-text { display: flex; flex-direction: column; }
.agx-store-sup  { font-size: .6rem; font-weight: 600; letter-spacing: .05em; opacity: .65; line-height: 1; margin-bottom: 2px; }
.agx-store-name { font-size: .84rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }

/* ── Join CTA hero (cooperative) ──────────────────────────────────── */
.agx-join-hero {
  position: relative;
  background: linear-gradient(145deg, #0a1f0a 0%, #0f2e0f 50%, #071507 100%);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(99,168,0,.22);
  box-shadow:
    0 0 0 1px rgba(99,168,0,.08) inset,
    0 12px 40px -12px rgba(0,53,1,.5);
  overflow: hidden;
}
.agx-join-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(99,168,0,.18) 0%, transparent 65%);
  pointer-events: none;
}

.agx-btn-join {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px; border-radius: 14px;
  font-size: .97rem; font-weight: 900; color: #fff; letter-spacing: -.02em;
  background: linear-gradient(135deg, #8fd600 0%, #63a800 45%, #3a6e00 100%);
  box-shadow:
    0 10px 30px -8px rgba(99,168,0,.65),
    0 1px 0 rgba(255,255,255,.25) inset;
  transition: transform .14s, box-shadow .14s;
  text-align: left;
}
.agx-btn-join:hover  { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(99,168,0,.7); }
.agx-btn-join:active { transform: scale(.97); }
.agx-btn-join__icon  {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.agx-btn-join__text  { flex: 1; min-width: 0; }
.agx-btn-join__title { display: block; font-size: 1rem; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; }
.agx-btn-join__sub   { display: block; font-size: .72rem; font-weight: 600; opacity: .78; margin-top: 2px; }
.agx-btn-join__arrow { flex-shrink: 0; opacity: .85; }

/* Pulse ring on join button */
@keyframes agx-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(99,168,0,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(99,168,0,0); }
  100% { box-shadow: 0 0 0 0   rgba(99,168,0,0); }
}
.agx-btn-join { animation: agx-pulse 2.2s ease-out 1s 3; }

/* Code block inside join hero */
.agx-join-code {
  position: relative; z-index: 1;
  margin-top: 14px;
}
.agx-join-code-label {
  font-size: .67rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 8px; display: block;
}
.agx-join-code-tiles {
  display: flex; gap: 6px;
}
.agx-join-code-tile {
  flex: 1; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 900; color: #a8e020;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(99,168,0,.35);
  border-radius: 10px;
  letter-spacing: 0;
}
.agx-join-code-hint {
  font-size: .72rem; color: rgba(255,255,255,.38); margin-top: 8px; line-height: 1.5;
}

/* Store links inside join hero */
.agx-join-stores {
  position: relative; z-index: 1;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.agx-join-stores-label {
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.35); margin-bottom: 8px; display: block;
}

/* Compact store row inside dark hero */
.agx-join-store-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.agx-join-btn-store {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-family: inherit;
  transition: background .14s, border-color .14s, transform .12s;
}
.agx-join-btn-store:hover {
  background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.agx-join-store-text     { display: flex; flex-direction: column; }
.agx-join-store-sup      { font-size: .58rem; font-weight: 600; opacity: .55; letter-spacing: .04em; line-height: 1; margin-bottom: 2px; }
.agx-join-store-name     { font-size: .78rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }

/* ── ═══════════════════════════════════════════════════════════════ ── */
/* ──  COOPERATIVE                                                    ── */
/* ── ═══════════════════════════════════════════════════════════════ ── */

.agx-coop-wrap {
  background: var(--c-surface);
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: var(--c-shadow);
}
@media (min-width: 700px) {
  .agx-coop-wrap { margin: 16px var(--c-gutter); }
}

.agx-coop-cover {
  width: 100%; height: 240px; overflow: hidden;
  background: linear-gradient(135deg, #0d1a0d, #1a3a1a);
  position: relative;
}
@media (min-width: 700px) { .agx-coop-cover { height: 300px; } }
.agx-coop-cover img { width: 100%; height: 100%; object-fit: cover; }
.agx-coop-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,20,0,.5) 100%);
}
.agx-coop-cover-ph {
  display: flex; align-items: center; justify-content: center;
  height: 100%; width: 100%;
}

/* Two-column layout on desktop */
.agx-coop-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .agx-coop-body { grid-template-columns: 1fr 340px; min-height: 320px; }
}

.agx-coop-main { padding: 24px var(--c-gutter) 28px; }
@media (min-width: 700px) {
  .agx-coop-main { padding: 28px 28px 32px; }
}

.agx-coop-side {
  padding: 24px var(--c-gutter) 28px;
  border-top: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 20px;
}
@media (min-width: 700px) {
  .agx-coop-side {
    border-top: none; border-left: 1px solid var(--c-border);
    padding: 28px 28px 32px;
  }
}

/* Coop meta chips */
.agx-coop-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.agx-coop-meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 700; color: var(--c-muted);
  padding: 5px 10px; background: var(--c-bg);
  border-radius: 20px; border: 1px solid var(--c-border);
}
.agx-coop-meta-chip svg { flex-shrink: 0; color: var(--c-primary); }

/* Code tiles */
.agx-code-block { }
.agx-code-tiles {
  display: flex; gap: 8px; margin: 10px 0;
}
.agx-code-tile {
  width: 46px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: var(--c-primary);
  background: var(--c-bg);
  border: 2px solid rgba(99,168,0,.35);
  border-radius: var(--c-radius-sm);
  letter-spacing: 0;
  transition: border-color .15s, background .15s;
}
.agx-code-tile:hover { border-color: var(--c-primary); background: rgba(99,168,0,.08); }
.agx-code-hint {
  font-size: .78rem; color: var(--c-muted2); line-height: 1.5; margin-top: 8px;
}

/* ── ═══════════════════════════════════════════════════════════════ ── */
/* ──  SHOP / BOUTIQUE  (redesign 2026)                               ── */
/* ── ═══════════════════════════════════════════════════════════════ ── */

.agx-shop-wrap {
  background: var(--c-surface);
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: var(--c-shadow);
}
@media (min-width: 700px) {
  .agx-shop-wrap { margin: 16px var(--c-gutter); }
}

/* ── Hero banner ────────────────────────────────────────────────────── */
.agx-shop-hero {
  position: relative;
  background: linear-gradient(160deg, #071a07 0%, #0d2e0d 45%, #0a1f0a 100%);
  padding: 28px 20px 24px;
  overflow: hidden;
}
.agx-shop-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%,   rgba(99,168,0,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 100%,  rgba(63,122,0,.15) 0%, transparent 50%);
  pointer-events: none;
}
/* Subtle grid texture */
.agx-shop-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(99,168,0,.04) 39px, rgba(99,168,0,.04) 40px),
                    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(99,168,0,.04) 39px, rgba(99,168,0,.04) 40px);
  pointer-events: none;
}

.agx-shop-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
}

/* Avatar ring */
.agx-shop-avatar-ring {
  flex-shrink: 0; position: relative;
  width: 76px; height: 76px;
}
.agx-shop-avatar-ring::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: conic-gradient(#63a800, #8fd600, #3a6e00, #63a800);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agx-shop-avatar-ring::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 50%;
  background: #0a1f0a;
}
.agx-shop-avatar,
.agx-shop-avatar-ph {
  position: relative; z-index: 1;
  width: 76px; height: 76px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0a1f0a;
}
.agx-shop-avatar-ph {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; font-size: 2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

.agx-shop-hero-meta  { flex: 1; min-width: 0; }
.agx-shop-hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
  color: #a8e020; margin-bottom: 5px;
}
.agx-shop-hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #a8e020;
  box-shadow: 0 0 0 3px rgba(168,224,32,.2);
}
.agx-shop-hero-name {
  font-size: clamp(1.25rem, 5vw, 1.55rem); font-weight: 900;
  letter-spacing: -.03em; color: #fff; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.agx-shop-hero-count {
  font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.45); margin-top: 4px;
}

/* Primary CTA */
.agx-btn-shop-open {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; margin-top: 20px; padding: 15px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8fd600 0%, #63a800 45%, #3a6e00 100%);
  color: #fff; font-size: .95rem; font-weight: 900; letter-spacing: -.02em;
  box-shadow: 0 10px 30px -8px rgba(99,168,0,.6), 0 1px 0 rgba(255,255,255,.2) inset;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .14s, box-shadow .14s;
  text-align: left;
}
.agx-btn-shop-open:hover  { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(99,168,0,.7); }
.agx-btn-shop-open:active { transform: scale(.97); }
.agx-btn-shop-open__icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
}
.agx-btn-shop-open__txt  { flex: 1; }
.agx-btn-shop-open__t1   { display: block; font-size: .97rem; font-weight: 900; }
.agx-btn-shop-open__t2   { display: block; font-size: .7rem; font-weight: 600; opacity: .75; margin-top: 1px; }

/* Store pills inside hero */
.agx-shop-hero-stores {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 12px;
}
.agx-shop-hero-store {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  color: #fff; text-decoration: none;
  transition: background .14s, border-color .14s, transform .12s;
}
.agx-shop-hero-store:hover {
  background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.agx-shop-hero-store-text    { display: flex; flex-direction: column; }
.agx-shop-hero-store-sup     { font-size: .58rem; font-weight: 600; opacity: .5; letter-spacing: .04em; line-height: 1; margin-bottom: 2px; }
.agx-shop-hero-store-name    { font-size: .78rem; font-weight: 800; line-height: 1.2; }

/* ── Listings grid ──────────────────────────────────────────────────── */
.agx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
}
@media (min-width: 480px) { .agx-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .agx-grid { grid-template-columns: repeat(4, 1fr); } }

.agx-grid-item {
  background: var(--c-surface); display: block;
  transition: opacity .15s, transform .15s;
}
.agx-grid-item:hover { opacity: .88; transform: scale(.98); }
.agx-grid-img {
  aspect-ratio: 1; overflow: hidden; background: var(--c-bg);
}
.agx-grid-img img { width: 100%; height: 100%; object-fit: cover; }
.agx-grid-img-ph {
  display: flex; align-items: center; justify-content: center; background: #f0f3ef;
}
.agx-grid-info { padding: 8px 10px 10px; }
.agx-grid-title { font-size: .8rem; font-weight: 700; color: var(--c-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agx-grid-price { font-size: .78rem; font-weight: 800; color: var(--c-primary); margin-top: 2px; }
.agx-grid-city  { font-size: .72rem; font-weight: 600; color: var(--c-muted2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.agx-empty {
  padding: 48px 20px; text-align: center;
  color: var(--c-muted); font-size: .9rem;
}

/* Bottom nav strip */
.agx-shop-footer-strip {
  padding: 16px 20px;
  border-top: 1px solid var(--c-border);
  background: #f8faf6;
}

/* ── Error state ─────────────────────────────────────────────────── */
.agx-error-wrap {
  margin: 24px var(--c-gutter);
  background: var(--c-surface); border-radius: var(--c-radius);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--c-shadow);
}
.agx-error-icon { margin-bottom: 14px; }
.agx-error-msg  { font-size: 1rem; font-weight: 700; color: #b45309; margin-bottom: 8px; }
.agx-error-sub  { font-size: .875rem; color: var(--c-muted); margin-bottom: 20px; }

/* ── Fixed bottom bar (mobile only) ─────────────────────────────── */
.agx-fixed-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(252,253,252,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0,43,2,0.08);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px -8px rgba(0,43,2,0.12);
}
@media (max-width: 699px) { .agx-fixed-bar { display: block; } }

.agx-fixed-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: var(--c-max); margin: 0 auto;
}
.agx-fixed-logo-wrap {
  width: 40px; height: 40px; border-radius: 11px;
  background: #fff; border: 1px solid rgba(0,43,2,0.1);
  box-shadow: 0 2px 8px -2px rgba(0,43,2,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.agx-fixed-logo  { width: 27px; height: 27px; object-fit: contain; display: block; }
.agx-fixed-text  { flex: 1; min-width: 0; }
.agx-fixed-text strong { display: block; font-size: .82rem; font-weight: 900; color: var(--c-dark); line-height: 1.2; letter-spacing: -.02em; }
.agx-fixed-text span   { display: block; font-size: .7rem; font-weight: 500; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.agx-fixed-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #7cc800, var(--c-primary), #3d7200);
  color: #fff;
  font-size: .81rem; font-weight: 900; letter-spacing: -.01em;
  padding: 10px 16px; border-radius: 13px; flex-shrink: 0;
  box-shadow: 0 6px 20px -6px rgba(99,168,0,.55);
  transition: transform .12s, box-shadow .12s;
}
.agx-fixed-cta:hover  { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(99,168,0,.6); }
.agx-fixed-cta:active { transform: scale(.96); }

/* ── Back / nav links ─────────────────────────────────────────────── */
.agx-nav-row {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 20px 0 4px; flex-wrap: wrap;
}
.agx-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--c-muted);
  padding: 6px 13px; border-radius: 20px;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.agx-nav-link:hover {
  color: var(--c-primary); background: rgba(99,168,0,.07);
  border-color: rgba(99,168,0,.18);
}
.agx-nav-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(0,43,2,.2); flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.agx-footer {
  text-align: center; padding: 20px var(--c-gutter);
  font-size: .73rem; color: var(--c-muted2);
  border-top: 1px solid var(--c-border); margin-top: 12px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
}
.agx-footer a { color: var(--c-primary); font-weight: 700; transition: opacity .15s; }
.agx-footer a:hover { opacity: .7; }
.agx-footer-sep { opacity: .4; }
.agx-footer-brand { font-weight: 800; color: var(--c-dark); font-size: .75rem; }

/* ── Fade-in ────────────────────────────────────────────────────────── */
.agx-fadein { animation: fadein .3s ease both; }
@keyframes fadein { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ══════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL v2  (inspiré marketplace — charte verte AgriForeX)
   ══════════════════════════════════════════════════════════════════════ */
html[data-share-page="listing"] .agx-page-wrap,
html[data-share-page="shop"]    .agx-page-wrap { max-width: 1180px; padding-bottom: 96px; }

.pl-wrap { padding: 16px var(--c-gutter) 8px; }
@media (min-width: 700px) { .pl-wrap { padding: 22px 24px 8px; } }

/* Breadcrumb */
.pl-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--c-muted); margin-bottom: 16px;
}
.pl-crumb a { color: var(--c-muted); display: inline-flex; align-items: center; gap: 4px; transition: color .15s; }
.pl-crumb a:hover { color: var(--c-primary); }
.pl-crumb svg { opacity: .5; flex-shrink: 0; }
.pl-crumb__cur { color: var(--c-dark); font-weight: 600; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Grid 2 colonnes desktop */
.pl-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) {
  .pl-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 34px; align-items: start; }
}

/* Galerie */
@media (min-width: 1000px) { .pl-gallery { position: sticky; top: 76px; } }
.pl-gallery__row { display: flex; gap: 10px; }
.pl-thumbs {
  display: flex; flex-direction: column; gap: 8px;
  width: 62px; flex-shrink: 0; max-height: 520px; overflow-y: auto;
  scrollbar-width: none;
}
.pl-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .pl-thumbs { width: 76px; } }
.pl-thumb {
  aspect-ratio: 1; width: 100%; border-radius: 12px;
  border: 2px solid transparent; overflow: hidden; opacity: .68;
  background: #f2f5f0; transition: border-color .15s, opacity .15s; padding: 0;
}
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb.active, .pl-thumb:hover { border-color: var(--c-primary); opacity: 1; }
.pl-main {
  position: relative; flex: 1; min-width: 0; aspect-ratio: 1;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--c-border);
  background: #f2f5f0;
}
.pl-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.pl-main img.agx-gallery-zoomable,
.pl-thumb img { cursor: zoom-in; }
.pl-seller__name { display: inline-flex; align-items: center; gap: 5px; font-size: .98rem; font-weight: 800; color: var(--c-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pl-seller__name .agx-verified-badge { flex-shrink: 0; color: #2e8bff; }
.pl-seller__name svg:not(.agx-verified-badge) { color: #2e8bff; flex-shrink: 0; }
.pl-main__off {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--c-flash); color: #fff; font-weight: 800; font-size: .78rem;
  padding: 4px 9px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(224,82,28,.5);
}
.pl-main__count {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.pl-noimg {
  aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--c-border);
  background: linear-gradient(135deg,#eaf3e4,#f2f5f0); display: grid; place-items: center;
}

/* Colonne infos */
.pl-info { display: flex; flex-direction: column; gap: 14px; }
.pl-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-badge { font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 8px; letter-spacing: .01em; }
.pl-badge--type { background: rgba(99,168,0,.14); color: #3d7000; }
.pl-badge--cond { background: var(--c-bg); color: var(--c-muted); }
.pl-badge--sold { background: rgba(180,83,9,.14); color: #9a4500; }
.pl-badge--neg  { background: rgba(99,168,0,.2);  color: #396200; }
.pl-badge--verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(25,118,210,.12);
  color: #1976d2;
}
.pl-badge--verified .agx-verified-badge { color: #2e8bff; }
.pl-title { font-size: clamp(1.35rem,3.4vw,1.9rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.18; color: var(--c-dark); }
.pl-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .84rem; color: var(--c-muted); }
.pl-metrics span { display: inline-flex; align-items: center; gap: 5px; }
.pl-stars { display: inline-flex; align-items: center; gap: 1px; color: var(--c-star); }
.pl-stars .off { color: #dbe4d8; }
.pl-rating { font-weight: 700; color: var(--c-dark); }

/* Carte prix */
.pl-price-card { border: 1px solid var(--c-border); border-radius: 16px; background: #fff; padding: 16px 18px; box-shadow: 0 2px 10px -4px rgba(0,43,2,.08); }
.pl-price-sub { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pl-strike { font-size: .9rem; font-weight: 700; color: var(--c-muted); text-decoration: line-through; }
.pl-off-badge { font-size: .72rem; font-weight: 800; color: var(--c-flash); background: rgba(224,82,28,.12); padding: 2px 8px; border-radius: 6px; }
.pl-price { font-size: clamp(1.6rem,5vw,2.1rem); font-weight: 900; color: var(--c-accent); letter-spacing: -.02em; line-height: 1.1; }
.pl-price.is-sold { color: var(--c-muted); text-decoration: line-through; font-size: 1.3rem; }
.pl-stock { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: #2d7d1a; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-success, #22a531); }

/* Carte vendeur */
.pl-seller { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--c-border); background: linear-gradient(90deg,#ffffff,#f4f8f1); box-shadow: 0 2px 10px -4px rgba(0,43,2,.08); transition: border-color .15s, box-shadow .15s, transform .15s; text-decoration: none; }
.pl-seller:hover { border-color: rgba(99,168,0,.3); box-shadow: 0 8px 22px -8px rgba(99,168,0,.2); transform: translateY(-1px); }
.pl-seller__logo { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,43,2,.06); }
.pl-seller__logo-ph { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; background: linear-gradient(135deg,var(--c-primary),var(--c-accent)); color: #fff; font-size: 1.4rem; font-weight: 900; display: grid; place-items: center; }
.pl-seller__meta { flex: 1; min-width: 0; }
.pl-seller__label { display: block; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--c-muted2); margin-bottom: 2px; }
.pl-seller__go { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; color: var(--c-primary); background: rgba(99,168,0,.1); border: 1px solid rgba(99,168,0,.22); padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.pl-seller__go:hover { background: var(--c-primary); color: #fff; }

/* Actions */
.pl-actions { display: flex; gap: 10px; margin-top: 2px; }
.pl-cta {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 20px; border-radius: 14px; font-size: .95rem; font-weight: 900; color: #fff; letter-spacing: -.015em;
  background: var(--c-grad);
  box-shadow: 0 10px 28px -8px rgba(99,168,0,.55), 0 1px 0 rgba(255,255,255,.2) inset;
  transition: transform .14s, box-shadow .14s;
}
.pl-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(99,168,0,.62); }
.pl-cta:active { transform: scale(.98); }
.pl-icon-btn {
  width: 52px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); background: #fff; border-radius: 14px; color: var(--c-muted);
  transition: border-color .15s, color .15s, background .15s;
}
.pl-icon-btn:hover { border-color: rgba(99,168,0,.35); color: var(--c-primary); background: rgba(99,168,0,.05); }

/* Sections carte */
.pl-section { border: 1px solid var(--c-border); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 2px 10px -4px rgba(0,43,2,.08); margin-top: 18px; }
.pl-section__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--c-border); background: linear-gradient(90deg, rgba(99,168,0,.06), transparent); }
.pl-section__ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(99,168,0,.12); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; }
.pl-section__title { font-size: 1rem; font-weight: 800; color: var(--c-dark); }
.pl-section__body { padding: 16px; font-size: .94rem; line-height: 1.7; color: #1e2e1f; white-space: pre-wrap; }

/* Encart "ouvrir dans l'app" */
.pl-appnote { margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(99,168,0,.16); background: linear-gradient(135deg, rgba(99,168,0,.06), rgba(0,53,1,.03)); }
.pl-appnote__txt { font-size: .86rem; font-weight: 600; color: #1a3a08; line-height: 1.55; margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════════════════
   BOUTIQUE v2  (inspiré marketplace — charte verte AgriForeX)
   ══════════════════════════════════════════════════════════════════════ */
.ps-wrap { padding: 16px var(--c-gutter) 8px; }
@media (min-width: 700px) { .ps-wrap { padding: 22px 24px 8px; } }

.ps-hero { border: 1px solid var(--c-border); border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--c-shadow); }
.ps-cover { position: relative; height: 172px; background: linear-gradient(135deg,#0a2e0c 0%,#14520a 55%,#63a800 120%); }
@media (min-width: 640px) { .ps-cover { height: 236px; } }
.ps-cover img { width: 100%; height: 100%; object-fit: cover; }
.ps-cover__ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,18,0,.72), rgba(0,18,0,.15) 55%, transparent); }
.ps-cover__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.05) 39px, rgba(255,255,255,.05) 40px),
                    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.05) 39px, rgba(255,255,255,.05) 40px); }
.ps-hero-body { position: relative; padding: 0 16px 20px; }
@media (min-width: 640px) { .ps-hero-body { padding: 0 26px 24px; } }
.ps-avatar, .ps-avatar-ph {
  width: 88px; height: 88px; border-radius: 22px; border: 4px solid #fff;
  margin-top: -52px; object-fit: cover; background: #fff;
  box-shadow: 0 18px 40px -16px rgba(0,43,2,.5); position: relative;
}
@media (min-width: 640px) { .ps-avatar, .ps-avatar-ph { width: 112px; height: 112px; margin-top: -60px; } }
.ps-avatar-ph { background: linear-gradient(135deg,var(--c-primary),var(--c-accent)); color: #fff; font-size: 2.3rem; font-weight: 900; display: grid; place-items: center; }
.ps-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ps-name { font-size: clamp(1.4rem,4vw,1.95rem); font-weight: 900; letter-spacing: -.03em; color: var(--c-dark); line-height: 1.1; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ps-name .agx-verified-badge { color: #2e8bff; flex-shrink: 0; }
.ps-name-row svg { color: #2e8bff; flex-shrink: 0; }
.ps-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: .85rem; color: var(--c-muted); }
.ps-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ps-meta svg { color: var(--c-primary); flex-shrink: 0; }
.ps-vbadge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; color: #2d6a04; background: rgba(99,168,0,.12); padding: 3px 10px; border-radius: 999px; }

.ps-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .ps-stats { grid-template-columns: repeat(4,1fr); } }
.ps-stat { border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-bg); padding: 13px; }
.ps-stat__ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(99,168,0,.12); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 9px; }
.ps-stat__val { font-size: 1.2rem; font-weight: 900; color: var(--c-dark); line-height: 1; }
.ps-stat__lbl { font-size: .7rem; font-weight: 600; color: var(--c-muted2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ps-cta-box { margin-top: 18px; }

/* Titre de section produits */
.ps-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 2px 14px; }
.ps-sec-title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em; color: var(--c-dark); }
.ps-sec-title svg { color: var(--c-primary); }
.ps-sec-count { font-size: .8rem; font-weight: 700; color: var(--c-muted2); }

/* Grille produits boutique */
.ps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 640px) { .ps-grid { grid-template-columns: repeat(3,1fr); gap: 14px; } }
@media (min-width: 1000px) { .ps-grid { grid-template-columns: repeat(4,1fr); } }
.ps-card { display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 2px 10px -5px rgba(0,43,2,.12); transition: transform .16s, box-shadow .16s, border-color .16s; text-decoration: none; }
.ps-card:hover { transform: translateY(-3px); border-color: rgba(99,168,0,.35); box-shadow: 0 16px 34px -16px rgba(0,43,2,.3); }
.ps-card__media { position: relative; aspect-ratio: 1; background: var(--c-bg); overflow: hidden; }
.ps-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ps-card:hover .ps-card__media img { transform: scale(1.04); }
.ps-card__media-ph { width: 100%; height: 100%; display: grid; place-items: center; background: #eef3ea; }
.ps-card__body { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 3px; }
.ps-card__title { font-size: .86rem; font-weight: 700; color: var(--c-dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2em; }
.ps-card__price { font-size: .95rem; font-weight: 900; color: var(--c-accent); letter-spacing: -.01em; }
.ps-card__city { font-size: .74rem; font-weight: 600; color: var(--c-muted2); display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Lightbox plein écran (détail produit) */
.agx-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 56px;
}
.agx-lightbox[hidden] { display: none !important; }
body.agx-lightbox-open { overflow: hidden; }
.agx-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  user-select: none;
}
.agx-lightbox__close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 1.75rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.agx-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.agx-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.agx-lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.agx-lightbox__prev { left: 12px; }
.agx-lightbox__next { right: 12px; }
.agx-lightbox__counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; font-weight: 700;
  background: rgba(0, 0, 0, 0.35); padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 640px) {
  .agx-lightbox { padding: 56px 12px 40px; }
  .agx-lightbox__nav { width: 40px; height: 40px; }
  .agx-lightbox__prev { left: 4px; }
  .agx-lightbox__next { right: 4px; }
}

/* Vidéo annonce (SEO + lecteur visible) */
.pl-video__wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #0a1a0a;
  aspect-ratio: 16 / 9;
}
.pl-video__player,
.pl-video__embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}
