﻿/* ── DASHBOARD ── */
#dashboard {
  min-height: 100vh;
  background: var(--paper);
}

/* Nav oculto hasta que el usuario esté logueado */
#dash-nav { display: none; }
body.app-ready #dash-nav { display: flex; }

.dash-nav {
  background: color-mix(in srgb, var(--accent), black 18%);
  color: white;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 12px;
}

/* ── Elementos del dash-nav sobre fondo accent ── */
.dash-nav .dash-logo-desktop { color: white; }

.dash-nav .seller-badge {
  background: rgba(255,255,255,.18);
  color: white;
}
.dash-nav .seller-dot { background: rgba(255,255,255,.85); }

.dash-nav .plan-chip--gratis   { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--basico   { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--estandar { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--pro      { background: rgba(255,255,255,.2);  color: white; }
.dash-nav .plan-chip--max      { background: rgba(255,255,255,.2);  color: white; }

.dash-nav .dash-view-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.28);
  color: white;
}
.dash-nav .dash-view-btn:hover { background: rgba(255,255,255,.28); }

.dash-nav .dash-more-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.28);
}
.dash-nav .dash-more-btn span { background: white; }
.dash-nav .dash-more-btn:hover { background: rgba(255,255,255,.28); }

.dash-nav .app-status-btn { color: rgba(255,255,255,.85); }
.dash-nav .app-status-btn:hover { background: rgba(255,255,255,.15); color: white; }

.dash-nav .plan-expires-notice,
.dash-nav .plan-pending-notice { opacity: .9; }

.dash-nav svg { stroke: white; }
.dash-nav .app-status-btn--update svg { stroke: white; }

/* ── Top bar móvil (dashboard) — solo visible en móvil vía responsive.css ── */
#dash-top-bar { display: none; }
body.app-ready #dash-top-bar { display: none; }

/* ── Avatar de perfil en nav ── */
.nav-tab-avatar,
.dash-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}
.nav-tab-avatar img,
.dash-nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-tab-avatar svg,
.dash-nav-avatar svg { width: 16px; height: 16px; opacity: .85; }

.dash-nav-avatar-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .13s;
}
.dash-nav-avatar-btn:hover { background: rgba(255,255,255,.15); }
.dash-nav-avatar-btn:hover .dash-nav-avatar { border-color: rgba(255,255,255,.6); }

.dtb-seller {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px 4px 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: background .13s;
}
.dtb-seller:active { background: rgba(255,255,255,.12); }
.dtb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.dtb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dtb-avatar svg { width: 18px; height: 18px; opacity: .85; }
.dtb-seller-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: -.01em;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
.dtb-right-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.dtb-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.dtb-menu-btn:active { background: rgba(255,255,255,.18); }

.dtb-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  color: white;
  -webkit-tap-highlight-color: transparent;
  transition: background .13s;
}
.dtb-bell-btn:active { background: rgba(255,255,255,.18); }
.dtb-bell-btn svg { stroke: white; }
.dtb-bell-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: white;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}


/* ── Botón Tienda en top bar ── */
.dtb-tienda-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .13s;
}
.dtb-tienda-btn:active { opacity: .7; }
.dtb-tienda-btn svg { stroke: white; flex-shrink: 0; }
.dtb-tienda-label {
  font-size: .6rem;
  font-weight: 600;
  color: white;
  line-height: 1;
}

/* ── Panel Marketing (bottom sheet) ── */
.marketing-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 310;
}
.marketing-overlay.open { display: block; }

.marketing-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  z-index: 311;
  padding: 0 0 calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,1,.44,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
}
.marketing-panel.open { transform: translateY(0); }

.mkt-handle {
  width: 40px;
  height: 4px;
  background: var(--cream);
  border-radius: 2px;
  margin: 12px auto 0;
}
.mkt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}
.mkt-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.mkt-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #78716c;
  -webkit-tap-highlight-color: transparent;
}
.mkt-close-btn:active { background: color-mix(in srgb, var(--cream) 70%, #0f0e0c); }

.mkt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 16px 16px;
}
.mkt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid rgba(15,14,12,.08);
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .13s, transform .1s;
}
.mkt-item:active { background: var(--cream); transform: scale(.97); }
.mkt-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mkt-icon--teal   { background: rgba(20,184,166,.12); color: #0d9488; }
.mkt-icon--violet { background: rgba(124,58,237,.1);  color: #7c3aed; }
.mkt-icon--amber  { background: rgba(245,158,11,.12); color: #d97706; }
.mkt-icon--rose   { background: rgba(244,63,94,.1);   color: #e11d48; }
.mkt-item-icon svg { stroke: currentColor; }
.mkt-item-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .84rem;
  color: var(--ink);
  text-align: center;
}

/* ── Panel de notificaciones ── */
.notif-overlay {
  position: fixed; inset: 0;
  z-index: 305;
  display: none;
  pointer-events: none;
}
.notif-overlay.open { display: block; }

.notif-panel {
  position: fixed;
  top: 55px; right: 8px;
  width: min(340px, calc(100vw - 16px));
  max-height: 72vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
  border: 1px solid rgba(15,14,12,.07);
  z-index: 306;
  display: none;
  flex-direction: column;
}
.notif-panel.open { display: flex; }

.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0ede8;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.notif-panel-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: .92rem; color: var(--ink);
}
.notif-panel-close {
  width: 28px; height: 28px;
  background: var(--cream); border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; color: var(--soft);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.notif-list { display: flex; flex-direction: column; }

.notif-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border: none; background: none; cursor: pointer; text-align: left;
  border-bottom: 1px solid rgba(15,14,12,.08);
  transition: background .13s;
  width: 100%;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover, .notif-item:active { background: var(--paper); }

.notif-item-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; border-radius: 11px; flex-shrink: 0;
  background: var(--cream);
}
.notif-item--orange .notif-item-icon { background: #fff7ed; }
.notif-item--red    .notif-item-icon { background: #fef2f2; }
.notif-item--yellow .notif-item-icon { background: #fefce8; }
.notif-item--violet .notif-item-icon { background: #f5f3ff; }
.notif-item--blue   .notif-item-icon { background: #eff6ff; }

.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: .84rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-item-sub {
  font-size: .74rem; color: var(--soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.notif-item-arrow { color: #c4bfb9; flex-shrink: 0; }

.notif-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 16px; gap: 10px; color: var(--soft); font-size: .85rem;
}
.notif-empty-icon {
  width: 44px; height: 44px;
  background: var(--cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.seller-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}

.seller-badge {
  background: rgba(0,0,0,.05);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: .8rem;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}

.seller-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; flex-shrink: 0; }

.dash-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 24px;
  background: var(--paper);
  min-height: 100vh;
}

.dash-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-title-group { flex-shrink: 0; }

.dash-top-row .share-bar {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.dash-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.dash-sub { color: #a8a49e; font-size: .76rem; margin-top: 3px; font-weight: 400; letter-spacing: 0; }

/* ── Share bar compacto ── */
.share-bar {
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.share-bar-icon { font-size: .9rem; flex-shrink: 0; opacity: .6; }

.share-url {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: rgba(255,255,255,.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 7px;
  padding: 6px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,.18); }
.copy-btn.copied { background: #16a34a; border-color: #16a34a; }
.copy-btn--muted { background: rgba(255,255,255,.08); }
.copy-btn--sm  { padding: 4px 8px; font-size: .72rem; }
.copy-btn--xs  { padding: 2px 7px; font-size: .7rem; }

.btn-logout { color: white; border-color: rgba(255,255,255,.2); }

.share-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Share bar expandido (links múltiples) ── */
.share-links-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.share-link-label {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}
.share-url--sm {
  font-size: .78rem;
  flex: 1;
}
/* ── Dropdown colecciones en share bar ── */
.share-collections-wrap {
  position: relative;
  flex-shrink: 0;
}
.share-col-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #1a1916;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  min-width: 240px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 500;
  padding: 6px;
}
.share-col-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  transition: background .12s;
}
.share-col-item:hover { background: rgba(255,255,255,.07); }
.share-col-name {
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header--lg { margin-bottom: 24px; }

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid #e8e5e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,14,12,.05);
  background: #fff;
}

/* ── Lista de productos ────────────── */
.pl-row {
  border-bottom: 1px solid rgba(15,14,12,.07);
}
.pl-row:last-of-type { border-bottom: none; }
.pl-row--featured { border-left: 3px solid var(--accent); }
.pl-row--out .pl-thumb { opacity: .45; }
.pl-row--vendor-hidden .pl-name-row,
.pl-row--hidden .pl-name-row { opacity: .38; }

.pl-main {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
}
.pl-row:hover .pl-main { background: rgba(15,14,12,.018); }

.pl-thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  background: var(--cream); position: relative;
  cursor: pointer; transition: opacity .15s;
}
.pl-thumb:hover { opacity: .82; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-thumb-emoji {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.pl-badge {
  position: absolute; top: 2px; right: 2px;
  font-size: .48rem; font-weight: 700; padding: 1px 3px; border-radius: 3px; line-height: 1.4;
}
.pl-badge--hidden   { background: rgba(0,0,0,.55); color: #fff; }
.pl-badge--video    { background: rgba(0,0,0,.6); color: #fff; }
.pl-badge--temporal { background: #dc2626; color: #fff; animation: temporal-pulse 2s ease-in-out infinite; }
@keyframes temporal-pulse { 0%,100% { opacity:1; } 50% { opacity:.7; } }

.pl-info { flex: 1; min-width: 0; }
.pl-name-row {
  display: flex; align-items: baseline; gap: 4px;
  overflow: hidden;
}
.pl-name-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: .85rem; color: #1c1917;
  letter-spacing: -0.01em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex-shrink: 1;
}
.pl-name-star { font-size: .72rem; flex-shrink: 0; }
.pl-name-tag {
  font-size: .52rem; font-weight: 700; line-height: 1.3;
  padding: 1px 4px; border-radius: 3px; color: #fff;
  flex-shrink: 0; white-space: nowrap;
}
.pl-name-tag--violet { background: rgba(109,40,217,.82); }
.pl-name-tag--teal   { background: rgba(13,148,136,.82); }
.pl-name-tag--rose   { background: rgba(225,29,72,.82); }
.pl-name-tag--amber  { background: rgba(217,119,6,.88); }

.pl-sub {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap; margin-top: 3px;
}
.pl-price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: .8rem;
  color: var(--accent); white-space: nowrap;
}
.pl-price-was {
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem; color: #c4bfb8; font-weight: 400;
  text-decoration: line-through; white-space: nowrap;
}
.pl-sub-dot { color: rgba(15,14,12,.2); font-size: .75rem; }
.pl-sub-cat {
  font-size: .68rem; color: #78716c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px;
}
.pl-code {
  font-family: 'DM Mono', 'DM Sans', monospace;
  font-size: .62rem; color: #b5b0a8; letter-spacing: .3px;
}
.pl-stock {
  font-size: .6rem; font-weight: 600;
  padding: 1px 5px; border-radius: 4px;
  flex-shrink: 0; white-space: nowrap;
}
.pl-stock--ok  { background: #f0fdf4; color: #16a34a; border: 1px solid #d1fae5; }
.pl-stock--low { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }
.pl-stock--out { background: #fff1f2; color: #e11d48; border: 1px solid #fce7f3; }

/* Botones inline (dentro de pl-info) */
.pl-btns {
  display: flex; align-items: center; gap: 1px;
  margin-top: 5px;
}
.pl-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border-radius: 7px; border: none; background: transparent;
  cursor: pointer; color: rgba(15,14,12,.28);
  transition: background .12s, color .12s;
  font-family: inherit; flex-shrink: 0;
}
.pl-btn:hover { background: rgba(15,14,12,.06); color: rgba(15,14,12,.68); }
.pl-btn svg { flex-shrink: 0; }
.pl-btn--vis-on { color: #16a34a; }
.pl-btn--vis-on:hover { background: rgba(22,163,74,.08); color: #15803d; }
.pl-btn--may-on { color: #0d9488; }
.pl-btn--may-on:hover { background: rgba(13,148,136,.08); color: #0d9488; }
.pl-btn--del { color: rgba(15,14,12,.2); }
.pl-btn--del:hover { background: rgba(220,38,38,.08); color: #dc2626; }

/* Botón editar — esquina derecha de pl-main */
.pl-edit-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex-shrink: 0;
  border-radius: 8px; border: none; background: transparent;
  cursor: pointer; color: rgba(15,14,12,.25);
  transition: background .12s, color .12s;
  align-self: flex-start; margin-top: 6px;
}
.pl-edit-btn:hover { background: rgba(37,99,235,.08); color: #2563eb; }
.pl-edit-btn svg { flex-shrink: 0; }

/* Imagen desaturada cuando el producto está oculto */
.pl-thumb--hidden img,
.pl-thumb--hidden .pl-thumb-emoji {
  filter: grayscale(100%);
  opacity: .55;
}

/* Badges sobre la imagen del thumbnail */
.pl-hidden-badge {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: .44rem; font-weight: 700; line-height: 1.4;
  padding: 1px 4px; border-radius: 3px;
  background: rgba(107,114,128,.85); color: #fff;
  white-space: nowrap;
}

.pl-feat-pin {
  position: absolute; top: 3px; right: 3px;
  font-size: .75rem; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

.pl-tag-strip {
  position: absolute; bottom: 3px; left: 6px; right: 3px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.pl-tag-pill {
  font-size: .42rem; font-weight: 700; line-height: 1.3;
  padding: 1px 4px; border-radius: 3px;
  background: rgba(109,40,217,.82); color: #fff;
  white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.pl-tag-pill--violet  { background: rgba(109,40,217,.85); }
.pl-tag-pill--teal    { background: rgba(13,148,136,.85); }
.pl-tag-pill--rose    { background: rgba(225,29,72,.85); }
.pl-tag-pill--amber   { background: rgba(217,119,6,.9); }

.pl-settings-wrap { position: relative; }

/* Dropdown de mayoreo */
.pl-settings-dropdown {
  display: none;
  position: absolute; top: calc(100% + 5px); left: 0;
  background: #fff; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14), 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid rgba(15,14,12,.07);
  z-index: 200; min-width: 210px;
}
.pl-settings-dropdown.open { display: block; }

/* Columna izquierda — opciones de navegación */
.plsd-nav {
  display: flex; flex-direction: column;
  border-right: 1px solid #f0ede8;
  min-width: 110px;
}
.plsd-nav-item {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 11px 12px;
  background: none; border: none; cursor: pointer;
  font-size: .82rem; color: #6b7280; text-align: left;
  font-family: 'DM Sans', sans-serif; white-space: nowrap;
  border-left: 2px solid transparent;
}
.plsd-nav-item:hover { background: var(--paper); color: var(--ink); }
.plsd-nav-item.active {
  background: #f5f3ff; color: #6d28d9;
  border-left-color: #6d28d9; font-weight: 600;
}
.plsd-nav-item.active svg { stroke: #6d28d9; }
.plsd-nav-item + .plsd-nav-item { border-top: 1px solid rgba(15,14,12,.07); }

/* Columna derecha — toggles de la sección activa */
.plsd-content {
  padding: 8px 12px 10px;
  min-width: 160px;
}
.plsd-content .pl-toggle-row { padding: 8px 0; }
.plsd-content .pl-toggle-row + .pl-toggle-row { border-top: 1px solid rgba(15,14,12,.07); }
.plsd-content .pl-wholesale-fields { padding: 4px 0 2px; }
.plsd-content .pl-wholesale-row { margin-bottom: 6px; }

.pl-drawer {
  padding: 10px 18px 12px 82px;
  background: var(--paper);
  border-top: 1px solid rgba(15,14,12,.07);
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.pl-toggle-row {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; user-select: none;
}
.pl-toggle-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pl-toggle-icon--blue   { background: rgba(37,99,235,.08);  color: #2563eb; }
.pl-toggle-icon--amber  { background: rgba(217,119,6,.08);  color: #d97706; }
.pl-toggle-icon--yellow { background: rgba(202,138,4,.08);  color: #ca8a04; }
.pl-toggle-icon--violet { background: rgba(124,58,237,.08); color: #7c3aed; }
.pl-toggle-icon--teal   { background: rgba(13,148,136,.08); color: #0d9488; }
.pl-toggle-icon--rose   { background: rgba(225,29,72,.08);  color: #e11d48; }
.pl-toggle-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .76rem; font-weight: 400;
  color: #57534e; min-width: 68px;
}

.products-grid .add-product-card {
  border-radius: 0; box-shadow: none; border: none;
  border-top: 1px dashed #e5e1db; margin: 0;
  background: transparent;
  min-height: 54px;
}
/* ─────────────────────────────────────────────────── */

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid rgba(15,14,12,.08);
  box-shadow: var(--shadow);
  transition: box-shadow .18s, border-color .18s;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(15,14,12,.14); }

/* ── Col izquierda: Imagen + Detalles apilados ── */
.pc-left-col {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
  border-right: 1.5px solid rgba(15,14,12,.07);
  min-width: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
}

.pc-img-col {
  position: relative;
  width: 100%;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
}
.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-img--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: var(--cream);
  height: 100%;
}
.pc-chip {
  position: absolute;
  bottom: 6px; left: 6px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.pc-chip--gray { background: rgba(30,30,30,.72); color: #fff; }

/* ── Detalles (bajo la imagen) ── */
.pc-details-col {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1.5px solid rgba(15,14,12,.07);
}
.pc-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pc-code {
  font-size: .68rem;
  color: var(--soft);
  font-family: monospace;
  letter-spacing: .06em;
}
.pc-cat-chip {
  font-size: .68rem;
  background: rgba(15,14,12,.07);
  border-radius: 999px;
  padding: 1px 7px;
  color: var(--soft);
  font-weight: 500;
}
.pc-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}
.pc-price-was {
  font-size: .74rem;
  color: var(--soft);
  text-decoration: line-through;
}
.pc-desc {
  font-size: .74rem;
  color: var(--soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* ── Col derecha: Estado + Acciones ── */
.pc-state-col {
  flex: 1;
  min-width: 0;
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(15,14,12,.018);
}
.pc-state-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0b7c3;
  padding-bottom: 3px;
  user-select: none;
}
.pc-toggle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  transition: background .1s;
  min-width: 0;
  overflow: hidden;
}
.pc-toggle-row:hover { background: rgba(15,14,12,.05); }
.pc-t-icon {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform .12s;
}
.pc-toggle-row:hover .pc-t-icon { transform: scale(1.1); }
.pc-t-icon--blue   { color: #2563eb; background: #eff6ff; }
.pc-t-icon--amber  { color: #d97706; background: #fffbeb; }
.pc-t-icon--yellow { color: #ca8a04; background: #fefce8; }

.pc-t-label {
  flex: 1; min-width: 0;
  font-size: .68rem; font-weight: 500; color: var(--soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-sep { height: 1px; background: rgba(15,14,12,.08); margin: 5px 0; }

/* ── Acordeón de secciones en la tarjeta ── */
.pc-accordion {
  border-bottom: 1px solid rgba(15,14,12,.08);
}
.pc-accordion:last-of-type { border-bottom: none; }
.pc-acc-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 0;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}
.pc-acc-hdr:hover { opacity: .75; }
.pc-acc-title {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0b7c3;
  user-select: none;
}
.pc-acc-arrow {
  color: #b0b7c3;
  flex-shrink: 0;
  transition: transform .2s;
}
.pc-accordion--open .pc-acc-arrow { transform: rotate(180deg); }
.pc-acc-body {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 6px;
}
.pc-accordion--open .pc-acc-body { display: flex; }

/* Indicadores activos (visibles solo cuando el acordeón está cerrado) */
.pc-acc-active {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding-bottom: 5px;
  min-height: 4px;
}
.pc-accordion--open .pc-acc-active { display: none; }
.pc-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 2px 6px 2px 4px;
  border-radius: 999px;
  line-height: 1;
}
.pc-active-pill--blue   { color: #2563eb; background: #eff6ff; }
.pc-active-pill--amber  { color: #d97706; background: #fffbeb; }
.pc-active-pill--yellow { color: #ca8a04; background: #fefce8; }
.pc-active-pill--violet { color: #7c3aed; background: #ede9fe; }
.pc-active-pill--teal   { color: #0d9488; background: #f0fdfa; }
.pc-active-pill--rose   { color: #e11d48; background: #fff1f2; }

/* Etiquetas en grid 2×2 */
.pc-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}
.pc-tag-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  padding: 3px 2px;
  border-radius: 6px;
  transition: background .1s;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.pc-tag-toggle:hover { background: rgba(15,14,12,.05); }

.pc-tag-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform .12s;
}
.pc-tag-toggle:hover .pc-tag-icon { transform: scale(1.12); }
.pc-tag-icon--violet { color: #7c3aed; background: #ede9fe; }
.pc-tag-icon--teal   { color: #0d9488; background: #f0fdfa; }
.pc-tag-icon--rose   { color: #e11d48; background: #fff1f2; }
.pc-tag-icon--amber  { color: #d97706; background: #fffbeb; }

/* Tooltip genérico vía data-tooltip (solo en hover) */
.pc-toggle-row[data-tooltip],
.pc-tag-toggle[data-tooltip] { position: relative; }

.pc-toggle-row[data-tooltip]::after,
.pc-tag-toggle[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,14,12,.88);
  color: #fff;
  font-size: .67rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 60;
}
.pc-toggle-row[data-tooltip]:hover::after,
.pc-tag-toggle[data-tooltip]:hover::after { opacity: 1; }

/* Acciones siempre visibles al pie */
.pc-block-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1.5px solid rgba(15,14,12,.08);
}
.pc-block-foot .pc-act-btn {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  justify-content: flex-start;
  gap: 7px;
  font-size: .73rem;
  font-weight: 600;
  border-radius: 8px;
}
/* Editar */
.pc-block-foot .pc-act-btn--edit {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
.pc-block-foot .pc-act-btn--edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
/* Eliminar */
.pc-block-foot .pc-act-btn--del {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.pc-block-foot .pc-act-btn--del:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}
/* ⋯ Más */
.pc-block-foot .prod-menu-btn {
  background: rgba(15,14,12,.04);
  border-color: rgba(15,14,12,.11);
  color: var(--soft);
}
.pc-block-foot .prod-menu-btn:hover {
  background: rgba(15,14,12,.08);
  border-color: rgba(15,14,12,.18);
  color: var(--ink);
}
.pc-act-label { flex: 1; text-align: left; }
.pc-act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 28px;
  border: 1.5px solid rgba(15,14,12,.1);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: .85rem;
  transition: background .12s, border-color .12s;
  flex-shrink: 0;
}
.pc-act-btn:hover { background: rgba(15,14,12,.05); border-color: rgba(15,14,12,.18); }
.pc-act-btn--edit:hover { background: #eff6ff; border-color: #93c5fd; }
.pc-act-btn--del:hover  { background: #fef2f2; border-color: #fca5a5; }

/* legado — se mantiene por compatibilidad con catalog.js */
.product-body { padding: 12px 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.product-name { font-weight: 600; font-size: .92rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-desc { font-size: .78rem; color: var(--soft); font-weight: 300; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.product-actions { display: flex; gap: 6px; }

.add-product-card {
  border: 2px dashed rgba(15,14,12,.15);
  border-radius: var(--radius);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
  color: var(--soft);
  background: transparent;
  min-height: 70px;
}
.add-product-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}
.add-product-card .plus { font-size: 2rem; font-weight: 300; }
.add-product-card span { font-size: .82rem; font-weight: 500; }
.add-card-sub { font-size: .72rem; color: var(--muted); font-weight: 400; }

.add-product-card--locked {
  border-color: rgba(139,92,246,.25);
  color: #a78bfa;
}
.add-product-card--locked:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background: rgba(139,92,246,.04);
}

.btn-limit {
  color: #a78bfa !important;
  border-color: rgba(139,92,246,.3) !important;
}

#btn-add-product {
  background: #0f0e0c;
  border-color: #0f0e0c;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}
#btn-add-product:hover { background: #2c2a28; border-color: #2c2a28; }

/* ── Strip de verificación en dashboard ── */
.verify-strip {
  background: #1e1b4b;
  color: white;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .82rem;
}
.verify-strip-icon { font-size: 1rem; flex-shrink: 0; }
.verify-strip-text { font-weight: 600; flex: 1; min-width: 120px; }
.verify-strip-form {
  display: flex;
  gap: 7px;
  align-items: center;
}
.verify-strip-form input {
  width: 90px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 5px 8px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 7px;
  background: rgba(255,255,255,.1);
  color: white;
}
.verify-strip-form input::placeholder { color: rgba(255,255,255,.4); letter-spacing: .08em; }
.verify-strip-form input:focus { outline: none; border-color: rgba(255,255,255,.6); }

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { opacity: .75; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,14,12,.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal--login { max-width: 440px; }

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.form-group { margin-bottom: 18px; }

.price-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(15,14,12,.14);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.price-input-wrap:focus-within { border-color: var(--accent); }
.price-currency-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(15,14,12,.04);
  border-right: 1.5px solid rgba(15,14,12,.1);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.price-input-wrap input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent;
  padding-left: 10px;
}

.input--error {
  border-color: #ef4444 !important;
  background: rgba(239,68,68,.04) !important;
  animation: shake .3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.field-hint {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}

.wa-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.wa-input-wrap:focus-within { border-color: var(--accent); }
.wa-input-wrap.input--error  { border-color: #ef4444; }
.wa-prefix {
  padding: 11px 12px;
  background: rgba(15,14,12,.05);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  border-right: 1.5px solid rgba(15,14,12,.1);
  white-space: nowrap;
  user-select: none;
}
/* ── Input con ícono (toggle contraseña) ── */
.input-icon-wrap { position: relative; }
.input-with-icon { padding-right: 2.5rem; width: 100%; box-sizing: border-box; }
.input-eye-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--soft);
  padding: 0; line-height: 1;
}

.wa-input-wrap input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
}

label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--ink);
  letter-spacing: .01em;
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent2); }
textarea { min-height: 80px; resize: vertical; }

/* ── Modal producto (dos columnas) ── */
.modal--product {
  max-width: 700px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}
.modal-header .modal-title { margin-bottom: 0; }

.modal-close-btn {
  width: 34px; height: 34px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.modal-close-btn:hover { background: var(--ink); color: white; }

.product-layout {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.product-img-col {
  padding: 24px 28px 0;
}

.product-fields-col {
  padding: 20px 28px 8px;
}

.modal--product .modal-footer {
  padding: 16px 28px;
  border-top: 1.5px solid rgba(15,14,12,.07);
  margin-top: 0;
  flex-shrink: 0;
}

/* ── Área de subida de imagen ── */
.img-upload-area {
  border: 2px dashed rgba(15,14,12,.15);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 180px;
}
.img-upload-area:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 3%, transparent); }

.product-img-col .img-upload-area { aspect-ratio: 3/4; width: 100%; min-height: unset; }

.img-ratio-row { display:flex; align-items:center; gap:10px; margin-top:10px; }
.img-ratio-label { font-size:.75rem; color:var(--soft); white-space:nowrap; }
.img-ratio-btns { display:flex; gap:6px; }
.ratio-btn {
  display:flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:8px; border:1.5px solid var(--border);
  background:#fff; cursor:pointer; font-size:.78rem; color:var(--soft);
  transition: border-color .15s, color .15s;
}
.ratio-btn--active { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb, var(--accent) 5%, transparent); }
.ratio-preview { display:inline-block; background:var(--border); border-radius:2px; flex-shrink:0; }
.ratio-preview--square  { width:14px; height:14px; }
.ratio-preview--portrait { width:11px; height:15px; }

.img-placeholder {
  text-align: center;
  color: var(--soft);
  font-size: .82rem;
  padding: 20px;
  pointer-events: none;
  line-height: 1.5;
}
.img-placeholder-icon { font-size: 2rem; margin-bottom: 8px; }
.img-placeholder-hint { font-size: .72rem; margin-top: 6px; color: rgba(168,164,156,.8); }
.img-placeholder-hint--muted { margin-top: 10px; opacity: .6; }


.img-preview-wrap { position: relative; width: 100%; height: 100%; }
.img-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-remove-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.62);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .73rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.img-remove-btn:hover { background: #ef4444; }

/* Imagen en tarjetas de producto */
.product-img img,
.cat-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.emoji-opt {
  aspect-ratio: 1;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.emoji-opt:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.emoji-opt.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--soft);
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
  background: none;
  border: none;
  padding: 0;
}
.modal-close:hover { color: var(--ink); }

.login-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.login-logo span { color: var(--accent); }

.login-sub { color: var(--soft); font-size: .88rem; margin-bottom: 32px; font-weight: 300; }

.login-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.tabs {
  display: flex;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all .2s;
  color: var(--soft);
}
.tab.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.btn-block { width: 100%; margin-top: 4px; }

/* ── Wizard de registro ── */
.reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 20px;
}
.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.reg-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream);
  color: #a8a49e;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.reg-step span {
  font-size: .62rem;
  color: #a8a49e;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s;
}
.reg-step--active .reg-step-dot {
  background: var(--accent);
  color: white;
}
.reg-step--active span { color: var(--ink); font-weight: 700; }
.reg-step--done .reg-step-dot {
  background: #d1fae5;
  color: #059669;
}
.reg-step--done .reg-step-dot::after { content: '✓'; }
.reg-step--done .reg-step-dot { font-size: 0; }
.reg-step--done span { color: #059669; }
.reg-step-line {
  flex: 1;
  height: 2px;
  background: var(--cream);
  margin: 0 6px;
  margin-bottom: 16px;
  min-width: 24px;
  max-width: 48px;
}
.reg-step-panel { animation: reg-fade .18s ease; }
@keyframes reg-fade { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: none; } }
.reg-nav-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 12px;
}
.reg-nav-row .btn { flex: 1; }
/* Preview mini de tienda */
.reg-preview {
  background: var(--paper);
  border: 1px solid rgba(15,14,12,.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 6px 0 14px;
}
.reg-preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.reg-preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.reg-preview-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
}
.reg-preview-desc {
  font-size: .74rem;
  color: var(--soft);
  margin-left: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Paso 3 */
.reg-step3-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.reg-step3-icon { font-size: 1.6rem; }
.reg-step3-title { font-weight: 700; font-size: .9rem; color: var(--ink); }
.reg-step3-sub   { font-size: .76rem; color: var(--soft); margin-top: 2px; }

/* Selector de modo de venta — paso 3 */
.reg-mode-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.reg-mode-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
  width: 100%;
  font-family: inherit;
}
.reg-mode-card:hover { border-color: var(--accent); }
.reg-mode-card--active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.reg-mode-icon { font-size: 1.4rem; flex-shrink: 0; }
.reg-mode-card strong { display: block; font-size: .88rem; color: var(--ink); }
.reg-mode-card small  { display: block; font-size: .75rem; color: var(--soft); margin-top: 2px; }

.login-back {
  margin-top: 20px;
  text-align: center;
  font-size: .78rem;
  color: var(--soft);
}
.login-back span {
  cursor: pointer;
  text-decoration: underline;
}

.forgot-link {
  text-align: right;
  margin-top: 8px;
}
.forgot-link a {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
}
.forgot-link a:hover { text-decoration: underline; color: var(--primary); }

#forgot-msg {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .85rem;
}
#forgot-msg.forgot-msg--success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
#forgot-msg.forgot-msg--error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.demo-note {
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .78rem;
  color: var(--accent2);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Modal QR ── */
.modal--qr { max-width: 380px; padding: 0; }

.qr-body {
  padding: 28px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-frame {
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--cream);
  box-shadow: var(--shadow);
  display: inline-flex;
}

.qr-frame img,
.qr-frame canvas { display: block; border-radius: 4px; }

.qr-url {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  word-break: break-all;
  text-align: center;
  max-width: 280px;
}

.qr-hint {
  font-size: 0.76rem;
  color: var(--soft);
  text-align: center;
  line-height: 1.55;
  max-width: 260px;
}

/* ── Modal perfil ── */
.modal--profile { max-width: 460px; padding: 0; }
.profile-modal-body { padding: 16px 28px 8px; }

/* ── Avatar de perfil ── */
.prof-avatar-row {
  padding: 0 24px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.prof-avatar-hint { font-size: .75rem; color: var(--soft); padding-bottom: 6px; }
.prof-avatar-wrap {
  position: relative;
  width: 72px; height: 72px;
  cursor: pointer;
  flex-shrink: 0;
}
.prof-avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.prof-avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-avatar-overlay {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.prof-avatar-wrap:hover .prof-avatar-overlay { opacity: 1; }
.prof-avatar-remove {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(30,30,30,.8);
  border: 2px solid var(--surface);
  color: #fff; font-size: .7rem;
  cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.modal-footer--bordered { border-top: 1.5px solid rgba(15,14,12,.07); padding: 16px 28px; margin: 0; }

/* ── Banner upload en modal de perfil ── */
.banner-upload-area {
  position: relative;
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #1a1916 0%, #2a2825 100%);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  pointer-events: none;
  user-select: none;
}
.banner-upload-icon { font-size: 1.6rem; }
.banner-upload-hint { font-size: .72rem; color: rgba(255,255,255,.25); }
.banner-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.banner-upload-area:hover .banner-upload-overlay { opacity: 1; }
.banner-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  z-index: 2;
}
.banner-remove-btn:hover { background: rgba(200,40,40,.8); }

/* ── Dashboard nav actions ── */
.dash-nav-actions { display: flex; gap: 8px; align-items: center; }

/* Solo desktop / solo móvil */
.dash-mob-only { display: none; }
.dash-desk-only { display: flex; }
.dash-logo-desktop { display: none; }

.dash-nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: white;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.dash-nav-brand em { font-style: normal; opacity: .6; }
.dash-brand-br { display: inline; }

/* ── Botón ver catálogo nav ── */
.dash-view-btn {
  height: 36px;
  padding: 0 12px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  cursor: pointer;
  font-size: .82rem;
  display: flex; align-items: center; gap: 5px;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}
.dash-view-btn:hover { background: rgba(0,0,0,.1); }

/* ── Tres puntos nav ── */
.dash-more-wrap { position: relative; }
.dash-more-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.dash-more-btn span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.dash-more-btn:hover { background: rgba(0,0,0,.1); }
.dash-more-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  padding: 8px;
  min-width: 240px;
  z-index: 999;
  border: 1px solid rgba(0,0,0,.06);
}
.dash-more-menu.open { display: block; }
.dash-more-menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none; background: none;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .13s;
}
.dash-more-menu button:hover { background: var(--paper); }
.dash-more-sep { height: 1px; background: rgba(15,14,12,.09); margin: 4px 6px; }

.dmm-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.dmm-icon--violet { background: rgba(124,58,237,.75); color: #fff; }
.dmm-icon--teal   { background: rgba(13,148,136,.75);  color: #fff; }
.dmm-icon--amber  { background: rgba(245,158,11,.75);  color: #fff; }
.dmm-icon--blue   { background: rgba(37,99,235,.75);   color: #fff; }
.dmm-icon--red    { background: rgba(239,68,68,.75);   color: #fff; }
.dmm-icon--pink   { background: rgba(219,39,119,.75);  color: #fff; }
.dmm-icon--emerald { background: rgba(5,150,105,.75);  color: #fff; }
.dmm-icon--indigo  { background: rgba(79,70,229,.75);  color: #fff; }

.dmm-text {
  display: flex; flex-direction: column; gap: 1px;
}
.dmm-label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.dmm-sub {
  font-size: .73rem;
  color: var(--soft);
  line-height: 1.2;
}
.dash-more-danger .dmm-label { color: #dc2626; }

/* ── [+] Botón central bottom nav ── */
.dash-add-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-add-btn {
  width: 64px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.dash-add-btn:active { transform: scale(0.9); }
.dash-add-btn svg { stroke: white; }
.dash-add-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: white;
  opacity: 0.9;
}
/* Menú [+] — base desktop: siempre oculto; estilos visuales en responsive.css */
.dash-add-menu { display: none; }
.dash-add-menu.open { display: none; } /* override en responsive (móvil) y desktop abajo */

/* Overlay de fondo — solo visible en móvil (override en responsive.css) */
.dash-add-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.32);
  z-index: 298;
  -webkit-tap-highlight-color: transparent;
}
.dash-add-overlay.open { display: none; }

/* Etiqueta corta bajo ícono en menú [+] */
.amm-label-short {
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
  line-height: 1;
  display: block;
}

/* Etiqueta bajo ícono en bottom nav — oculta por defecto (sólo móvil la activa) */
.dash-bnav-label { display: none; font-size: .6rem; font-weight: 500; letter-spacing: .02em; color: inherit; line-height: 1; }

.dmm-plan-badge {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dmm-plan-badge--gratis   { background: rgba(0,0,0,.08);        color: #6b7280; }
.dmm-plan-badge--basico   { background: rgba(37,99,235,.15);    color: #1d4ed8; }
.dmm-plan-badge--estandar { background: rgba(234,88,12,.15);    color: #c2410c; }
.dmm-plan-badge--pro      { background: rgba(124,58,237,.15);   color: #6d28d9; }
.dmm-plan-badge--max      { background: rgba(234,179,8,.18);    color: #b45309; }
.dash-more-verify { padding: 4px 0 8px; }
.dmm-verify-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 6px;
  pointer-events: none;
}
.dash-more-verify-row {
  display: flex;
  gap: 6px;
  padding: 0 14px;
  margin-top: 2px;
}
.dash-more-verify-row input {
  flex: 1; padding: 8px 11px; border: 1.5px solid #e0dbd3;
  border-radius: 8px; font-size: .9rem; font-family: monospace;
  letter-spacing: 4px; min-width: 0; background: var(--paper);
  transition: border-color .15s;
}
.dash-more-verify-row input:focus { outline: none; border-color: var(--accent); background: #fff; }
.dash-more-verify-row input::placeholder { letter-spacing: 3px; color: #c0c0c0; }
.dmm-icon--green { background: rgba(22,163,74,.12); color: #15803d; }

/* ── Plan chip en el nav ── */
.plan-chip {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-radius: 20px;
  padding: 4px 11px;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.plan-chip:hover { opacity: .85; transform: scale(1.04); }
.plan-chip--gratis   { background: rgba(0,0,0,.07);       color: #6b7280; }
.plan-chip--basico   { background: rgba(59,130,246,.12); color: #2563eb; }
.plan-chip--estandar { background: rgba(232,93,38,.12);  color: #c2410c; }
.plan-chip--pro      { background: rgba(139,92,246,.12); color: #7c3aed; }
.plan-chip--max      { background: rgba(234,179,8,.15);  color: #b45309; }

/* ── Modal Upgrade ── */
.modal--upgrade {
  max-width: 700px;
  width: 95vw;
  padding: 0;
}
.upgrade-modal-body {
  padding: 0 28px 24px;
  overflow-y: auto;
  max-height: 80vh;
}
.upgrade-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 20px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.plan-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.plan-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.plan-card--current {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.plan-card--popular {
  border-color: #8b5cf6;
}
.plan-popular-tag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
}
.plan-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.plan-card-price small { font-size: .65rem; font-weight: 400; color: var(--muted); margin-left: 1px; }
.price-free { font-size: 1rem; color: var(--muted); }
.plan-features-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.plan-current-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  padding-top: 4px;
}
.billing-toggle {
  display: flex;
  gap: 6px;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}
.billing-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--soft);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}
.billing-btn--active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,14,12,.1);
}
.billing-save-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 20px;
}
.plan-price-save {
  font-size: .65rem;
  font-weight: 500;
  color: #15803d;
  margin-top: 2px;
}
.upgrade-note {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ── Campos bloqueados en modal de perfil ── */
.field-locked {
  position: relative;
  cursor: pointer;
}
.field-locked label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-locked label::after {
  content: '🔒 Estándar+';
  font-size: .65rem;
  font-weight: 700;
  background: rgba(139,92,246,.15);
  color: #8b5cf6;
  border-radius: 4px;
  padding: 1px 5px;
}
.field-locked input {
  background: rgba(0,0,0,.03);
  color: var(--muted);
  cursor: pointer;
}

/* ── Banner bloqueado ── */
.banner-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: white;
  font-size: .82rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 3;
}
.banner-lock-icon { font-size: 1.5rem; }
.banner-lock-hint { font-size: .7rem; color: rgba(255,255,255,.6); font-weight: 400; }
.banner--locked .banner-upload-overlay { display: none !important; }
