/* =====================================
   WCMV – DASHBOARD + CREATE LISTING
   React / Mocha Parity
===================================== */

/* ===============================
   FONTS
================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

:root {
  --red: #dc2626;
  --amber: #fbbf24;
  --amber-light: #fef3c7;
  --bg: #fff7ed;
  --card: #fffbe6;
  --text-dark: #7c2d12;
  --shadow: 0 12px 30px rgba(0,0,0,.15);

  --font-ui: 'Inter', system-ui, sans-serif;
  --font-display: 'Fredoka One', system-ui, sans-serif;
}

.wcmv-apply-vendor-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.wcmv-apply-vendor-card {
  margin-top: 14px;
}

.wcmv-apply-vendor-card p {
  margin: 8px 0 14px;
}

.wcmv-apply-vendor-fab:hover,
.wcmv-apply-vendor-fab:focus {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.04);
}

@media (max-width: 782px) {
  .wcmv-apply-vendor-fab {
    width: 100%;
  }

  .wcmv-apply-vendor-fab {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ===============================
   RESET + SCOPE
================================ */
.wcmv-dashboard,
.wcmv-create-listing {
  font-family: var(--font-ui);
}

.wcmv-dashboard *,
.wcmv-create-listing * {
  box-sizing: border-box;
}

/* ===============================
   WRAPPERS
================================ */
.wcmv-dashboard,
.wcmv-create-listing {
  max-width: 1300px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(to bottom, #fff7ed, #ffedd5);
  border-radius: 20px;
}

/* ===============================
   HEADINGS
================================ */
.carnival-text,
.wcmv-dashboard h1,
.wcmv-dashboard h2,
.wcmv-dashboard h3,
.wcmv-create-listing h1,
.wcmv-create-listing h2,
.wcmv-create-listing h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Fredoka One is naturally bold */
  letter-spacing: .02em;
  color: var(--text-dark);
}

/* ===============================
   CARDS
================================ */
.vintage-card,
.wcmv-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  border: 2px solid var(--amber);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

/* ===============================
   STATS
================================ */
.wcmv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.stat-card .dashicons {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 8px;
  color: rgba(255,255,255,0.95);
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 30px;
}

/* gradients */
.stat-green { background: linear-gradient(to right,#22c55e,#16a34a); }
.stat-blue { background: linear-gradient(to right,#3b82f6,#2563eb); }
.stat-amber { background: linear-gradient(to right,#f59e0b,#d97706); }
.stat-orange { background: linear-gradient(to right,#f97316,#ea580c); }
.stat-purple { background: linear-gradient(to right,#a855f7,#7c3aed); }

/* ===============================
   TABS
================================ */
.wcmv-tabs {
  display: flex;
  border-bottom: 4px solid var(--amber);
  margin-bottom: 25px;
  overflow-x: auto;
}

.wcmv-tab {
  padding: 16px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  color: #991b1b;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wcmv-tab .dashicons {
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 6px;
}

.wcmv-tab.active {
  border-bottom: 4px solid var(--red);
  background: var(--amber-light);
}

/* ===============================
   PANELS
================================ */
.wcmv-panel { display: none; }
.wcmv-panel.active { display: block; }

/* ===============================
   PROFILE
================================ */
.wcmv-profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

.wcmv-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg,#fdba74,#f87171);
  border: 4px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  font-family: var(--font-display);
}

/* ===============================
   BUTTONS
================================ */
.wcmv-btn,
.wcmv-primary-btn {
  background: linear-gradient(to right, #f97316, #dc2626);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-ui);
}

.wcmv-secondary-btn {
  background: #fff;
  border: 2px solid var(--amber);
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ===============================
   ACTIONS
================================ */
.wcmv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ===============================
   FORMS
================================ */
.wcmv-form {
  width: 100%;
}

.wcmv-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 18px;
}

.wcmv-field {
  display: flex;
  flex-direction: column;
}

.wcmv-field.full {
  grid-column: 1 / -1;
}

.wcmv-field label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.wcmv-field input,
.wcmv-field textarea,
.wcmv-field select {
  height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #fde68a;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  transition: all .2s ease;
}

.wcmv-field textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.wcmv-field input:focus,
.wcmv-field textarea:focus,
.wcmv-field select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(251,146,60,.25);
}

/* ===============================
   UPLOAD BOX
================================ */
.wcmv-upload {
  border: 2px dashed var(--amber);
  padding: 24px;
  border-radius: 16px;
  background: #fffbe6;
  text-align: center;
}

/* ===============================
   LISTINGS GRID
================================ */
.wcmv-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 25px;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  .wcmv-profile-grid {
    grid-template-columns: 1fr;
  }

  .wcmv-dashboard,
  .wcmv-create-listing {
    margin: 16px auto;
    padding: 16px;
    border-radius: 14px;
  }

  .vintage-card,
  .wcmv-form-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .wcmv-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wcmv-field.full {
    grid-column: auto;
  }

  .wcmv-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wcmv-primary-btn,
  .wcmv-secondary-btn,
  .wcmv-btn {
    width: 100%;
    text-align: center;
  }

  .wcmv-upload {
    padding: 16px;
  }

  .wcmv-image-preview {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
  }

  .wcmv-thumb img {
    height: 72px;
  }
}

.wcmv-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.wcmv-thumb {
  position: relative;
  cursor: grab;
}

.wcmv-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #fde68a;
}

.wcmv-thumb::after {
  content: "↕";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 12px;
  opacity: 0.7;
}
.wcmv-thumb {
  position: relative;
}

.wcmv-remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.wcmv-remove-image:hover {
  background: #dc2626;
}

.wcmv-edit-image {
  position: absolute;
  right: 4px;
  bottom: 4px;
  border: none;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.wcmv-edit-image:hover {
  background: #ffffff;
}

.wcmv-image-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(17, 24, 39, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wcmv-image-editor-dialog {
  width: min(760px, 100%);
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
}

.wcmv-image-editor-stage {
  width: 100%;
  height: min(70vh, 520px);
  background: #111827;
}

.wcmv-image-editor-stage img {
  max-width: 100%;
  display: block;
}

.wcmv-image-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  justify-content: flex-end;
}
.mv-auction-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}

.mv-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 2px solid #fde68a;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  margin-bottom: 20px;
}

.mv-meta-card .mv-meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.mv-price {
  color: #16a34a;
  font-size: 26px;
}

.mv-card-header {
  font-weight: 900;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  margin-bottom: 15px;
}

.mv-card-header.bid {
  background: linear-gradient(to right,#fb923c,#f97316);
  color: #fff;
}

.mv-card-header.buy {
  background: linear-gradient(to right,#22c55e,#16a34a);
  color: #fff;
}

.mv-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  border: none;
  cursor: pointer;
}

.mv-btn.bid {
  background: linear-gradient(to right,#f97316,#dc2626);
}

.mv-btn.buy {
  background: linear-gradient(to right,#22c55e,#16a34a);
}

.mv-or {
  text-align: center;
  font-weight: bold;
  opacity: .6;
  margin: 10px 0;
}

/* Tickets UI enhancements */
.wcmv-ticket-actions .button,
.wcmv-ticket-btn,
.wcmv-ticket-btn.button {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff !important;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.wcmv-ticket-btn.secondary {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.wcmv-badge {
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color:#fff;
  background:#64748b;
}
.wcmv-badge.success { background:#16a34a; }
.wcmv-badge.warning { background:#d97706; }
.wcmv-badge.info { background:#2563eb; }



/* ===============================
   INVENTORY SUB-TABS FIX
================================ */

/* Hide all inventory subpanels by default */
.wcmv-subpanel {
  display: none;
}

/* Only active one is visible */
.wcmv-subpanel.active {
  display: block;
}
/* Subtab container */
.wcmv-subtabs {
  border-bottom: 1px solid #e5e7eb;
}

/* Tab buttons */
.wcmv-subtab {
  background: transparent;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Ensure dashicons inside tabs are aligned & spaced */
.wcmv-subtab .dashicons {
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 6px;
}

/* Dashicons in vintage-card headings */
.vintage-card .carnival-text .dashicons,
.carnival-text .dashicons {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 8px;
  line-height: 1;
}

/* Active tab */
.wcmv-subtab.active {
  color: #6b4eff;
  border-bottom-color: #6b4eff;
}

/* ===============================
   Inventory Filters
================================ */
.wcmv-inventory-filters {
  background: #fff;
}

.wcmv-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.wcmv-filter-row input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 6px 10px;
}

.wcmv-filter-row select {
  padding: 6px 10px;
}

.wcmv-filter-row .button {
  height: 34px;
}

/* ================================
   INVENTORY LIST LAYOUT
================================ */

.wcmv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wcmv-row {
  display: grid;
  grid-template-columns:
    32px     /* checkbox */
    70px     /* thumbnail */
    1.5fr    /* title */
    2fr      /* meta */
    120px    /* status */
    220px;   /* actions */

  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}

.wcmv-row + .wcmv-row {
  margin-top: 8px;
}

.wcmv-row-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

/* Text areas */
.wcmv-row-main strong {
  font-size: 15px;
  display: block;
}

.wcmv-meta {
  font-size: 12px;
  color: #6b7280;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f3f4f6;
  margin-right: 6px;
  white-space: nowrap;
}

.badge.green { background: #dcfce7; color: #166534; }
.badge.blue  { background: #dbeafe; color: #1e40af; }
.badge.purple{ background: #ede9fe; color: #5b21b6; }
.badge.amber { background: #fef3c7; color: #92400e; }

/* Status */
.status.on {
  color: #16a34a;
  font-weight: 600;
}

.status.off {
  color: #9ca3af;
}

/* Actions */
.wcmv-row-actions a {
  margin-right: 8px;
  font-size: 13px;
  text-decoration: none;
}

.wcmv-row-actions a:hover {
  text-decoration: underline;
}
/* ===============================
   Inventory Filters – Modern UI
   =============================== */

.wcmv-inventory-filters {
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #f0c36d;
  background: #fff;
}

.wcmv-filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wcmv-filter-row input[type="search"] {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.wcmv-filter-row input[type="search"]:focus {
  outline: none;
  border-color: #f0a500;
  box-shadow: 0 0 0 2px rgba(240,165,0,.15);
}

.wcmv-filter-row select {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.wcmv-filter-row select:focus {
  outline: none;
  border-color: #f0a500;
}

/* Filter button */
.wcmv-filter-row .button-primary {
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0a500, #ff8c00);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}

.wcmv-filter-row .button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  opacity: .95;
}

/* Reset button */
.wcmv-filter-row .button {
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f97316;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background .15s;
}

.wcmv-filter-row .button:hover {
  background: #eeeeee;
}
/* ===============================
   Bulk Actions – Strong Override
   =============================== */

.wcmv-bulk-actions,
.wcmv-inventory .bulk-actions,
.wcmv-inventory-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
}

/* Dropdown */
.wcmv-bulk-actions select,
.wcmv-inventory select[name="bulk_action"] {
  appearance: none;
  height: 42px !important;
  min-width: 160px;
  padding: 0 36px 0 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23999' d='M5.5 7.5L10 12l4.5-4.5'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  background-size: 14px;
  font-size: 14px;
  cursor: pointer;
}

.wcmv-bulk-actions select:focus {
  outline: none;
  border-color: #f0a500;
  box-shadow: 0 0 0 2px rgba(240,165,0,.15);
}

/* Apply button */
.wcmv-bulk-actions button,
.wcmv-bulk-actions .button,
.wcmv-inventory button[name="apply_bulk"] {
  height: 42px !important;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0a500, #ff8c00);
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}

.wcmv-bulk-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  opacity: .95;
}

/* Disabled state */
.wcmv-bulk-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}
/* ===============================
   Bulk Action APPLY Button – Final Fix
   =============================== */

.wcmv-bulk-actions button,
.wcmv-bulk-actions .button,
.wcmv-bulk-actions input[type="submit"] {
  appearance: none !important;
  -webkit-appearance: none !important;

  height: 42px !important;
  min-width: 90px;

  padding: 0 20px !important;
  border-radius: 999px !important;

  border: none !important;
  background: linear-gradient(135deg, #f0a500, #ff8c00) !important;
  color: #fff !important;

  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 42px !important;

  box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
  cursor: pointer !important;

  transition: all .2s ease !important;
}

/* Hover */
.wcmv-bulk-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  opacity: .95;
}

/* Active click */
.wcmv-bulk-actions button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

/* Disabled */
.wcmv-bulk-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Admin tab visibility control */.wcmv-admin-panel {
  display: none;
}

.wcmv-admin-panel.active {
  display: block;
}

  /* User expandable rows */
.wcmv-admin-user-panel {
  display: none;
  background: #fff7ed;
}

.wcmv-admin-user-panel.active {
  display: table-row;
}


  .wcmv-admin-user-toggle {
    font-weight: 600;
    cursor: pointer;
    color: #7c2d12;
  }

  .wcmv-admin-user-toggle:hover {
    text-decoration: underline;
  }
.wcmv-profile-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.wcmv-profile-tab {
  padding: 6px 12px;
  border-radius: 6px;
  background: #fde68a;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* Admin profile tabs */
.wcmv-profile-panel {
  display: none;
}

.wcmv-profile-panel.active {
  display: block;
}

.wcmv-profile-tab.active {
  background: #f59e0b;
  color: #fff;
}

/* Quick actions UI inside expanded profiles */
.wcmv-admin-quick-actions {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}

.wcmv-admin-quick-actions strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #92400e;
}

/* New action button styles (matches dashboard visual language) */
.wcmv-admin-quick-actions > div,
.wcmv-admin-quick-actions {
  display: block;
}

.wcmv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fde68a;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.wcmv-action-btn.primary {
  background: linear-gradient(90deg,#3b82f6,#2563eb);
  color: #fff;
  border-color: transparent;
}

.wcmv-action-btn.danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: transparent;
}

.wcmv-action-btn:hover {
  opacity: 0.95;
}

/* Keep legacy WP danger class for compatibility */
.button.button-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.wcmv-panel {
  display: none;
}
.wcmv-panel.active {
  display: block;
}

.wcmv-image-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wcmv-image-item {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: move;
}

.wcmv-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.wcmv-remove {
  position: absolute;
  top: 4px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  cursor: pointer;
}



#wcmv-image-preview {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px; /* 👈 tiny space between thumbnails */
}

.wcmv-field.dimensions label::after {
  content: " (optional)";
  opacity: 0.6;
  font-weight: normal;
}

/* ===============================
   Auction Action Buttons (WCMV)
================================ */

.mv-auction-actions form {
  margin-top: 10px;
}

.mv-auction-actions {
  padding: 14px;
  border-radius: 14px;
  background: #fffaf0;
}

.mv-auction-actions form.cart,
.mv-auction-actions form {
  width: 100%;
}

.mv-auction-actions .mv-btn,
.mv-auction-actions .button,
.mv-auction-actions button[type="submit"] {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mv-btn.secondary {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff;
}

.mv-btn.secondary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.mv-auction-actions input[type="number"] {
  width: 100%;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 2px solid #fde68a;
  padding: 0 14px;
  font-size: 15px;
}
.mv-btn.buy,
.mv-btn.buy * {
  color: #ffffff !important;
}

.mv-auction-actions .mv-price-line {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.4;
  color: #374151;
}

.mv-auction-actions .mv-price-line strong {
  font-size: 16px;
}

.mv-auction-actions .mv-price-value,
.mv-auction-actions .mv-price-value .woocommerce-Price-amount,
.mv-auction-actions .mv-price-value .woocommerce-Price-currencySymbol {
  color: #111827 !important;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .mv-auction-actions {
    padding: 12px;
    border-radius: 12px;
  }

  .mv-auction-actions p {
    margin: 8px 0;
  }

  .mv-auction-actions input[type="number"] {
    height: 44px;
    font-size: 14px;
  }

  .mv-auction-actions .mv-btn,
  .mv-auction-actions .button,
  .mv-auction-actions button[type="submit"] {
    min-height: 44px;
    font-size: 14px;
    border-radius: 10px;
  }
}

/* ===============================
   Dashboard Mobile App Mode
================================ */
@media (max-width: 768px) {
  .wcmv-dashboard {
    margin: 0;
    padding: 12px;
    border-radius: 0;
  }

  .wcmv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .stat-card {
    padding: 14px;
    border-radius: 14px;
  }

  .stat-card h4 {
    font-size: 12px;
    margin: 0 0 6px;
  }

  .stat-card strong {
    font-size: 22px;
  }

  .wcmv-tabs {
    position: sticky;
    top: 8px;
    z-index: 30;
    margin: 0 0 14px;
    padding: 6px;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 247, 237, 0.96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .wcmv-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 12px;
    scroll-snap-align: start;
  }

  .wcmv-tab.active {
    border-bottom: 0;
    background: #fef3c7;
  }

  .wcmv-panel .vintage-card {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .wcmv-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .wcmv-filter-row input[type="search"] {
    grid-column: 1 / -1;
    min-width: 0;
    height: 40px;
  }

  .wcmv-filter-row select,
  .wcmv-filter-row .button,
  .wcmv-filter-row .button-primary {
    width: 100%;
    height: 40px;
  }

  .wcmv-bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .wcmv-bulk-actions select,
  .wcmv-bulk-actions button,
  .wcmv-bulk-actions .button {
    width: 100%;
    min-width: 0;
  }

  .wcmv-row {
    grid-template-columns: 58px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .wcmv-row-check {
    grid-column: 1;
    grid-row: 1;
  }

  .wcmv-row-thumb {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .wcmv-row-thumb img {
    width: 56px;
    height: 56px;
  }

  .wcmv-row-main {
    grid-column: 2;
    grid-row: 1;
  }

  .wcmv-row-meta {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .wcmv-row-status {
    grid-column: 2;
    grid-row: 3;
  }

  .wcmv-row-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wcmv-row-actions a {
    margin: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
    text-decoration: none;
  }

  .wcmv-row-actions a:hover {
    text-decoration: none;
    background: #ffedd5;
  }

  .wcmv-pagination {
    justify-content: center;
  }

  .wcmv-pagination .button {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
