/* ════════════════════════════════════════════════
   ideaexpress-vue — Design System
   ════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────── */
:root {
  --c-primary:    #FF5151;
  --c-primary-d:  #e03e3e;
  --c-accent:     #00BAFF;
  --c-success:    #10b981;
  --c-warning:    #f59e0b;
  --c-danger:     #ef4444;
  --c-text:       #1a1a2e;
  --c-muted:      #6b7280;
  --c-border:     #e5e7eb;
  --c-bg:         #f8f9fa;
  --c-surface:    #ffffff;

  --nav-h:        64px;
  --bn-h:         64px;   /* bottom nav height */
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.14);
  --transition:   .2s cubic-bezier(.4,0,.2,1);

  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset minimal ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100dvh;
  padding-top: var(--nav-h);
  padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Spinner ─────────────────────────────────── */
#vx-spinner {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface);
  transition: opacity .3s, visibility .3s;
}
#vx-spinner.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.vx-spin-ring {
  width: 44px; height: 44px;
  border: 4px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: vx-spin .8s linear infinite;
}
@keyframes vx-spin { to { transform: rotate(360deg); } }

/* ── Navbar ──────────────────────────────────── */
.vx-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--transition);
}
.vx-navbar.scrolled { box-shadow: var(--shadow); }
.vx-nav-inner {
  display: flex; align-items: center; gap: 12px;
  height: 100%; padding: 0 16px; max-width: 1280px; margin: 0 auto;
}
.vx-logo img { height: 36px; width: auto; }
.vx-nav-title { font-weight: 600; font-size: 16px; }

/* Search in navbar */
.vx-searchbar {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--c-bg); border: 1.5px solid var(--c-border);
  border-radius: 40px; padding: 0 14px; height: 40px;
  transition: border-color var(--transition);
}
.vx-searchbar:focus-within { border-color: var(--c-primary); }
.vx-search-ico { color: var(--c-muted); font-size: 13px; }
.vx-searchbar input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 14px; color: var(--c-text);
}

/* EUR rate badge in navbar */
.vx-eur-rate {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  align-items: center;
  background: var(--c-bg); border: 1.5px solid var(--c-border);
  border-radius: 40px; margin-top: 10px; padding: 7px 15px 7px;
  font-size: 13px; font-weight: 600; color: var(--c-muted);
  white-space: nowrap; flex-shrink: 0;
}
.vx-eur-rate strong { color: var(--c-text); margin-left: 4px; }

@media (max-width: 768px) {
  .vx-eur-rate strong { font-size: 12px; margin-left: 3px; }
}

.vx-nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.vx-nav-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--c-muted);
  transition: background var(--transition), color var(--transition);
}
.vx-nav-icon:hover, .vx-nav-icon.active { background: #fff0f0; color: var(--c-primary); }

/* ── Bottom nav ──────────────────────────────── */
.vx-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--bn-h);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}
.vx-bn-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; font-size: 10px; font-weight: 500;
  color: var(--c-muted); padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.vx-bn-item i { font-size: 19px; }
.vx-bn-item.active, .vx-bn-item:hover { color: var(--c-primary); }

/* ── Main layout ─────────────────────────────── */
.vx-main { min-height: calc(100dvh - var(--nav-h) - var(--bn-h)); }
.vx-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.vx-section { padding: 40px 0; }

/* ── Buttons ─────────────────────────────────── */
.vx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 40px; font-weight: 600; font-size: 14px;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.vx-btn-primary {
  background: var(--c-primary); color: #fff;
}
.vx-btn-primary:hover { background: var(--c-primary-d); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,81,81,.35); }
.vx-btn-primary:active { transform: translateY(0); }

.vx-btn-ghost {
  background: transparent; color: var(--c-muted);
  border-color: var(--c-border);
}
.vx-btn-ghost:hover { border-color: var(--c-muted); color: var(--c-text); }

.vx-btn-full { width: 100%; }
.vx-btn-lg { padding: 14px 28px; font-size: 16px; }
.vx-btn:disabled { opacity: .5; pointer-events: none; }

/* ── Forms ───────────────────────────────────── */
.vx-field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.vx-field label { font-size: 13px; font-weight: 600; color: var(--c-muted); letter-spacing: .02em; }
.vx-input, .vx-select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border); background: var(--c-surface);
  font-size: 15px; color: var(--c-text); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vx-input:focus, .vx-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(255,81,81,.12);
}
.vx-input-icon { position: relative; }
.vx-input-icon .vx-input { padding-left: 40px; }
.vx-input-icon i {
  position: absolute;
  left: 13px;
  bottom: 15px;
  color: var(--c-muted);
  font-size: 14px;
  pointer-events: none;
}

/* ── Alerts ──────────────────────────────────── */
.vx-alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.vx-alert-success { background: #d1fae5; color: #065f46; }
.vx-alert-error   { background: #fee2e2; color: #991b1b; }
.vx-alert-info    { background: #dbeafe; color: #1e40af; }
.vx-alert-warning { background: #fef3c7; color: #92400e; }

/* ── Cards ───────────────────────────────────── */
.vx-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.vx-card-body { padding: 20px; }

/* ── Skeleton ────────────────────────────────── */
.vx-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: vx-shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes vx-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.vx-skel-card { border-radius: var(--radius); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-sm); }
.vx-skel-img  { width:100%; aspect-ratio:1; }
.vx-skel-body { padding:12px; display:flex; flex-direction:column; gap:8px; }
.vx-skel-line { height:13px; border-radius:4px; }
.vx-skel-line.short { width:55%; }

/* ── Lazy images ─────────────────────────────── */
img.vx-lazy { opacity: 0; transition: opacity .4s; }
img.vx-lazy.loaded { opacity: 1; }

/* ── Product grid ────────────────────────────── */
.vx-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.vx-prod-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.vx-prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vx-prod-img-wrap { aspect-ratio: 1; overflow: hidden; position: relative; }
.vx-prod-img-wrap img { width:100%; height:100%; object-fit:cover; transition: transform .35s; }
.vx-prod-card:hover .vx-prod-img-wrap img { transform: scale(1.04); }
.vx-prod-badge {
  position: absolute; top:8px; left:8px;
  background: var(--c-primary); color:#fff;
  font-size:11px; font-weight:700; padding:2px 8px; border-radius:40px;
}
.vx-prod-info { padding: 10px 12px 14px; }
.vx-prod-title {
  font-size: 13px; font-weight: 500; color: var(--c-text);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.vx-prod-price { font-size: 13px; font-weight: 700; color: var(--c-success); white-space: nowrap; }
.vx-prod-old   { font-size: 11px; color: var(--c-muted); text-decoration: line-through; margin-right: 4px; white-space: nowrap; }

@media (max-width: 480px) {
  .vx-prod-price { font-size: 12px; }
  .vx-prod-old   { font-size: 10px; }
}
.vx-prod-orders { font-size: 11px; color: var(--c-muted); margin-top:2px; }

/* ── Pagination ──────────────────────────────── */
.vx-pagination {
  display: flex; gap: 6px; justify-content: center; align-items: center;
  flex-wrap: wrap; padding: 24px 0;
}
.vx-pag-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--c-muted); background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  transition: all var(--transition);
}
.vx-pag-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.vx-pag-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.vx-pag-info { font-size: 13px; color: var(--c-muted); text-align:center; }

/* ── Home / Auth ─────────────────────────────── */
.vx-home {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 60%, #f0f9ff 100%);
  padding: 40px 16px;
}
.vx-auth-card {
  width: 100%; max-width: 420px;
  background: var(--c-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.vx-auth-logo { display:block; height:48px; margin:0 auto 28px; }
.vx-auth-tabs {
  display: flex; background: var(--c-bg);
  border-radius: 40px; padding: 4px; margin-bottom: 28px; gap: 4px;
}
.vx-auth-tab {
  flex: 1; padding: 9px; border-radius: 40px;
  font-size: 14px; font-weight: 600; text-align: center;
  color: var(--c-muted); transition: all var(--transition); cursor: pointer;
}
.vx-auth-tab.active { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--shadow-sm); }
.vx-auth-panel { display: none; }
.vx-auth-panel.active { display: block; }
.vx-auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: var(--c-muted); }
.vx-auth-footer a { color: var(--c-primary); font-weight: 600; }

/* OAuth 2.0 */
.vx-auth-divider {
  display: flex; align-items: center; gap: 10px;
  color: #aaa; font-size: .85rem; margin: 16px 0;
}
.vx-auth-divider::before, .vx-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e0e0e0;
}
.vx-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #3c4043; border: 1px solid #dadce0;
  font-weight: 500; text-decoration: none;
}
.vx-btn-google:hover { background: #f8f8f8; border-color: #bbb; }

/* ── Account page ────────────────────────────── */
.vx-account-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #ff8a80 100%);
  color: #fff; padding: 32px 16px 80px; text-align: center;
}
.vx-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.25); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.6);
}
.vx-account-name { font-size: 20px; font-weight: 700; }
.vx-account-login { font-size: 13px; opacity: .8; margin-top: 2px; }

.vx-account-body { margin-top: -48px; padding: 0 16px 32px; max-width: 900px; margin-left: auto; margin-right: auto; }
.vx-account-tabs {
  display: flex; gap: 0; background: var(--c-surface);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 2px solid var(--c-border); overflow: hidden;
}
.vx-acc-tab {
  flex: 1; padding: 14px 8px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--c-muted);
  cursor: pointer; transition: color var(--transition), border-color var(--transition);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.vx-acc-tab.active { color: var(--c-primary); border-color: var(--c-primary); }
.vx-acc-panel { display: none; background: var(--c-surface); border-radius: 0 0 var(--radius) var(--radius); padding: 24px; border: 1px solid var(--c-border); border-top: none; }
.vx-acc-panel.active { display: block; }

/* Orders table */
.vx-orders-table { width:100%; border-collapse:collapse; font-size:13px; }
.vx-orders-table td:nth-child(2) { min-width: 200px; }
.vx-orders-table th {
  background: var(--c-primary); color:#fff;
  padding:10px 12px; text-align:left; font-weight:600;
}
.vx-orders-table td { padding:10px 12px; border-bottom:1px solid var(--c-border); vertical-align:top; }
.vx-orders-table tr:last-child td { border-bottom:none; }
.vx-orders-table tr:hover td { background:#fafafa; }
.vx-status { display:inline-block; padding:3px 10px; border-radius:40px; font-size:12px; font-weight:600; white-space:nowrap; }
.vx-status-1 { background:#fef3c7; color:#92400e; }
.vx-status-2 { background:#dbeafe; color:#1e40af; }
.vx-status-3 { background:#d1fae5; color:#065f46; }
.vx-status-4 { background:#fee2e2; color:#991b1b; }
.vx-status-5 { background:#fde8d8; color:#c2410c; }
.vx-status-6 { background:#ede9fe; color:#5b21b6; }
.vx-track-link { color: var(--c-accent); font-weight:600; font-size:12px; }

/* Profile form grid */
.vx-form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* ── Boutique hero ───────────────────────────── */
.vx-boutique-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff; text-align: center;
  padding: 48px 16px 36px;
}
.vx-hero-title { font-size: clamp(22px, 5vw, 36px); font-weight: 700; margin-bottom: 8px; }
.vx-hero-sub   { color: rgba(255,255,255,.6); font-size:14px; margin-bottom:28px; }
.vx-hero-search {
  display: flex; max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 40px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.vx-hero-search input {
  flex:1; border:none; outline:none; padding:14px 20px; font-size:15px; color:var(--c-text);
}
.vx-hero-search button {
  padding: 14px 22px; background: var(--c-primary); color:#fff; font-weight:700; font-size:15px;
  transition: background var(--transition);
}
.vx-hero-search button:hover { background: var(--c-primary-d); }
.vx-hero-hint   { color: rgba(255,255,255,.55); font-size:13px; margin-top:12px; }

/* ── Trustpilot section ──────────────────────── */
.vx-tp-section { background: var(--c-bg); padding: 60px 0; }
.vx-tp-header  { text-align:center; margin-bottom:36px; }
.vx-tp-score   { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:8px; }
.vx-tp-score-val { font-size:20px; font-weight:700; }
.vx-tp-count   { font-size:14px; color:var(--c-muted); }
.vx-tp-grid    { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.vx-tp-card    { background:var(--c-surface); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-sm); border:1px solid var(--c-border); display:flex; flex-direction:column; gap:10px; }
.vx-tp-author  { display:flex; align-items:center; gap:10px; margin-top:auto; border-top:1px solid var(--c-border); padding-top:12px; }
.vx-tp-avatar  { width:34px; height:34px; border-radius:50%; background:var(--c-success); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; overflow:hidden; }
.vx-tp-avatar img { width:100%; height:100%; object-fit:cover; }
.vx-tp-name    { font-size:13px; font-weight:600; }
.vx-tp-date    { font-size:11px; color:var(--c-muted); }

/* ── WhatsApp button ─────────────────────────── */
.vx-whatsapp {
  position: fixed; bottom: calc(var(--bn-h) + 16px); right: 16px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.vx-whatsapp:hover { transform: scale(1.1); }
.vx-whatsapp img { width:100%; height:100%; border-radius:50%; }

/* ── PWA Banner ──────────────────────────────── */
.vx-pwa-banner {
  position: fixed; bottom: var(--bn-h); left:0; right:0; z-index:999;
  background: #1a1a2e; color:#fff; padding:12px 20px;
  display: flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap: wrap;
}
body.vx-page-home .vx-pwa-banner { bottom: 0; }
.vx-pwa-banner p { font-size:14px; }
.vx-pwa-banner > div { display:flex; gap:8px; }

/* ── Footer ──────────────────────────────────── */
.vx-footer { background: #1a1a2e; color:rgba(255,255,255,.5); margin-top:60px; }
.vx-footer-inner { max-width:1280px; margin:0 auto; padding:24px 16px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.vx-footer-links { display:flex; gap:16px; font-size:13px; }
.vx-footer-links a:hover { color:#fff; }
.vx-footer p { font-size:13px; }

/* ── Page paiement ──────────────────────────────────── */
.vxpay-wrap        { max-width: 560px; margin: 0 auto; padding: 40px 16px 60px; }
.vxpay-card        { background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow); padding: 36px 32px; text-align: center; }
.vxpay-icon        { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px; }
.vxpay-icon-success { background: #d1fae5; color: var(--c-success); }
.vxpay-icon-fail    { background: #fee2e2; color: var(--c-danger); }
.vxpay-icon-info    { background: #dbeafe; color: var(--c-accent); }
.vxpay-title       { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.vxpay-sub         { font-size: 14px; color: var(--c-muted); margin-bottom: 24px; }

.vxpay-rip         { display: flex; align-items: center; gap: 10px; background: var(--c-bg); border: 2px dashed var(--c-border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 24px; }
.vxpay-rip-label   { font-size: 12px; font-weight: 700; color: var(--c-muted); letter-spacing: .05em; white-space: nowrap; }
.vxpay-rip-num     { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: .08em; color: var(--c-text); font-family: monospace; text-align: left; }
.vxpay-copy-btn    { padding: 6px 10px; border-radius: 6px; background: var(--c-primary); color: #fff; font-size: 14px; transition: background var(--transition); cursor: pointer; border: none; }
.vxpay-copy-btn:hover { background: var(--c-primary-d); }

.vxpay-recap       { background: var(--c-bg); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 24px; text-align: left; }
.vxpay-recap-row   { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.vxpay-recap-row:last-child { border-bottom: none; }
.vxpay-recap-row span { color: var(--c-muted); white-space: nowrap; flex-shrink: 0; }
.vxpay-recap-row strong { text-align: right; }
.vxpay-recap-total { padding-top: 12px; margin-top: 4px; }
.vxpay-recap-total span  { color: var(--c-text); }
.vxpay-recap-total strong { font-size: 20px; color: var(--c-success); }

.vxpay-upload-zone { position: relative; border: 2px dashed var(--c-border); border-radius: var(--radius); padding: 32px 16px; cursor: pointer; transition: border-color var(--transition), background var(--transition); background: var(--c-bg); }
.vxpay-upload-zone:hover, .vxpay-upload-zone.drag-over { border-color: var(--c-primary); background: #fff5f5; }
.vxpay-upload-zone p  { font-size: 14px; color: var(--c-muted); margin: 0; }
.vxpay-upload-zone small { font-size: 12px; }

.vxpay-actions     { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

@media (max-width: 768px) {
  .vxpay-card  { padding: 24px 16px; }
  .vxpay-rip-num { font-size: 14px; letter-spacing: .04em; }
}
.vxp-page-hero {
  min-height: 180px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px;
  position: relative;
}
.vxp-page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}
.vxp-page-hero-inner { position: relative; z-index: 1; color: #fff; }
.vxp-page-subtitle   { font-size: 14px; opacity: .7; margin-bottom: 8px; letter-spacing: .05em; text-transform: uppercase; }
.vxp-page-title      { font-size: clamp(22px, 5vw, 40px); font-weight: 700; line-height: 1.2; }

.vxp-page-body  { padding: 48px 0 60px; max-width: 860px; }
.vxp-page-text  { font-size: 15px; line-height: 1.85; color: var(--c-text); }
.vxp-page-text h1, .vxp-page-text h2, .vxp-page-text h3 { font-weight: 700; margin: 28px 0 12px; }
.vxp-page-text h2 { font-size: 20px; }
.vxp-page-text h3 { font-size: 17px; }
.vxp-page-text p  { margin-bottom: 14px; }
.vxp-page-text ul, .vxp-page-text ol { padding-left: 24px; margin-bottom: 14px; }
.vxp-page-text li { margin-bottom: 6px; }
.vxp-page-text a  { color: var(--c-primary); text-decoration: underline; }
.vxp-page-text strong { font-weight: 700; }
.vxp-page-text hr { border: none; border-top: 1px solid var(--c-border); margin: 28px 0; }
.vxp-page-back  { margin-top: 40px; }
.vxp-section    { padding: 32px 0 24px; }
.vxp-grid       { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }

/* Galerie */
.vxp-main-img-wrap { border-radius:var(--radius); overflow:hidden; background:#fff; border:1px solid var(--c-border); aspect-ratio:1; }
.vxp-main-img-wrap img { width:100%; height:100%; object-fit:contain; transition:opacity .2s; }
.vxp-thumbs     { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.vxp-thumb      { width:60px; height:60px; object-fit:cover; border-radius:6px; border:2px solid var(--c-border); cursor:pointer; transition:border-color var(--transition); }
.vxp-thumb.active, .vxp-thumb:hover { border-color:var(--c-primary); }

/* Infos */
.vxp-title      { font-size:18px; font-weight:700; line-height:1.4; margin-bottom:16px; color:var(--c-text); }
.vxp-price-wrap { margin-bottom:16px; }
.vxp-shipping-wrap  { background:var(--c-bg); border-radius:var(--radius-sm); padding:14px; margin-bottom:16px; }
.vxp-shipping-label { font-size:13px; font-weight:600; color:var(--c-muted); margin-bottom:10px; }
.vxp-qty-wrap   { display:flex; align-items:center; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.vxp-qty-label  { font-size:14px; font-weight:600; }
.vxp-qty-ctrl   { display:flex; align-items:center; gap:0; border:1.5px solid var(--c-border); border-radius:40px; overflow:hidden; }
.vxp-qty-btn    { width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-size:13px; background:var(--c-bg); color:var(--c-muted); transition:all var(--transition); }
.vxp-qty-btn:hover { background:var(--c-primary); color:#fff; }
.vxp-qty-input  { width:48px; text-align:center; border:none; border-left:1.5px solid var(--c-border); border-right:1.5px solid var(--c-border); height:38px; font-size:16px; font-weight:700; outline:none; }
.vxp-choice-recap { display:flex; align-items:center; gap:8px; font-size:14px; margin-bottom:16px; background:#f0fdf4; padding:10px 14px; border-radius:var(--radius-sm); }
.vxp-cta-btn    { width:100%; margin-bottom:12px; }
.vxp-share-btn  { width:100%; padding:10px; border-radius:40px; font-size:14px; font-weight:600; color:var(--c-muted); border:1.5px solid var(--c-border); background:none; transition:all var(--transition); }
.vxp-share-btn:hover { border-color:var(--c-primary); color:var(--c-primary); }

/* Formulaire commande */
.vxp-order-section   { background:var(--c-bg); padding:40px 0 60px; border-top:1px solid var(--c-border); }
.vxp-order-grid      { display:grid; grid-template-columns:1fr 2fr; gap:40px; align-items:start; }
.vxp-order-img       { position:sticky; top:calc(var(--nav-h) + 16px); }
.vxp-order-img img   { width:100%; border-radius:var(--radius); border:1px solid var(--c-border); }
.vxp-order-img-title { font-size:13px; color:var(--c-muted); margin-top:10px; line-height:1.4; }
.vxp-order-title     { font-size:22px; font-weight:700; margin-bottom:24px; color:var(--c-text); }
.vxp-form-section    { background:var(--c-surface); border-radius:var(--radius); border:1px solid var(--c-border); padding:20px; margin-bottom:16px; }
.vxp-form-section-title { font-size:15px; font-weight:700; color:var(--c-primary); margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid var(--c-border); }
.vxp-form-row        { margin-bottom:0; }
.vxp-2col            { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.vxp-recap-line      { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--c-border); font-size:14px; }
.vxp-recap-line:last-child { border:none; }
.vxp-total-line      { display:flex; justify-content:space-between; align-items:center; padding:14px 0 0; font-size:16px; font-weight:700; }
.vxp-coupon-wrap     { padding:12px 0; }
.vxp-coupon-row      { display:flex; gap:8px; }
.vxp-coupon-row .vx-input { border-radius:40px; }
.vxp-cgv-wrap        { margin-bottom:16px; }
.vxp-checkbox-label  { display:flex; align-items:center; gap:10px; font-size:14px; cursor:pointer; }
.vxp-checkbox-label input { width:18px; height:18px; accent-color:var(--c-primary); }
.vxp-checkbox-label a { color:var(--c-primary); }

/* Paiement */
.vxp-pay-methods     { display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.vxp-pay-btn         { flex:1; min-width:130px; display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 10px; border-radius:var(--radius); border:2px solid var(--c-border); cursor:pointer; transition:all var(--transition); background:var(--c-surface); }
.vxp-pay-btn img     { height:36px; object-fit:contain; border-radius:4px; }
.vxp-pay-btn span    { font-size:12px; font-weight:600; color:var(--c-muted); }
.vxp-pay-btn.method-selected { border-color:var(--c-primary); background:#fff5f5; }
.vxp-pay-btn.method-selected span { color:var(--c-primary); }

/* Submit sticky */
.vxp-submit-btn      { border-radius:var(--radius-sm); }
.vxp-sticky-submit   { position:sticky; bottom:calc(var(--bn-h) + 8px); z-index:100; }

/* Description */
.vxp-description     { padding:48px 10px 60px; }
.vxp-desc-title      { font-size:22px; font-weight:700; margin-bottom:24px; color:var(--c-text); display:flex; align-items:center; gap:10px; }
.vxp-desc-title i    { color:var(--c-primary); }
.vxp-desc-body img   { max-width:100%; height:auto !important; margin:0 auto; }

/* Loader overlay */
.vxp-loader          { position:fixed; inset:0; background:rgba(255,255,255,.7); z-index:9000; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(2px); }

/* ── Variations produit (HTML généré par l'API) ─── */
.product-variation   { margin-bottom:14px; }
.prod_attr {
  display:inline-flex; align-items:center; justify-content:center;
  border:2px solid var(--c-border); border-radius:8px;
  padding:6px 12px; margin:4px; cursor:pointer;
  font-size:13px; font-weight:600; color:var(--c-text);
  transition:all var(--transition); background:var(--c-surface);
}
.prod_attr img       { width:52px; height:52px; object-fit:cover; border-radius:6px; }
.prod_attr:hover     { border-color:var(--c-primary); color:var(--c-primary); }
.var-checked         { border-color:var(--c-primary) !important; background:#fff5f5; color:var(--c-primary); }
.var_selected        { font-weight:700; color:var(--c-primary); }

/* ── Livraison (HTML généré par l'API) ──────────── */
.ship-info-var {
  display:flex; align-items:center; gap:10px;
  border:2px solid var(--c-border); border-radius:var(--radius-sm);
  padding:10px 14px; margin-bottom:8px; cursor:pointer;
  font-size:14px; transition:all var(--transition); background:var(--c-surface);
}
.ship-info-var:hover { border-color:var(--c-primary); }
.ship-checked        { border-color:var(--c-primary) !important; background:#fff5f5; }

/* ── Prix (HTML généré par l'API) ───────────────── */
#sale-price     { font-size:32px; font-weight:700; color:var(--c-success); }
#product-price  { font-size:22px; color:var(--c-muted); text-decoration:line-through 2px solid var(--c-danger); }
#qty-dispo      { font-weight:700; }

/* Spinners / hide helper */
.hide { display:none !important; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  body { font-size: 14px; padding-bottom: var(--bn-h); }
  .vx-bottom-nav { display: flex; }
  .vx-footer { display: none; }
  body.vx-page-home { padding-bottom: 0; }
  body.vx-page-home .vx-pwa-banner { bottom: 0; }
  body.vx-page-home .vx-navbar { display: none; }
  .vx-pwa-banner { bottom: var(--bn-h); }
  .vx-whatsapp { bottom: calc(var(--bn-h) + 12px); }
  .vx-nav-links { display: none; }
  .vx-auth-card { padding: 28px 20px; }
  .vx-form-row { grid-template-columns: 1fr; }
  .vx-orders-table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .vx-account-tabs { border-radius: var(--radius) var(--radius) 0 0; }
  .vx-acc-tab { font-size:11px; padding:12px 4px; }
  /* Produit mobile */
  .vxp-grid        { grid-template-columns:1fr; gap:0; }
  .vx-page-product body,
  body.vx-page-product { padding-top: 0; }
  .vx-page-product .vx-navbar { display: none; }
  .vx-page-product .vx-main   { padding-top: 0; min-height: 0; }
  .vx-page-product .vxp-section { padding-top: 0; }
  .vxp-main-img-wrap { border-radius: 0; border-left: none; border-right: none; border-top: none; }
  .vxp-thumbs      { padding: 0 12px; margin-top: 8px; }
  .vxp-info        { padding: 12px 10px; }
  .vxp-shipping-wrap { padding: 0; }
  .vxp-choice-recap  { padding: 0; background: none; }
  .vxp-order-grid  { grid-template-columns:1fr; }
  .vxp-order-section .vx-container { padding: 0 10px; }
  .vxp-order-img   { display:none; }
  .vxp-2col        { grid-template-columns:1fr; }
  .vxp-pay-methods { flex-direction:column; }
}
@media (min-width: 769px) {
  .vx-prod-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .vx-boutique-hero { padding: 64px 16px 48px; }
  .vx-section { padding: 60px 0; }
}
@media (min-width: 1200px) {
  .vx-prod-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Blog */
.vxb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:28px; }
.vxb-card { background:var(--c-surface); border-radius:var(--radius); border:1px solid var(--c-border); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform var(--transition),box-shadow var(--transition); display:flex; flex-direction:column; }
.vxb-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.vxb-card-img { aspect-ratio:16/9; overflow:hidden; background:var(--c-bg); }
.vxb-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.vxb-card:hover .vxb-card-img img { transform:scale(1.05); }
.vxb-card-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--c-border); font-size:48px; }
.vxb-card-body { padding:20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.vxb-card-meta { font-size:12px; color:var(--c-muted); display:flex; align-items:center; gap:6px; }
.vxb-card-title { font-size:18px; font-weight:700; color:var(--c-text); line-height:1.35; }
.vxb-card-sub { font-size:14px; font-weight:600; color:var(--c-muted); }
.vxb-card-excerpt { font-size:14px; color:var(--c-muted); line-height:1.6; flex:1; }
.vxb-card-read { font-size:13px; font-weight:700; color:var(--c-primary); margin-top:4px; display:flex; align-items:center; gap:6px; }

/* Article blog */
.vxb-article-hero { min-height:320px; }
.vxb-article-meta { display:flex; gap:20px; flex-wrap:wrap; justify-content:center; margin-top:14px; font-size:13px; opacity:.85; }
.vxb-article-meta span { display:flex; align-items:center; gap:6px; }
.vxb-article-body { max-width:860px; padding:48px 16px 60px; }
.vxb-article-img { border-radius:var(--radius); overflow:hidden; margin-bottom:36px; max-height:480px; }
.vxb-article-img img { width:100%; object-fit:cover; }
.vxb-article-text { font-size:16px; line-height:1.85; color:var(--c-text); }
.vxb-article-text h2 { font-size:22px; font-weight:700; margin:32px 0 12px; }
.vxb-article-text h3 { font-size:18px; font-weight:700; margin:24px 0 10px; }
.vxb-article-text p  { margin-bottom:16px; }
.vxb-article-text img { max-width:100%; border-radius:var(--radius-sm); margin:16px auto; }
.vxb-article-text a { color:var(--c-primary); text-decoration:underline; }
.vxb-article-text ul,.vxb-article-text ol { padding-left:24px; margin-bottom:16px; }
.vxb-article-text li { margin-bottom:6px; }
.vxb-article-text blockquote { border-left:4px solid var(--c-primary); padding:12px 20px; background:#fff5f5; border-radius:0 var(--radius-sm) var(--radius-sm) 0; margin:24px 0; font-style:italic; color:var(--c-muted); }
.vxb-article-nav { display:flex; gap:12px; margin-top:40px; flex-wrap:wrap; }

@media (max-width: 768px) {
  .vxb-grid { grid-template-columns:1fr; }
  .vxb-article-hero { min-height:220px; }
  .vxb-article-body { padding:24px 16px 48px; }
  .vxp-page-body { padding: 20px 10px 40px; }
}

/* ── Sections catégories ─────────────────────── */
.vx-cat-section {
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--c-border);
}
.vx-cat-section:last-child { border-bottom: none; }

.vx-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.vx-cat-title {
  font-size: 18px; font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; gap: 10px;
}
.vx-cat-title i { color: var(--c-primary); font-size: 16px; }

.vx-cat-more {
  font-size: 13px; font-weight: 600; color: var(--c-primary);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: gap var(--transition);
}
.vx-cat-more:hover { gap: 8px; }

.vx-cat-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vx-cat-row::-webkit-scrollbar { display: none; }

.vx-cat-card      { flex: 0 0 160px; scroll-snap-align: start; }
.vx-cat-card-skel { flex: 0 0 160px; scroll-snap-align: start; }

.vx-cat-error { font-size: 13px; color: var(--c-muted); padding: 12px 0; }

.vx-search-breadcrumb {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.vx-search-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--c-primary);
  padding: 8px 16px; border-radius: 40px;
  border: 1.5px solid var(--c-primary);
  transition: all var(--transition);
}
.vx-search-back:hover { background: #fff5f5; }
.vx-search-query { font-size: 15px; font-weight: 600; color: var(--c-text); }

@media (min-width: 769px) {
  .vx-cat-card      { flex: 0 0 200px; }
  .vx-cat-card-skel { flex: 0 0 200px; }
  .vx-cat-title     { font-size: 20px; }
  .vx-cat-section   { padding: 40px 0 12px; }
}

/* ===== LANGUAGE SELECTOR ===== */
.vx-lang-selector {
  position: relative;
  display: inline-block;
}

.vx-lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #F7F7F9;
  border: 1px solid #EAEAEE;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #2A2A2E;
  transition: background .15s ease, border-color .15s ease;
}

.vx-lang-trigger:hover {
  background: #FDECEC;
  border-color: #FF5151;
}

.vx-lang-flag {
  font-size: 16px;
  line-height: 1;
}

.vx-lang-code {
  text-transform: uppercase;
  letter-spacing: .3px;
}

.vx-lang-chevron {
  color: #9A9AA2;
  transition: transform .15s ease;
}

.vx-lang-selector.is-open .vx-lang-chevron {
  transform: rotate(180deg);
}

.vx-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0; /* respecte le RTL automatiquement */
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #EAEAEE;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 999;
}

.vx-lang-selector.is-open .vx-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vx-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #2A2A2E;
  cursor: pointer;
  transition: background .12s ease;
}

.vx-lang-option:hover {
  background: #F7F7F9;
}

.vx-lang-option.is-active {
  background: #FDECEC;
  color: #FF5151;
  font-weight: 700;
}

/* ===== MOBILE ===== */
.vx-lang-selector--mobile {
  display: none;
}

@media (max-width: 768px) {
  .vx-lang-selector--mobile {
    display: inline-block;
  }
  .vx-lang-selector--mobile .vx-lang-trigger {
    padding: 5px 8px;
    font-size: 12px;
  }
  .vx-nav-inner {
    justify-content: space-between;
  }

  /* Sélecteur poussé à l'extrémité "fin" du flex :
     droite en LTR (fr/en), gauche en RTL (ar) — flip automatique */
  .vx-lang-selector--mobile {
    margin-inline-start: auto;
  }
}

/* ── Avis clients ─────────────────────────────── */
.vxp-reviews {
  margin: 48px auto;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}

.vxp-reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.vxp-reviews-rating {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
}

.vxp-reviews-count {
  color: var(--c-muted);
  font-size: 14px;
}

.vxp-dz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, .10);
  color: var(--c-success);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, .25);
}

.vxp-review-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.vxp-review-item:hover {
  box-shadow: var(--shadow);
}

.vxp-review-item strong {
  font-size: 14px;
  color: var(--c-text);
}

.vxp-review-country {
  font-size: 12px;
  color: var(--c-muted);
  margin-left: 6px;
}

.vxp-review-item p {
  margin: 8px 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
}

.vxp-review-item small {
  color: var(--c-muted);
  font-size: 12px;
}

.vxp-review-dz {
  border-color: rgba(16, 185, 129, .35);
  background: rgba(16, 185, 129, .04);
}

@media (max-width: 768px) {
  .vxp-reviews { margin: 32px auto; padding-top: 24px; }
  .vxp-review-item { padding: 12px 14px; }
}

.vxp-reviews-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.vxp-page-btn {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  font-size: 16px;
  color: var(--c-text);
  transition: background var(--transition), border-color var(--transition);
}
.vxp-page-btn:hover:not(:disabled) {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.vxp-page-btn:disabled {
  opacity: .4;
  cursor: default;
}
.vxp-page-info {
  font-size: 13px;
  color: var(--c-muted);
  min-width: 50px;
  text-align: center;
}

.vxp-review-pinned {
  border: 2px solid var(--c-success);
  background: rgba(16, 185, 129, .06);
  margin-bottom: 20px;
}
.vxp-pinned-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-success);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vxp-reviews-loading {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}