/* Axelnest Marketplace — shared styles */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
}

/* ---------- Header ---------- */

.mp-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.mp-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}
.mp-brand:hover { opacity: 0.85; }
.mp-brand-dot { color: #cbb15c; }

.mp-back {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.mp-back:hover { color: #0f172a; }

.mp-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.mp-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mp-user-area {
  font-size: 0.875rem;
  color: #64748b;
}

/* ---------- Cards (onboarding / messages) ---------- */

.mp-main {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.mp-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mp-card + .mp-card { margin-top: 1rem; }

.mp-card h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.mp-card p {
  margin: 0.5rem 0;
  color: #475569;
}

.mp-info-list {
  margin: 1rem 0 1.5rem 0;
  padding-left: 1.5rem;
  color: #475569;
  line-height: 1.9;
}

/* ---------- Buttons ---------- */

.mp-btn-primary,
.mp-btn-secondary,
.mp-btn-danger {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  line-height: 1.2;
}

.mp-btn-primary { background: #0f172a; color: white; }
.mp-btn-primary:hover:not(:disabled) { background: #334155; }
.mp-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.mp-btn-secondary {
  background: white;
  color: #0f172a;
  border-color: #cbd5e1;
}
.mp-btn-secondary:hover { border-color: #94a3b8; }

.mp-btn-danger {
  background: white;
  color: #b91c1c;
  border-color: #fecaca;
}
.mp-btn-danger:hover { background: #fef2f2; }

.mp-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.mp-help {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.mp-error {
  border-color: #fca5a5;
  background: #fef2f2;
}
.mp-error h2 { color: #b91c1c; }

.mp-success {
  border-color: #86efac;
  background: #f0fdf4;
}
.mp-success h2 { color: #15803d; }

/* ---------- Browse page ---------- */

.mp-browse {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.mp-filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mp-filter,
.mp-search {
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  font-family: inherit;
  color: inherit;
}
.mp-filter { min-width: 180px; }
.mp-search { flex: 1; min-width: 240px; }

.mp-search:focus,
.mp-filter:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.mp-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.mp-empty {
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.mp-empty h2 { margin: 0 0 0.5rem 0; font-size: 1.25rem; color: #475569; }
.mp-empty p { margin: 0 0 1.25rem 0; color: #94a3b8; }

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.mp-listing-card {
  display: block;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mp-listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mp-listing-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}
.mp-listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-listing-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.mp-listing-info {
  padding: 0.75rem 0.875rem 0.875rem;
}

.mp-listing-title {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.mp-listing-price {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.mp-listing-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mp-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #e2e8f0;
  color: #475569;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}
.mp-tag-cond { background: #dbeafe; color: #1e40af; }

/* ---------- Detail page ---------- */

.mp-detail {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .mp-detail { grid-template-columns: 1fr; }
}

.mp-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
}
.mp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.mp-gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f1f5f9;
  padding: 0;
}
.mp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-gallery-thumb.active { border-color: #0f172a; }

.mp-detail-info h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.mp-detail-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.5rem 0 1rem;
}

.mp-detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.mp-detail-section {
  margin: 1.5rem 0;
}
.mp-detail-section h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.mp-detail-section p {
  margin: 0;
  white-space: pre-wrap;
  color: #334155;
}

/* Buyer-protection trust block on the listing page (under the Buy button) */
.mp-trust {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mp-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.mp-trust-ico {
  width: 20px;
  height: 20px;
  flex: none;
  color: #0f172a;
  margin-top: 1px;
}
.mp-trust-text { min-width: 0; }
.mp-trust-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}
.mp-trust-sub {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 1px;
}
.mp-trust-link {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 1px;
}
.mp-trust-link:hover { color: #2563eb; border-color: #2563eb; }

.mp-seller-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.mp-seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  overflow: hidden;
}
.mp-seller-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mp-detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.mp-detail-actions .mp-btn-primary,
.mp-detail-actions .mp-btn-secondary {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

/* ---------- Sell dashboard / form ---------- */

.mp-sell-section {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.mp-form-group {
  margin-bottom: 1.25rem;
}

.mp-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #334155;
}

.mp-form-group input[type="text"],
.mp-form-group input[type="number"],
.mp-form-group input[type="tel"],
.mp-form-group input[type="email"],
.mp-form-group select,
.mp-form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: inherit;
}
.mp-form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.mp-form-group input:focus,
.mp-form-group select:focus,
.mp-form-group textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.mp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .mp-form-row { grid-template-columns: 1fr; }
}

.mp-image-pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mp-image-previews {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.mp-image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}
.mp-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-image-preview button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* Drag-to-reorder thumbnails + drop zone */
.mp-image-preview {
  cursor: grab;
}
.mp-image-preview:active {
  cursor: grabbing;
}
.mp-image-dragging {
  opacity: 0.4;
}
.mp-image-drop-target {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.mp-image-cover-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(37, 99, 235, 0.92);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
}

.mp-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  transition: background 0.15s, border-color 0.15s;
}
.mp-dropzone-hover {
  background: #dbeafe;
  border-color: #2563eb;
}
.mp-dropzone-inner {
  font-size: 0.9rem;
  color: #475569;
}

/* Inline "+" slot next to photo thumbnails (appears once at least one photo is added) */
.mp-image-add-more {
  width: 80px;
  height: 80px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: #94a3b8;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mp-image-add-more:hover,
.mp-image-add-more-hover {
  background: #dbeafe;
  border-color: #2563eb;
  color: #2563eb;
}
.mp-image-add-more-plus {
  font-size: 26px;
  line-height: 1;
}
.mp-image-add-more-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Draft state badge for "Your listings" rows */
.mp-mine-status.draft {
  color: #b45309;
}

.mp-help-inline {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

.mp-fee-summary {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #475569;
  margin: 1rem 0;
  line-height: 1.7;
}
.mp-fee-summary strong { color: #0f172a; }

/* My listings list inside sell page */

.mp-mine-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.mp-mine-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mp-mine-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
}
.mp-mine-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-mine-info { padding: 0.625rem; }
.mp-mine-title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.mp-mine-status {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.mp-mine-status.sold { color: #15803d; }
.mp-mine-status.removed { color: #b91c1c; }
.mp-mine-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0 0.625rem 0.625rem;
}
.mp-mine-actions a,
.mp-mine-actions button {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: white;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
}
.mp-mine-actions a:hover,
.mp-mine-actions button:hover { border-color: #94a3b8; }

/* ---------- Orders page ---------- */

.mp-orders-main {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.mp-orders-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.mp-tab {
  padding: 0.625rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: #64748b;
  font-family: inherit;
}
.mp-tab.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}
.mp-tab:hover { color: #334155; }

.mp-order-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.mp-order-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.mp-order-thumb {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
}
.mp-order-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mp-order-info { min-width: 0; }

.mp-order-title {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-order-actions {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

@media (max-width: 640px) {
  .mp-order-row {
    grid-template-columns: 60px 1fr;
  }
  .mp-order-thumb { width: 60px; height: 60px; }
  .mp-order-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.mp-order-expand {
  border-top: 1px solid #e2e8f0;
  padding: 1rem;
  background: #f8fafc;
}

.mp-ship-panel h3 { color: #475569; }

.mp-rates-list {
  margin-top: 1rem;
}

.mp-rate-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background: white;
  transition: border-color 0.15s;
}
.mp-rate-row:hover { border-color: #94a3b8; }
.mp-rate-row input[type="radio"] { margin: 0; }

.mp-rate-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mp-rate-price {
  font-weight: 600;
  color: #0f172a;
}

.mp-ship-from-form {
  margin-top: 0.5rem;
}

/* ---------- Messages page ---------- */

.mp-messages-main {
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.mp-back-inline {
  font-size: 0.85rem;
  color: #475569;
  text-decoration: none;
}
.mp-back-inline:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* Inbox list */
.mp-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mp-thread-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.mp-thread-row:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.mp-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.mp-thread-body {
  flex: 1;
  min-width: 0;
}
.mp-thread-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.mp-thread-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}
.mp-thread-time {
  color: #94a3b8;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.mp-thread-listing {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.1rem;
}
.mp-thread-preview {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-thread-unread {
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Chat view */
.mp-chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.5rem 0.5rem 0 0;
}
.mp-chat-with {
  margin-top: 0.4rem;
}
.mp-chat-with-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 1rem;
}
.mp-chat-about {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.mp-chat-about a {
  color: #2563eb;
  text-decoration: none;
}
.mp-chat-about a:hover {
  text-decoration: underline;
}

.mp-chat-messages {
  height: 480px;
  overflow-y: auto;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mp-bubble-row {
  display: flex;
}
.mp-bubble-row.mine {
  justify-content: flex-end;
}
.mp-bubble-row.theirs {
  justify-content: flex-start;
}
.mp-bubble {
  max-width: 75%;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  position: relative;
}
.mp-bubble-row.mine .mp-bubble {
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.mp-bubble-row.theirs .mp-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-left-radius: 0.25rem;
}
.mp-bubble-content {
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.mp-bubble-time {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  opacity: 0.7;
  text-align: right;
}

.mp-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 0.5rem 0.5rem;
}
.mp-chat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.mp-chat-form textarea {
  flex: 1;
  resize: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
}
.mp-chat-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.mp-chat-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.mp-chat-attach-btn:hover {
  background: #f1f5f9;
}

/* Attachment preview above the input */
.mp-chat-attach-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mp-attach-thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.mp-attach-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-attach-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Image inside chat bubbles */
.mp-bubble-img-link {
  display: block;
  margin: -0.55rem -0.85rem 0.4rem -0.85rem;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}
.mp-bubble-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  cursor: zoom-in;
}
.mp-bubble:has(.mp-bubble-img-link):not(:has(.mp-bubble-content)) .mp-bubble-img-link {
  border-radius: 1rem;
  margin: 0;
}

/* ---------- Reviews / star ratings ---------- */

/* Static stars (display only) */
.mp-stars-static {
  display: inline-block;
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 0.95rem;
  line-height: 1;
}
.mp-stars-empty {
  color: #cbd5e1;
}

.mp-stars-inline {
  display: inline-block;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Rating badge on listing card thumbnail */
.mp-listing-rating {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(15, 23, 42, 0.78);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Seller's average rating row in listing detail */
.mp-seller-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 0;
}
.mp-seller-rating-num {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
}

/* Interactive star buttons (review form) */
.mp-review-form-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}
.mp-star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  transition: color 0.1s;
}
.mp-star-btn:hover,
.mp-star-btn.filled {
  color: #f59e0b;
}

.mp-review-prompt {
  margin-top: 0.6rem;
}
.mp-review-form {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}
.mp-review-textarea {
  width: 100%;
  resize: vertical;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
}
.mp-review-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.mp-review-form-actions {
  display: flex;
  gap: 0.5rem;
}

/* Existing review on buyer's order card */
.mp-review-existing {
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.4rem;
}
.mp-review-existing-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mp-review-existing-content {
  font-size: 0.88rem;
  color: #475569;
  margin-top: 0.3rem;
}

/* Review cards in seller detail page */
.mp-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.mp-review-card {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}
.mp-review-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mp-review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.mp-review-meta {
  flex: 1;
  min-width: 0;
}
.mp-review-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
}
.mp-review-stars-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.mp-review-card-content {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ---------- Admin dashboard ---------- */

.mp-admin-main {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.mp-admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.mp-admin-toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.mp-admin-search {
  flex: 1;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
}
.mp-admin-search:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mp-admin-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.mp-admin-table-wrap {
  overflow-x: auto;
}

.mp-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.mp-admin-table th,
.mp-admin-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.mp-admin-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.mp-admin-table tbody tr:hover {
  background: #fafbfc;
}
.mp-admin-table a {
  color: #2563eb;
  text-decoration: none;
}
.mp-admin-table a:hover {
  text-decoration: underline;
}

.mp-mono-tiny {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* ---------- Return flow panels ---------- */

.mp-return-panel {
  margin-top: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mp-return-panel strong { color: #0f172a; }
.mp-return-panel-pending {
  background: #fef3c7;
  border-color: #fde68a;
}
.mp-return-panel-pending strong { color: #78350f; }
.mp-return-panel-approved {
  background: #dbeafe;
  border-color: #bfdbfe;
}
.mp-return-panel-approved strong { color: #1e40af; }
.mp-return-panel-rejected {
  background: #fee2e2;
  border-color: #fecaca;
}
.mp-return-panel-rejected strong { color: #991b1b; }
.mp-return-panel-refunded {
  background: #dcfce7;
  border-color: #bbf7d0;
}
.mp-return-panel-refunded strong { color: #166534; }

.mp-return-form,
.mp-return-form-wrap > div {
  margin: 0.75rem 0 0.25rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}
.mp-return-reject-form {
  margin-top: 0.5rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .mp-main { margin: 1rem auto; }
  .mp-card { padding: 1.5rem; }
  .mp-card h2 { font-size: 1.25rem; }
  .mp-header { padding: 0.75rem 1rem; gap: 0.625rem; }
  .mp-header h1 { font-size: 1.1rem; }
  .mp-brand { font-size: 1.2rem; }
  .mp-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .mp-listing-info { padding: 0.5rem 0.625rem 0.625rem; }
  .mp-listing-title { font-size: 0.85rem; }
  .mp-listing-price { font-size: 0.95rem; margin-bottom: 0.3rem; }
  .mp-chat-messages { height: 360px; }
  .mp-bubble { max-width: 85%; }
  .mp-listing-rating { font-size: 0.7rem; padding: 0.1rem 0.4rem; }
}

/* ---------- Account dropdown (header) ---------- */

.mp-acct-wrap { position: relative; display: inline-block; }

.mp-acct-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  cursor: pointer;
  color: #1e293b;
  font: inherit;
  transition: border-color .12s, background .12s;
}
.mp-acct-trigger:hover { border-color: #cbd5e1; background: #f8fafc; }
.mp-acct-trigger.menu-open { border-color: #94a3b8; background: #f1f5f9; }

.mp-acct-avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #1e293b;
  color: white;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.mp-acct-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mp-acct-name {
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-acct-last { font-style: italic; font-weight: 400; }

.mp-acct-caret {
  font-size: 0.7rem;
  color: #64748b;
  transition: transform .15s;
}
.mp-acct-trigger.menu-open .mp-acct-caret { transform: rotate(180deg); }

.mp-acct-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 100;
  display: flex; flex-direction: column;
  text-align: left;
  overflow: hidden;
}
/* The HTML hidden attribute uses display:none, but `display:flex` above wins
 * by specificity. Explicit override so the dropdown actually hides. */
.mp-acct-menu[hidden] { display: none !important; }

.mp-acct-menu-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mp-acct-menu-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: #1e293b;
  color: white;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.mp-acct-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-acct-menu-id { min-width: 0; flex: 1; }
.mp-acct-menu-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-acct-menu-email {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mp-acct-menu-section {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.mp-acct-menu-section:last-of-type { border-bottom: none; }

.mp-acct-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  color: #1e293b;
  font: inherit;
  transition: background .12s;
}
.mp-acct-menu-item:hover { background: #f1f5f9; }

.mp-ami-icon {
  width: 24px;
  color: #64748b;
  font-size: 1rem;
  flex-shrink: 0;
  text-align: center;
}
.mp-ami-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mp-ami-label {
  font-size: 0.9rem;
  color: inherit;
  font-weight: 500;
}
.mp-ami-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mp-acct-menu-foot { padding: 0.6rem 0.75rem; }
.mp-acct-menu-signout {
  width: 100%;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: #475569;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .12s;
}
.mp-acct-menu-signout:hover {
  border-color: #fca5a5;
  color: #dc2626;
  background: #fef2f2;
}

@media (max-width: 720px) {
  .mp-acct-name { display: none; }
  .mp-acct-menu { width: 280px; }
}

/* ---------- Generic modal (Support, etc.) ---------- */

.mp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  animation: mp-fade-in 0.15s ease-out;
}
.mp-modal-backdrop[hidden] { display: none !important; }

@keyframes mp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mp-modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mp-modal {
  background: white;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: mp-modal-pop 0.18s ease-out;
}

.mp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.mp-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
}
.mp-modal-sub {
  margin: 0.25rem 0 0;
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.4;
}

.mp-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  flex-shrink: 0;
  margin-top: -2px;
}
.mp-modal-close:hover { background: #f1f5f9; color: #0f172a; }

.mp-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.mp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mp-modal-foot-help {
  margin: 1rem 0 0;
  padding-top: 0.875rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}
.mp-modal-foot-help a {
  color: #2563eb;
  text-decoration: none;
}
.mp-modal-foot-help a:hover { text-decoration: underline; }

/* ---------- Support modal specifics ---------- */

.mp-support-from {
  padding: 0.75rem 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 1rem;
}
.mp-support-from strong { color: #0f172a; }
.mp-support-from-email { color: #64748b; }
.mp-support-from-hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.mp-support-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.mp-support-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.875rem;
}
.mp-support-field:last-of-type { margin-bottom: 0; }

.mp-support-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
}
.mp-support-optional {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.75rem;
}

.mp-support-field input,
.mp-support-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: #0f172a;
  transition: border-color .12s, box-shadow .12s;
}
.mp-support-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.mp-support-field input:focus,
.mp-support-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mp-support-status {
  margin-top: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.mp-support-status.ok {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.mp-support-status.err {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.mp-support-status[hidden] { display: none !important; }

@media (max-width: 560px) {
  .mp-modal { max-width: 100%; border-radius: 12px; }
  .mp-support-fields { grid-template-columns: 1fr; }
  .mp-modal-head { padding: 1rem 1.125rem 0.75rem; }
  .mp-modal-body { padding: 1rem 1.125rem 1.25rem; }
}

/* ---------- Sign-in modal ---------- */

.mp-signin-modal {
  max-width: 380px;
  position: relative;
  overflow: visible;
}

.mp-signin-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

.mp-signin-head {
  padding: 1.75rem 1.5rem 0.5rem;
  text-align: center;
}
.mp-signin-head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f172a;
}

.mp-signin-body {
  padding: 1rem 1.5rem 1.5rem;
}

.mp-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: white;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.mp-btn-google:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mp-btn-google:disabled { opacity: 0.6; cursor: not-allowed; }
.mp-btn-google svg { flex-shrink: 0; }

.mp-signin-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mp-signin-divider::before,
.mp-signin-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.mp-signin-form { display: flex; flex-direction: column; }
.mp-signin-form .mp-support-field { margin-bottom: 0.875rem; }
.mp-signin-form .mp-support-field:last-of-type { margin-bottom: 0.5rem; }

.mp-signin-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.mp-signin-forgot {
  background: transparent;
  border: none;
  color: #2563eb;
  font: inherit;
  font-size: 0.825rem;
  cursor: pointer;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mp-signin-forgot:hover:not(:disabled) { color: #1d4ed8; }
.mp-signin-forgot:disabled { opacity: 0.55; cursor: not-allowed; }
.mp-signin-forgot[hidden] { display: none !important; }

.mp-signin-submit {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.mp-signin-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}
.mp-signin-link {
  background: transparent;
  border: none;
  color: #2563eb;
  font: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mp-signin-link:hover { color: #1d4ed8; }

.mp-signin-status {
  margin: 0.25rem 0 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.mp-signin-status.ok {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.mp-signin-status.err {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.mp-signin-status[hidden] { display: none !important; }

@media (max-width: 420px) {
  .mp-signin-modal { max-width: 100%; }
  .mp-signin-head { padding: 1.5rem 1.25rem 0.5rem; }
  .mp-signin-body { padding: 1rem 1.25rem 1.25rem; }
}

/* ============================================================ */
/* Pro Shops (WEB-109) — list page + single-shop profile page   */
/* Matches marketplace's light theme; gold (#cbb15c) used only   */
/* as an accent so Pro Shops feels distinct but not jarring.     */
/* ============================================================ */

/* ---------- List page intro ---------- */

.mp-intro {
  padding: 1.5rem 0 0.5rem;
}
.mp-intro-title {
  font-family: Georgia, 'Cormorant Garamond', serif;
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.mp-intro-sub {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  max-width: 60ch;
}

/* ---------- Shop card (list grid) ---------- */
/* Built on top of .mp-listing-card; only the parts that differ. */

.mp-shop-card-banner {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}
.mp-shop-card-banner-fallback {
  background-image: linear-gradient(135deg, #1e293b 0%, #475569 60%, #cbb15c 100%);
}
.mp-shop-card-title {
  font-family: Georgia, 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.15rem;
}
.mp-shop-card-loc {
  font-size: 0.75rem;
  color: #b8975a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.mp-shop-card-tagline {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- "List your shop" CTA (bottom of list page) ---------- */
/* Invites skating businesses to join the admin-curated directory. There is no
   self-serve signup, so the button opens the in-site Contact modal (shared
   support.js, same path as the rest of the site) rather than an external
   mailbox. */

.mp-shop-cta {
  margin: 2.5rem 0 1rem;
  padding: 2rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  text-align: center;
}
.mp-shop-cta-title {
  font-family: Georgia, 'Cormorant Garamond', serif;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.mp-shop-cta-sub {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto 1.25rem;
  max-width: 58ch;
}

/* ---------- Profile page hero ---------- */

.mp-shop-hero {
  background-image: linear-gradient(135deg, #1e293b 0%, #475569 60%, #cbb15c 100%);
  background-size: cover;
  background-position: center;
  min-height: 200px;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.mp-shop-hero.has-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
}
.mp-shop-hero-content {
  position: relative;
  z-index: 1;
}
.mp-shop-loc-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #cbb15c;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.mp-shop-name {
  font-family: Georgia, 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}
.mp-shop-addr {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.35rem;
}

/* ---------- Profile body layout ---------- */

.mp-shop-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .mp-shop-body { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
}

.mp-shop-section-title {
  font-family: Georgia, 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.6rem;
}
.mp-shop-desc {
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  white-space: pre-line; /* preserve admin's line breaks in description */
}

/* ---------- Gallery ---------- */

.mp-shop-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .mp-shop-gallery { grid-template-columns: repeat(2, 1fr); }
}
.mp-shop-gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f5f9;
}
.mp-shop-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.mp-shop-gallery-item:hover img { transform: scale(1.04); }

/* ---------- Sidebar (contact card) ---------- */

.mp-shop-side {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  align-self: start;
  position: sticky;
  top: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
@media (max-width: 760px) {
  .mp-shop-side { position: static; }
}
.mp-shop-message-btn {
  width: 100%;
  margin-bottom: 0.75rem;
}
/* aria-disabled (instead of HTML `disabled`) keeps the button reachable by
   screen-reader nav so users can read its aria-describedby hint about the
   feature shipping in a later update. We replicate the disabled look here
   because :disabled-styling doesn't apply when only aria-disabled is set. */
.mp-shop-message-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================ */
/* Pro Shops admin (WEB-110) — create/edit modal                 */
/* All classes are prefixed `mp-shop-modal-*` to avoid colliding  */
/* with the Support/sign-in modal styles defined earlier in this  */
/* file (those use `.mp-modal*` and ship to every marketplace     */
/* page via header.js).                                           */
/* ============================================================ */

.mp-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.mp-shop-modal[hidden] { display: none; }
.mp-shop-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 0;
}
.mp-shop-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.mp-shop-modal-inner h3 {
  margin: 0 0 1rem;
  font-family: Georgia, 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}
.mp-shop-modal-field {
  display: block;
  margin-bottom: 1rem;
}
.mp-shop-modal-field > span {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #1e293b;
}
.mp-shop-modal-field input,
.mp-shop-modal-field select,
.mp-shop-modal-field textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  background: white;
  color: #0f172a;
  box-sizing: border-box;
}
.mp-shop-modal-field input:focus,
.mp-shop-modal-field select:focus,
.mp-shop-modal-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.mp-shop-modal-field input[readonly] {
  background: #f1f5f9;
  color: #64748b;
}
.mp-shop-modal-field small {
  display: block;
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}
.mp-shop-modal-required { color: #b91c1c; }
.mp-shop-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.mp-shop-modal-field-narrow input { max-width: 5rem; }
.mp-shop-modal-checkbox {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}
.mp-shop-modal-checkbox > span {
  margin-bottom: 0;
  font-weight: 400;
}
.mp-shop-modal-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.mp-shop-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.mp-shop-banner-preview {
  margin-top: 0.5rem;
  width: 100%;
  height: 120px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.mp-shop-modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  color: #b91c1c;
  font-size: 0.875rem;
  margin: 1rem 0 0;
}

@media (max-width: 540px) {
  .mp-shop-modal { padding: 1rem 0.5rem; }
  .mp-shop-modal-inner { padding: 1.1rem; }
  .mp-shop-modal-row { grid-template-columns: 1fr; }
}
.mp-shop-message-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.mp-shop-side-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 0.3rem;
  font-weight: 600;
}
.mp-shop-side-text {
  color: #1e293b;
  font-size: 0.875rem;
  margin: 0 0 1rem;
  line-height: 1.55;
  word-wrap: break-word;
}
.mp-shop-side-text a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mp-shop-side-text a:hover { color: #b8975a; }

/* ============================================================ */
/* Pro Shops owner manage page (WEB-115)                         */
/* /pro-shops/manage.html                                        */
/* ============================================================ */

.mp-shop-picker-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mp-shop-manage-form {
  padding: 1.5rem;
}

.mp-shop-manage-meta {
  padding: 0.6rem 0.9rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-size: 0.875rem;
  color: #475569;
  word-wrap: break-word;
}
.mp-shop-manage-meta strong {
  color: #0f172a;
  margin-right: 0.4rem;
}
.mp-shop-manage-meta a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.mp-shop-manage-meta small {
  display: block;
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.78rem;
}

.mp-shop-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}
.mp-shop-manage-grid label {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  gap: 0.3rem;
}
.mp-shop-manage-grid label input,
.mp-shop-manage-grid label textarea {
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  color: #0f172a;
  font-weight: 400;
  box-sizing: border-box;
}
.mp-shop-manage-grid label input:focus,
.mp-shop-manage-grid label textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.mp-shop-manage-wide { grid-column: 1 / -1; }

.mp-shop-manage-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.1rem 1.1rem;
  margin: 0 0 1.25rem;
}
.mp-shop-manage-fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  padding: 0 0.4rem;
}

.mp-shop-manage-banner-preview {
  height: 140px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #94a3b8;
  font-style: italic;
}
.mp-shop-manage-banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-shop-manage-banner-preview em {
  font-style: italic;
  color: #94a3b8;
}

.mp-shop-manage-uploader {
  display: inline-block;
  cursor: pointer;
}
.mp-shop-manage-uploader > span {
  display: inline-block;
}

.mp-shop-manage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mp-shop-manage-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.mp-shop-manage-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-shop-manage-gallery-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mp-shop-manage-gallery-del:hover {
  background: #b91c1c;
}

.mp-shop-manage-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.mp-shop-manage-status {
  margin: 0.6rem 0 0;
  font-size: 0.875rem;
  text-align: right;
  min-height: 1.2em;
}

@media (max-width: 600px) {
  .mp-shop-manage-grid { grid-template-columns: 1fr; }
  .mp-shop-manage-actions { flex-direction: column-reverse; align-items: stretch; }
  .mp-shop-manage-actions .mp-btn-primary,
  .mp-shop-manage-actions .mp-btn-secondary { width: 100%; text-align: center; }
}

/* ---------- WEB-116: Deferred-seller disclosure panel (checkout-address) ---------- */

.checkout-deferred-notice {
  gap: 14px;
  padding: 16px 18px;
  background: rgba(203, 177, 92, 0.08); /* gold tint — matches brand amber */
  border: 1px solid rgba(203, 177, 92, 0.4);
  border-radius: 4px;
  margin: 20px 0;
}
.cdn-icon { font-size: 24px; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.cdn-body { flex: 1; min-width: 0; }
.cdn-title {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #0f172a;
}
.cdn-text { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: #334155; }
.cdn-bullets { margin: 0; padding-left: 18px; font-size: 12px; color: #64748b; }
.cdn-bullets li { margin-bottom: 4px; line-height: 1.4; }

/* The account.html Stripe-setup banner uses inline style="display:flex; ..."
 * for layout. The user-agent stylesheet's [hidden] { display: none } rule
 * is lower specificity than an inline style, so toggling the hidden
 * attribute from JS had no visible effect — the banner kept rendering
 * even when the gate logic correctly evaluated to "should be hidden"
 * (e.g. for users with active Stripe or zero listings). Explicit
 * !important override so the hidden attribute actually hides the
 * element. Same pattern as .mp-acct-menu earlier in this file. */
#stripeNudgeBanner[hidden] { display: none !important; }
