body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  padding-top: 40px;
  color: #1a1a1a;
}

/* ── Header ── */
.mp-page { max-width: 960px; margin: 0 auto; padding: 0 12px 40px; }

.mp-header {
  background: #d0021b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 0 0 4px 4px;
  margin-bottom: 12px;
}

.mp-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-style: italic;
  flex-shrink: 0;
}

.mp-search {
  display: flex;
  flex: 1;
  max-width: 480px;
}

.mp-search input {
  flex: 1;
  padding: 7px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  background: #fff;
}

.mp-search button {
  padding: 7px 14px;
  background: #e87722;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.mp-header-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.mp-breadcrumb {
  font-size: 12px;
  color: #666;
  margin-bottom: 14px;
  padding: 0 4px;
}

/* ── Listing layout ── */
.mp-listing {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ── Gallery ── */
.mp-gallery { flex-shrink: 0; width: 300px; }

.mp-img-main {
  width: 300px;
  height: 220px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  margin-bottom: 8px;
}

.mp-img-thumbs { display: flex; gap: 6px; }

.mp-thumb {
  width: 72px;
  height: 56px;
  background: #eee;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  border: 2px solid transparent;
}

.mp-thumb.active { border-color: #d0021b; }

/* ── Info panel ── */
.mp-info { flex: 1; min-width: 0; }

.mp-price {
  font-size: 32px;
  font-weight: 800;
  color: #d0021b;
  margin-bottom: 6px;
}

.mp-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.mp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.mp-badge {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  padding: 3px 8px;
  color: #444;
}

.mp-badge-particulier { background: #fff8e1; border-color: #f9a825; color: #7a5000; }

.mp-desc { font-size: 14px; line-height: 1.6; color: #333; margin-bottom: 14px; }

.mp-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}

.mp-specs td {
  padding: 5px 8px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.mp-specs td:first-child { color: #888; width: 120px; }

/* ── Seller box ── */
.mp-seller-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 14px;
}

.mp-seller-avatar {
  width: 42px;
  height: 42px;
  background: #bbb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.mp-seller-name { font-weight: 600; font-size: 14px; }
.mp-seller-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #888; }
.mp-stars { color: #f5a623; font-size: 13px; }
.mp-seller-since { font-size: 12px; color: #e87722; font-weight: 600; margin-top: 2px; }

.mp-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
  transition: opacity 0.15s;
}

.mp-btn:hover { opacity: 0.88; }
.mp-btn-primary { background: #d0021b; color: #fff; }
.mp-btn-fav { background: #fff; border: 1px solid #ccc; color: #555; }

.mp-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #e87722;
  background: #fff8f0;
  border: 1px solid #ffd6a5;
  border-radius: 4px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Chat ── */
.chat-wrap {
  display: flex;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  min-height: 480px;
}

.chat-sidebar {
  width: 220px;
  border-right: 1px solid #eee;
  flex-shrink: 0;
}

.chat-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  background: #f9f3f4;
}

.chat-thread-avatar {
  width: 36px;
  height: 36px;
  background: #bbb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-thread-name { font-size: 13px; font-weight: 600; }
.chat-thread-sub { font-size: 11px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.chat-main { flex: 1; display: flex; flex-direction: column; }

.chat-product-bar {
  padding: 10px 16px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-product-price { font-weight: 700; color: #d0021b; }
.chat-product-title { color: #555; }

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.chat-msg {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.them {
  background: #f0f0f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: #1a1a1a;
}

.chat-msg.me {
  background: #d0021b;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg-sender { font-size: 10px; color: #999; margin-bottom: 3px; }
.chat-msg.me .chat-msg-sender { text-align: right; color: rgba(255,255,255,0.7); }

.chat-link-btn {
  display: inline-block;
  background: #e87722;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  margin-top: 6px;
  text-decoration: none;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.chat-input:focus { border-color: #d0021b; }

.chat-send {
  background: #d0021b;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Fake iDEAL ── */
.ideal-page {
  min-height: calc(100vh - 40px);
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ideal-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.ideal-header {
  background: #cc0066;
  padding: 20px 24px;
  color: #fff;
  text-align: center;
}

.ideal-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ideal-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  font-style: italic;
}

.ideal-lock { font-size: 12px; color: rgba(255,255,255,0.85); }

.ideal-merchant { font-size: 13px; opacity: 0.9; margin-bottom: 8px; }
.ideal-amount { font-size: 38px; font-weight: 800; margin-bottom: 4px; }
.ideal-desc { font-size: 13px; opacity: 0.85; }

.ideal-body { padding: 22px 24px; }

.ideal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  margin-top: 14px;
}

.ideal-label:first-child { margin-top: 0; }

.ideal-select, .ideal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
}

.ideal-select:focus, .ideal-input:focus {
  outline: none;
  border-color: #cc0066;
}

.ideal-btn {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  background: #cc0066;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.ideal-btn:hover { background: #a80055; }

.ideal-footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #888;
}

.ideal-seal { font-size: 16px; }

@media (max-width: 600px) {
  .mp-listing { flex-direction: column; }
  .mp-gallery { width: 100%; }
  .mp-img-main { width: 100%; }
  .chat-sidebar { display: none; }
}
