/* =====================================================================
   assets/css/pages/variantes.css
   Colores y tallas: formulario del producto (vr-) y ventanita para
   escoger en el POS (vp-).
   ===================================================================== */
.vr-sec[hidden] { display: none !important; }
.vr-sec [hidden] { display: none !important; }
.vr-op { font-size: 11px; font-weight: 700; color: #8a8a94; background: #f1f1f4; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.vr-sec label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 7px; color: #161823; }
.vr-modo, .vr-tipos { flex-wrap: wrap; }
.vr-tipos { margin-bottom: 10px; }
.vr-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.vr-chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #e3e3e8; border-radius: 20px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; background: #fff; color: #161823; cursor: pointer; font-family: inherit; }
.vr-chip.on { border-color: #7C3AED; background: #f6f1ff; color: #5b21b6; }
.vr-chip button { border: 0; background: none; color: #9a97a8; padding: 0 0 0 2px; font-size: 12px; cursor: pointer; }
.vr-talla { min-width: 48px; justify-content: center; padding: 7px 10px; }
.vr-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; display: inline-block; }
.vr-dot.g { width: 22px; height: 22px; }
.vr-vacio { font-size: 12.5px; color: #8a8a94; }
.vr-agregar { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.vr-agregar .pn-in { flex: 1; }
.vr-agregar input[type=color] { width: 38px; height: 38px; border: 1px solid #e3e3e8; border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; flex: none; }
.vr-btn { border: 0; background: #7C3AED; color: #fff; border-radius: 6px; padding: 10px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.vr-rapidos { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 9px; align-items: center; }
.vr-rap-t { font-size: 12px; color: #8a8a94; margin-right: 2px; }
.vr-rapidos button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ececf1; background: #fafafc; border-radius: 14px; padding: 3px 9px; font-size: 12px; color: #3f3c4d; cursor: pointer; }
.vr-rapidos button:hover { border-color: #c4b5fd; }
.vr-rapidos .vr-dot { width: 11px; height: 11px; }
.vr-nota { display: flex; gap: 8px; align-items: flex-start; background: #f6f1ff; color: #4c1d95; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-top: 10px; line-height: 1.45; }
.vr-nota i { margin-top: 2px; }
.vr-tabla-wrap { overflow-x: auto; }
.vr-tabla { border-collapse: collapse; width: 100%; min-width: 280px; }
.vr-tabla th { font-size: 12px; color: #8a8a94; font-weight: 700; text-align: center; padding: 6px 4px; white-space: nowrap; }
.vr-tabla td { padding: 5px 4px; text-align: center; border-top: 1px solid #f1f0f5; }
.vr-tabla .vr-c1 { text-align: left; min-width: 130px; }
.vr-fila-c { display: flex; align-items: center; gap: 9px; }
.vr-fila-c b { display: block; font-size: 13.5px; }
.vr-fila-c select { border: 0; background: none; color: #7C3AED; font-size: 11.5px; font-weight: 600; padding: 0; cursor: pointer; }
.vr-n { width: 58px; border: 1px solid #e3e3e8; border-radius: 6px; padding: 7px 0; text-align: center; font-size: 14px; font-weight: 600; font-family: inherit; color: #161823; }
.vr-n:focus { outline: none; border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,.08); }
.vr-n.cero { color: #b6b3c2; }
.vr-tot { font-weight: 800; font-size: 14px; }
.vr-pie td { border-top: 2px solid #ececf1; font-weight: 800; font-size: 13.5px; }
.vr-gran { color: #7C3AED; }
.vr-auto { background: #f6f5f9 !important; color: #7C3AED !important; font-weight: 800; }
.vr-auto-caja { background: #f6f5f9; }
.vr-stock-aviso { color: #7C3AED; }
.vr-stock-aviso[hidden] { display: none; }
@media (max-width: 600px) {
  .vr-modo button, .vr-tipos button { padding: 7px 10px; font-size: 12.5px; }
  .vr-agregar { flex-wrap: wrap; }
  .vr-n { width: 48px; }
}

/* ---------- Ventanita para escoger color y talla (POS y tienda) ---------- */
.vp-fondo { position: fixed; inset: 0; z-index: 2000; background: rgba(20,16,30,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vp-caja { width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.3); color: #161823; font-family: inherit; }
.vp-cab { display: flex; gap: 12px; align-items: center; }
.vp-cab img, .vp-cab .vp-sin { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: #f1f1f4; flex: none; }
.vp-cab b { display: block; font-size: 16px; line-height: 1.25; }
.vp-cab span { color: #7C3AED; font-weight: 800; font-size: 15px; }
.vp-x { margin-left: auto; align-self: flex-start; border: 0; background: #f1f1f4; width: 32px; height: 32px; border-radius: 50%; color: #55555f; cursor: pointer; flex: none; }
.vp-lab { font-size: 13.5px; font-weight: 700; margin: 14px 0 8px; }
.vp-lab span { font-weight: 500; color: #6b6b75; }
.vp-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-col { width: 66px; border: 2px solid #e7e5ee; border-radius: 10px; overflow: hidden; text-align: center; font-size: 11.5px; font-weight: 600; padding: 0 0 4px; background: #fff; cursor: pointer; font-family: inherit; color: #161823; }
.vp-col img, .vp-col .vp-sw { width: 100%; height: 50px; object-fit: cover; display: block; margin-bottom: 3px; }
.vp-col.on { border-color: #7C3AED; }
.vp-col.ag { opacity: .45; }
.vp-tls { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-tl { min-width: 70px; border: 1.5px solid #dcdae4; border-radius: 9px; padding: 7px 6px 6px; font-weight: 700; font-size: 14px; background: #fff; cursor: pointer; font-family: inherit; color: #161823; }
.vp-tl small { display: block; font-size: 11px; font-weight: 600; color: #7a7787; }
.vp-tl.on { border-color: #7C3AED; color: #5b21b6; background: #f6f1ff; }
.vp-tl.on small { color: #7C3AED; }
.vp-tl:disabled { color: #c4c2cd; background: #f7f7f9; border-style: dashed; cursor: default; text-decoration: line-through; }
.vp-pie { display: flex; gap: 10px; margin-top: 18px; }
.vp-pie button { flex: 1; border: 0; border-radius: 12px; padding: 12px 0; font-weight: 800; font-size: 14.5px; cursor: pointer; font-family: inherit; }
.vp-cancel { background: #f1f0f5; color: #161823; }
.vp-ok { background: #7C3AED; color: #fff; }
.vp-ok:disabled { opacity: .45; cursor: default; }
.vp-nota { display: flex; gap: 8px; align-items: center; background: #f6f1ff; color: #4c1d95; border-radius: 9px; padding: 8px 11px; font-size: 12.5px; margin-top: 12px; }

/* Dentro de la ventanita de Productos físicos (no carga producto-nuevo.css) */
.vr-compacto { border: 1px solid #ececf1; border-radius: 10px; padding: 14px 16px; margin: 14px 0; background: #fff; }
.vr-compacto h2 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.vr-compacto .pn-ay { color: #8a8a94; font-size: 12px; margin-bottom: 6px; line-height: 1.4; }
.vr-compacto .pn-seg { display: inline-flex; background: #f1f1f4; border-radius: 8px; padding: 3px; }
.vr-compacto .pn-seg button { border: none; background: none; padding: 7px 12px; border-radius: 6px; font-weight: 700; font-size: 12.5px; color: #55555f; }
.vr-compacto .pn-seg button.on { background: #fff; color: #7C3AED; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.vr-compacto .pn-in { border: 1px solid #e3e3e8; border-radius: 6px; display: flex; align-items: center; background: #fff; }
.vr-compacto .pn-in input { border: none; outline: none; background: transparent; padding: 9px 12px; font-size: 14px; width: 100%; min-width: 0; }
.vr-compacto label { margin: 12px 0 6px !important; }

/* ---------- Página del producto: escoger color y talla (vt-) ---------- */
.vt-sel { margin: 12px 0 6px; }
.vt-lab { font-size: 14px; font-weight: 700; margin: 12px 0 8px; color: #161823; }
.vt-lab span { font-weight: 500; color: #55555f; }
.vt-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-col { width: 64px; border: 2px solid #e7e5ee; border-radius: 10px; overflow: hidden; text-align: center; padding: 0 0 4px; background: #fff; cursor: pointer; font-family: inherit; color: #161823; }
.vt-col img, .vt-col .vt-sw { width: 100%; height: 54px; object-fit: cover; display: block; margin-bottom: 3px; }
.vt-col .vt-n { display: block; font-size: 11.5px; font-weight: 600; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-col.on { border-color: #FE2C55; }
.vt-col.ag { opacity: .45; }
.vt-tls { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-tl { min-width: 50px; border: 1.5px solid #dcdae4; border-radius: 9px; padding: 8px 10px; font-weight: 700; font-size: 14px; background: #fff; cursor: pointer; font-family: inherit; color: #161823; }
.vt-tl.on { border-color: #FE2C55; color: #FE2C55; background: #fff1f4; }
.vt-tl:disabled { color: #c4c2cd; text-decoration: line-through; background: #f7f7f9; border-style: dashed; cursor: default; }
.vt-queda { font-size: 13px; color: #e11d48; font-weight: 700; margin-top: 10px; }
.vt-sel.vt-falta { animation: vtSacude .4s; }
@keyframes vtSacude { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.vt-fondo { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0); transition: background .2s; }
.vt-fondo.abierta { background: rgba(0,0,0,.45); }
.vt-hoja { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; background: #fff; color: #161823; border-radius: 20px 20px 0 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; }
.vt-fondo.abierta .vt-hoja { transform: none; }
@media (min-width: 768px) { .vt-hoja { left: 50%; right: auto; width: 460px; margin-left: -230px; bottom: auto; top: 50%; border-radius: 18px; transform: translateY(-40%); opacity: 0; transition: transform .2s, opacity .2s; } .vt-fondo.abierta .vt-hoja { transform: translateY(-50%); opacity: 1; } }
.vt-asa { width: 40px; height: 5px; border-radius: 5px; background: #ddd; margin: 0 auto 10px; }
.vt-cab { display: flex; align-items: center; gap: 12px; }
.vt-cab img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f1f1f4; flex: none; }
.vt-cab b { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vt-x { margin-left: auto; align-self: flex-start; border: 0; background: #f1f1f4; width: 32px; height: 32px; border-radius: 50%; color: #55555f; cursor: pointer; flex: none; }
.vt-ok { width: 100%; margin-top: 16px; border: 0; border-radius: 24px; background: #FE2C55; color: #fff; font-weight: 800; font-size: 15px; padding: 13px; cursor: pointer; font-family: inherit; }
.vt-ok:disabled { background: #f1f0f5; color: #8a8a94; cursor: default; }

/* ---------- Etiquetas por talla ---------- */
.et-rap { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.et-rap button { border: 1px solid #e3e3e8; background: #fafafc; border-radius: 16px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: #3f3c4d; cursor: pointer; }
.et-rap button:hover { border-color: #c4b5fd; }
.et-tabla td small { display: block; font-size: 11px; color: #8a8a94; font-weight: 500; }
.et-tabla td b { font-size: 13.5px; }
.et-st { color: #55555f; font-weight: 700; }
.vr-etiquetas { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; border: 1.5px solid #c4b5fd; background: #faf7ff; color: #7C3AED; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---------- Stock por talla ---------- */
.st-ctl { display: inline-flex; align-items: center; gap: 6px; }
.st-ctl button { width: 32px; height: 32px; border: 1px solid #e3e3e8; border-radius: 8px; background: #fff; font-size: 17px; font-weight: 700; color: #3f3c4d; cursor: pointer; }
.st-nota { margin-top: 12px; border: 1px solid #e3e3e8; border-radius: 6px; display: flex; }
.st-nota input { border: 0; outline: none; padding: 9px 12px; font-size: 14px; width: 100%; background: transparent; }
.iv-tallas-btn { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid #c4b5fd; background: #faf7ff; color: #7C3AED; border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap; }

/* ---------- Precio por talla (formulario) ---------- */
.vr-sec label.vr-sw-precio { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; margin: 0 0 8px; cursor: pointer; color: #3f3c4d; }
.vr-sw-precio input { width: 16px; height: 16px; accent-color: #7C3AED; }
.vr-sw-precio small { color: #8a8a94; font-weight: 500; }
.vr-n.vr-p { display: block; margin: 4px auto 0; width: 76px; font-size: 12.5px; color: #7C3AED; border-style: dashed; }
.vt-precio { font-size: 18px; font-weight: 800; color: #FE2C55; margin-top: 10px; }
.vt-precio s { font-size: 13px; color: #9a97a8; font-weight: 500; }
